]> git.lyx.org Git - features.git/commitdiff
fr/Modules/Braille: make this work with polyglossia
authorJuergen Spitzmueller <spitz@lyx.org>
Fri, 13 Dec 2019 10:58:12 +0000 (11:58 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:46 +0000 (15:48 +0200)
The usage of English here was a bad hack anyway.

lib/examples/fr/Modules/Braille.lyx

index 192413c022a415f05adb85bc432fe9fcba5d0ba4..bcc2847f7cca7af8bc9b9d6ff95f3529dfc8f982 100644 (file)
 %é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