https://bugs.documentfoundation.org/show_bug.cgi?id=155767
--- Comment #3 from خالد حسني <[email protected]> --- (In reply to Hossein from comment #0) > Created attachment 187821 [details] > File containing Persian text and optional hyphen > > Description: > Hyphenation is not used in Arabic script Though most languages written in Arabic script don’t indeed use hyphenation, Uighur does (in its contemporary Arabic orthography). https://www.w3.org/TR/arab-ug-gap/#hyphenation > but in reality many Persian > documents use it instead of ZWNJ, as adding it is easier (ctrl+-) compared > to ZWNJ (ctrl+shift+2) with Persian keyboard. > In MS Word, the optional hyphen breaks the words, and if the words falls at > the start or middle of a row, it works similarly as ZWNJ. The difference is > when it breaks the word in the end of the line, and part of it falls in the > next line. In this case, it adds a hyphen (-). > In LibreOffice, the rendering of optional hyphen for Arabic script is bad, > because not only the word breaking does not happen, but an extra gray area > plus a hyphen is always rendered over the word that contains optional hyphen. The LibreOffice behavior is the Unicode-compliant one. U+00AD is a control character, and should be ignored as if it weren’t there unless line breaking happens at its position (LibreOffice fails a bit short of this, if there is a ligature it prevents its formation, but this is a bug). Also, when Arabic script is hyphenated, the positional forms of the characters should be kept at the hyphenation point: https://unicode.org/reports/tr14/#SoftHyphen > 2. A gray vertical rectangle is drawn over such words. > 3. A hyphen is drawn over the word in edit mode (not visible in read-only > mode). This is field shadings, you can disable it with View → Field Shadings. Overall, there is no bug here, and MS Office behavior is not Unicode-complaint and we shouldn’t follow it. -- You are receiving this mail because: You are the assignee for the bug.
