-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Publish StarDict files #480
Conversation
451f980
to
e466dd0
Compare
e466dd0
to
0337e4d
Compare
And not dict-LOCALE-LOCALE.df.
Sourcery Code Quality Report✅ Merging this PR will increase code quality in the affected files by 0.05%.
Here are some functions in these files that still need a tune-up:
Legend and ExplanationThe emojis denote the absolute quality of the code:
The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request. Please see our documentation here for details on how these metrics are calculated. We are actively working on this report - lots more documentation and extra metrics to come! Let us know what you think of it by mentioning @sourcery-ai in a comment. |
- name: Generate dictionary (StarDict) | ||
run: | | ||
pyglossary --read-format Dictfile --write-format Stardict --no-progress-bar --no-color data/${{ matrix.locale }}/dict-${{ matrix.locale }}.df ifo | ||
zip dict-${{ matrix.locale }}.zip ifo.dict.dz ifo.idx ifo.ifo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ifo.dict.dz ? really ?
I used
python3 main.py ../ebook-reader-dict/data/fr/dict-fr.df dict-fr.ifo
and I got
dict-fr.dict dict-fr.idx dict-fr.ifo dict-fr.syn
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And I got dict.dz and no .syn :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe local results are bad (for whatever reason). But ideally pyglossary generates the final Zip, it would ease things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could do something like:
$ pyglossary --read-format Dictfile --write-format Stardict --no-progress-bar --no-color data/${{ matrix.locale }}/dict-${{ matrix.locale }}.df dict-data.ifo
$ zip dict-${{ matrix.locale }}.zip dict-data.*
But I am not sure of the Zip filenames then. Do you know if names are important or just the file extension maybe?
--convert: Generate dict-LOCALE.df
And not dict-LOCALE-LOCALE.df.
./check.sh
run and eventual issues fixed.