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
[Tree doc Tex] fix issues around localization #960
Conversation
romjerome
commented
Dec 6, 2019
•
edited
edited
- specific non-ASCII glyphs related to our locale are not properly displayed on PDF
- date cannot be parsed (one date format and in english)
- genealogytree macro needs a lang set in english
* specific non-ASCII characters related to our locale are not displayed on PDF * date cannot be parsed (one calendar format and in english) genealogytree macro needs a lang set in english
After forcing to run gramps in english I got an error ... |
Codecov Report
@@ Coverage Diff @@
## master #960 +/- ##
==========================================
+ Coverage 41.95% 42.59% +0.64%
==========================================
Files 1070 1071 +1
Lines 145320 148215 +2895
==========================================
+ Hits 60972 63139 +2167
- Misses 84348 85076 +728
Continue to review full report at Codecov.
|
A proper solution might be to use the lang selector available on reports dialog as an option. |
Sorry, need to have something like: |
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.
The libertine package should also be made conditional. It supports Greek and Cyrillic characters.
Is there a better font package for the Germanic/Nordic languages?
Is there a font package that supports Chinese characters?
gramps/gen/plug/docgen/treedoc.py
Outdated
if lang_en in LANG_SUPPORT: | ||
self.write(0, '\\gtrset{language=%s}\n' % lang_en) | ||
if lang_en in LATIN: | ||
self.write(0, '\\usepackage{lmodern}\n') |
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 should check that the package exists as we already do with libertine.
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.
There is maybe a problem with code like:
IfFileExists{libertine.sty}! e.g., got an issue with 'shellesc', where " shellesc.sty"
does not exist anymore on recent TeX packages. Need it for 'tcolorbox'.
There is now (with recent TeX versions) something like compressed "doc and source" into a "shellesc.dtx" file.
https://www.ctan.org/tex-archive/macros/latex/required/tools
'lmodern' should be a standard (ok, an old one)
https://www.ctan.org/pkg/lm
I did not try 'cm-super', 'fontspec' or 'oldstandard' (set of supported fonts).
I have some issues with libertine package version 5.3.0 (2019-05-20). Got few issues by only including old 'lmodern' package... There is an other issue because I have "german" characters and my locale is french... |
Yes. Users may wish to display names in a variety of alphabets irrespective of their locale setting. I found this problem when I attempted to produce a report using the example database which includes names using the cyrillic alphabet. Libertine was a font recommended by someone of the mailing list. Their may well be better alternatives available. |