-
Notifications
You must be signed in to change notification settings - Fork 715
[css-text-4] Specify that hyphens triggered by soft hyphens follow the hyphenate-limit-* rules #5090
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
Comments
I'm not sure I understand completely. Do you mean: if the author has inserted soft-hyphens into a word, that those soft-hyphens shouldn't be used as hyphenation points if they would violate the limits created by the If so, I think that's what the specification is already saying. Those two properties simply talk about limits on hyphenation - there's no distinction made about why the hyphenation occurred. |
Yes. Thanks for rephrasing.
Yeah, that's right. But as long as the other property has this note, you could interpret this to mean that this only applies to automatic hyphenation. |
My interpretation of the spec is that it would be true for all 4 of these properties, not just the first two. Were you treating the first two differently form the last two because something in the spec made you think that was the case, or based on how you want to use them? More details would be very helpful. |
The note specific to
No, I haven't thought it through. Of course it makes sense if all the rules apply to both sorts of hyphenation. |
As currently written, the draft spec doesn't explicitly say whether it's referring to manual or automatic hyphens (except for the note on So I might say
|
I agree with @jfkthame - the point made here and in #5157 is that manual hyphens inserted by the user should override everything else, which I agree that's the right approach. |
I'm not convinced and I don't agree. Let's imagine what it could look like in ten years if browsers supported these features: One browser (let's call it LavaLion) supports automatic hyphenation for almost all languages, the other browser (Quicksilver) can only hyphenate a few languages automatically. If, as suggested here, some CSS properties only apply to automatic hyphenation, users will need to define their style settings in two places (CSS and JavaScript). If, on the other hand, the CSS properties apply to manual AND automatic hyphenation, the user can define these settings in one place (CSS) and it doesn't matter whether the possible hyphenation points come from automatic hyphenation or were marked by soft hyphens. You could also put it like this: the "hyphenator" (be it a hyphenation algorithm or a user who inserts soft hyphens) specifies possible hyphenation points, the CSS properties define a style, which of these possible hyphenation points may be used. |
There's a note in https://drafts.csswg.org/css-text-4/#hyphenate-character saying
The same could be useful for the following rules:
hyphenate-limit-lines
hyphenate-limit-last
(but not for
hyphenate-limit-zone
orhyphenate-limit-chars
).The text was updated successfully, but these errors were encountered: