Skip to content

Commit

Permalink
Add basic tests for text_processing.tei
Browse files Browse the repository at this point in the history
  • Loading branch information
pletcher committed Feb 28, 2024
1 parent ca47401 commit 77ab64b
Show file tree
Hide file tree
Showing 3 changed files with 11,944 additions and 0 deletions.
209 changes: 209 additions & 0 deletions tei/ajmc.odd
Original file line number Diff line number Diff line change
@@ -0,0 +1,209 @@
<?xml-model href="teipublisher_odds.xsd"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0"
xmlns:pb="http://teipublisher.com/1.0" xml:lang="en">
<teiHeader>
<fileDesc>
<titleStmt>
<title>Ajax Multi-Commentaries ODD (based on Shakespeare Plays)</title>
</titleStmt>
<publicationStmt>
<publisher>eXistSolutions GmbH</publisher>
<availability>
<licence target="https://www.gnu.org/licenses/gpl-3.0.en.html">Distributed under GNU General Public License</licence>
<p>Copyright 2017 <ref target="http://existsolutions.com">eXistSolutions GmbH</ref>
</p>
<p>This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.</p>
<p>This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.</p>
</availability>
</publicationStmt>
<sourceDesc>
<p>Generated by <ref target="http://tei-publisher.com">TEI Publisher</ref>
</p>
<p>born digital</p>
</sourceDesc>
</fileDesc>
<encodingDesc>
<tagsDecl>
<rendition source="shakespeare.css"/>
</tagsDecl>
</encodingDesc>
<revisionDesc>
<change when="2018-08-30+02:00">Initial version</change>
</revisionDesc>
</teiHeader>
<text>
<body>
<schemaSpec start="TEI teiCorpus" ident="shakespare" source="teipublisher.odd">
<elementSpec ident="pb" mode="change">
<model output="print" behaviour="omit"/>
<model behaviour="webcomponent" cssClass="facs">
<param name="name" value="'pb-facs-link'"/>
<param name="content" value="@n"/>
<param name="emit" value="'transcription'"/>
<param name="facs" value="replace(@facs, '^FFimg:(.*)$', '$1')"/>
<outputRendition xml:space="preserve">
font-size: 16px;
color: #888888;
cursor: pointer;
display: inline;
display: block;
margin-right: -32px;
float: right;
</outputRendition>
</model>
</elementSpec>
<elementSpec ident="lb" mode="change">
<model predicate="not(parent::p)" behaviour="omit"/>
<model behaviour="omit" useSourceRendition="true">
<param name="type" value="'line'"/>
<param name="label" value="@n"/>
</model>
</elementSpec>
<elementSpec ident="speaker" mode="change">
<model behaviour="inline">
<outputRendition xml:space="preserve">
font-style:italic; margin-right: 1rem; display: inline-block;
</outputRendition>
</model>
</elementSpec>
<elementSpec ident="l" mode="change">
<model behaviour="block" useSourceRendition="true">
<outputRendition xml:space="preserve">
text-indent: 0;
</outputRendition>
</model>
</elementSpec>
<elementSpec ident="p" mode="change">
<model predicate="ancestor::sp" behaviour="inline" useSourceRendition="true"/>
<model behaviour="paragraph" useSourceRendition="true">
<outputRendition xml:space="preserve">
text-align: justify;
</outputRendition>
</model>
</elementSpec>
<elementSpec ident="stage" mode="change">
<model predicate="contains(@rend, 'rightJustified')" behaviour="block">
<outputRendition xml:space="preserve">
font-style: italic; text-align: right;
</outputRendition>
</model>
<model predicate="contains(@rend, 'center')" behaviour="block">
<outputRendition xml:space="preserve">
font-style: italic; text-align: center;
</outputRendition>
</model>
<model behaviour="block">
<outputRendition xml:space="preserve">
font-style: italic;
</outputRendition>
</model>
</elementSpec>
<elementSpec ident="head" mode="change">
<model predicate="@type='supplied'" behaviour="omit"/>
<model predicate="parent::figure" behaviour="block">
<outputRendition xml:space="preserve">
font-style: italic;
</outputRendition>
</model>
<model predicate="parent::table" behaviour="block">
<outputRendition xml:space="preserve">
font-style: italic;
</outputRendition>
</model>
<model predicate="parent::lg" behaviour="block">
<outputRendition xml:space="preserve">
font-style: italic;
</outputRendition>
</model>
<model predicate="parent::list" behaviour="block">
<outputRendition xml:space="preserve">
font-weight: bold;
</outputRendition>
</model>
<model predicate="parent::div" behaviour="heading">
<param name="level" value="count(ancestor::div)"/>
</model>
<model behaviour="block"/>
</elementSpec>
<elementSpec ident="c" mode="change">
<model predicate="@rend='decoratedCapital'" behaviour="inline">
<outputRendition xml:space="preserve">
font-size: 3em; line-height: 0.9;
</outputRendition>
</model>
<model behaviour="inline"/>
</elementSpec>
<elementSpec ident="fw" mode="change">
<model output="web" predicate="@type='rh'" behaviour="block" cssClass="running">
<outputRendition xml:space="preserve">
color: #CCC;
</outputRendition>
</model>
<model output="print" predicate="@type" behaviour="omit">
<desc>Omit except for running head</desc>
</model>
<model output="web" predicate="@type='catchword'" behaviour="block" cssClass="catchword">
<outputRendition xml:space="preserve">
float: right;
margin-top: 1em;
color: #CCC;
</outputRendition>
</model>
<model output="web" predicate="@type='sig'" behaviour="block" cssClass="sig">
<outputRendition xml:space="preserve">
text-align: center;
margin-top: 1em;
color: #CCC;
</outputRendition>
</model>
<model behaviour="omit"/>
</elementSpec>
<elementSpec ident="titleStmt" mode="change">
<model output="latex" behaviour="meta">
<param name="content" value="."/>
</model>
<model output="fo" behaviour="heading"/>
<model predicate="$parameters?mode='title'" behaviour="heading">
<param name="content" value="title[@type='statement']"/>
<param name="level" value="5"/>
</model>
<modelSequence output="web" predicate="$parameters?header='short'">
<model behaviour="link">
<param name="content" value="title[1]"/>
<param name="uri" value="$parameters?doc"/>
</model>
<model behaviour="block">
<param name="content" value="subsequence(title, 2)"/>
</model>
<model behaviour="block">
<param name="content" value="author"/>
</model>
</modelSequence>
<model output="web" behaviour="block"/>
</elementSpec>
<elementSpec ident="sp" mode="change">
<model behaviour="block">
<outputRendition xml:space="preserve">
text-indent: .5em;
</outputRendition>
</model>
</elementSpec>
<elementSpec ident="div" mode="change">
<model predicate="@type='title_page'" behaviour="block">
<outputRendition xml:space="preserve">
border: 1px solid black; padding: 5px;
</outputRendition>
</model>
<model predicate="parent::body or parent::front or parent::back" behaviour="section"/>
<model behaviour="block"/>
</elementSpec>
</schemaSpec>
</body>
</text>
</TEI>
Loading

0 comments on commit 77ab64b

Please sign in to comment.