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

Handle special casing #10

Closed
tapeinosyne opened this issue Dec 15, 2016 · 1 comment
Closed

Handle special casing #10

tapeinosyne opened this issue Dec 15, 2016 · 1 comment
Milestone

Comments

@tapeinosyne
Copy link
Owner

tapeinosyne commented Dec 15, 2016

Presently, opportunities() may generate erroneous hyphenation for uppercase words that contain special-cased characters. (There is no risk of runtime panic, since all opportunities outside character boundaries are discarded.)

Two acceptable approaches would be to either discard any opportunity arising within expanded regions of the folded string, or trace it back into the original unfolded strings; in the latter case, the opportunity could be shifted to the left or right bound of the character in the unfolded string, respectively if the weight marks the first character of the expanded region or any subsequent one.

@tapeinosyne tapeinosyne added this to the 1.0 milestone Mar 10, 2017
@tapeinosyne
Copy link
Owner Author

Fixed in version 0.7.

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