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

Improve hyphenation pattern matching #179

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

matsud224
Copy link
Contributor

Current implementation of hyphenation pattern matching is naive and inefficient. To speed up the matching, this PR introduces trie for string matching. This PR also fixes the bug of not considered the special marker of the word ending (like ''4ab.").

I measured a typesetting time on my laptop with this document. Thanks to @puripuri2100! The original version of SATySFi, it takes about 142 seconds. With this PR, it takes only about 26 seconds.

@gfngfn gfngfn added this to the v0.1.0 milestone Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants