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

Remove the russian tables from the LatexHyphenator configuration. #52

Merged
merged 2 commits into from
Feb 24, 2023

Conversation

kalaspuffar
Copy link
Collaborator

Hi @PaulRambags and @bertfrees

This PR comment out the crashing Russian Latex rules (They crash on load, so they are useless).

I've prepared a UTF-8 version of the file and converted it with the substrings.pl script. This dictionary I've put locally in /usr/share/hyphen.

With these small changes, the Russian hyphenation will be handled by the Hunspell C library and use a local dictionary.

As it's loaded by C, we can't have the files bundled in the jar file. I currently don't have the time to write a java implementation for this format and MTM is waiting for a resolution to this problem. But it would be a fun challenge, and the explanation in Donald Knuth's book seems pretty straightforward, so that it might be a good replacement for the future.

Best regards
Daniel

@@ -96,7 +96,9 @@

<entry key="ro">resource-files/ro.xml</entry>

<!--
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a comment that explains why you've made this change

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment added.

@kalaspuffar
Copy link
Collaborator Author

PR approved, running regression tests.

@kalaspuffar
Copy link
Collaborator Author

Regression tests passed, merging.

@kalaspuffar kalaspuffar merged commit b465bde into main Feb 24, 2023
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.

3 participants