HOST-Oman / scribus

Project for adding complex text layout to Scribus DTP program
Other
36 stars 21 forks source link

Default_Ignorable_Code_Point in hyphenation? #230

Open sommerluk opened 7 years ago

sommerluk commented 7 years ago

Some characters in Unicode have the property Default_Ignorable_Code_Point. This includes characters like the ZWNJ zero width non-joiner U+200C. Most format characters have this property. With CTL and OpenType support available in Scribus, the usage of these characters will increase.

These characters have yet a special treatment in spell checking since #215. The question is how to treat these characters in hyphenation. Currently, the automatic hyphenation does not work as expected when characters like ZWNJ are present. Example: The German word “Auflage” should be hyphenated “Auf-la-ge”, and this works correctly in Scribus when no ZWNJ is there. But when there is a ZWNJ between “Auf” and “lage” then the first hyphenation point is not found. It’s only “Aufla-ge”.

Possible solution:

sommerluk commented 7 years ago

Might be related to #145