mojira.dev
MC-233459

Japanese line break position is unnatural

If there is a half-width space in Japanese and there is no half-width space on that line, a line break will be performed there. Please see the attachments.

This is not a Minecraft Translation Project issue.

Linked issues

Attachments

Comments 3

For implementers: CJK sentences can have linebreak anywhere, unless

  • it causes a line to end with opening parenthesis (e.g. 「) OR

  • it causes a line to start with closing parenthesis (e.g. 」), punctuations (、 or 。), small letters (e.g. っ, ぁ, ゃ, ッ, ァ, ャ - note the difference between them and big letters つ、あ、や、ツ、ア、ヤ), or hyphens (ー、U+30FC).

Note that these are only some of the rules (known as kinsoku shori) but for regular usage these are enough. Rather than reinventing a wheel this should just be done via ICU4J calls.

This ticket is a duplicate of MC-198700 and should be resolved.

Thank you for your report!
We're tracking this issue in MC-198700, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

user-7878e

(Unassigned)

Plausible

(Unassigned)

1.17.1

Retrieved