-
-
Notifications
You must be signed in to change notification settings - Fork 453
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
Sage 4.3.1 reference manual: PDF version failed to build due to non-ASCII characters in docstring #8036
Comments
based on Sage 4.3.1 |
Author: Minh Van Nguyen |
comment:1
Attachment: trac_8036-non-ascii.patch.gz |
comment:2
IOW, it's the latex preamble which needs fixing. |
Attachment: utf8.tex.gz Latex file which shows usage of utf8 |
comment:3
Sphinx uses
(See the documentation for inputenc.) If we knew the details, we could add lines like this to A third option is to get rid of all accents, as mvngu's patch does. A fourth option is to use the attached patch I'll mark this as "needs review", in case option 4 is appealing. |
Changed author from Minh Van Nguyen to Minh Van Nguyen, John Palmieri |
Attachment: trac_8036-tex-replacements.patch.gz apply only this patch |
comment:4
Note: When I preview my attachment, the "offending character" looks like a capital "C" with a cedilla, but don't be deceived: the actual character (when I download the patch and look at it in emacs, for example), is an "a" with a "vee" accent on top -- the last character in "Tarnita". |
comment:5
Replying to @jhpalmieri:
In case you're interested in this, the documentation says For other languages that do not fit well into LaTeX font selection scheme, ... the outlined inputenc approach will not work. If that is the case one can try using Dominique Unruh’s option utf8x for inputenc which has a somewhat different approach and encodes many more UTF-8 characters than the standard utf8 option. However, we recommend to do so only if you really need such alphabets as there are problems with this extended approach which were precisely the reason that we decided to limit the support to what is properly supported within the boundaries of LaTeX’s font selection. I don't know what the "problems with this extended approach" are. |
comment:6
Replying to @jhpalmieri:
I use [utf8x] on a daily basis, without issues. As you quoted above, it is well known that [utf8] supports a reduced set of characters. Not that utf8x supports arbitrary unicode characters, but I think a proper superset of those supported by utf8. The option [utf8x] is part of latex package "ucs". Your proposal (according to the posted patch) would be to special-case any characters not supported by [utf8] option? The patch only handles that particular letter. |
comment:7
Replying to @tornaria:
It's either that or patch Sphinx -- not hard, but I'm reluctant to patch external packages if there are other alternatives. I don't know how often we are likely to come across characters not supported by [utf8], so I don't know which option is better. |
comment:8
There are three non-ascii characters in this file, which prevent me from building the HTML version of the documentation. The patches here already seem to address the tex processing that builds the PDF. The patch simply identifies the three characters and replaces them with straight ASCII equivalents. It might be useful for folks trying to build the docs to test their own fixes/changes elsewhere. I'm not trying to weigh-in on the long-run solution to this problem. |
comment:9
Attachment: trac_8036-three-non-ascii.patch.gz #7999 should take care of the HTML reference manual. |
comment:10
For now, what if we set: latex_elements['inputenc'] = '\\usepackage[utf8x]{inputenc}' in |
Attachment: trac_8036-docbuild_utf8x.patch.gz Set utf8x in Sphinx option. Solo patch. |
comment:12
I like To the release manager: apply only |
Merged: sage-4.3.2.rc0 |
Reviewer: John Palmieri |
Changed author from Minh Van Nguyen, John Palmieri to Mitesh Patel |
comment:13
Merged trac_8036-docbuild_utf8x.patch. |
comment:14
The attachment trac_8036-docbuild_utf8x.patch breaks the build of the French tutorial. See #8146 for a follow-up to this issue. |
Even after applying #8021, the PDF version of the reference manual for Sage 4.3.1 failed to build. This is due to non-ASCII characters in the docstring of the method
prove_BSD()
of the classEllipticCurve_rational_field
inHere's a snippet of the error message:
Component: documentation
Keywords: non-ASCII characters
Author: Mitesh Patel
Reviewer: John Palmieri
Merged: sage-4.3.2.rc0
Issue created by migration from https://trac.sagemath.org/ticket/8036
The text was updated successfully, but these errors were encountered: