[LyX/master] BiblioInfo: provide macro for ellipses

Juergen Spitzmueller spitz at lyx.org
Tue Jul 9 04:39:47 UTC 2024


commit a4b99aee94cd9538c9e5a04fb9b9586deedeadf9
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Tue Jul 9 06:39:15 2024 +0200

    BiblioInfo: provide macro for ellipses
---
 lib/doc/Customization.lyx    | 39 +++++++++++++++++++++++++++++++++++++++
 lib/doc/de/Customization.lyx | 28 ++++++++++++++++++++++++++++
 src/BiblioInfo.cpp           |  3 +++
 3 files changed, 70 insertions(+)

diff --git a/lib/doc/Customization.lyx b/lib/doc/Customization.lyx
index 702c839ad6..4e35366c16 100644
--- a/lib/doc/Customization.lyx
+++ b/lib/doc/Customization.lyx
@@ -26272,6 +26272,45 @@ status collapsed
  Note that these are not macros,
  in the sense just defined.
  They will not be expanded.
+\change_inserted -712698321 1720499621
+
+\end_layout
+
+\begin_layout Standard
+
+\change_inserted -712698321 1720499725
+For some characters which are otherwise hard to get,
+ we have predefined macros.
+ Currently,
+ this only includes:
+\end_layout
+
+\begin_layout Itemize
+
+\change_inserted -712698321 1720499707
+\begin_inset Flex Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\change_inserted -712698321 1720499707
+%elp%
+\change_unchanged
+
+\end_layout
+
+\end_inset
+
+ which outputs the ellipsis character (
+\begin_inset Quotes eld
+\end_inset
+
+\SpecialChar ldots
+
+\begin_inset Quotes erd
+\end_inset
+
+)
 \end_layout
 
 \begin_layout Standard
diff --git a/lib/doc/de/Customization.lyx b/lib/doc/de/Customization.lyx
index b5af3d0207..09c9ec8f40 100644
--- a/lib/doc/de/Customization.lyx
+++ b/lib/doc/de/Customization.lyx
@@ -25323,6 +25323,34 @@ status collapsed
  Sie werden nicht expandiert.
 \end_layout
 
+\begin_layout Standard
+Für manche Sonderzeichen haben wir Makros vordefiniert.
+ Momentan betrifft das nur
+\end_layout
+
+\begin_layout Itemize
+\begin_inset Flex Code
+status collapsed
+
+\begin_layout Plain Layout
+%elp%
+\end_layout
+
+\end_inset
+
+,
+ welches Auslassungspunkte (
+\begin_inset Quotes gld
+\end_inset
+
+\SpecialChar ldots
+
+\begin_inset Quotes grd
+\end_inset
+
+) ausgibt.
+\end_layout
+
 \begin_layout Standard
 Hier ist abschließend ein Beispiel,
  das mehrere Möglichkeiten ausschöpft:
diff --git a/src/BiblioInfo.cpp b/src/BiblioInfo.cpp
index b1ea8c3a49..60c29c8f99 100644
--- a/src/BiblioInfo.cpp
+++ b/src/BiblioInfo.cpp
@@ -1282,6 +1282,9 @@ docstring BibTeXInfo::getValueForKey(string const & oldkey, Buffer const & buf,
 			}
 		} else if (key == "year")
 			ret = getYear();
+		else if (key == "elp")
+			// ellipsis
+			ret = docstring(1, char_type(0x2026));
 	}
 
 	// If we have no result, check in the cross-ref'ed entries


More information about the lyx-cvs mailing list