Break anywhere fails on conjuncts #78
Labels
doc:taml
gap
i:line_breaking
Line breaking & hyphenation
l:ta
Tamil language & script
p:advanced
s:taml
Tamil script
x:taml
line-break:anywhere
causes lines to break inside words. It should break lines on grapheme cluster boundaries for all consonant clusters apart from the 3 special conjuncts. Chrome doesn't support the anywhere value. Firefox and Safari behave as expected.The exceptions are the sequences க்ஷ k͓ʂ, and ஶ்ரீ ʃ͓ɾī / ஸ்ரீ s͓ɾī (which are synonyms). These sequences should not be broken during line breaking. Correct line breaking of these conjunct-forming sequences are not supported by default by Unicode grapheme clusters (which split them in two), and requires the application of tailored rules.
Test: line-break:anywhere should not break shri or ksha conjuncts.
Firefox is ok for shri and for ksha without a vowel-sign, but in ரிக்ஷா leaves க் on previous line, still shaped for half a conjunct. Safari is ok for shri in HTML, but leaves ஸ் behind in textarea; for ksha, in textarea leaves க் behind, in HTML initially moves whole word to next line, then puts ரி back at end of line as you decrease the window width.
Similar results are produced for
word-break: break-all
, except that Chrome supports this property and value. Chrome wraps ஸ்ரீந as a single unit and ரிக்ஷா as a unit.The impact of this is advanced, although it would be good to fix it.
The text was updated successfully, but these errors were encountered: