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

* 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

* 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



Reply via email to