diff -Nru sphinx-1.1.3+dfsg/debian/changelog sphinx-1.1.3+dfsg/debian/changelog --- sphinx-1.1.3+dfsg/debian/changelog 2012-04-03 08:17:50.000000000 +1200 +++ sphinx-1.1.3+dfsg/debian/changelog 2012-05-12 21:07:53.000000000 +1200 @@ -1,3 +1,13 @@ +sphinx (1.1.3+dfsg-3.1) unstable; urgency=low + + * debian/patches/add_names_to_shorthandoff_helper.patch: newer versions + of docutils (>=0.8) report full language name rather than shortcodes and + hence breaking pdf compilation in de, sl, pt, es, nl, pl and it locales + as the \shorthandoff directive is not added. Will be fixed in next + upstream release. (LP: #997891) + + -- Melissa Draper <[email protected]> Sat, 12 May 2012 21:07:41 +1200 + sphinx (1.1.3+dfsg-3) unstable; urgency=low * Validate *.po files at build time. Add gettext to Build-Depends. diff -Nru sphinx-1.1.3+dfsg/debian/patches/add_names_to_shorthandoff_helper.patch sphinx-1.1.3+dfsg/debian/patches/add_names_to_shorthandoff_helper.patch --- sphinx-1.1.3+dfsg/debian/patches/add_names_to_shorthandoff_helper.patch 1970-01-01 12:00:00.000000000 +1200 +++ sphinx-1.1.3+dfsg/debian/patches/add_names_to_shorthandoff_helper.patch 2012-05-12 21:43:10.000000000 +1200 @@ -0,0 +1,26 @@ +Description: Added language names to the shorthandoff helper + Docutils changed and now reports full language names not codes. + Because of this, the \shorthandoff directive is not being put + in the generated latex source, causing pdf generation to fail + for german, spanish, italian, portugese, dutch, polish and + slovene locales. +Author: Melissa Draper <[email protected]> +Bug-Debian: http://bugs.debian.org/672586 +Bug-Ubuntu: https://launchpad.net/bugs/997891 +Forwarded: not-needed +Last-Update: 2012-05-11 + +Index: sphinx-1.1.3+dfsg/sphinx/writers/latex.py +=================================================================== +--- sphinx-1.1.3+dfsg.orig/sphinx/writers/latex.py 2012-05-11 22:35:46.406485035 +1200 ++++ sphinx-1.1.3+dfsg/sphinx/writers/latex.py 2012-05-11 22:42:34.339136718 +1200 +@@ -100,7 +100,8 @@ + 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', 'ngerman', 'sl', 'slovene', 'pt', 'portuges', 'es', 'spanish', ++ 'nl', 'dutch', 'pl', 'polish', 'it', 'italian'): + return '\\shorthandoff{"}' + return '' + diff -Nru sphinx-1.1.3+dfsg/debian/patches/series sphinx-1.1.3+dfsg/debian/patches/series --- sphinx-1.1.3+dfsg/debian/patches/series 2012-04-03 07:58:12.000000000 +1200 +++ sphinx-1.1.3+dfsg/debian/patches/series 2012-05-11 22:35:12.000000000 +1200 @@ -7,3 +7,4 @@ skiptest_latex.diff fix_nepali_po.diff pygments_byte_strings.diff +add_names_to_shorthandoff_helper.patch

