Problems with hyphen in spell checking
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Some types of hyphen are treated different in spell checking:
hyphen-minus (U+002D) works as expected (e.g. "one-half" is ok).
hyphen (U+2010) is shown as spelling error.
non-breaking-hyphen (U+2011) again is ok.
soft-hyphen (U+00AD) entity input is automatically converted, i.e. it is no longer visible, e.g. "ar­tistic" becomes "artistic", appears correct, but is shown as an spelling error.
The combination hyphen-minus + soft-hyphen (does not make much sense, but appeared in text pasted from a PDF) is also shown as an error. However, on right-click, the context menu items for spell checking are not shown.
hyphen-minus, hyphen and non-breaking hyphen should be treated consistently. The inconsistent handling of hyphen is a problem, since for good typography hyphen should be used instead og hyphen-minus.
soft-hyphen should be ignored by the spell-checker.
A way to make soft-hyphens visible would be useful. If there is, I did not find it.
Environment: Calibre 2.77 with Ubuntu 12.04 on 64-bit system.
The treatment of hyphens comes from the ICU library. If you disagree
with the rules ICU uses you should ask them to change it. As for making
soft-hyphens visible, simply use a search and replace to replace them
with some visible character, perform whatever operations you want and
then search and replace the character back with a soft-hyphen. Trying to
make the text editing widget display invisible characters, is waaay too
much work, as it requires changes to Qt code.
status wontfix