Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#98 em-dash and en-dash give spelling errors

0.18
closed-fixed
None
5
2013-10-13
2013-07-07
Pablo Rodriguez
No

Hi Enrico,

enabling spell as you type and selecting English as document language, I get errors with the following:

This is an errorthis is en-dashmakes

«make» make make make make make

I mean, these are en- and em-dashes and different quotation marks. And all cause false positives.

Could this be fixed in the spellckecker plugin or should I report upstream?

Many thanks for your help,

Pablo

Discussion

  • "Don’t" is marked as spelling error, while "don't" isn’t.

    Wouldn’t it be possible to fix this?

     
  • Slavko
    Slavko
    2013-10-06

    There are another unicode related problems, with chars as bullet (•), or dash (–).

    I am using hunspell dictionary for spellcheck, but checking document directly with hunspell and with enchant skips these (and previously mentioned combinations) problems, then this points to this plugin implementation.

     
  • Enrico Tröger
    Enrico Tröger
    2013-10-13

    The Unicode problems a word start and end should be fix in GIT master, this should also affect the bullet and dash issues.

    However, the fix I made isn't really a final solution, it's just a workaround for the fact that the spell checker plugin mostly works on strings considering them as byte streams not as Unicode characters sequences. At some point, I should rewrite this to fully consider text as Unicode and not as a byte stream.

    Because of the above, the issue with "Don’t" still persists and can't be fixed that easily. Currently, "Don’t" is passed to Enchant as one word. So at least, you could add it to your personal dictionary and it won't be marked as wrong again.

     
  • Enrico Tröger
    Enrico Tröger
    2013-10-13

    • status: open --> closed-fixed
    • assigned_to: Enrico Tröger