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

StarDict file #481

Closed
kbnhvn opened this issue Dec 18, 2020 · 11 comments · Fixed by #482
Closed

StarDict file #481

kbnhvn opened this issue Dec 18, 2020 · 11 comments · Fixed by #482

Comments

@kbnhvn
Copy link

kbnhvn commented Dec 18, 2020

Hi,

I tried the StarDict zip, but .dict file is missing, only .ifo and .idx inside.
Maybe I have to use .df file, but how?

Many thanks for your work !

@kbnhvn
Copy link
Author

kbnhvn commented Dec 19, 2020

I managed to convert .df to StarDict files using PyGlossary. Now I have .dict.dz, .idx, .ifo, .syn files and "res" folder. It works with my ereader.

@kbnhvn kbnhvn closed this as completed Dec 19, 2020
@BoboTiG
Copy link
Owner

BoboTiG commented Dec 19, 2020

Could you share the command used to generate the dict?

And what StarDict file did you try exactly?

@kbnhvn
Copy link
Author

kbnhvn commented Dec 19, 2020

I first tried the dict-fr.zip file, from release. But it only contains .ifo and .idx files.
Then I downloaded the dict-fr-fr.df file, and convert it to StarDict file with PyGlossary, using interative CLI.

Steps used:
Download PyGlossary-master from https://github.com/ilius/pyglossary
sudo pip3 install mistune==2.0.0a4
Open CLI in PyGlossary-master folder
sudo python3 main.py --cmd

Input file: dict-fr-fr.df
Output file: dict-fr
Output format: Stardict
Select action (ENTER to convert):

It gave me some errors for "res" files but I now have a folder "res" and dict-fr.dict.dz, dict-fr.ifo, dict-fr.idx, dict-fr.syn files.

Put all these files in a folder "dict-fr" in my ereader's "dict" folder .

My linux skills are quite poor, so I don't know if all these steps are the best ones.

@BoboTiG
Copy link
Owner

BoboTiG commented Dec 19, 2020

Thanks a lot for those details. I updated files in the release page (https://github.com/BoboTiG/ebook-reader-dict/releases/download/fr/dict-fr.zip). Do you mind trying again to let me know if the process is good now 🙏 ?

@kbnhvn
Copy link
Author

kbnhvn commented Dec 19, 2020

This release works well.
Thanks a lot for your work !!

@BoboTiG
Copy link
Owner

BoboTiG commented Dec 19, 2020

Ah cool, thanks for your test 💪

@BoboTiG BoboTiG mentioned this issue Dec 19, 2020
4 tasks
@kbnhvn
Copy link
Author

kbnhvn commented Dec 19, 2020

I don't know how It should look.
How it looks on Boox Nova 3 (Android):

https://rehost.diberie.com/Picture/Get/r/33583

@BoboTiG
Copy link
Owner

BoboTiG commented Dec 19, 2020

It seems quite fine for a first support. On the Kobo it looks like http://www.tiger-222.fr/?d=2020/04/17/22/14/21-un-dictionnaire-alternatif-et-complet-pour-la-votre-liseuse#projet (click on links, they are screenshots).

@kbnhvn
Copy link
Author

kbnhvn commented Dec 19, 2020

Yes it's fine.
I tried with words used as examples in this link.
Some functions are missing (like maths formulas)

https://rehost.diberie.com/Picture/Get/r/33590
https://rehost.diberie.com/Picture/Get/r/33591
https://rehost.diberie.com/Picture/Get/r/33592

@BoboTiG
Copy link
Owner

BoboTiG commented Dec 19, 2020

Yes, the features we have for the Kobo are not available on StarDict. More work will be needed if we may want to have the same level of quality.

@kbnhvn
Copy link
Author

kbnhvn commented Dec 19, 2020

For maths formulas and characters, it's an issue with StarDict, just checked on other dictionaries.
I don't know if StarDict can handle it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants