commit 05e27f64de625bc939d3769a764ad0b5270443bf
Author: Juergen Spitzmueller <[email protected]>
Date: Mon Nov 10 09:06:40 2025 +0100
amend 8d938b03160
LateXOutputRTL also needs escape handling
---
lib/doc/Customization.lyx | 90 +++++++++++++++++++++++++++++++++++++++++++-
lib/doc/de/Customization.lyx | 67 +++++++++++++++++++++++++++++++++
src/TextClass.cpp | 2 +-
3 files changed, 157 insertions(+), 2 deletions(-)
diff --git a/lib/doc/Customization.lyx b/lib/doc/Customization.lyx
index 24b4518b2a..5bb39b35ab 100644
--- a/lib/doc/Customization.lyx
+++ b/lib/doc/Customization.lyx
@@ -24780,6 +24780,8 @@ status collapsed
\backslash
+\change_unchanged
+
\end_layout
\end_inset
@@ -24799,6 +24801,8 @@ status collapsed
\end_inset
+\change_unchanged
+
\end_layout
\end_inset
@@ -24810,7 +24814,7 @@ status collapsed
\begin_layout Description
-\change_inserted -712698321 1761553032
+\change_inserted -712698321 1762761714
\begin_inset Flex Code
status collapsed
@@ -24840,6 +24844,90 @@ status collapsed
Alternative text or command that is output to \SpecialChar LaTeX
in right-to-left context.
+ As with
+\begin_inset Flex Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted -712698321 1762761713
+LaTeXOutput
+\end_layout
+
+\end_inset
+
+
+\series bold
+,
+
+\series default
+ special characters such as
+\begin_inset Flex Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted -712698321 1762761702
+
+\backslash
+
+\end_layout
+
+\end_inset
+
+ or
+\begin_inset Flex Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted -712698321 1762761702
+\begin_inset Quotes qld
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+ need to be escaped (
+\begin_inset Flex Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted -712698321 1762761702
+
+\backslash
+
+\backslash
+
+\end_layout
+
+\end_inset
+
+,
+
+\begin_inset Flex Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted -712698321 1762761702
+
+\backslash
+
+\begin_inset Quotes qld
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+).
+\change_unchanged
+
\end_layout
\begin_layout Description
diff --git a/lib/doc/de/Customization.lyx b/lib/doc/de/Customization.lyx
index 7caf9b7e40..223f598b07 100644
--- a/lib/doc/de/Customization.lyx
+++ b/lib/doc/de/Customization.lyx
@@ -23768,6 +23768,73 @@ status collapsed
Alternativer Text oder Befehl,
der in \SpecialChar LaTeX
ausgegeben im Rechts-nach-links-Kontext wird.
+ Wie bei
+\begin_inset Flex Code
+status collapsed
+
+\begin_layout Plain Layout
+LaTeXOutput
+\end_layout
+
+\end_inset
+
+ müssen Sonderzeichen wie
+\begin_inset Flex Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\backslash
+
+\end_layout
+
+\end_inset
+
+ oder
+\begin_inset Flex Code
+status collapsed
+
+\begin_layout Plain Layout
+\begin_inset Quotes qld
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+ maskiert werden (
+\begin_inset Flex Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\backslash
+
+\backslash
+
+\end_layout
+
+\end_inset
+
+,
+
+\begin_inset Flex Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\backslash
+
+\begin_inset Quotes qld
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+).
\end_layout
\begin_layout Description
diff --git a/src/TextClass.cpp b/src/TextClass.cpp
index b05d844800..4789d78f8c 100644
--- a/src/TextClass.cpp
+++ b/src/TextClass.cpp
@@ -1246,7 +1246,7 @@ void TextClass::readSpecialChars(Lexer & lexrc)
break;
}
case SC_LATEX_OUTPUT_RTL: {
- lexrc.next();
+ lexrc.next(true);
docstring const res = rtrim(lexrc.getDocString());
if (isHex(res))
sc.latex_output_rtl = docstring(1,
hexToInt(res));
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs