Skip to content

Commit

Permalink
update schemas to TEI source 4.7.0
Browse files Browse the repository at this point in the history
and some extra work for the new class att.calendarSystem
  • Loading branch information
peterstadler committed Nov 21, 2023
1 parent 18364ff commit 7daf083
Show file tree
Hide file tree
Showing 40 changed files with 12,591 additions and 6,746 deletions.
2 changes: 1 addition & 1 deletion build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ compiledODD.dir=compiled-ODD
stylesheets.dir=/Users/pstadler/repos/Stylesheets

# Path to local TEI p5subset.xml (get the latest release from http://sourceforge.net/projects/tei/files/TEI-P5-all/)
tei.source=/Users/pstadler/static/tei-4.6.0/xml/tei/odd/p5subset.xml
tei.source=/Users/pstadler/static/tei-4.7.0/xml/tei/odd/p5subset.xml

# Path to local MEI mei-source.xml (get the latest release from https://github.com/music-encoding/music-encoding/releases)
mei.source=/Users/pstadler/static/music-encoding-5.0/source/mei-source.xml
413 changes: 226 additions & 187 deletions compiled-ODD/guidelines-de-wegaBiblio.compiled.xml

Large diffs are not rendered by default.

677 changes: 373 additions & 304 deletions compiled-ODD/guidelines-de-wegaDiaries.compiled.xml

Large diffs are not rendered by default.

1,210 changes: 633 additions & 577 deletions compiled-ODD/guidelines-de-wegaDocuments.compiled.xml

Large diffs are not rendered by default.

1,286 changes: 649 additions & 637 deletions compiled-ODD/guidelines-de-wegaLetters.compiled.xml

Large diffs are not rendered by default.

608 changes: 311 additions & 297 deletions compiled-ODD/guidelines-de-wegaNews.compiled.xml

Large diffs are not rendered by default.

771 changes: 499 additions & 272 deletions compiled-ODD/guidelines-de-wegaOrgs.compiled.xml

Large diffs are not rendered by default.

856 changes: 635 additions & 221 deletions compiled-ODD/guidelines-de-wegaPersons.compiled.xml

Large diffs are not rendered by default.

434 changes: 262 additions & 172 deletions compiled-ODD/guidelines-de-wegaPlaces.compiled.xml

Large diffs are not rendered by default.

899 changes: 502 additions & 397 deletions compiled-ODD/guidelines-de-wegaThematicCommentaries.compiled.xml

Large diffs are not rendered by default.

914 changes: 512 additions & 402 deletions compiled-ODD/guidelines-de-wegaVar.compiled.xml

Large diffs are not rendered by default.

1,169 changes: 622 additions & 547 deletions compiled-ODD/guidelines-de-wegaWritings.compiled.xml

Large diffs are not rendered by default.

1,909 changes: 1,202 additions & 707 deletions compiled-ODD/guidelines-de-wega_all.compiled.xml

Large diffs are not rendered by default.

147 changes: 89 additions & 58 deletions schema/de/wegaBiblio.isosch

Large diffs are not rendered by default.

203 changes: 117 additions & 86 deletions schema/de/wegaBiblio.rng

Large diffs are not rendered by default.

217 changes: 145 additions & 72 deletions schema/de/wegaDiaries.isosch

Large diffs are not rendered by default.

316 changes: 218 additions & 98 deletions schema/de/wegaDiaries.rng

Large diffs are not rendered by default.

333 changes: 238 additions & 95 deletions schema/de/wegaDocuments.isosch

Large diffs are not rendered by default.

445 changes: 332 additions & 113 deletions schema/de/wegaDocuments.rng

Large diffs are not rendered by default.

330 changes: 235 additions & 95 deletions schema/de/wegaLetters.isosch

Large diffs are not rendered by default.

447 changes: 333 additions & 114 deletions schema/de/wegaLetters.rng

Large diffs are not rendered by default.

155 changes: 108 additions & 47 deletions schema/de/wegaNews.isosch

Large diffs are not rendered by default.

249 changes: 169 additions & 80 deletions schema/de/wegaNews.rng

Large diffs are not rendered by default.

225 changes: 173 additions & 52 deletions schema/de/wegaOrgs.isosch

Large diffs are not rendered by default.

360 changes: 275 additions & 85 deletions schema/de/wegaOrgs.rng

Large diffs are not rendered by default.

317 changes: 255 additions & 62 deletions schema/de/wegaPersons.isosch

Large diffs are not rendered by default.

502 changes: 412 additions & 90 deletions schema/de/wegaPersons.rng

Large diffs are not rendered by default.

207 changes: 150 additions & 57 deletions schema/de/wegaPlaces.isosch

Large diffs are not rendered by default.

325 changes: 234 additions & 91 deletions schema/de/wegaPlaces.rng

Large diffs are not rendered by default.

256 changes: 198 additions & 58 deletions schema/de/wegaThematicCommentaries.isosch

Large diffs are not rendered by default.

375 changes: 291 additions & 84 deletions schema/de/wegaThematicCommentaries.rng

Large diffs are not rendered by default.

256 changes: 198 additions & 58 deletions schema/de/wegaVar.isosch

Large diffs are not rendered by default.

379 changes: 293 additions & 86 deletions schema/de/wegaVar.rng

Large diffs are not rendered by default.

333 changes: 238 additions & 95 deletions schema/de/wegaWritings.isosch

Large diffs are not rendered by default.

447 changes: 333 additions & 114 deletions schema/de/wegaWritings.rng

Large diffs are not rendered by default.

484 changes: 389 additions & 95 deletions schema/de/wega_all.isosch

Large diffs are not rendered by default.

762 changes: 641 additions & 121 deletions schema/de/wega_all.rng

Large diffs are not rendered by default.

115 changes: 97 additions & 18 deletions src/Specs/common-specs.odd.xml
Original file line number Diff line number Diff line change
Expand Up @@ -420,9 +420,9 @@

<specGrp xml:id="wega-common-atts">
<!-- common macros for TEI and MEI -->
<macroSpec ident="wega.data.temporal.iso" mode="add" module="wega.core.module">
<desc versionDate="2014-04-22" xml:lang="en">A replacement for the TEI macro data.temporal.iso which allows only date (YYYY-MM-DD) and gYear (YYYY).</desc>
<desc versionDate="2014-04-22" xml:lang="de">WeGA-Ersatz für das TEI Makro data.temporal.iso mit der Einschränkung auf date (YYYY-MM-DD) und gYear (YYYY).</desc>
<macroSpec ident="wega.data.temporal.w3c" mode="add" module="wega.core.module">
<desc versionDate="2014-04-22" xml:lang="en">A replacement for the TEI macro teidata.temporal.w3c which allows only date (YYYY-MM-DD) and gYear (YYYY).</desc>
<desc versionDate="2014-04-22" xml:lang="de">WeGA-Ersatz für das TEI Makro teidata.temporal.w3c mit der Einschränkung auf date (YYYY-MM-DD) und gYear (YYYY).</desc>
<content>
<alternate>
<dataRef name="date"/>
Expand Down Expand Up @@ -574,11 +574,11 @@
</specGrp>

<specGrp xml:id="wega-tei-atts">
<macroSpec ident="teidata.temporal.w3c" mode="change" module="tei">
<dataSpec ident="teidata.temporal.w3c" mode="change" module="tei">
<content>
<dataRef key="wega.data.temporal.iso"/>
<dataRef key="wega.data.temporal.w3c"/>
</content>
</macroSpec>
</dataSpec>

<classSpec type="atts" ident="att.docStatus" mode="replace" module="tei">
<desc versionDate="2013-11-11" xml:lang="en">provides attributes for use on metadata elements describing the status of a document.</desc>
Expand Down Expand Up @@ -744,6 +744,21 @@
</attList>
</classSpec>

<classSpec type="atts" ident="att.calendarSystem" module="tei" mode="change">
<attList>
<attDef ident="calendar" mode="replace" usage="opt">
<desc versionDate="2013-11-11" xml:lang="en">indicates the system or calendar to which the date represented by the content of this element belongs.</desc>
<desc versionDate="2013-11-11" xml:lang="de">zeigt das System oder den Kalender auf, zu dem das dargestellte Datum des Elements gehört.</desc>
<valList type="closed">
<valItem ident="Julian">
<desc versionDate="2013-11-11" xml:lang="en">Identifies the selected date as specified according to the Julian calendar. The normalized value in <att>when</att> has to be specified after the standard, ergo the Gregorian calendar.</desc>
<desc versionDate="2013-11-11" xml:lang="de">Identifiziert das markierte Datum als Angabe nach dem Julianischen Kalender. Der normalisierte Wert im <att>when</att> muss aber nach dem Standard, ergo dem Gregorianischen Kalender angegeben werden.</desc>
</valItem>
</valList>
</attDef>
</attList>
</classSpec>

<classSpec type="atts" ident="att.sortable" module="tei" mode="delete"/>
<classSpec type="atts" ident="att.datable.iso" module="tei" mode="delete"/>
<classSpec type="atts" ident="att.datable.custom" module="tei" mode="delete"/>
Expand Down Expand Up @@ -1202,6 +1217,8 @@
</valItem>
</valList>
</attDef>
<!-- need to remove calendar explicitly to prevent deprecation notice -->
<attDef ident="calendar" mode="delete"/>
</attList>
</elementSpec>

Expand Down Expand Up @@ -1318,16 +1335,6 @@
</valItem>
</valList>
</attDef>
<attDef ident="calendar" mode="replace" usage="opt">
<desc versionDate="2013-11-11" xml:lang="en">indicates the system or calendar to which the date represented by the content of this element belongs.</desc>
<desc versionDate="2013-11-11" xml:lang="de">zeigt das System oder den Kalender auf, zu dem das dargestellte Datum des Elements gehört.</desc>
<valList type="closed">
<valItem ident="Julian">
<desc versionDate="2013-11-11" xml:lang="en">Identifies the selected date as specified according to the Julian calendar. The normalized value in <att>when</att> has to be specified after the standard, ergo the Gregorian calendar.</desc>
<desc versionDate="2013-11-11" xml:lang="de">Identifiziert das markierte Datum als Angabe nach dem Julianischen Kalender. Der normalisierte Wert im <att>when</att> muss aber nach dem Standard, ergo dem Gregorianischen Kalender angegeben werden.</desc>
</valItem>
</valList>
</attDef>
</attList>
</elementSpec>

Expand Down Expand Up @@ -1576,6 +1583,8 @@
</attDef>
<attRef class="att.global" name="xml:id"/>
<attRef class="att.global.responsibility" name="cert"/>
<!-- need to remove calendar explicitly to prevent deprecation notice -->
<attDef ident="calendar" mode="delete"/>
</attList>
</elementSpec>

Expand All @@ -1596,6 +1605,8 @@
</datatype>
</attDef>
<attRef class="att.global" name="xml:id"/>
<!-- need to remove calendar explicitly to prevent deprecation notice -->
<attDef ident="calendar" mode="delete"/>
</attList>
</elementSpec>

Expand Down Expand Up @@ -1929,6 +1940,8 @@
<attDef ident="source" mode="delete"/>
<attDef ident="xml:base" mode="delete"/>
<attDef ident="xml:space" mode="delete"/>
<!-- need to remove calendar explicitly to prevent deprecation notice -->
<attDef ident="calendar" mode="delete"/>
</attList>
</elementSpec>

Expand Down Expand Up @@ -2723,6 +2736,20 @@
</content>
</elementSpec>

<elementSpec ident="resp" module="core" mode="change">
<attList>
<!-- need to remove calendar explicitly to prevent deprecation notice -->
<attDef ident="calendar" mode="delete"/>
</attList>
</elementSpec>

<elementSpec ident="name" module="core" mode="change">
<attList>
<!-- need to remove calendar explicitly to prevent deprecation notice -->
<attDef ident="calendar" mode="delete"/>
</attList>
</elementSpec>

<classSpec type="atts" ident="att.declarable" module="tei" mode="delete"/>
</specGrp>

Expand All @@ -2736,6 +2763,10 @@
<content>
<rng:ref name="date"/>
</content>
<attList>
<!-- need to remove calendar explicitly to prevent deprecation notice -->
<attDef ident="calendar" mode="delete"/>
</attList>
</elementSpec>

<elementSpec ident="handNote" mode="change" module="header">
Expand Down Expand Up @@ -2819,7 +2850,7 @@
There are some values of "2006" in the writings so we can't
set this to xs:date here but also need gYear
-->
<dataRef key="wega.data.temporal.iso"/>
<dataRef key="wega.data.temporal.w3c"/>
</datatype>
<remarks versionDate="2022-09-19" xml:lang="en">
<p>For historic reasons gYear (i.e. only providing the year) is also allowed. For new entries this must be avoided.</p>
Expand All @@ -2828,8 +2859,9 @@
<p>Aus historischen Gründen ist der Datentyp gYear (d.h. nur die Angabe des Jahrs) ebenfalls erlaubt. Dies ist bei neuen Einträge aber zu vermeiden.</p>
</remarks>
</attDef>
<attDef ident="calendar" mode="delete"/>
<attDef ident="target" mode="delete"/>
<!-- need to remove calendar explicitly to prevent deprecation notice -->
<attDef ident="calendar" mode="delete"/>
</attList>
</elementSpec>

Expand Down Expand Up @@ -2976,6 +3008,13 @@
</constraint>
</constraintSpec>
</elementSpec>

<elementSpec ident="licence" module="header" mode="change">
<attList>
<!-- need to remove calendar explicitly to prevent deprecation notice -->
<attDef ident="calendar" mode="delete"/>
</attList>
</elementSpec>
</specGrp>

<specGrp xml:id="wega-namesdates">
Expand All @@ -3000,6 +3039,8 @@
</datatype>
</attDef>
<attRef class="att.global.responsibility" name="cert"/>
<!-- need to remove calendar explicitly to prevent deprecation notice -->
<attDef ident="calendar" mode="delete"/>
</attList>
</elementSpec>

Expand Down Expand Up @@ -3082,6 +3123,8 @@
</datatype>
</attDef>
<attDef ident="subtype" mode="delete"/>
<!-- need to remove calendar explicitly to prevent deprecation notice -->
<attDef ident="calendar" mode="delete"/>
</attList>

<exemplum versionDate="2013-11-11" xml:lang="de">
Expand Down Expand Up @@ -3138,6 +3181,8 @@
</datatype>
</attDef>
<attRef class="att.global.responsibility" name="cert"/>
<!-- need to remove calendar explicitly to prevent deprecation notice -->
<attDef ident="calendar" mode="delete"/>
</attList>
</elementSpec>

Expand All @@ -3152,6 +3197,8 @@
</classes>
<attList>
<attRef class="att.global.responsibility" name="cert"/>
<!-- need to remove calendar explicitly to prevent deprecation notice -->
<attDef ident="calendar" mode="delete"/>
</attList>
</elementSpec>

Expand All @@ -3166,6 +3213,8 @@
</classes>
<attList>
<attRef class="att.global.responsibility" name="cert"/>
<!-- need to remove calendar explicitly to prevent deprecation notice -->
<attDef ident="calendar" mode="delete"/>
</attList>
</elementSpec>

Expand All @@ -3180,6 +3229,8 @@
</classes>
<attList>
<attRef class="att.global.responsibility" name="cert"/>
<!-- need to remove calendar explicitly to prevent deprecation notice -->
<attDef ident="calendar" mode="delete"/>
</attList>
</elementSpec>

Expand All @@ -3201,6 +3252,8 @@
</valList>
</attDef>
<attRef class="att.global.responsibility" name="cert"/>
<!-- need to remove calendar explicitly to prevent deprecation notice -->
<attDef ident="calendar" mode="delete"/>
</attList>
</elementSpec>

Expand Down Expand Up @@ -3257,6 +3310,8 @@
</datatype>
</attDef>
<attRef name="cert" class="att.global.responsibility"/>
<!-- need to remove calendar explicitly to prevent deprecation notice -->
<attDef ident="calendar" mode="delete"/>
</attList>
</elementSpec>
</specGrp>
Expand Down Expand Up @@ -3994,6 +4049,10 @@
minOccurs="0"/>
</sequence>
</content>
<attList>
<!-- need to remove calendar explicitly to prevent deprecation notice -->
<attDef ident="calendar" mode="delete"/>
</attList>
</elementSpec>

<elementSpec ident="physDesc" mode="change" module="msdescription">
Expand Down Expand Up @@ -4045,6 +4104,24 @@
</content>
</elementSpec>

<elementSpec ident="origin" mode="change" module="msdescription">
<attList>
<!-- need to remove calendar explicitly to prevent deprecation notice -->
<attDef ident="calendar" mode="delete"/>
</attList>
</elementSpec>
<elementSpec ident="provenance" mode="change" module="msdescription">
<attList>
<!-- need to remove calendar explicitly to prevent deprecation notice -->
<attDef ident="calendar" mode="delete"/>
</attList>
</elementSpec>
<elementSpec ident="acquisition" mode="change" module="msdescription">
<attList>
<!-- need to remove calendar explicitly to prevent deprecation notice -->
<attDef ident="calendar" mode="delete"/>
</attList>
</elementSpec>
</specGrp>

<specGrp xml:id="wega-figures">
Expand Down Expand Up @@ -4316,6 +4393,8 @@
</valItem>-->
</valList>
</attDef>
<!-- need to remove calendar explicitly to prevent deprecation notice -->
<attDef ident="calendar" mode="delete"/>
</attList>
</elementSpec>
</specGrp>
Expand Down
2 changes: 2 additions & 0 deletions src/Specs/schemaSpec-letters.odd.xml
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,8 @@
</rng:data>
</datatype>
</attDef>
<!-- need to remove calendar explicitly to prevent deprecation notice -->
<attDef ident="calendar" mode="delete"/>
</attList>
</elementSpec>

Expand Down
2 changes: 1 addition & 1 deletion src/Specs/schemaSpec-works.odd.xml
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@

<macroSpec ident="data.ISODATE" module="MEI" mode="change">
<content>
<rng:ref name="wega.data.temporal.iso"/>
<rng:ref name="wega.data.temporal.w3c"/>
</content>
</macroSpec>

Expand Down

0 comments on commit 7daf083

Please sign in to comment.