w3c / w3c/clreq

UAX #14 for line-breaking with quotation marks

Open
#245 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

doc:clreq gap i:line_breaking l:zh p:ok s:hani x:clreq
Dominant language
HTML
Stars
809
Forks
66
Avg merge
19m
Merged PRs (30d)
1

Description

In Chinese, is an opening quotation mark, but in some languages (like German) it can be a closing quotation mark. In UAX #14:

LB19 Do not break before or after quotation marks, such as ‘ ” ’.

This is too strict for Chinese, because breaks before should be allowed (it can appear at the line start).

Specs:
In the description for QU in UAX #14:

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.

Tests & results:
Interactive test, In Chinese, breaks before “ are allowed.

  • Gecko:
  • Blink:
  • Webkit:

Bug report:
ICU

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with UAX #14 rule LB19 and the QU description, then compare the linked Chinese interactive test with the ICU pull request #223. Confirm how Chinese quotation marks should be tailored in the CLReq requirements, and consider the work done when the documented behavior matches the expected Chinese line breaks.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
documentation, internationalization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.