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

Bug with hyphens #3

Open
foobnix opened this issue Apr 15, 2017 · 1 comment
Open

Bug with hyphens #3

foobnix opened this issue Apr 15, 2017 · 1 comment

Comments

@foobnix
Copy link

foobnix commented Apr 15, 2017

JHyphenator works not the same like Hyphenator.js
Could you please fix.

Pattern (ru)
Си­я­ет бес­ко­неч­ны­ми ог­ня­ми ко­лос­саль­ный ме­га­по­лис, дав­но по­гло­тив­ший округ Ориндж. Го­род по­гло­ща­ет и лю­дей, ма­ня бес­ко­неч­ны­ми со­блаз­на­ми

Hyphenator-5.1.0
Си­я­ет бес­ко­|неч­|ны|­|ми ог­|ня­|ми ко­|лос­|саль|­|ный ме­|га­|по­|лис, дав­|но по­|г|ло­тив­|ший округ Ориндж. Го­род по­|г|ло­|ща­ет и лю­|дей, ма­ня бес­ко­|неч­|ны|­|ми со­|блаз­|на­|ми

JHyphenator
Си­я­ет |бес­ко­|неч­|ны|­|ми о|г­|ня­|ми ко­|лос­|саль|­|ный| |ме­|га­|по­|лис, |дав­|но |по­|г|ло­тив­|ший| о|кру|г О|рин|дж. |Го­род |по­|г|ло­|ща­ет и лю­|дей|, |ма­|ня |бес­ко­|неч­|ны|­|ми |со­|блаз­|на­|ми

@gregko
Copy link

gregko commented Feb 11, 2018

I just ported JHyphenator for Android (https://github.com/gregko/JHyphenator) and adjusted it to read original lang.js files from Hyphenator.js and Hyphenopoly projects. When I found your post here, I copied your pattern, removed soft hyphens as they were included in your post, entered the sentence into my Java code, got this result:

"Си|я|ет бес|ко|неч|ны|ми ог|ня|ми ко|лос|саль|ный ме|га|по|лис, дав|но по|гло|тив|ший округ Ориндж. Го|род по|гло|ща|ет и лю|дей, ма|ня бес|ко|неч|ны|ми со|блаз|на|ми."

No idea if this is more correct, but its identical to soft hyphens you posted above. I read Russian, but I'm not good with its grammar and spelling. The code is the same as mfietz's, just the hyphenation patterns updated.

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