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

serbo-croatian dictionary throwing error #56

Closed
gelbziesel opened this issue Jun 3, 2024 · 3 comments
Closed

serbo-croatian dictionary throwing error #56

gelbziesel opened this issue Jun 3, 2024 · 3 comments

Comments

@gelbziesel
Copy link

gelbziesel commented Jun 3, 2024

Hello! I've tried to create some dictionaries for serbo-croatian and also to download it from the release section, but no matter which serbo-croatian (sh) dictionary I download or create, I always get this error: ExtensionError: Dictionary has invalid data in 'index.json'

I am using Firefox with Yomitan 24.5.21.0

I also tried a few other dictionaries from the release section and created some myself which all worked without problems, I only have issues with the serbo-croatian one.

@StefanVukovic99
Copy link
Collaborator

I fixed this in yomidevs/yomitan#1009, but it hasn't been included in a release yet.
It's caused by sh being a deprecated ISO code so it wasn't included in our list.

As a temporary fix, I changed the code in index.json to sr:
kty-sr(sh)-en.zip
kty-sr(sh)-en-ipa.zip

I think you're the first person to use the sh dict, any feedback is welcome!

@StefanVukovic99
Copy link
Collaborator

I just noticed that the dict contains accent marks, I think those will need to be handled, so stay tuned.

@StefanVukovic99
Copy link
Collaborator

kty-sh-en-ipa.zip
kty-sh-en.zip
These have the accent marks handled properly and should load without error in Yomitan 24.6.3.0 and above.

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