From b08e8709dc357d427a38457bdce64126abe98248 Mon Sep 17 00:00:00 2001
From: kthoden
Date: Wed, 17 Feb 2021 09:39:16 +0100
Subject: [PATCH] Add support for red text
---
examples/124_eoatex/preambel/pre_eoa.tex | 2 ++
examples/124_eoatex/preambel/pre_xml.tex | 3 +++
examples/124_eoatex/texfiles/03_markup.tex | 1 +
examples/125_tei_part/tei_part.xml | 2 +-
schema/resource/eoa-tei-strict.rnc | 2 +-
5 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/examples/124_eoatex/preambel/pre_eoa.tex b/examples/124_eoatex/preambel/pre_eoa.tex
index 5b4aa42..9fc8984 100755
--- a/examples/124_eoatex/preambel/pre_eoa.tex
+++ b/examples/124_eoatex/preambel/pre_eoa.tex
@@ -467,6 +467,8 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Definition einiger Makros zur Erhöhung des Bedienkomforts - Anfang
+% red text
+\newcommand{\EOAred}[1]{\textcolor{red}{#1}}
% Makro für kursiven Text
\newcommand{\EOAemph}[1]{\emph{#1}}
% Makro für fetten Text
diff --git a/examples/124_eoatex/preambel/pre_xml.tex b/examples/124_eoatex/preambel/pre_xml.tex
index dfbdc9e..c60f8f9 100644
--- a/examples/124_eoatex/preambel/pre_xml.tex
+++ b/examples/124_eoatex/preambel/pre_xml.tex
@@ -52,6 +52,9 @@
\newcommand*{\EOAfnalph}[1]{\begin{xmlelement}{EOAbigfoot}\XMLaddatt{list-style-type}{lower-latin}\begin{xmlelement}{p}#1\end{xmlelement}\end{xmlelement}}
\newcommand*{\EOAfnpar}{\begin{xmlelement}{msparbreak}\end{xmlelement}}
+\newcommand*{\EOAred}[1]{%
+ \begin{xmlelement}{hi}#1\end{xmlelement}%
+ \AddAttToLast{rend}{red}}
\newcommand*{\EOAbold}[1]{\textbf{#1}}
\newcommand*{\EOAemph}[1]{\emph{#1}}
% \newcommand*{\EOAurl}[1]{\url{#1}}
diff --git a/examples/124_eoatex/texfiles/03_markup.tex b/examples/124_eoatex/texfiles/03_markup.tex
index 081ecf2..a4841cd 100644
--- a/examples/124_eoatex/texfiles/03_markup.tex
+++ b/examples/124_eoatex/texfiles/03_markup.tex
@@ -62,6 +62,7 @@
\EOAdown{subscript}. There is also \EOAmathfont{Math font} for
additional symbols: {\EOAmfont ☉}. In some cases, you can use
\EOAbold{EOAbold} directly. \EOAcaps{Small caps} are also possible.
+Text in \EOAred{red}.
\EOAsection{Other types of text blocks} If you want to include a
longer quote in a text, use the block quote feature. And inside that
diff --git a/examples/125_tei_part/tei_part.xml b/examples/125_tei_part/tei_part.xml
index 855c049..f747030 100644
--- a/examples/125_tei_part/tei_part.xml
+++ b/examples/125_tei_part/tei_part.xml
@@ -395,7 +395,7 @@
rend="math">Math font for additional symbols: ☉. In some cases, you can use EOAbold directly. Small
- caps are also possible.
+ caps are also possible. Text in red.
Other types of text blocks
diff --git a/schema/resource/eoa-tei-strict.rnc b/schema/resource/eoa-tei-strict.rnc
index a1ac833..af5f22d 100644
--- a/schema/resource/eoa-tei-strict.rnc
+++ b/schema/resource/eoa-tei-strict.rnc
@@ -590,7 +590,7 @@ markup =
hi =
element hi {
- attribute rend { "italic" | "superscript" | "subscript" | "math" | "bold" | "struck" | "spaced" | "smallcaps" },
+ attribute rend { "italic" | "superscript" | "subscript" | "math" | "bold" | "struck" | "spaced" | "smallcaps" | "red" },
( text | index | indexanchor | ref )+
}