Skip to content

Map Script::Unknown to Zzzz short name#23

Merged
Manishearth merged 1 commit intounicode-rs:masterfrom
nicoburns:unknown-Zzzz
Aug 15, 2025
Merged

Map Script::Unknown to Zzzz short name#23
Manishearth merged 1 commit intounicode-rs:masterfrom
nicoburns:unknown-Zzzz

Conversation

@nicoburns
Copy link
Contributor

@Manishearth Manishearth merged commit 323e8df into unicode-rs:master Aug 15, 2025
3 checks passed
github-merge-queue bot pushed a commit to servo/servo that referenced this pull request Aug 18, 2025
…t for harfbuzz (#38704)

Replaces a big match statement with a call to `unicode_script`'s
`Script::short_name` method which has the same big match statement. We
special case `Script::Unknown` because the `short_name` method returns
empty string for that variant, but harfbuzz represents it with `Zzzz`.

EDIT: `Zzzz` seems to be in the spec so I've sent a PR to
`unicode_script` to use it:
unicode-rs/unicode-script#23
EDIT: And unicode-rs/unicode-script#24 which
would allow us to remove this method entirely.

Signed-off-by: Nico Burns <nico@nicoburns.com>
PotatoCP pushed a commit to PotatoCP/servo that referenced this pull request Aug 20, 2025
…t for harfbuzz (servo#38704)

Replaces a big match statement with a call to `unicode_script`'s
`Script::short_name` method which has the same big match statement. We
special case `Script::Unknown` because the `short_name` method returns
empty string for that variant, but harfbuzz represents it with `Zzzz`.

EDIT: `Zzzz` seems to be in the spec so I've sent a PR to
`unicode_script` to use it:
unicode-rs/unicode-script#23
EDIT: And unicode-rs/unicode-script#24 which
would allow us to remove this method entirely.

Signed-off-by: Nico Burns <nico@nicoburns.com>
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