Spell Check and HTML Style

Last post 07-11-2010, 9:28 PM by gcaton. 5 replies.
Sort Posts: Previous Next
  •  03-02-2010, 12:23 AM 59096

    Spell Check and HTML Style

    I'm having some trouble with the spellcheck functionality where it is reading the styling of html elements to populate its word list.
     
    i.e. with the html element  <div style="FONT-SIZE: 8px; COLOR: #003366; FONT-FAMILY: 'Calibri','sans-serif'" align="center">&nbsp;</div>
    ' it is picking 'Calibri' up as a word for the user to check.
     
    But if i used  <div style="font-family: Calibri,sans-serif; color: #003366; font-size: 8px" align="center">&nbsp;</div>
    then the error is not coming.
     
    Is there a simply way to escape the quotation for the spell check?Please respond ASAP.Thanks in advance
  •  03-02-2010, 12:52 AM 59097 in reply to 59096

    Re: Spell Check and HTML Style

    hiiiiiiiiiiiiiiiiiiiii,
     
    Open a Web Form, HTML, ASP, JS, VBS, CS, VB, CPP or CSS file and click Tools | Spell Checker. Spell check may take 10-15 seconds on decently sized files. There is no immediate progress indication, but you can see that squiggles appear one by one under misspelled words. Double click on the misspelled word brings list of suggestions. <Cancel> closes the suggestion list. Spell checker messages also show up in the Error List as informational messages. They are not entered as errors or warnings so they don't break builds.
     

    balony
    wieczór panieński
  •  06-30-2010, 10:18 PM 62151 in reply to 59096

    Re: Spell Check and HTML Style

    I am noticing the same problem.
     
    For example, here's a snippet of my source:
    and here's what the spell checker found:
  •  06-30-2010, 10:49 PM 62153 in reply to 62151

    Re: Spell Check and HTML Style

    I am able to reproduce this problem in the CuteSoft demo: http://cutesoft.net/example/general.aspx
     
    with the following code snippet:
    1. <span style="font-family: 'Times New Roman'; color: black; font-size: 12pt">Hello World</span>  
    Looks like the single quotes around the font name are causing the problem. Everything is fine if I remove the quotes and use the following snippet:
    1. <span style="font-family: Times New Roman; color: black; font-size: 12pt">Hello World</span>  
  •  07-02-2010, 3:00 AM 62228 in reply to 62153

    Re: Spell Check and HTML Style

    frJericho:
    I am able to reproduce this problem in the CuteSoft demo: http://cutesoft.net/example/general.aspx
     
    with the following code snippet:
    1. <span style="font-family: 'Times New Roman'; color: black; font-size: 12pt">Hello World</span>  
    Looks like the single quotes around the font name are causing the problem. Everything is fine if I remove the quotes and use the following snippet:
    1. <span style="font-family: Times New Roman; color: black; font-size: 12pt">Hello World</span>  
     
    frJericho,
     
    Thanks for pointing out this issue.
     
    We can reproduce it and will fix it as soon as possible.
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  07-11-2010, 9:28 PM 62417 in reply to 62228

    Re: Spell Check and HTML Style

    Hi Adam,
     
    Is there any more information on this issue?  Spell check also seems to flag items within <style></style> tags.  This occurs irrespective of quotes as mentioned above. 
     
    For example, paste the below html into your the online demo and then spell check.  The first hit is on the td tag.
     
    <style>
    td { border:3px solid black; }
    </style>
    <table cellspacing="4" cellpadding="4" bgcolor="#ffffff" border="0">
         <tbody>
             <tr>
                 <td>
                 <p> <img src="http://cutesoft.net/Uploads/j0262681.jpg" width="80" height="53" alt="" /></p>
                 </td>
                 <td>
                 <p>When your algorithmic and programming skills have reached a level which you cannot improve any further, refining your team strategy will give you that extra edge you need to reach the top. We practiced programming contests with different team members and strategies for many years, and saw a lot of other teams do so too. </p>
                 </td>
             </tr>
             <tr>
                 <td>
                 <p> <img src="http://cutesoft.net/Uploads/PH02366J.jpg" width="80" height="52" alt="" /></p>
                 </td>
                 <td>
                 <p>From this we developed a theory about how an optimal team should behave during a contest. However, a refined strategy is not a must: The World Champions of 1995, Freiburg University, were a rookie team, and the winners of the 1994 Northwestern European Contest, Warsaw University, met only two weeks before that contest. </p>
                 </td>
             </tr>
         </tbody>
    </table>
    Filed under:
View as RSS news feed in XML