Skip to content

More aggressively convert punctuation into fullwidth #3587

Open

Description

@1ec5

Following up from #3505 (comment) and #3438 (comment), we should replace certain non-CJK punctuation with their fullwidth equivalents more aggressively to avoid rotating them.

For example, 壹貳參(com) correctly becomes:

壹
貳
參
ᴒ͡
ᴑ
ᴟ
 ͝

but com(壹貳參) becomes:

ᴒ
ᴑ
ᴟ
壹͡
貳
參
︶

whereas it should be:

ᴒ
ᴑ
ᴟ
︵
壹
貳
參
︶

To get this right, we need to split verticalize_punctuation.lookup into three lookup tables (leftBinding, leftAndRightBinding, and rightBinding) and consider only the side(s) to which the character is naturally bound. So ( would be part of rightBinding because the character to the right is the only one that determines its ideographic-ness, whereas @ would be part of leftAndRightBinding because either adjacent character can make it non-ideographic.

/cc @lucaswoj @nickidlugash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions