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

[articles/typography/linebreak] Approaches to line breaking #163

Closed
sbbic opened this issue Jul 10, 2018 · 2 comments
Closed

[articles/typography/linebreak] Approaches to line breaking #163

sbbic opened this issue Jul 10, 2018 · 2 comments

Comments

@sbbic
Copy link

sbbic commented Jul 10, 2018

[source] (http://w3c.github.io/i18n-drafts/articles/typography/linebreak.en) [en]

Just wanted to give a quick comment regarding this:

In fact, it has been suggested that word wrap algorithms ignore ZWSP for Khmer text because of data quality issues.
http://w3c.github.io/i18n-drafts/articles/typography/linebreak.en

I am not aware that this has been suggested for Khmer, and if such a suggestion was followed I think it would actually result in a degraded experience for users. A manually inserted ZWSP should be highly valued in comparison to any type of automatic word break. In fact, the new code for Khmer in ICU (that is waiting to be implemented) actually turns off the breakiterator if a ZWSP is detected to give preference to human input. This allows for a user who desires control, to control where breaks are placed (especially since in languages like Khmer there are different schools of thought as to whether compound words or certain word pairs should be allowed to be on different lines or kept together). Generally speaking, if a Khmer user places a ZWSP in a text, they do so because they want to control where line-breaks take place (like for book publishing). And if they don't place any ZWSP then they don't care as much where the line-breaks are placed, so long as the text breaks along a word boundary and not in the middle of a word.

r12a added a commit that referenced this issue Jul 19, 2018
@r12a
Copy link
Contributor

r12a commented Jul 19, 2018

Thanks for your comments. The sentence in question was taken from feedback at #157, but since it is unattributed i'm happy to rescind it.

I changed the text to read as follows:

but recently major languages have line-breaking implementations at their disposal, which means ZWSP is not essential. Large-scale manual entry of ZWSP is also not very practical because the user cannot see the separator in most scenarios; this leads to problems with ZWSP being inserted in the wrong position, or multiple times. ZWSP may, however, be used to hand-craft and fix aspects of line-break behaviour.

Is that better?

(btw, off topic, are you aware of https://github.com/w3c/sealreq)

@r12a
Copy link
Contributor

r12a commented Jul 30, 2018

Hearing no objection to the changes, i am closing this issue. Reopen if there's more to be said on this topic.

@r12a r12a closed this as completed Jul 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants