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

differentiate between mandarin and japanese with whitelist or blackli… #45

Merged
merged 1 commit into from
Oct 19, 2019

Conversation

purtato
Copy link

@purtato purtato commented Aug 16, 2019

Fixes issue #44

This assumes that if the text contains any "hiragana" or "katakana" characters, it will go to Script::Japanese

Because the text will consist solely of Mandarin characters, this only adds checks for whitelist and blacklist logic.
If no whitelist or blacklist is supplied, this what would previously have been returned: Some((Lang::Cmn, 1.0))

@greyblake
Copy link
Owner

Tnx!
I'll take a look over the weekends.

@greyblake greyblake merged commit 5000ebf into greyblake:master Oct 19, 2019
@greyblake
Copy link
Owner

I apologize for the huuuuge delay.
Thanks for the fix. It's released in version 0.7.2.

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