From f9e1c2cf159f223273766dabd8d0567c313b99b8 Mon Sep 17 00:00:00 2001 From: kthoden Date: Thu, 14 Nov 2019 14:18:39 +0100 Subject: [PATCH] tei2eoatex major update (copied from eoa-xmlmind) --- tei2eoatex.xsl | 1089 +++--------------- tei2eoatex/eoatex_contributors.xsl | 44 + tei2eoatex/eoatex_frontmatter.xsl | 190 +++ tei2eoatex/eoatex_functions.xsl | 34 + tei2eoatex/eoatex_persons.xsl | 156 +++ tei2eoatex/eoatex_processinginstructions.xsl | 42 + tei2eoatex/eoatex_textparts.xsl | 615 ++++++++++ 7 files changed, 1245 insertions(+), 925 deletions(-) create mode 100644 tei2eoatex/eoatex_contributors.xsl create mode 100644 tei2eoatex/eoatex_frontmatter.xsl create mode 100644 tei2eoatex/eoatex_functions.xsl create mode 100644 tei2eoatex/eoatex_persons.xsl create mode 100644 tei2eoatex/eoatex_processinginstructions.xsl create mode 100644 tei2eoatex/eoatex_textparts.xsl diff --git a/tei2eoatex.xsl b/tei2eoatex.xsl index df16a97..f3be661 100644 --- a/tei2eoatex.xsl +++ b/tei2eoatex.xsl @@ -12,8 +12,15 @@ + - + + + + + + + @@ -21,8 +28,6 @@ - - @@ -39,6 +44,7 @@ contexts, a double replacement is performed. + @@ -57,30 +63,6 @@ contexts, a double replacement is performed. - - - ⸎⸎ - - - - - - - - - - - [INFO]: - - - [WARNING]: - - - [ERROR]: . Exiting. - - - - @@ -102,6 +84,14 @@ contexts, a double replacement is performed. \EOAseries{ } + + + \input{texfiles/hyphenation} + + + + + \begin{document} @@ -118,7 +108,8 @@ contexts, a double replacement is performed. - \EOAtoc \pagenumbering{arabic} \setcounter{page}{1} \EOAnewpage + \pagenumbering{arabic} \setcounter{page}{1} \EOAtoc + @@ -133,7 +124,7 @@ contexts, a double replacement is performed. - + @@ -143,461 +134,10 @@ contexts, a double replacement is performed. - \end{document} - - - - \begin{EOAquote} - - \end{EOAquote} - - - - \begin{EOAabstract} - - \end{EOAabstract} - - - - - - - - \noindent - - - - \noindent - - - - - - - - - - - - - - - - - \EOArussian{ - - } - - - \EOAchinese{ - - } - - - \EOAhebrew{ - - } - - - \EOAgreek{ - - } - - - - - - - - - \begin{EOAtable} - - - [blank] - - - { - L{4cm} - } - - - {nonumber} - - - - - - { - - } - - - {!ht} - - - {ht} - - - - \end{EOAtable} - - - - { - - } - - - - - - \EOAtablehead{ - - } - - - - - \\ - - - - - - \newline - - - - - - - - - \EOAemph{ - - } - - - - \EOAdown{ - - } - - - - \EOAup{ - - } - - - - \EOAbold{ - - } - - - - - - \EOAsection - - - \EOAsubsection - - - \EOAsubsubsection - - - - - nonumber - - - - - - { - - } - - - - - - \EOAlabel{ - - } - - - - - - - - - \EOAciteyear - - - \EOAciteauthoryear - - - - - [ - - ] - - - - - [ - - - - - - - - - - - ] - - - - - { - - } - - - - \EOAfn{ - \EOAlabel{ - - } - - - - - - - - - - - \EOAfnpar - - - - - - - - - } - - - - - - - - - - \EOAref{ - - } - - - - \EOAurl{ - - } - - - - - - \begin{EOAlist} - - \end{EOAlist} - - - \begin{EOAitems} - - \end{EOAitems} - - - \begin{EOAdescription} - - \end{EOAdescription} - - - - - - - - - - - - \item - - - - - - - - - \item[ - - - ] - - - - - - - - \EOAfigure{ - - }{ - - } - { - - } - - { - - } - - - - {!ht} - - - {ht} - - - - - - - - - - - \refstepcounter{figure}⸎ - - - - - - - - \EOAineq{ - - } - - - - - - \begin{EOAtranscripted}{Original text}{Translation} - - \EOAnewpage - - \end{EOAtranscripted} - - - - - - - \clearpage - - - - - - - - - - \EOAprintbibliography[ - - ] - - - \EOAprintbibliography - - - - - \EOAprintindex - - - \EOAprintpersonindex - - - \EOAprintlocationindex - - - - - - - - - - - - - - - - - - - - - - - and - - - - - - - - - - , - - - and - - - - - - - - + \end{document} + @@ -644,9 +184,9 @@ contexts, a double replacement is performed. } - \input{ - - } + \input{ + + } @@ -664,265 +204,154 @@ contexts, a double replacement is performed. } - - - \EOAchapter - - - nonumber - - - - - + - - { - - }{ - - - - { + + \EOAtocentry{ - }{ - - - - } - - - - - - - \EOAlabel{ - - } - - - - - - - - - \EOAchapterauthor{ - - - - - } - - - \EOAchapterauthor{ - - - - - and - - - } - - - \EOAchapterauthor{ - - - - - - , - - - and - - - } + + - - - - - - { - + \EOAchapter + + + nonumber + + + + + + + + { + + }{ + + + + { + + }{ + + + + } - - - {none} - - - \input{ - - } - - - - - - - - - - - - - - + + + + + + + \EOAlabel{ + + } + + + + \input{ + + } - - - - + + + + + + + + \vspace{-2\baselineskip} + \noindent\EOAemph{Traduzione italiana a p.~\EOApageref{ + + }.} + \vspace{2\baselineskip} + + + \vspace{-2\baselineskip} + \noindent\EOAemph{Versione originale latina a p.~\EOApageref{ + + }.} + \vspace{2\baselineskip} + + + + + + + + + + + + + + + + - - - \EOAchapter - - - nonumber - - - - - - - - { - - }{ - - - - { - - }{ - - - - - - } - - - - - - \EOAlabel{ - - } - - - - - - - - \EOAchapterauthor{ - - - - - } - - - \EOAchapterauthor{ - - - - - and - - - } - - - \EOAchapterauthor{ - - - + \EOAchapter - - , + + nonumber - - and + + + + + + + { + + }{ + + + { + + }{ + + - - } - - - - - - - + + } + + + + + + \EOAlabel{ + + } + + + + \input{ + + } + + + + + - - { - - } - - - {none} - - - - \input{ - - } - - - - @@ -936,203 +365,13 @@ contexts, a double replacement is performed. - - - - - - - - - - - - - - \noindent\textbf{ - - - - - }\par - - \noindent - - \\ - - \noindent - - \\ - - - \noindent - - \\ - - - + - - - - - - - \pagestyle{empty} \pagenumbering{roman} \setcounter{page}{1} ⸎ - - \begin{center} \Large{ - - }\\ \vspace{2mm} \large{ - - } \end{center} \newpage - - \begin{center} \large \EOAbold{ - - } \end{center} - \vspace{15mm} \noindent\EOAbold{ - - }\\[2mm] - - - \vspace{10mm} \noindent\EOAbold{Edition Open Access Development Team}\\[2mm] - - \vspace{10mm} \noindent - - \vspace{3pt} \noindent - - \newpage - - \begin{minipage}[t]{90mm} - \vspace*{12mm} \begin{center} \Large { - - }\\ \vspace{2mm} - - \large{ - - } - - \end{center} \vspace{10mm} \begin{center} \large - - - - - - - - - - - - - - - - - - - - \end{center} \vspace{126mm} \begin{center} \large {\EOAbold{ - - }} \end{center} \end{minipage}\newpage - - \begin{flushleft} \noindent - - \\ \noindent - - \\ \vspace{4mm} \noindent Submitted by: - - - - - \\ \vspace{4mm} - - \noindent Editorial Team:\\ - - - - - \\ - - \vspace{4mm} - -\noindent Image Processing: \\ - - - - - \\ - - - - \noindent Scholarly Support: - - - - - \noindent Financial Support: - - - - \vspace{4mm} \noindent Cover Image:\\ \noindent - - \\ \vspace{4mm} \noindent - - \end{flushleft} - \vfill \begin{flushleft} \begin{footnotesize} - - -\noindent ISBN - - \\ - - - -\noindent e-ISBN [PDF] - - \\ - - - -\noindent e-ISBN [EPUB] - - \\ - - First published - - by - - ,\\ Max Planck Institute for the History of Science\\ - - \\ - Printed and distributed by\\ - - \\ - Published under - - \\ - - \\[2mm] The Deutsche Nationalbibliothek lists this publication in the Deutsche Nationalbibliografie; detailed bibliographic data are available in the Internet at http://dnb.d-nb.de. - \end{footnotesize} \end{flushleft} \newpage \normalsize - - \noindent \small\EOAbold{ - - }\\ \vspace{6pt} \noindent - - \vspace{30pt} \noindent\small\EOAbold{Scientific Board}\\ \vspace{3pt} - \begin{footnotesize} \noindent - - \end{footnotesize} \clearpage \mbox{} - - - - \vspace*{25mm} \begin{center} - - \end{center} \clearpage \mbox{} - - - - \pagestyle{fancy} - - + + + + + + diff --git a/tei2eoatex/eoatex_contributors.xsl b/tei2eoatex/eoatex_contributors.xsl new file mode 100644 index 0000000..1a178bb --- /dev/null +++ b/tei2eoatex/eoatex_contributors.xsl @@ -0,0 +1,44 @@ + + + + + + + + + + + + + \noindent\textbf{ + + + + + }\par + + \noindent + + \\ + + \noindent + + \\ + + + \noindent + + \\ + + + + + + + diff --git a/tei2eoatex/eoatex_frontmatter.xsl b/tei2eoatex/eoatex_frontmatter.xsl new file mode 100644 index 0000000..8366b8a --- /dev/null +++ b/tei2eoatex/eoatex_frontmatter.xsl @@ -0,0 +1,190 @@ + + + + + + + \pagestyle{empty} \pagenumbering{roman} \setcounter{page}{1} ⸎ + + \begin{center} \Large{ + + }\\ \vspace{2mm} \large{ + + } \end{center} \newpage + + \begin{center} \large \EOAbold{ + + } \end{center} + \vspace{15mm} \noindent\EOAbold{ + + }\\[2mm] + + + \vspace{10mm} \noindent\EOAbold{Edition Open Access Development Team}\\[2mm] + + \vspace{10mm} \noindent + + \vspace{3pt} \noindent + + \newpage + + + + + + + \begin{minipage}[t]{90mm} + + + + + \vspace*{12mm} \begin{center} \Large { + + }\\ \vspace{2mm} + + \large{ + + } + + \end{center} \vspace{10mm} \begin{center} \large + + + + + + + + + + + + + + + + + + + + \end{center} \vspace{126mm} \begin{center} \large {\EOAbold{ + + }} \end{center} + + + + + + \end{minipage} + + + \newpage + + \begin{flushleft} \noindent + + \\ \noindent + + \\ \vspace{4mm} + + \noindent Submitted by: + + + + + \\ \vspace{4mm} + + + \noindent Editorial Team:\\ + + + + + \\ + + \vspace{4mm} + +\noindent Image Processing: \\ + + + + + \\ + + + + \noindent Scholarly Support: + + + + + \noindent Financial Support: + + + + \vspace{4mm} \noindent Cover Image:\\ \noindent + + \\ \vspace{4mm} \noindent + + \end{flushleft} + \vfill \begin{flushleft} \begin{footnotesize} + + +\noindent ISBN + + \\ + + + +\noindent e-ISBN [PDF] + + \\ + + + +\noindent e-ISBN [EPUB] + + \\ + + First published + + by + + ,\\ Max Planck Institute for the History of Science\\ + + \\ + Printed and distributed by\\ + + \\ + Published under + + \\ + + \\[2mm] The Deutsche Nationalbibliothek lists this publication in the Deutsche Nationalbibliografie; detailed bibliographic data are available in the Internet at http://dnb.d-nb.de. + \end{footnotesize} \end{flushleft} \newpage \normalsize + + \noindent \small\EOAbold{ + + }\\ \vspace{6pt} \noindent + + \vspace{30pt} \noindent\small\EOAbold{Scientific Board}\\ \vspace{3pt} + \begin{footnotesize} \noindent + + \end{footnotesize} \clearpage \mbox{} \newpage + + + \vspace*{25mm} \begin{center} \EOAemph{ + + } \end{center} \clearpage \mbox{} + + + + \pagestyle{fancy} + + + + diff --git a/tei2eoatex/eoatex_functions.xsl b/tei2eoatex/eoatex_functions.xsl new file mode 100644 index 0000000..10716a6 --- /dev/null +++ b/tei2eoatex/eoatex_functions.xsl @@ -0,0 +1,34 @@ + + + + + + ⸎⸎ + + + + + + + + + + + [INFO]: + + + [WARNING]: + + + [ERROR]: . Exiting. + + + + + diff --git a/tei2eoatex/eoatex_persons.xsl b/tei2eoatex/eoatex_persons.xsl new file mode 100644 index 0000000..cad740e --- /dev/null +++ b/tei2eoatex/eoatex_persons.xsl @@ -0,0 +1,156 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and + + + + + + + + + + , + + + , and + + + + + + + + + + + + + + + + + \EOAchapterauthor{ + + + + } + + + \EOAchapterauthor{ + + + + and + + + } + + + \EOAchapterauthor{ + + + + + , + + + , and + + + + } + + + + + + + + { + + } + + + {none} + + + + + + + + + + + \EOAauthor{ + + + + } + + + \EOAauthor{ + + + + and + + + } + + + \EOAauthor{ + + + + + , + + + , and + + + + } + + + + + + + diff --git a/tei2eoatex/eoatex_processinginstructions.xsl b/tei2eoatex/eoatex_processinginstructions.xsl new file mode 100644 index 0000000..284c4cc --- /dev/null +++ b/tei2eoatex/eoatex_processinginstructions.xsl @@ -0,0 +1,42 @@ + + + + + + + + + + + + + \EOAprintbibliography[ + + ] + + + \EOAprintbibliography + + + + + \EOAprintindex + + + \EOAprintpersonindex + + + \EOAprintlocationindex + + + + + + + diff --git a/tei2eoatex/eoatex_textparts.xsl b/tei2eoatex/eoatex_textparts.xsl new file mode 100644 index 0000000..e98f795 --- /dev/null +++ b/tei2eoatex/eoatex_textparts.xsl @@ -0,0 +1,615 @@ + + + + + \begin{EOAquote} + + \end{EOAquote} + + + + \begin{EOAabstract} + + \end{EOAabstract} + + + + \EOAnewtheorem + { + + } + { + + } + + + + + \begin{ + + } + + \end{ + + } + + + + \begin{EOAequation} + + + + + + { + + } + + + + \end{EOAequation} + + + + \begin{EOAsubequations}{ + + } \begin{align} + + \end{align} \end{EOAsubequations} + + + + \begin{EOAequationarray + + + nonumber} + + + }{ + + } + + + + \end{EOAequationarray + + + nonumber + + + } + + + + + + \EOAchem{ + + } + + + + + \EOAineq{ + + } + + + + + + \\ + + + + + + + + + + + + + + + + + + + \noindent + + + + \noindent + + + + + + + + + + + + + + + + + \EOArussian{ + + } + + + \EOAchinese{ + + } + + + \EOAhebrew{ + + } + + + \EOAgreek{ + + } + + + + + + + + \includegraphics + [width=0. + + \textwidth,keepaspectratio] + + + \EOAinline + + + { + + } + + + + + + + \begin{EOAtable} + + + [blank] + + + { + L{4cm} + } + + + {nonumber} + + + + + + { + + } + + + {!ht} + + + {ht} + + + + \end{EOAtable} + + + + { + + } + + + + + + \EOAtablehead{ + + } + + + + + \\ + + + + + + \newline + + + + + + + + + \EOAemph{ + + } + + + + \EOAdown{ + + } + + + + \EOAup{ + + } + + + + \EOAbold{ + + } + + + + + + \EOAsection + + + \EOAsubsection + + + \EOAsubsubsection + + + + + nonumber + + + + + + { + + } + + + + + + \EOAlabel{ + + } + + + + + + + + + \EOAciteyear + + + \EOAciteauthoryear + + + + + [ + + ] + + + + + [ + + + + + + + + + + + ] + + + + + { + + } + + + + \EOAfn{ + \EOAlabel{ + + } + + + + + + + + + + + \EOAfnpar + + + + + + + + + } + + + + + + + + + + + + \EOAref{ + + } + + + + \hionlyfignumber{ + + } + + + + + + + + \EOAref{ + + } + + + + \EOAurl{ + + + + + + + }, accessed + + + + }, FOOL + + + + + + } + + + + + + + + \begin{EOAlist} + + \end{EOAlist} + + + \begin{EOAitems} + + \end{EOAitems} + + + \begin{EOAdescription} + + \end{EOAdescription} + + + + + + + + + + + + \item + + + + + + + + + \item[ + + + ] + + + + + + + + \EOAfigure + + + nonumber{ + + }{ + + }{ + + + + + + + + !ht + + + ht + + + + + } + + + { + + }{ + + } + { + + } + + { + + }{ + + + + + + + + !ht + + + ht + + + + + } + + + + + + + + + + + \refstepcounter{figure}⸎ \hionlyfigid{ + + } + + + + + + \begin{EOAtranscripted}{Original text}{Translation} + + \EOAnewpage + + \end{EOAtranscripted} + + + + + + \EOAindex{ + + + \EOAindexperson{ + + + \EOAindexlocation{ + + + + + |( + + } + + + + + + + @ + + + + + + + + + + + + \EOAindex{ + + + \EOAindexperson{ + + + \EOAindexlocation{ + + + \EOAbold{ + + + + + |)} + +