Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uighur hyphenation should be supported #250

Open
r12a opened this issue Mar 22, 2022 · 1 comment
Open

Uighur hyphenation should be supported #250

r12a opened this issue Mar 22, 2022 · 1 comment
Labels
doc:arab_ug gap The first comment in this issue is read by the gap-analysis document. i:hyphenation Hyphenation (a subset of Line-breaking & hyphenation) l:ug Uighur p:basic The gap-analysis priority is Basic. x:arab-ug x:blink x:gecko x:webkit

Comments

@r12a
Copy link
Contributor

r12a commented Mar 22, 2022

This issue is applicable to Uighur.

Unlike Arabic, which is never hyphenated, words in Uighur text in the Arabic script can be broken at line ends. A short horizontal stroke is added at the end of the line, separated from the previous text by a small space, and joining forms are retained for left-joining letters at line end and line start.

hyphenation

This hyphenation method needs to be supported in browsers.

Specs:
css-level-3 provides controls for hyphenation, and alludes to the requirement to create joining letter forms at line end and start for Arabic-script text where hyphenation is allowed, but leaves it to the browser implementation to produce the specific type of hyphenation that is appropriate to a given language.

Tests & results:
The following tests use the second half of the text in the image shown above.

interactive test, hyphens:auto makes the browser hyphenate Uighur text and uses a low stroke at the line end, and joining forms at line end and start.

Results:

  • Gecko: ❌ No hyphenation occurs Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:98.0) Gecko/20100101 Firefox/98.0
  • Blink: ❌ No hyphenation occurs Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36
  • Webkit: ❌ No hyphenation occurs Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Safari/605.1.15

interactive test, After setting hyphens:manual, the browser hyphenates Uighur text where soft hyphens occur. Hyphenation is shown by a low stroke at the line end, slightly separated from the foregoing text, and joining forms at line end and start.

Results:

  • Gecko: ✅❌ The lines break and the line-end and line-start letters have joining forms, but the marker used is an ordinary hyphen and not on the baseline. Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:98.0) Gecko/20100101 Firefox/98.0
  • Blink: ✅❌ The lines break and the line-end and line-start letters have joining forms, but the marker used is an ordinary hyphen and not on the baseline. Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36
  • Webkit: ✅❌ The lines break but the line-end and line-start letters don't have joining forms, and the marker used is an ordinary hyphen and not on the baseline. Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Safari/605.1.15

Browser bug reports:
GeckoBlinkWebkit

Priority:
Uighur hyphenation is common in printed material, so it should also work on the Web.

@r12a r12a added gap The first comment in this issue is read by the gap-analysis document. doc:arfa labels Mar 22, 2022
@r12a
Copy link
Contributor Author

r12a commented Mar 22, 2022

The first comment in this issue contains text that will automatically appear in one or more gap-analysis documents as a subsection with the same title as this issue. Any edits made to that comment will be immediately available in the document. Proposals for changes or discussion of the content can be made in comments below this point.

Relevant gap analysis documents include:
Uighur

@r12a r12a added x:webkit x:blink x:gecko x:arab-ug doc:arab_ug i:line_breaking Line breaking & hyphenation p:basic The gap-analysis priority is Basic. and removed doc:arfa labels Mar 22, 2022
@r12a r12a added i:hyphenation Hyphenation (a subset of Line-breaking & hyphenation) and removed i:line_breaking Line breaking & hyphenation labels Apr 7, 2022
@r12a r12a added the l:ug Uighur label Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc:arab_ug gap The first comment in this issue is read by the gap-analysis document. i:hyphenation Hyphenation (a subset of Line-breaking & hyphenation) l:ug Uighur p:basic The gap-analysis priority is Basic. x:arab-ug x:blink x:gecko x:webkit
Projects
Status: Bug in discussion
Development

No branches or pull requests

1 participant