-
Notifications
You must be signed in to change notification settings - Fork 14
Use pospell #75
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
Comments
It looks good though it may be annoying with Polishized words like Pythonowe and words like heappop? I will look into the other repos. |
python-docs-es has a nice solution: a Python script that merges (in runtime) a base dictionary (with common words for all docs) and per-doc dictionary, which reduce the duplication if you want a dictionary file per-doc and avoid a huge single-file dictionary. |
Bigger issue,
|
I believe Sphinx should be adding code-block flag to msgids made from code blocks in gettext builder. Then pospell should enable us to filter out those msgids from checking. |
In python-docs-pt-br, when I was having tons of sphinx-lint errors because of literal-blocks being extracted, my work-around was the following: 1) make gettext disabling literal blocks to generate POT without it; 2) 'sphinx-intl update' to update PO files with the newly generated POT files; 3) run pospell; 4) discard changes to PO files (or simply don't commit). |
https://pypi.org/project/pospell/
There are Polish dictionaries available for hunspell (pospell), we could leverage it to improve the quality of the translation. It would require some configuration (extra custom dictionary and skipping code blocks). We could look at the other languages' setups.
% pospell --language pl tutorial/*.po … tutorial/stdlib2.po:701:heappop tutorial/stdlib2.po:778:wywnioskowując tutorial/stdlib2.po:778:Decimal tutorial/stdlib2.po:791:modulo tutorial/venv.po:35:Pythonowe tutorial/venv.po:146:bash tutorial/venv.po:187:deaktywować tutorial/venv.po:199:pragramu tutorial/venv.po:210:podkomend tutorial/venv.po:210:install tutorial/venv.po:210:uninstall tutorial/venv.po:210:freeze tutorial/venv.po:239:podajac tutorial/whatnow.po:43:tutorial tutorial/whatnow.po:77:Szegółowe tutorial/whatnow.po:100:Cheese tutorial/whatnow.po:111:Cookbook tutorial/whatnow.po:111:Wydawnicto tutorial/whatnow.po:111:Reilly tutorial/whatnow.po:130:Scientific tutorial/whatnow.po:172:Cheese
The text was updated successfully, but these errors were encountered: