#10149: Italian translation of "A Tour of Sage"
-------------------------------------------------+-------------------------
Reporter: rpanai | Owner: mvngu
Type: enhancement | Status: closed
Priority: major | Milestone: sage-6.3
Component: documentation | Resolution: fixed
Keywords: italian | Merged in:
Authors: Roberto Panai | Reviewers: Frédéric
Report Upstream: N/A | Chapoton
Branch: | Work issues:
dd295120fe365ac926e9770d8f047181a3f9dbca | Commit:
Dependencies: | Stopgaps:
-------------------------------------------------+-------------------------
Changes (by jhpalmieri):
* commit: dd295120fe365ac926e9770d8f047181a3f9dbca =>
Comment:
I can't get the PDF version of this to build without patching Sphinx: I
get the error
{{{
! Package babel Error: I cannot switch `"' on or off--not a shorthand.
See the babel package documentation for explanation.
Type H <return> for immediate help.
...
l.145 \shorthandoff{"}
?
! Emergency stop.
...
l.145 \shorthandoff{"}
! ==> Fatal error occurred, no output PDF file produced!
Transcript written on a_tour_of_sage.log.
make: *** [a_tour_of_sage.pdf] Error 1
Error building the documentation.
}}}
If I patch Sphinx (in particular the file `sphinx/writers/latex.py`) with
the change
{{{
#!diff
--- latex.py 2014-07-29 21:44:05.000000000 -0700
+++ latex_new.py 2014-07-29 21:45:30.000000000 -0700
@@ -100,7 +100,7 @@
class ExtBabel(Babel):
def get_shorthandoff(self):
shortlang = self.language.split('_')[0]
- if shortlang in ('de', 'sl', 'pt', 'es', 'nl', 'pl', 'it'):
+ if shortlang in ('de', 'sl', 'pt', 'es', 'nl', 'pl'):
return '\\shorthandoff{"}'
return ''
}}}
then it works. Or am I missing something?
--
Ticket URL: <http://trac.sagemath.org/ticket/10149#comment:12>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.