Re: [csswg-drafts] [css-text] Providing alternative breaking behaviours for Ethiopic (#4765)

> My best guess is that line-break:anywhere is not appropriate, since it doesn't respect punctuation rules. However, word-break:break-all may be the right thing, although it doesn't specifically mention punctuation-specific rules. Am i correct?

Yes. `word-break: break-all` will do what you want here, and does not affect punctuation: UAX14 rules define which punctuation characters can / cannot be separated from the previous character by line breaking, and `word-break:break-all` does not change that. The Ethiopic wordspace will also have the right behavior: It has the  BA line-breaking class in UAX 14, making it inseparable from its preceding letter, and it will therefore not be placed at the beginning of a line.

Requiring a minimum of X letters on a line is not addressed, in css-text-3, but it expected to be addressed in css-text-4. See https://drafts.csswg.org/css-text-4/#last-line-limits

> It wasn't abundantly clear from reading the spec.

This bit of text, to be found under the definition of the `word-break` property, should be providing enough context to make the definition of `break-all` unambiguous in that respect:

> This property specifies soft wrap opportunities between letters, i.e. where it is “normal” and permissible to break lines of text. Specifically it controls whether a soft wrap opportunity generally exists between adjacent typographic letter units (and/or non-letter typographic character units belonging to the NU, AL, AI, or ID Unicode line breaking classes [UAX14]). It does not affect rules governing the soft wrap opportunities created by white space (as well as by other space separators) and around punctuation.

I think this is clear enough, but if you have a suggestion for improvement, or a concern about some of it, feedback is very much welcome.

On the other hand, an example about using `word-break:break-all` to switch between the two Ethiopic behaviors may be a more productive way of illustrating this. Happy to include one if someone can provide me with the right text.

-- 
GitHub Notification of comment by frivoal
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4765#issuecomment-584452208 using your GitHub account

Received on Tuesday, 11 February 2020 02:17:00 UTC