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

Add implementation of likely subtags #11

Closed
wants to merge 1 commit into from

Conversation

raphlinus
Copy link

Fixes #9 and partly fixes #10 but has test failures when the
likely-subtags feature is enabled, as discussed in #10.

This implementation follows the Unicode recommendataions fairly
closely but does not implement deprecated or grandfathered mappings.

Fixes projectfluent#9 and partly fixes projectfluent#10 but has test failures when the
`likely-subtags` feature is enabled, as discussed in projectfluent#10.

This implementation follows the Unicode recommendataions fairly
closely but does not implement deprecated or grandfathered mappings.
@zbraniecki
Copy link
Collaborator

Great, thank you!

I'm going to review it next week - is that ok?

@raphlinus
Copy link
Author

raphlinus commented Apr 12, 2019

Yes, it's fine, I can continue with this locally patched. More important to get this right than to get it in quickly :)

Another point while I'm at it. It's possible to replace the binary search lookups with minimal perfect hashes as in unicode-rs/unicode-normalization#37 . I have a feeling the speed improvement is not worth the extra maintenance complexity, but let me know.

@zbraniecki
Copy link
Collaborator

@raphlinus - can we move this to unic-langid crate?

@raphlinus
Copy link
Author

Same as the other PR, sure.

@zbraniecki
Copy link
Collaborator

I started working on that in unic-locale - https://github.com/zbraniecki/unic-locale/pull/15/files

For now the implementation is very naive and slow, but should be fairly complete.

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.

Incorrect existing likely subtags Likely subtags
2 participants