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

Failed to load de-* dictionaries. #93

Closed
antonWetzel opened this issue Nov 30, 2023 · 3 comments
Closed

Failed to load de-* dictionaries. #93

antonWetzel opened this issue Nov 30, 2023 · 3 comments

Comments

@antonWetzel
Copy link

Tested with https://github.com/antonWetzel/typst-hunspell/tree/zspell.

Loading the dictionaries de, de-AT and de-CH from https://github.com/wooorm/dictionaries fails with Build(DuplicateFlag { flag: "f", t1: AfxCircumfix, t2: None }).

The wrapper hunspell-rs loads the dictionaries without visible error, so I don't know if the dictionaries are malformed and the errors are ignored or the problem is produced by zspell.

@tgross35
Copy link
Contributor

Thanks for the report! I had tested with the German dictionary at some point and it was working, so I will take a look at what changed.

@tgross35
Copy link
Contributor

I guess that flags that apply to affixes and flags that apply to words are allowed to overlap, I need to update the duplicate check

tgross35 added a commit that referenced this issue Dec 10, 2023
Circumfix test xfails, added flags test fails
tgross35 added a commit that referenced this issue Dec 13, 2023
@tgross35
Copy link
Contributor

tgross35 commented Dec 13, 2023

Fixed in #96 / 0.5.2, we still don't handle circumfix correctly but at least we can load the dictionary

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