Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Support text presentation sequences#43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@Jules-Bertholet
Copy link
Contributor

@Jules-BertholetJules-Bertholet commentedMay 4, 2024
edited
Loading

Adds support fortext presentation sequences.

Just as emoji presentation sequences can transform non-emoji characters into emoji (potentially increasing their width),
text presentation sequences can transform emoji into non-emoji (potentially decreasing their width). For example,U+1F004 MAHJONG TILE RED DRAGON has emoji presentation by default, but with a text presentation selector it should become narrow like all the other Mahjong tile characters.

Some default-emoji characters should clearly remain wide even in text presentation, however.U+1F21A SQUARED CJK UNIFIED IDEOGRAPH-7121 is one such example.

What does Unicode say about all this? Thelatest draft of UAX 16 says:

In some cases, variation sequences have been defined that request a character to be displayed as wide or narrow. These variation sequences are defined in StandardizedVariants.txt [StandardizedVariants] in the [UCD], but they are identified via the description of the intended glyph style and not via a formal property of the variation sequence. Nevertheless, the presence of the respective variation selector should be considered a sufficient condition to resolve ambiguous width to either wide or narrow [...]

In other words, we're on our own. I've chosen to make default-emoji in theEnclosed Ideographic Supplement block remain wide, and have all others become ambiguous-width.

Adds 532 bytes of static data.

joseluis reacted with eyes emoji
@ManishearthManishearth merged commit3aa94a5 intounicode-rs:masterMay 7, 2024
@Jules-BertholetJules-Bertholet deleted the text-presentation branchMay 7, 2024 00:44
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ManishearthManishearthManishearth approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@Jules-Bertholet@Manishearth

[8]ページ先頭

©2009-2025 Movatter.jp