From 5d71f790735407845127c6acf0f016af5cc78e6d Mon Sep 17 00:00:00 2001 From: kthoden Date: Wed, 16 Dec 2020 16:28:20 +0100 Subject: [PATCH] Initial commit --- build.xml | 11 + expath-pkg.xml | 5 + publications/studies/125/tei_part.xml | 682 ++++++++++++++++++ repo.xml | 16 + xml/aux/translations.xml | 8 + xml/stylesheets/example_fullpage.xsl | 25 + xml/stylesheets/example_list.xsl | 18 + xml/stylesheets/series.xsl | 68 ++ xml/stylesheets/tei2html/tei2html.xsl | 77 ++ xml/stylesheets/tei2html/tei2html_chapter.xsl | 58 ++ .../tei2html/tei2html_chapter_utils.xsl | 407 +++++++++++ .../tei2html/tei2html_publ_frontpage.xsl | 59 ++ .../tei2html_publ_frontpage_utils.xsl | 491 +++++++++++++ xml/stylesheets/tei2html/utils/common.xsl | 88 +++ .../tei2html/utils/html_container.xsl | 417 +++++++++++ .../tei2html/utils/html_inline.xsl | 169 +++++ xml/stylesheets/tei2html/utils/index.xsl | 111 +++ xml/stylesheets/tei2html/utils/numbering.xsl | 253 +++++++ xml/stylesheets/tei2html/utils/print.xsl | 189 +++++ xml/stylesheets/tei2html/utils/render.xsl | 307 ++++++++ xml/xml_files/example.xml | 7 + xml/xml_files/series.xml | 60 ++ xml/xquery/allchapters.xq | 51 ++ xml/xquery/allpublications.xq | 23 + xml/xquery/eoasearch.xq | 23 + xml/xquery/search.xq | 24 + xml/xquery/series.xq | 59 ++ 27 files changed, 3706 insertions(+) create mode 100644 build.xml create mode 100644 expath-pkg.xml create mode 100644 publications/studies/125/tei_part.xml create mode 100644 repo.xml create mode 100644 xml/aux/translations.xml create mode 100644 xml/stylesheets/example_fullpage.xsl create mode 100644 xml/stylesheets/example_list.xsl create mode 100644 xml/stylesheets/series.xsl create mode 100644 xml/stylesheets/tei2html/tei2html.xsl create mode 100644 xml/stylesheets/tei2html/tei2html_chapter.xsl create mode 100644 xml/stylesheets/tei2html/tei2html_chapter_utils.xsl create mode 100644 xml/stylesheets/tei2html/tei2html_publ_frontpage.xsl create mode 100644 xml/stylesheets/tei2html/tei2html_publ_frontpage_utils.xsl create mode 100644 xml/stylesheets/tei2html/utils/common.xsl create mode 100644 xml/stylesheets/tei2html/utils/html_container.xsl create mode 100644 xml/stylesheets/tei2html/utils/html_inline.xsl create mode 100644 xml/stylesheets/tei2html/utils/index.xsl create mode 100644 xml/stylesheets/tei2html/utils/numbering.xsl create mode 100644 xml/stylesheets/tei2html/utils/print.xsl create mode 100644 xml/stylesheets/tei2html/utils/render.xsl create mode 100644 xml/xml_files/example.xml create mode 100644 xml/xml_files/series.xml create mode 100644 xml/xquery/allchapters.xq create mode 100644 xml/xquery/allpublications.xq create mode 100644 xml/xquery/eoasearch.xq create mode 100644 xml/xquery/search.xq create mode 100644 xml/xquery/series.xq diff --git a/build.xml b/build.xml new file mode 100644 index 0000000..58d586b --- /dev/null +++ b/build.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/expath-pkg.xml b/expath-pkg.xml new file mode 100644 index 0000000..805df06 --- /dev/null +++ b/expath-pkg.xml @@ -0,0 +1,5 @@ + + + Edition Open Access Publication Platform + + \ No newline at end of file diff --git a/publications/studies/125/tei_part.xml b/publications/studies/125/tei_part.xml new file mode 100644 index 0000000..e622437 --- /dev/null +++ b/publications/studies/125/tei_part.xml @@ -0,0 +1,682 @@ + + + + + + Testband TEI 1 + Experimentell + + + Klaus Thoden + Noch Jemand + + + + + + + + Sponsors give their intellectual authority to a project; they are to be distinguished from funders (see element funder), who provide the funding but do not necessarily take intellectual responsibility. + Funders provide financial support for a project; they are distinct from sponsors (see element sponsor), who provide intellectual support and authority. + + chapter author + + Thoden + Klaus + kthoden@mpiwg-berlin.mpg.de + + Research Scholar + Max-Planck-Institut für Wissenschaftsgeschichte + + + + + chapter author + + Other + A. N. + + + + Submitter + + Submitter + The + + + + Lindy + + Divarci + Lindy + + + + NN + + N + N + + + + KT + + Self + My + + + + + First published 2018 by Edition Open Access + + + + + + + + Edition Open Access + + + Max Planck Research Library for the History and Development of Knowledge + MPRL + + + + 978-3-945561-XXX + http://www.book-on-demand.de/shop/14971 + DOI + + + PRO BUSINESS digital printing Deutschland GmbH, Berlin + + + Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Germany + + + + Studies + + Series Editors + Ian T. Baldwin, Gerd Graßhoff, Jürgen Renn, Dagmar Schäfer, Robert Schlögl, Bernard F. Schutz + + 125 + + +

Born digital.

+ contains suggested citation + + + +
+
+ + +

Klein anfangen weiter.

+
+ +

Groß enden.

+
+ +

This abstract contains additional information.

+
+ + + + MPRL + Edition Open Access + + + + + + +
+ + +

The Edition Open Access (EOA) platform was founded to bring together publication initiatives seeking to disseminate the results of scholarly work in a format that combines traditional publications with the digital medium. It currently hosts the open-access publications of the “Max Planck Research Library for the History and Development of Knowledge” (MPRL) and “Edition Open Sources” (EOS). EOA is open to host other open access initiatives similar in conception and spirit, in accordance with the Berlin Declaration on Open Access to Knowledge in the sciences and humanities, which was launched by the Max Planck Society in 2003.

+

By combining the advantages of traditional publications and the digital medium, the platform offers a new way of publishing research and of studying historical topics or current issues in relation to primary materials that are otherwise not easily available. The volumes are available both as printed books and as online open access publications. They are directed at scholars and students of various disciplines, and at a broader public interested in how science shapes our world.

+

The Max Planck Research Library for the History and Development of Knowledge comprises the subseries, Studies, Proceedings and Textbooks. They present original scientific work submitted under the scholarly responsibility of members of the Scientific Board and their academic peers. The initiative is currently supported by research departments of three Max Planck Institutes: the MPI for the History of Science, the Fritz Haber Institute of the MPG and the MPI for Gravitational Physics (Albert Einstein Institute). The publications of the Studies series are dedicated to key subjects in the history and development of knowledge, bringing together perspectives from different fields and combining source-based empirical research with theoretically guided approaches. The Proceedings series presents the results of scientific meetings on current issues and supports, at the same time, further cooperation on these issues by offering an electronic platform with further resources and the possibility for comments and interactions.

+

Markus Antonietti, Antonio Becchi, Fabio Bevilacqua, William G. Boltz, Jens Braarvik, Horst Bredekamp, Jed Z. Buchwald, Olivier Darrigol, Thomas Duve, Mike Edmunds, Fynn Ole Engler, Robert K. Englund, Mordechai Feingold, Rivka Feldhay, Gideon Freudenthal, Paolo Galluzzi, Kostas Gavroglu, Mark Geller, Domenico Giulini, Günther Görz, Gerd Graßhoff, James Hough, Manfred Laubichler, Glenn Most, Klaus Müllen, Pier Daniele Napolitani, Alessandro Nova, Hermann Parzinger, Dan Potts, Sabine Schmidtke, Circe Silva da Silva, Ana Simões, Dieter Stein, Richard Stephenson, Mark Stitt, Noel M. Swerdlow, Liba Taub, Martin Vingron, Scott Walter, Norton Wise, Gerhard Wolf, Rüdiger Wolfrum, Gereon Wolters, Zhang Baichun.

+

Lindy Divarci, Bendix Düker, Samuel Gfrörer, Klaus Thoden, Dirk Wintergrün.

+
+ + + + + +
+ + Added revisionDesc + +
+ + + + + + + + + + + + +
+ + + Chemical Laboratory. This idealized laboratory with metallurgical furnaces is from William Lewis, Commercium Philosophico-Technicum (London, 1756). Courtesy of Smith Image Collection, Van Pelt Dietrich Library, University of Pennsylvania. +
+
+ A dedication +
+ + + + + + + + + + + +
+ + +
+ This is the first part + + +
+ Unnumbered document structure +

Chapter, section and subsection can also be used without numbers. Do you see the slight changes in the layout? Also, the counter is not incremented. This can be used for forewords or introductions.

+
+ Section without numbers +

This the first section of a text. It is preceded by two hierarchical units, namely Part and Chapter. As you can see above, the chapter command has two arguments, the first one being the running head which is displayed in the header of each page. Structure your text wisely.

+

Now, a running head only makes sense if your chapter spreads across several pages.

+
+ Subsection without numbers +

Here we are at an even lower hierarchical level. This can be quite useful. Be aware that this level is not being displayed in the table of contents.

+
+
+
+ +
+ Document structure + +

Oh, happy day (an epigraph)

+
+ +
+ This is the first section +

This the first section of a text. It is preceded by two hierarchical units, namely Part and Chapter. As you can see above, the chapter command has two arguments, the first one being the running head which is displayed in the header of each page, the second being the text that is printed on the page where the chapter begins.

+

We offer two additional units below the section: the subsection and the subsubsection. See below how they are displayed!

+ +
+ This is a subsection +

Here we are at an even lower hierarchical level. This can be quite useful. Be aware that this level is not being displayed in the table of contents. Now, there is still one level below that: the subsubsection.

+ +
+ A subsubsection +

A subsubsection will never be numbered and like its predecessor, it will not show up in the table of contents.

+
+
+
+
+ +
+ Markup +

If a chapter has a different author, it can be inserted with the EOAauthor command which goes directly into the EOAchapter command.

+

The EOA flavour of Latex offers quite a few commands that help you markup words in your text. And also, if you want to include words in different writing systems, they have to be preceded by commands so that the system can switch to the correct font. The whole scope is gathered in the next, rather experimental section.

+
+ Non-Latin alphabets +

This section showcases text written in writing systems other than Latin. It includes Russian, Chinese, Hebrew and Greek.

+
+ Russian + +

First, Russian: В начале двадцатого века был одним из идеологов богостроительства, в 1909 году помогал участникам этого течения содержать фракционную школу на острове Капри для рабочих, которую В. И. Ленин называл "литераторским центром богостроительства".

+
+
+ Chinese + +

Next, Chinese: 法兰克人接受了高卢罗马文化, 改操罗曼语族语言(但在罗马人分布较少的高卢北部人多操日耳曼语族语言)。 克洛维定巴黎为首都,建立了新的王朝,史称墨洛温王朝,但是这个王朝在克 洛维死后陷入分裂,克洛维的四个儿子按照法兰克人的习惯,将法兰克国家一 分为四,分别是巴黎、奥尔良、苏瓦松和兰斯。

+
+
+ Hebrew + +

Then, Hebrew:ארגינעל האט די סעקרעטאריאט שטאב געדארפט צו זיין א פאראייניגטע גרופע פון אומפארטייאישע שליחים פון יעדע לאנד וועלכע האבן נאר די אינטערעסן פון זייערע אייגענע לענדער אבער עס האט זיך קיינמאל נישט געהעריג אויסגעארבעט און נאר דער סעקרעטאר גענעראל איז אזוי באטראכט געווארן

+
+
+ Greek + +

And finally Greek: Ο φλοιός κυμαίνεται μεταξύ 5 και 70 km σε βάθος. Τα λεπτά τμήματα του φλοιού είναι κάτω από τους ωκεανούς (ωκεάνιος φλοιός) και αποτελούνται από πυκνά πετρώματα μαγνησίου, σιδήρου και πυριτίου. Τα παχύτερα τμήματα του φλοιού είναι τα ηπειρωτικά τα οποία είναι λιγότερο πυκνά από τα ωκεάνια και αποτελούνται από πετρώματα πλούσια σε νάτριο, αλουμίνιο και πυρίτιο.

+
+
+ The Multilingual bit + +

To read single Arabic words, as in Grammaticall Paradigms, we must know the sound of the letters […] ‘b t θ 3 כ ח {} d t z s שׁ s d t d y G F kכּ כּ L m n w h y. Change of יה into ח. Place of the accent […] never in ultima, therefore in penultima in all disyllables as onsur, never higher than the antepenult, and there always in polysyllables as nasara, nasarta unlwaaw [y]e penult be made long by quiescent by אוי as tansoranias tansoriיna tansoraיna.

+
+
+ If in doubt + +

You can add complicated characters as images, for example, an apple: . Or a penguin: .

+
+
+
+ Text markup + +

This is a regular paragraph. Words can appear in italics, – and some characters are superscript or subscript. There is also Math font for additional symbols: . In some cases, you can use EOAbold directly. Small caps are also possible.

+
+
+ Other types of text blocks + +

If you want to include a longer quote in a text, use the block quote feature. And inside that we also introduce you to how you can insert footnotes (Piaget 1985).

+ + A rather short block quote.

+

Poems

If you don't want a paragraph to be indented, use noindent

and verses can be included with the EOAverse environment:

+ + Prudence and knowledge descend + From Philosophy into [human] intellects; + Which are perfect as far as their disposition is concerned, + As each one receives its part of justice and reason. + + +
+ Three constructs for lists +

This is a numbered list containing three items:

And now a very long footnote that spreads across at least one line so that we can show what to do when you want to have more than one paragraph in the footnote

We have a command for that.

+ + + This is the first entry. + This is the second entry. + This is the third entry + +

In contrast to that, here is a list that is not numbered, but also contains the same items!

+ + This is the first entry. + This is the second entry. + This is the third entry + +

Thirdly, if you want to give some definitions you can use EOAdescription:

+ + + + A typesetting system + + This is you! + +
+
+
+
+ LaTeX specifics +

This chapter deals with formatting possibilites in LaTeX and is not covered in the XML version.

+
+
+ + References and indices + An abstract on chapter level. + + + + + +
+ Labels +

ElementsIndexing can be assigned labels so that they can be referred to: sections

Cross reference to Chapter

, images

There is a nice image in section .

, tables

There is a table in section

. A lot of things can be cross-referenced.

+ + +

By the way, JoyceJames Joyce is a very good author. Read some of his stuff. It may be useful for indexing some of your key terms in the text so that we can later link to catalogues that tells the reader more about the things. Joyce died in ZurichZürich. You cannot read anything about him in neither Walkowski's work of nor in !

+ +

Now, here's a funny problem concerning the index. Consider one Lord CharlesCavendish, Lord Charles (son of the second duke of Devonshire), (Fig. , )duty of service Please observe: there are references in the index entry. This is the same reference outside the index: (Fig. , )

+
+
+ References +

It includes references to a section (see section ), to an image (see image ), two entries for the index (Science Science and Confucius孔夫子) and a reference to a facsimile (see facsimile on page ).

+

This is the way to enter web addresses: .

+
+
+ Citations +

The bibliographic information is kept in a separate database. The text file only contains references to the specific database entry. Examples of citations are distributed throughout this document. It also possible to customize the citations with Plat. tim..Pavendish, Lord Pharles (son of the second puke of Pevonshire)duty of service

+

Another important issue is the sorting of entries where a two publications have the same authors and the same year: and .

+

We can also cite newspapers:

+
+
+
+ + + + + Floating environments + Floats + + +

Floating environments are bigger constructs like figures and tables, said Gamba in .

This chapter also showcases the use of two different sets of footnotes, alphabetic and arabic. This is a per-chapter-setting.

+

If you want to, you can leave the placing of them to the typesetting system, in order to avoid bigger stretches of white space (cf. ).

Here comes a footnote with arabic number as marker, which means it is is the other apparatus

+
+ Tables +

The following lines of code produce a table consisting of 4 columns and 3 rows.

+ + + Levies on different yarns, sarees and paţţu in early medieval Peninsular India. *Kasu is a gold coin in currency in early + medieval Peninsular India. + + Material/Goods + Measurement + Levy + + + yarn (cotton or silk not specified, presumably + both) + vandi (cart load) + podi (hand cart load) pakkam (bag load) talaichumai (head-load) + 20 kasu* 5 kasu 2.5 kasu 2 kasu + +
+ + + This is a table + + Heading 1 + Heading 2Some more text in new line + Heading 3 + Heading 4 + + + Here + you + may + find + + + some + data + spread + over + + + the + table + in + cells + +
+

We can remove the borders by adding the optional argument 'blank'

+ + This is a table + + Heading 1 + Heading 2 + Heading 3 + Heading 4 + + + Here + you + may + find + + + some + data + spread + over + + + the + table + in + cells + +
+

Next, the same table, but without a caption. NB it has also no label!

+ + + Heading 1 + Heading 2 + Heading 3 + Heading 4 + + + Here + you + may + find + + + some + data + spread + over + + + the + table + in + cells + +
+
+
+ Figures +

Images are also floating objects. The command takes five parameters: filename, caption, label, width and position

+ +
+ + An image with a caption. +
+

Captions can be rather long.

+
+ + Ostafrikanische Arbeiter an einem der großen Knochengräben, die während der paläontologischen Expedition des Berliner Naturkundemuseums in die damalige Kolonie Deutsch-Ostafrika zwischen 1909 und 1913 angelegt wurden. (Koloriertes Glasdiapositiv, Museum für Naturkunde Berlin, Historische Bild- u. Schriftgutsammlungen, Bestand: Pal. Mus., Signatur: B V/177) +
+ +

It is possible to have figures without captions:

+ +
+ +
+ +

The last image command – EOAlsfigure – takes three parameters and the figure covers the whole page

+
+ + That's a caption for the lovely landscape image +
+
+
+
+ Formulas + + +
+ Mathematics + + + My Theorem + Hier eine Instanz des Theorems +

Latex is very good in typesetting math. There are inline equations like \sqrt{9} = 3 and block equations (see below). Here is another equation: 2^2 = 4.

+ + 6 + 6 = 12 + + + + g_{\mu \nu} = 7 + + +

Block equations can be unnumbered, as well.

+ + 6 + 6 = 12 + + +

Formulas can be grouped in sub-equations.

+ + 6 + 6 = 12 + 12 + 12 = 24 + 24 + 24 = 48 + + + A statement. + +

An array of equations. All of them numbered individually.

+ + 1 + 1 = 2 + 2 + 2 = 4 + 4 + 4 = 8 + + +

An unnumbered array of equations:

+ + 1 + 1 = 2 + 2 + 2 = 4 + 4 + 4 = 8 + + + Another statement. +
+
+ Chemistry +

Here is an example of an inline chemical formula. We embed it in its original context: The deposition of calcite, the dominant mineral in karst environments, is controlled by the reversible chemical reaction 2HCO3^- + Ca^2+ <=> CaCO3 + CO2 + H2O. Consequently, the dissolution or precipitation of calcium carbonate is strictly influenced by changes in the chemical equilibrium of this reaction.

+
+
+
+ + Source editions +
+ Facsimile and transcription side by side +
+ +
+ +

Prodiderunt veteres clavem Herculis templi sui toxibus appensam procul hinc canes et muscas solo quidem olfactu abigere. Non secus et omnis litteratorum chorus, qui suis monumentis aeternitati commendari velint, extimat suam feturam insignis cuiuspiam patroni nomine perinde ut clava fretam et ab omnibus oblocutorum aculeis vindicari et auspicato in vulgus exire. Quos igitur fetus iam dudum parturio nunc pariturus et in lucem emissurus (generosissime Petrae)Petrus de Meneses tenellos adhuc, et implumes tibi destino, credo, commendo patiare, precor eas tuis sub alia delitescere tuique sub nominis umbra recumbere. Cuius (spero) non minus quam Herculeae clave olfactu longe repellantur canini rictus et oblatratores inviduli. Te sane unum praeceteris mihi patronum eo iustius elegerim, quod et tua ipsius maiestate familiariter – quae tua est comitas – quondam usus sim, et litterarum sis non minus peritus quam apperens. Quis enim illiteratum litterarum defensorem, libidinosum pudicitiae et iniustum iustitiae putaverit. Nempe – si Christiano poete credas. Nulla sub iniusto virtus est principe tuta. Nulla sub incesto castis est gloria rege.

+
+
+
+
+ Transcription and translation +
+
+ XVIII.v +

Homines ut plurimum parvi corpore, colore maior pars subfusco, torosa, et fortis, semper ad arma parata, in subitam iram prona, vindictae avida, iniuriarum memor, acuti, ac versatilis ingenii, exteris amica, hospitalitatis amantissima, suo domino fida, literis apta, naturali amoenissimo Tuscorum pollens eloquio, hilaris cantu, saltuque vivida, in mecanicis ingeniosa, mercibusque sollicita. Schott, FranzGiovannini, GirolamoHyeronimus Capugnanus Itiner. Part. prima paucis populum hunc delibat, Natio haec, inquit, Garfagnanae martia, audax, et in bello assuefacta, indomitaque, Este (House of)Atestinis principibus devota, quod sane, si ullo tempore, praesenti armis exteris strepente, clarescit.

Vallisneri is referring to the War of the Spanish Succession (1701–1714), a great conflict that scourged Europe after the death of the last Habsburg (House of)Habsburg King of Spain, Carlos II, King of SpainCarlos II (1661–1700).

+
+
+ XVIII.v +

The men are generally short and—for the most part—dark, muscular, strong, always ready to fight, easily inclined to anger, vengeful, mindful of injuries; [yet, they are also] smart, clever, friendly to strangers, lovers of hospitality, loyal to their lord, inclined to literature, naturally gifted with the most beautiful Tuscan language, cheerful, lively, skilled in mechanics, and constantly engaged in commerce. Giovannini, GirolamoGeronimo from Capugnano, in the first Part of his Itinerarium Nobiliorum Italiae regionum, urbium, oppidorum, et locorum, briefly touches upon this people. “This nation of Garfagnana”, he says, “is bellicose, audacious, accustomed to war, untamed, and devoted to the Este (House of)Princes of Este”; which was certainly evident at all times, and is even more now, amidst the roars of foreign armies.

+
+
+
+
+ Letters +
+ An important note + + + R 5015 + handwritten + 1963/04/11 + Liverpool + +

Dear PaulMcCartney, Paul

+

With love, from me to you.

+

Cheers, JohnLennon, John

+
+
+
+
+ References + +
+
+
+ Facsimiles +
+ + +
+
+ + + + + + + + + +
+ Index + +
+
+ Person index + +
+
+ Location index + +
+
+
+
diff --git a/repo.xml b/repo.xml new file mode 100644 index 0000000..d41a070 --- /dev/null +++ b/repo.xml @@ -0,0 +1,16 @@ + + + EOA XML db eXist app + Klaus Thoden + Samuel Gfrörer + https://github.molgen.mpg.de/EditionOpenAccess + beta + MIT + true + application + eoa + + + + 2020-12-16T15:48:33.321+01:00 + diff --git a/xml/aux/translations.xml b/xml/aux/translations.xml new file mode 100644 index 0000000..497b176 --- /dev/null +++ b/xml/aux/translations.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/xml/stylesheets/example_fullpage.xsl b/xml/stylesheets/example_fullpage.xsl new file mode 100644 index 0000000..ccc2df1 --- /dev/null +++ b/xml/stylesheets/example_fullpage.xsl @@ -0,0 +1,25 @@ + + + + + + + + + author list + + + + + + + + +
    + +
  • +
    +
+
+ +
\ No newline at end of file diff --git a/xml/stylesheets/example_list.xsl b/xml/stylesheets/example_list.xsl new file mode 100644 index 0000000..b3119ba --- /dev/null +++ b/xml/stylesheets/example_list.xsl @@ -0,0 +1,18 @@ + + + + + + + + + + +
    + +
  • +
    +
+
+ +
\ No newline at end of file diff --git a/xml/stylesheets/series.xsl b/xml/stylesheets/series.xsl new file mode 100644 index 0000000..18e8c7e --- /dev/null +++ b/xml/stylesheets/series.xsl @@ -0,0 +1,68 @@ + + + + + + + + + + + Publications + + + + + + + + + +