diff -Nru sphinx-1.1.3+dfsg/debian/changelog sphinx-1.1.3+dfsg/debian/changelog --- sphinx-1.1.3+dfsg/debian/changelog 2012-03-31 16:33:14.000000000 +1300 +++ sphinx-1.1.3+dfsg/debian/changelog 2012-05-11 16:37:33.000000000 +1200 @@ -1,3 +1,13 @@ +sphinx (1.1.3+dfsg-2ubuntu2.1) precise-proposed; 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 Fri, 11 May 2012 16:36:33 +1200 + sphinx (1.1.3+dfsg-2ubuntu2) precise; urgency=low * Finish dh_python2 switch: 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-11 16:10:31.000000000 +1200 @@ -0,0 +1,25 @@ +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 +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-02-19 23:54:47.000000000 +1300 ++++ sphinx-1.1.3+dfsg/sphinx/writers/latex.py 2012-05-11 15:26:08.725153387 +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-03-28 20:05:50.000000000 +1300 +++ sphinx-1.1.3+dfsg/debian/patches/series 2012-05-11 15:26:08.000000000 +1200 @@ -5,3 +5,4 @@ sphinxcontrib_namespace.diff python3_test_build_dir.diff skiptest_latex.diff +add_names_to_shorthandoff_helper.patch