Skip to content
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

CharacterDirectionOfLocale: Returns "ltr" for scripts without any character direction #90

Open
anba opened this issue Aug 5, 2024 · 0 comments

Comments

@anba
Copy link
Contributor

anba commented Aug 5, 2024

ICU4C's uloc_isRightToLeft doesn't seem to provide this information, but at least ICU4X's LocaleDirectionality has three possible return values:

  • Direction::LeftToRight
  • Direction::RightToLeft
  • None for scripts like Zzzz or Zyyy.

See also https://docs.rs/icu/latest/icu/locid_transform/struct.LocaleDirectionality.html#method.get.

I'm not sure if there's an easy way to detect the unknown direction case in ICU4C, so I don't know if there's much support to support this case in the spec. But I guess we could at least document this case more clearly in the spec by adding an <emu-note> to CharacterDirectionOfLocale to describe that "ltr" is returned even when no direction is known.

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

No branches or pull requests

1 participant