[Tickets #2060] Spell check with aspell in HTML mode erroring on some HTML tags

bugs@bugs.horde.org bugs at bugs.horde.org
Wed Jun 1 17:37:07 PDT 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: https://dev.horde.org/horde/whups/ticket/?id=2060
-----------------------------------------------------------------------
 Ticket             | 2060
 Updated By         | kevin_myer at iu13.org
 Summary            | Spell check with aspell in HTML mode erroring on some HTML tags
 Queue              | IMP
 Version            | HEAD
 State              | Feedback
 Priority           | 1. Low
 Type               | Bug
 Owners             | 
-----------------------------------------------------------------------


kevin_myer at iu13.org (2005-06-01 17:37) wrote:

My suspicion is that certain tags (i.e. <a>) aren't going to cause a spell
checker to choke, because "a" is a valid word.  But a break tag <br /> does
- "br" is not a valid word.

Run the test file for the bug I filed on the aspell SF site through aspell
on the commandline:

aspell -a -H < spellfile

and watch it kick out errors (at least it does for me on two different
operating systems).

Then prepend ^ to each line - errors are gone for HTML tags.

Works:

^<br />
^<br />
^-- <br />
^Kevin M. Myer<br>
^Senior Systems Administrator<br />
^Lancaster-Lebanon Intermediate Unit 13<br />

Doesn't work:
<br />
<br />
-- <br />
Kevin M. Myer<br>
Senior Systems Administrator<br />
Lancaster-Lebanon Intermediate Unit 13<br />

And just to prove that out, add the word "mispeling" to the first entry - it
gets flagged as mispelled and suggestions are given.




More information about the bugs mailing list