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

"々(\u3005)" might should be considered as a Kanji #1

Open
chihane opened this issue Mar 14, 2017 · 1 comment
Open

"々(\u3005)" might should be considered as a Kanji #1

chihane opened this issue Mar 14, 2017 · 1 comment

Comments

@chihane
Copy link

chihane commented Mar 14, 2017

Or words like "人々" will not be parsed correctly.

Thanks for your awesome library though :)

@guentoan
Copy link
Owner

guentoan commented Apr 7, 2017

Thanks for your report. maybe the kanji regex is wrong. So let try this. I think it's work.

private static final String KANJI_REGEX = "(([{])([\u4E00-\u9FFF\u3040-\u30FF0-9])([;])([\u3040-\u30FFー[0-9]])([}]))";

private static final String KANJI_REGEX = "(([{])([\u4E00-\u9FFF\u3005\u3040-\u30FF0-9])([;])([\u3040-\u30FFー[0-9]])([}]))";

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

2 participants