From 269becfbf6eadbf00c03c35c18580e31af9b46d4 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sat, 19 May 2018 02:29:47 +0900 Subject: [PATCH] Fix #4978: latex: shorthandoff is not set up for Brazil locale --- CHANGES | 1 + sphinx/writers/latex.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index c3dc3996d..abafe5bb0 100644 --- a/CHANGES +++ b/CHANGES @@ -26,6 +26,7 @@ Bugs fixed * #4825: C++, properly parse expr roles and give better error messages when (escaped) line breaks are present. * #4915, #4916: links on search page are broken when using dirhtml builder +* #4978: latex: shorthandoff is not set up for Brazil locale Testing -------- diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py index 17eabc462..9356bcee4 100644 --- a/sphinx/writers/latex.py +++ b/sphinx/writers/latex.py @@ -196,7 +196,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