Skip to content

Do not hanging CJK punctuation#1211

Merged
reknih merged 1 commit intotypst:mainfrom
peng1999:hanging
May 15, 2023
Merged

Do not hanging CJK punctuation#1211
reknih merged 1 commit intotypst:mainfrom
peng1999:hanging

Conversation

@peng1999
Copy link
Copy Markdown
Contributor

This PR removes two CJK punctuation mark from overhang machanism, for following reasons:

  1. Punctuation hanging is not usually used in Chinese/Japanese

    In Requirements for Chinese Text Layout, Section 3.1.7 Hanging Punctuation at Line End:

    Most Chinese publications do not use hanging punctuation at line end.

    In Requirements for Japanese Text Layout, Section 3.8.2 Reduction and Addition of Inter-Character Spacing:

    However, line adjustment by hanging punctuation is not an appropriate method for dealing with a mixture of Japanese and Latin script text, since the latter principally does not apply line adjustment by hanging punctuation.

    And the main usecase of LaTeX (and of cause Typst) is mixture of CJK and Latin script text. A search in GitHub shows that only 18 Japanese tex file use the hanging punctuation.

  2. Punctuation hanging in Latin languages are fundamentally different from that in Chinese/Japanese.

    Hanging punctuation in Chinese/Japanese is not a visual complement as in Latin languages. In Chinese/Japanese, it is a way of line adjustment to reduce the need to change inter-character spacing.

    See Requirements for Japanese Text Layout, Section 3.8.2 Reduction and Addition of Inter-Character Spacing:

    The 1st and 5th line is not hanged, because these lines need not any adjustment.

@reknih reknih merged commit 659f27b into typst:main May 15, 2023
@peng1999 peng1999 deleted the hanging branch May 15, 2023 07:11
flavioabar pushed a commit to flavioabar/typst that referenced this pull request May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants