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
PDF build issue #35
Comments
|
This looks like to completly block the update of See #35 |
This comment was marked as outdated.
This comment was marked as outdated.
|
I reproduced the error with Docker container based on Ubuntu 22.04. Here is the contents of Dockerfile. Essential part to reproduce the issue is a list of packages installed by |
|
It turned out that http://www.unicode-symbol.com/u/C4CF.html So, I attempted to use package However, the build on my environment was failed due to another error, "TeX capacity exceeded, sorry [input stack size=5000].", which may be indicating the lack of enough memory. Maybe I can open pull request to docsbuild-scripts repo later so that anyone can try this (awkward) fix. |
|
Curiously, there are no "\uC4CF" in Japanese html doc. |
|
For reference, this also has been discussed here: texjporg/platex#84 |
That is true. This is the reason why I call my fix "ad hoc way", which just avoid the error instead of fixing essential problem. |
|
Pushed branch. https://github.com/take6/docsbuild-scripts/tree/fix-japanese-doc-build-error Could anyone try if it works? |
|
Created pull request. |
|
I failed to build PDF with this error. |
Building 3.9/10 branch(./build_docs.py ... --branch 3.9 or 3.10)Causes following error. I confirmed the error in c-api and library, but it might happen in other document too.
Building 3.11 branch
|
|
Unicode character error in howto-regex is caused by Non-ASCII/Non-Japanese letters in the IGNORECASE section (https://docs.python.org/3/howto/regex.html#compilation-flags). These Unicode letters are introduced in 2017(python/cpython@cd195e2). I wonder why build starts failing. Are the build procedures changed? |
|
With python/docsbuild-scripts#145, I managed to build PDFs other than library.pdf. To build library.pdf, I had to remove two occurrences of |
|
Error in codecs.rst rest src: Generated TeX src |
I think we should remove the character from the official doc. |
|
Multiple U+FFFD is used twice in codecs.rst: $ git grep $'\xef\xbf\xbd'
Doc/library/codecs.rst:| | decoding, use ``�`` (U+FFFD, the official |
Doc/library/codecs.rst: Substitutes ``?`` (ASCII character) for encoding errors or ``�`` (U+FFFD, |
|
All other languages can show U+FFFD. And most fonts has glyph for it. |
|
Here's a minimum example we should build for a Japanese PDF document. TeX source: sample.tex \documentclass[a4paper,10pt,dvipdfmx]{ujreport}
\usepackage[T1]{fontenc}
\usepackage[noto-otc]{pxchfon}
\usepackage[utf8]{inputenc}
\usepackage[german]{babel}
\begin{document}
こんにちは
ſ: (U+017F, LATIN SMALL LETTER LONG S) <- LaTeX Error: Unicode character ſ (U+017F) not set up for use with LaTeX.
�: (U+FFFD, REPLACEMENT CHARACTER). <- Undefined control sequence
K: (U+212A, KELVIN SIGN) <- No error in uplatex, but dvipdfmx show warning
[1
dvipdfmx:warning: No character mapping available.
CMap name: NotoSerifCJK-Regular.ttc:0:jp90-UCS4-H
input str: <0000212a>
]
\end{document}Build command: $ uplatex sample.tex
$ dvipdfmx sample.dvi |
|
Hope this help. (I can generate dvi file but cannot open. I'll make sure of the situation) |
Thank you very much! It makes to render the |
|
Great! |
Since #34 and #31 I have issues building PDFs on docs.python.org, it can easily be reproduced using https://github.com/python/docsbuild-scripts/ as:
(you can easily try other branches by changing the
--branchargument)The text was updated successfully, but these errors were encountered: