[LyX/master] fr/Modules/Braille: make this work with polyglossia

Juergen Spitzmueller spitz at lyx.org
Fri Dec 13 10:46:06 UTC 2019


commit 4779d013ad767ab28a140261b3e897272c4ef979
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Fri Dec 13 11:58:12 2019 +0100

    fr/Modules/Braille: make this work with polyglossia
    
    The usage of English here was a bad hack anyway.
---
 lib/examples/fr/Modules/Braille.lyx |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/lib/examples/fr/Modules/Braille.lyx b/lib/examples/fr/Modules/Braille.lyx
index 192413c..bcc2847 100644
--- a/lib/examples/fr/Modules/Braille.lyx
+++ b/lib/examples/fr/Modules/Braille.lyx
@@ -13,14 +13,20 @@
 %évite les caractères actifs en français - JPC 17/09/2009
 \let\braillenormalorig\braillenormal
 \renewcommand{\braillenormal}[1]{%
-   \begin{otherlanguage}{english}\braillenormalorig{#1}\end{otherlanguage}%
+  % temporarily disable shorthands
+  \bgroup%
+   \catcode`\;=12%
+   \catcode`\:=12%
+   \catcode`\!=12%
+   \catcode`\?=12%
+   \braillenormalorig{#1}%
+  \egroup%
 }
 %\let\brailletextorig\brailletext
 %\renewcommand{\brailletext[1]{%
 %   \begin{otherlanguage{english}\brailletext{#1}\end{otherlanguage}%
 %}
 \end_preamble
-\options english
 \use_default_options false
 \begin_modules
 braille


More information about the lyx-cvs mailing list