Skip to content

Commit c2bc3f2

Browse files
committed
grab latest from dev
2 parents d2f20d1 + cad1efc commit c2bc3f2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+498
-479
lines changed

Documents/pureODD/howtoChain-fr.xml

+90-70
Large diffs are not rendered by default.

Documents/pureODD/howtoChain.xml

+25-24
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@
99
<author>Lou Burnard</author>
1010
</titleStmt>
1111
<publicationStmt>
12-
<p>Discussion draft</p>
12+
<p>As published on lb42.github.io</p>
1313
</publicationStmt>
1414
<sourceDesc>
1515
<p>authored from scratch</p>
1616
</sourceDesc>
1717
</fileDesc>
1818
<revisionDesc>
19+
<change when="2023-12-20">Minor changes for publication on lb42.github.io</change>
1920
<change when="2018-01-04">Expanded and announced on TEI-L</change>
2021
<change when="2016-10-22">Uploaded for Council review</change>
2122
<change when="2016-10-21">Drafted first part on train from Paris to La Souterraine; then lost
@@ -58,37 +59,36 @@
5859
in the current source tree. And one with the value
5960
<val>http://example.com/superODDs/anotherSubset.xml</val> will go looking for it at the
6061
URL indicated. </p>
61-
<p>It's important to understand that the resource indicated by the <att>source</att>s
62+
<p>It's important to understand that the resource indicated by the <att>source</att>
6263
attribute must contain complete and explicit specification elements: <gi>elementSpec</gi>
6364
rather than <gi>elementRef</gi>, <gi>classSpec</gi> rather than <gi>classRef</gi> and so
6465
on. It may of course contain other TEI elements, but these will be ignored entirely in the
6566
construction of a schema. A file called <ident>p5subset.xml</ident>, provided as part of
6667
every TEI release, is an example of such a resource: it contains specifications for every
67-
single TEI element, class, macro, and datatype, but nothing else much. If the
68-
<att>source</att> parameter is not supplied, the most recently available version of this
68+
single TEI element, class, macro, and datatype, but nothing else much. If a value for the
69+
<att>source</att> attribute is not specified, the most recently available version of this
6970
file is what will be used during the processing of an ODD.</p>
7071
</div>
7172
<div>
7273
<head>Processing an ODD</head>
7374
<p>Let's look more closely at the way the TEI defines a very light weight schema called
7475
<ident>TEI Bare</ident>. Its schema specification element begins like this: <egXML
7576
xmlns="http://www.tei-c.org/ns/Examples">
76-
<schemaSpec ident="tei_bare" xml:lang="en">
77-
<moduleRef key="core" include="p list item label head author title"/>
78-
<moduleRef key="tei"/>
79-
<moduleRef key="header"
80-
include="teiHeader fileDesc titleStmt publicationStmt sourceDesc"/>
81-
<moduleRef key="textstructure" include="TEI text body div front back"/>
82-
<classSpec ident="att.global" mode="change" module="tei" type="atts">
83-
<attList>
84-
<attDef ident="xml:space" mode="delete"/>
85-
<attDef ident="rend" mode="delete"/>
86-
<attDef ident="xml:base" mode="delete"/>
87-
</attList>
88-
</classSpec>
89-
<classSpec ident="att.fragmentable" mode="delete" module="tei" type="atts"/>
90-
</schemaSpec>
91-
</egXML>
77+
<schemaSpec ident="tei_bare" xml:lang="en">
78+
<moduleRef key="core" include="p list item label head author title"/>
79+
<moduleRef key="tei"/>
80+
<moduleRef key="header"
81+
include="teiHeader fileDesc titleStmt publicationStmt sourceDesc"/>
82+
<moduleRef key="textstructure" include="TEI text body div front back"/>
83+
<classSpec ident="att.global" mode="change" module="tei" type="atts">
84+
<attList>
85+
<attDef ident="xml:space" mode="delete"/>
86+
<attDef ident="rend" mode="delete"/>
87+
<attDef ident="xml:base" mode="delete"/>
88+
</attList>
89+
</classSpec>
90+
<classSpec ident="att.fragmentable" mode="delete" module="tei" type="atts"/>
91+
</schemaSpec> </egXML>
9292
</p>
9393
<p>No <att>source</att> is specified, so declarations for the elements requested here will
9494
be taken from the current <ident>p5subset.xml</ident>. </p>
@@ -98,16 +98,16 @@
9898
specifications for two classes (<gi>classSpec</gi>), rather than references
9999
(<gi>classRef</gi>). The reference to the module <ident>tei</ident> brings with it
100100
specifications for most TEI classes, including these two. An ODD processor will therefore
101-
have to resolve duplicate class specifications for the classes <ident>att.global</ident>
102-
and <ident>att.fragmentable</ident>. The required resolution is indicated by the value of
101+
have to deal with duplicate class specifications for the classes <ident>att.global</ident>
102+
and <ident>att.fragmentable</ident>. The resolution method required is indicated by the value of
103103
the <att>mode</att> attribute: if this is <val>delete</val> then both declarations are to
104104
be ignored, and the class is therefore suppressed; if it is <val>change</val> then the two
105105
declarations are to be merged, with any part of it present in the second specification
106106
over-riding that in the first. In this case, the effect will be to suppress the three
107107
attributes mentioned. </p>
108108
<p>If you'd like to check that this ODD does what you expect, and you have oXygen installed
109109
with a recent version of the TEI Frameworks, just download the file
110-
<ident>tei_bare.odd</ident>, and tell oXygen to apply the predefined transformation
110+
<ident>tei_bare.odd</ident> (you can get it from <ref target="https://github.com/TEIC/TEI/blob/dev/P5/Exemplars/tei_bare.odd">the TEI github repo</ref>), and tell oXygen to apply the predefined transformation
111111
<ident>TEI ODD to HTML</ident> to it. This will produce a mini-manual for the TEI Bare
112112
customization in HTML format, near the beginning of which you should see a list of the
113113
elements the schema contains.
@@ -251,7 +251,8 @@
251251
the value for the <att>source</att> attribute on the <gi>schemaSpec</gi> defining our
252252
ODD. We could do the same thing (though I don't recommend it) even at the level of
253253
individual elements, by specifying a different version as source for an
254-
<gi>elementSpec</gi>.</p><p>And just to make life a little simpler, there is an
254+
<gi>elementSpec</gi>.</p>
255+
<p>And just to make life a little simpler, there is an
255256
officially recognized short cut built into the current ODD processing stylesheets:
256257
instead of the lengthy URL above, we could simply say <code>tei:3.0.0</code>. For
257258
example, supposing that for some strange reason we don't want to add the current

Documents/pureODD/howtoGenerate-fr.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<teiHeader>
55
<fileDesc>
66
<titleStmt>
7-
<title xml:lang="fr">Comment faire un ODD magiquement</title>
8-
<author>Lou Burnard</author>
7+
<title xml:lang="fr">Comment faire un ODD automagiquement</title>
8+
<author>Lou Burnard et Emmanuel Château-Dutier</author>
99
</titleStmt>
1010
<publicationStmt>
1111
<p>Traduction d’un brouillon de tutoriel non publié intitulé <title>How to Make an ODD

0 commit comments

Comments
 (0)