mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #4984 from tk0miya/4978_incorrect_shorthandoff_for_brazil
Fix #4978: latex: shorthandoff is not set up for Brazil locale
This commit is contained in:
commit
67d435f1fe
1
CHANGES
1
CHANGES
@ -30,6 +30,7 @@ Bugs fixed
|
||||
* #4969: autodoc: constructor method should not have return annotation
|
||||
* latex: deeply nested enumerated list which is beginning with non-1 causes
|
||||
LaTeX engine crashed
|
||||
* #4978: latex: shorthandoff is not set up for Brazil locale
|
||||
|
||||
Testing
|
||||
--------
|
||||
|
@ -197,7 +197,7 @@ class ExtBabel(Babel):
|
||||
shortlang = self.language.split('_')[0]
|
||||
if shortlang in ('de', 'ngerman', 'sl', 'slovene', 'pt', 'portuges',
|
||||
'es', 'spanish', 'nl', 'dutch', 'pl', 'polish', 'it',
|
||||
'italian'):
|
||||
'italian', 'pt-BR', 'brazil'):
|
||||
return '\\ifnum\\catcode`\\"=\\active\\shorthandoff{"}\\fi'
|
||||
elif shortlang in ('tr', 'turkish'):
|
||||
# memo: if ever Sphinx starts supporting 'Latin', do as for Turkish
|
||||
|
Loading…
Reference in New Issue
Block a user