FAILURE MAP
← Case archive

FA-80010 / Typography line breaking / Member archive

CJK kinsoku line breaking: hanging punctuation set · case 05

Long vowel marks and closing brackets hang outside the measure.

Member previewVariant 5 · 3 implementations · 8 checks per implementation

Case contract

Input [text of full-width characters, line length L]. Lines take L characters. If the next character is a hanging comma/period (、。,.) and is not itself followed by a line-start-prohibited character, it hangs on the line (burasage). Otherwise move characters to the next line while the next line would start with a prohibited character (、。,.)」』!?ー and small kana), then while the line would end with an opening bracket; a line keeps at least one character. Return the lines.

Why this case matters

Line breaking decides where paragraphs wrap on screen and in print; a wrong decision point shifts every following line.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
regression: hanging punctuation set["\u3048\u672c\u300e\u300d\u304a\u3001", "\u7248\u3042\u3001\u304f\u3042\u3083", "\u304a\u3001\u304b\u304d\u3053", "\u8a9e\u65e5\u300d\u304a\u3044", "\uff08\u8a9e"]["\u3048\u672c\u300e\u300d\u304a\u3001", "\u7248\u3042\u3001\u304f", "\u3042\u3083\u304a\u3001\u304b", "\u304d\u3053\u8a9e\u65e5\u300d", "\u304a\u3044\uff08\u8a9e"]Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗