-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
[WIP] bpo-31589: Build PDF using xelatex for better UTF8 support. #3940
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
Conversation
If someone want to test it locally, after checking-out my branch and installing texlive-xetex, texlive-fonts-recommended, texlive-lang-all, creating a venv with an up-to-date sphinx-doc and blurb, one can do:
|
@methane: Are you interested to check if it works with the Japanese translation? |
I don't know about PDF and latex much. |
They sent a lot of feedback on sphinx-doc/sphinx#4136 I'm trying to build locally for japanese currently. |
Looks like build is failing for japanese:
|
Generating Japanese PDF via Latex is very hard way. |
Usually, IMO, it would be better to use
I believe this will work well. |
@tk0miya Thanks for the recommendation, I'll try this. I'm no latex expert though. |
Tests for today:
Japanese errors using platex:
Looks like the problem is from the Japanese translation:
I'm opening an issue on their side. |
Fixing the \x10 found in japanese translation yields to another error:
I still don't get this one, as I explicitly asked sphinx to use xelatex. |
But building with platex works! So xelatex works for english and french and platex works for japanese, as told by @tk0miya thanks! Still have to find a clean way to jump between those two implementations, as the 'language' is not yet initialized when parsing conf.py. |
Thanks @JulienPalard for the PR, and @ned-deily for merging it 🌮🎉.. I'm working now to backport this PR to: 3.6. |
GH-4683 is a backport of this pull request to the 3.6 branch. |
Thanks @JulienPalard for the PR, and @ned-deily for merging it 🌮🎉.. I'm working now to backport this PR to: 2.7. |
GH-16636 is a backport of this pull request to the 2.7 branch. |
…H-3940) Also addresses doc build failures documented in bpo-32200. (cherry picked from commit 7324b5c) Co-authored-by: Julien Palard <[email protected]>
Also addresses doc build failures documented in bpo-32200. (cherry picked from commit 7324b5c) Co-authored-by: Julien Palard <[email protected]>
Trying to fix: https://bugs.python.org/issue31589
I sucessfully built locally PDF for english and french, still have to try japanese, and still have to "diff" (at least visually) PDFs from pdflatex vs pdf from xelatex.
https://bugs.python.org/issue31589