[LyX/master] Amend 37dce940862d40

Juergen Spitzmueller spitz at lyx.org
Fri Jan 26 07:48:17 UTC 2024


commit ae423757e96e36bb1e6dc83b4fa3ddd04b65d492
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Fri Jan 26 10:16:13 2024 +0100

    Amend 37dce940862d40
    
    PassThruChars should also be considered
---
 src/Paragraph.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp
index b908f01..1d4861e 100644
--- a/src/Paragraph.cpp
+++ b/src/Paragraph.cpp
@@ -3150,7 +3150,8 @@ void Paragraph::latex(BufferParams const & bparams,
 				}
 			}
 		} else if (i >= start_pos && (end_pos == -1 || i < end_pos)) {
-			if (!bparams.useNonTeXFonts && !runparams.pass_thru)
+			if (!bparams.useNonTeXFonts && !runparams.pass_thru
+			    && !contains(runparams.pass_thru_chars, c))
 				script = Encodings::isKnownScriptChar(c);
 			if (script != alien_script) {
 				if (!alien_script.empty()) {


More information about the lyx-cvs mailing list