Hussein Shafie wrote: > Kevin Yank wrote: > >> The spell checker in XXE does not currently understand English >> contractions when they are assembled using the Unicode right single >> quotation mark (U+2019) instead of the ASCII apostrophe (U+0027). >> >> >> >> Any chance of adding the necessary logic (or spelling dictionary >> entries) for these two characters to be used interchangeably in words >> like ?can?t?, ?you?re? and ?don?t?? >> >> >> >> Ideally, I?d like to see a selectable option (maybe an optional >> alternative dictionary?) that requires the right single quotation mark, >> so that the forms using the ASCII apostrophe are marked as misspellings. >> > > * Method 1) ``Recompile'' your own English dictionary and then replace > XXE_install_dir/add/spell/en.dar by your customized version. > > This is possible by using our dictionary builder: See > http://www.xmlmind.com/spellchecker/dictbuilder.shtml > > Note that you'll have to properly declare U+2019 in the hints file > before recompiling your English dictionary. See > http://www.xmlmind.com/spellchecker/_distrib/dictbuilder/index.html > Thanks. I'll look into this possibility. > * Method 2) Bind typed character "'" (ASCII apostrophe) to a command > which inserts a U+2019 when the caret is preceded by "can", "you" and > "don", "aren", "isn", etc. > > See http://www.xmlmind.com/xmleditor/_distrib/doc/configure/binding.html > See http://www.xmlmind.com/xmleditor/_distrib/doc/dev/command2.html#d0e2844 > We already have a "smart" Java command in place that does this. It makes a "best guess" about the type of single quote desired given the context, and then cycles through the three possibilities if the user repeatedly types the "'" key. We have similar commands for double quotes (left, right, straight), dashes (hyphen, em, en), and ellipses (horizontal, vertical, three periods).
I don't see what this has to do with spell checking, however. > * Method 3) Write a documentHook which does this replacement each time > the document is saved. > > See http://www.xmlmind.com/xmleditor/_distrib/doc/dev/documenthook.html > Again, this doesn't seem to address the spell checking issue, as the words would show up misspelled the next time the document was opened. -Kevin Yank.

