
On Mon, Sep 21, 2009 at 11:40:16AM -0400, bulia byak wrote:
- Finally and most importantly, while it did add correct hyphen
points to the text, Inkscape didn't treat them correctly: it just broke words at those points but didn't insert visible hyphens as it should (in English text). I know that some languages need to insert hyphens and some don't. What is the proper way to fix this? Should Inkscape determine this based on xml:lang?
I haven't checked whether the SVG standard makes specific mention of soft hyphen, but the following may be relevant:
http://www.unicode.org/unicode/reports/tr14/#SoftHyphen
Presumably unicode script range would also be relevant, and may even be the primary mechanism, using xml:lang only when script isn't enough to determine hyphen appearance.
Though the above document doesn't actually give details of what rules to use, unfortunately, i.e. it doesn't refer us to any details of how U+00ad should be rendered in different circumstances, just what things it should depend on, and gives some examples of possible renderings (typically without mentioning the circumstances).
I might also draw attention to the wikipedia page for hyphen (http://en.wikipedia.org/wiki/Hyphen), whose references section points to some controversy as to how U+00ad should be handled.
pjrm.