Re: [clreq] Need to tailor UAX #14 for line-breaking with quotation marks (#245)

In the description for QU:

> Some quotation characters can be opening or closing, or even both, depending on usage. The default is to treat them as both opening and closing.
> [...]
> Note: If language information is available, it can be used to determine which character is used as the opening quote and which as the closing quote. See the information in Section 6.2, General Punctuation, in [Unicode]. In such a case, the quotation marks could be tailored to either OP or CL depending on their actual usage.

And css-text also allows the UA to determine the set of line-breaking restrictions to use, so it allows for this kind of tailoring indeed.

[Testing](https://w3c.github.io/i18n-tests/exploratory/line_breaking/int-line-break?lang=zh-hans&fontSize=36&width=766&lineBreak=auto&wordBreak=normal&text=%E6%9D%83%E5%9C%A8%E5%B0%8A%E4%B8%A5%E5%92%8C%E6%9D%83%E5%9C%A8%E5%B0%8A%E4%B8%A5%E5%92%8C%E6%9D%83%E3%80%81%E2%80%9C%E5%88%A9%E4%B8%8A%E4%B8%80%E2%80%9D%E5%BE%8B%E5%B9%B3%E7%AD%89%E3%80%82) in Chrome, Firefox, and Safari, it seems that browsers already treat the quotation marks as OP and CL when the text is in Chinese (try changing the lang to `de` and see the result for comparison). I think we can close this issue, if this rule does not need to be added to the css line-break rule (I agree that specifying this kind of thing in css-text is not practical).

-- 
GitHub Notification of comment by xfq
Please view or discuss this issue at https://github.com/w3c/clreq/issues/245#issuecomment-589448116 using your GitHub account

Received on Friday, 21 February 2020 01:02:00 UTC