More shorthandoff languages.

This commit is contained in:
Georg Brandl 2008-11-19 19:33:31 +01:00
parent 355019b2cf
commit 78072ec1e1

View File

@ -90,7 +90,8 @@ class LaTeXWriter(writers.Writer):
class ExtBabel(Babel): class ExtBabel(Babel):
def get_shorthandoff(self): def get_shorthandoff(self):
if self.language == 'de': shortlang = self.language.split('_')[0]
if shortlang in ('de', 'sl', 'pt', 'es', 'nl', 'pl'):
return '\\shorthandoff{"}' return '\\shorthandoff{"}'
return '' return ''