-
Notifications
You must be signed in to change notification settings - Fork 16
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
Editorial: Refactor for normative reference by higher web specs #17
Comments
In particular we want this for whatwg/dom#431 and w3c/selection-api#37. |
cc @rniwa |
I don't think we can use it for modifying selection at least in WebKit because whitespace treatment and the way word granularity is computed is very different from the way ICU determine a word boundary in various languages. Perhaps this could be used to determine line breaking behaviors in CSS though. |
Wouldn't you use that implementation for Intl.Segmenter too though? Seems weird to be inconsistent. |
No, we don't, intentionally due to subtle differences in the way whitespaces are treated and how word boundaries are determined. It's a real mess but it's quite important to have a good UX. |
OK, we don't have to make a reference there; another place where it might be nice to have consistency is line breaking, cc @eaenet. However, @zbraniecki pointed out to me that not all engines use UAX 14-based line breaking, so I was thinking of weakening the language in this specification to be more similar to how CSS Text Level 3 explains it. |
@rniwa but if it's important to get good UX, wouldn't that be important for applications too, that likely end up using Intl.Segmenter to get it? |
@annevk : that's why you should be using |
It's not clear to me that there's anything to do here, but I'm happy to refactor AdvanceSegmentIterator there's a concrete request (e.g., a signature for the desired algorithm). |
Other web specs do various kinds of breaking, especially line breaking. Factor the Intl.Segmenter spec text such that there is an abstract algorithm that they can call to get at the break, to cement the fact that Intl.Segmenter uses the same breaking algorithm as higher web specs.
cc @annevk
The text was updated successfully, but these errors were encountered: