Skip to content

UAX #14 for line-breaking with quotation marks #245

Open
@r12a

Description

@r12a

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    doc:clreqUsed for gap analysis (only) to indicate target document.gapThe first comment in this issue is read by the gap-analysis document.i:line_breakingLine breaking & hyphenationl:zhChinesep:okThis is no longer a gap.s:haniChinese scriptx:clreqThis affects the clreq group of languages.

    Type

    No type

    Projects

    Status

    Issue identified, needing investigation

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions