SEED TEI Transformations
This documentation provides minimal snippets of supported encodings (call them encoding crystals) and presents how they look like when being transformed. HTML results of transformations are provided in iframes. Have fun!
Since it's brand-new, this documentation is behind the development. It's work in progress and is still far from providing examples for all supported encodings.
Lines
Lines are encoded with <lb> (line beginning). There's a switch for toggeling
on/off the evaluation of <lb>, i.e. toggeling between diplomatic
vs. reading representations. @n is used as line label (number)
in diplomatic representation.
In-word line breaks can be encoded using @break with an value of "no". This will result in an inserted hyphenation character in diplomatic representation. The character can be overridden by a stylesheet parameter. Note, that spaces around in-word <lb> are stripped as required by the output type.
The stylesheets work with <lb> at the beginning of a new line as well as at the end.
<p xml:space="preserve" xml:lang="de"><lb n="1"/>
Synthetische Urteile <hi rend="i">a priori</hi> be<lb n="2" break="no"/>
weisen objektive Realität im Satz über die Sum<lb n="3" break="no"/>
me der Innenwinkel des<lb n="4"/>
Dreiecks.</p>
SEED :: Diplomatic
| oXygen transformation scenario | SEED :: Diplomatic |
|---|---|
| Stylesheet | xsl/html/prose.xsl |
| Saxon configuration | saxon.he.html.xml |
Parameters
| local name | prefix | namespace | value | XPath | static |
|---|---|---|---|---|---|
diplomatic | http://scdh.wwu.de/transform/text# | true() | true | false |
SEED :: Reading
| oXygen transformation scenario | SEED :: Reading |
|---|---|
| Stylesheet | xsl/html/prose.xsl |
| Saxon configuration | saxon.he.html.xml |
Parameters
| local name | prefix | namespace | value | XPath | static |
|---|
Text-Image Linking
Line-based text-image linking is supported based on <lb>. Mouse-over events on a line result in highlighted text nodes of the line and dispatched events with a payload of the IDREF in the @facs, which are sent over the post-message protocol to the parent window.
See TEI Guidelines, sec. PH-transcr
<!-- facsimile layer -->
<facsimile>
<surface>
<graphic/>
<zone xml:id="fl1.1" points="..."/>
<zone xml:id="fl1.2" points="..."/>
<zone xml:id="fl1.3" points="..."/>
<zone xml:id="fl1.4" points="..."/>
</surface>
</facsimile>
<!-- in text -->
<p xml:space="preserve" xml:lang="de"><lb n="1" facs="#fl1.1"/>
Synthetische Urteile <hi rend="i">a priori</hi> be<lb n="2" facs="#fl1.2" break="no"/>
weisen objektive Realität im Satz über die Sum<lb n="3" facs="#fl1.3" break="no"/>
me der Innenwinkel des<lb n="4" facs="#fl1.4"/>
Dreiecks.</p>
SEED :: Diplomatic TIL
| oXygen transformation scenario | SEED :: Diplomatic TIL |
|---|---|
| Stylesheet | xsl/html/prose.xsl |
| Saxon configuration | saxon.he.html.xml |
Parameters
| local name | prefix | namespace | value | XPath | static |
|---|---|---|---|---|---|
diplomatic | http://scdh.wwu.de/transform/text# | true() | true | false | |
line-facs-linking | http://scdh.wwu.de/transform/text# | true() | true | false |
SEED :: Reading TIL
| oXygen transformation scenario | SEED :: Reading TIL |
|---|---|
| Stylesheet | xsl/html/prose.xsl |
| Saxon configuration | saxon.he.html.xml |
Parameters
| local name | prefix | namespace | value | XPath | static |
|---|---|---|---|---|---|
line-facs-linking | http://scdh.wwu.de/transform/text# | true() | true | false |
Critical Apparatus
Encoding Variants with <app>
There are three different methods of encoding variants with <app>. The SEED TEI Transfromations support all of them and detects the right one by evaluating <variantEncoding> in the file's <encodingDesc>.
Parallel Segmentation
Parallel segmentation requires
<variantEncoding method="parallel-segmenation" location="internal"/>
in the header.
<!-- in the header -->
<encodingDesc>
<variantEncoding method="parallel-segmentation" location="internal"/>
</encodingDesc>
<!-- in the body -->
<l n="1">
<app>
<lem wit="#El #Hg">Experience</lem>
<rdg wit="#La">Experiment</rdg>
<rdg wit="#Ra2">Eryment</rdg>
</app> though noon Auctoritee </l>
<l n="2">Were in this world ...</l>
SEED :: Reading CAF
| oXygen transformation scenario | SEED :: Reading CAF |
|---|---|
| Stylesheet | xsl/html/prose-footnotes.xsl |
| Saxon configuration | saxon.he.html.xml |
Parameters
| local name | prefix | namespace | value | XPath | static |
|---|
Double End-Point Attachement
An internal as well as an external apparatus is supported.
Internal
<!-- in the header -->
<encodingDesc>
<variantEncoding method="double-end-point" location="internal"/>
</encodingDesc>
<!-- the the body -->
<l n="1"><anchor xml:id="wbp.1"/>Experience<app from="#wbp.1">
<rdg wit="#La">Experiment</rdg>
<rdg wit="#Ra2">Eryment</rdg>
</app> though noon Auctoritee</l>
<l n="2">Were in this world ...</l>
SEED :: Reading CAF
| oXygen transformation scenario | SEED :: Reading CAF |
|---|---|
| Stylesheet | xsl/html/prose-footnotes.xsl |
| Saxon configuration | saxon.he.html.xml |
Parameters
| local name | prefix | namespace | value | XPath | static |
|---|
External
<!-- in the header -->
<encodingDesc>
<variantEncoding method="double-end-point" location="external"/>
</encodingDesc>
<!-- the the body -->
<l n="1"><anchor xml:id="wbp.1"/>Experience<anchor xml:id="wbp.2"/> though noon
Auctoritee</l>
<l n="2">Were in this world ...</l>
<!-- somewhere else -->
<app from="#wbp.1" to="#wbp.2">
<rdg wit="#La">Experiment</rdg>
<rdg wit="#Ra2">Eryment</rdg>
</app>
SEED :: Reading CAF
| oXygen transformation scenario | SEED :: Reading CAF |
|---|---|
| Stylesheet | xsl/html/prose-footnotes.xsl |
| Saxon configuration | saxon.he.html.xml |
Parameters
| local name | prefix | namespace | value | XPath | static |
|---|
Location Referenced Method
When using the location referenced method, the apparatus mark (footnote, popup) will be placed exactly at the position of the <app> element. Internal location is supported only. Since the lemma cannot be constructed from the encoding, it has to be provided in the <lem> element.
<!-- in the header -->
<encodingDesc>
<variantEncoding method="location-referenced" location="internal"/>
</encodingDesc>
<!-- in the body -->
<l n="1">Experience<app>
<lem>Experience</lem>
<rdg wit="#La">Experiment</rdg>
<rdg wit="#Ra2">Eryment</rdg>
</app> though noon Auctoritee </l>
<l n="2">Were in this world ...</l>
SEED :: Reading CAF
| oXygen transformation scenario | SEED :: Reading CAF |
|---|---|
| Stylesheet | xsl/html/prose-footnotes.xsl |
| Saxon configuration | saxon.he.html.xml |
Parameters
| local name | prefix | namespace | value | XPath | static |
|---|
Alternative Segments
As a simple alternative to encoding variation with <app>, <choice> can be used with segments in <seg>. The first segment will be presented in the text, while subsequent segments go into the apparatus.
See Guidelines, sec. TCAPLL and sec. COEDCOR.
<!-- in the body -->
<l n="1"><choice>
<seg source="#El #Hg">Experience</seg>
<seg source="#La">Experiment</seg>
<seg source="#Ra2">Eryment</seg>
</choice> though noon Auctoritee </l>
<l n="2">Were in this world ...</l>
SEED :: Reading CAF
| oXygen transformation scenario | SEED :: Reading CAF |
|---|---|
| Stylesheet | xsl/html/prose-footnotes.xsl |
| Saxon configuration | saxon.he.html.xml |
Parameters
| local name | prefix | namespace | value | XPath | static |
|---|
Apparatus Visualizations
A critical apparatus can be visialized in different ways: with popups (CAP), as a line-based apparatus (CAL), with footnotes (CAF). These are only different arrangements of the same apparatus entries on the screen. Structure and content of the apparatus entries remain the same.
<!-- in the header -->
<encodingDesc>
<variantEncoding method="double-end-point" location="internal"/>
</encodingDesc>
<!-- the the body -->
<l n="1"><anchor xml:id="wbp.1"/>Experience<app from="#wbp.1">
<rdg wit="#La">Experiment</rdg>
<rdg wit="#Ra2">Eryment</rdg>
</app> though noon Auctoritee</l>
<l n="2">Were in this world ...</l>
SEED :: Reading CAP
| oXygen transformation scenario | SEED :: Reading CAP |
|---|---|
| Stylesheet | xsl/html/prose-with-popups.xsl |
| Saxon configuration | saxon.he.html.xml |
Parameters
| local name | prefix | namespace | value | XPath | static |
|---|
SEED :: Reading CAF
| oXygen transformation scenario | SEED :: Reading CAF |
|---|---|
| Stylesheet | xsl/html/prose-footnotes.xsl |
| Saxon configuration | saxon.he.html.xml |
Parameters
| local name | prefix | namespace | value | XPath | static |
|---|
SEED :: Diplomatic CAL
| oXygen transformation scenario | SEED :: Diplomatic CAL |
|---|---|
| Stylesheet | xsl/html/prose-linebased.xsl |
| Saxon configuration | saxon.he.html.xml |
Parameters
| local name | prefix | namespace | value | XPath | static |
|---|---|---|---|---|---|
diplomatic | http://scdh.wwu.de/transform/text# | true() | true | false |
Missing or extra words in witnesses
An empty <rdg> can be used to encode a missing word in witness.
<!-- in the header -->
<encodingDesc>
<variantEncoding method="parallel-segmentation" location="internal"/>
</encodingDesc>
<!-- in the body -->
<l n="1">
<app>
<lem wit="#El #Hg #Ra2">Experience</lem>
<rdg wit="#La"/>
</app> though noon Auctoritee </l>
<l n="2">Were in this world ...</l>
SEED :: Reading CAF
| oXygen transformation scenario | SEED :: Reading CAF |
|---|---|
| Stylesheet | xsl/html/prose-footnotes.xsl |
| Saxon configuration | saxon.he.html.xml |
Parameters
| local name | prefix | namespace | value | XPath | static |
|---|
An empty <lem> can be used to encode a extra words in witness. In order to provide the exact location in the text, the preceding (or following) word is provided before the lemma bracket and befor the extra words we can read in the witness.
<!-- in the header -->
<encodingDesc>
<variantEncoding method="parallel-segmentation" location="internal"/>
</encodingDesc>
<!-- in the body -->
<l n="1">Experience<app><lem/><rdg wit="#L7">of crafters</rdg></app> though noon
Auctoritee</l>
<l n="2">Were in this world ...</l>
SEED :: Reading CAF
| oXygen transformation scenario | SEED :: Reading CAF |
|---|---|
| Stylesheet | xsl/html/prose-footnotes.xsl |
| Saxon configuration | saxon.he.html.xml |
Parameters
| local name | prefix | namespace | value | XPath | static |
|---|
Order of readings and witnesses
The order of the readings and the witnesses is simply determined by document order. First in, first out.
<!-- in the header -->
<encodingDesc>
<variantEncoding method="parallel-segmentation" location="internal"/>
</encodingDesc>
<!-- in the body -->
<l n="1">
<app>
<lem wit="#El">Experience</lem>
<rdg wit="#Hg #La">Experiment</rdg>
<rdg wit="#Ra2">Eryment</rdg>
</app> though noon Auctoritee </l>
<l n="2">Were in this world ...</l>
SEED :: Reading CAF
| oXygen transformation scenario | SEED :: Reading CAF |
|---|---|
| Stylesheet | xsl/html/prose-footnotes.xsl |
| Saxon configuration | saxon.he.html.xml |
Parameters
| local name | prefix | namespace | value | XPath | static |
|---|
<!-- in the header -->
<encodingDesc>
<variantEncoding method="parallel-segmentation" location="internal"/>
</encodingDesc>
<!-- in the body -->
<l n="1">
<app>
<lem wit="#El">Experience</lem>
<rdg wit="#Ra2">Eryment</rdg>
<rdg wit="#La #Hg">Experiment</rdg>
</app> though noon Auctoritee </l>
<l n="2">Were in this world ...</l>
SEED :: Reading CAF
| oXygen transformation scenario | SEED :: Reading CAF |
|---|---|
| Stylesheet | xsl/html/prose-footnotes.xsl |
| Saxon configuration | saxon.he.html.xml |
Parameters
| local name | prefix | namespace | value | XPath | static |
|---|