commit 812ce48e78652c58e99700f3d4868bddd9944382
Author: Thibaut Cuvelier <[email protected]>
Date:   Mon Feb 7 00:27:58 2022 +0100

    DocBook: in ERTs, recognise calls to the logos (as in InsetSpecialChar).
---
 src/insets/InsetERT.cpp |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/insets/InsetERT.cpp b/src/insets/InsetERT.cpp
index 6923f15..7c231b3 100644
--- a/src/insets/InsetERT.cpp
+++ b/src/insets/InsetERT.cpp
@@ -133,7 +133,15 @@ void InsetERT::docbook(XMLStream & xs, OutputParams const 
& runparams) const
 
        // Output the ERT as a comment with the appropriate escaping if the 
command is not recognised.
        if (trim(os.str()) == from_ascii("\\textquotesingle")) {
-           xs << "'";
+               xs << "'";
+       } else if (trim(os.str()) == from_ascii("\\TeX") || trim(os.str()) == 
from_ascii("\\TeX{}")) {
+           xs << "TeX";
+       } else if (trim(os.str()) == from_ascii("\\LaTeX") || trim(os.str()) == 
from_ascii("\\LaTeX{}")) {
+           xs << "LaTeX";
+       } else if (trim(os.str()) == from_ascii("\\LaTeXe") || trim(os.str()) 
== from_ascii("\\LaTeXe{}")) {
+           xs << "LaTeX2&#x03b5;";
+       } else if (trim(os.str()) == from_ascii("\\LyX") || trim(os.str()) == 
from_ascii("\\LyX{}")) {
+           xs << "LyX";
        } else {
         xs << XMLStream::ESCAPE_NONE << "<!-- ";
         xs << XMLStream::ESCAPE_COMMENTS << os.str();
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to