Skip to content

Map Script::Unknown to Zzzz short name #23

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 15, 2025

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 <[email protected]>
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 <[email protected]>
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