Commit 7e26c546 authored by Charles Bourdot's avatar Charles Bourdot
Browse files

Ajout module dictionnaries #41 et ajout élément foreign #48

parent e8332704
Loading
Loading
Loading
Loading
+121 −26
Changes for odd/out/commons-publishing-metopes.rng: 121 added lines, 26 removed lines.
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
         xmlns:xlink="http://www.w3.org/1999/xlink"
         datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
         ns="http://www.tei-c.org/ns/1.0"><!--
Schema generated from ODD source 2023-06-12T08:50:55Z. .
Schema generated from ODD source 2023-06-28T10:33:28Z. .
TEI Edition: 
TEI Edition Location: https://www.tei-c.org/Vault/P5//
  
@@ -3799,6 +3799,19 @@ TEI Edition Location: https://www.tei-c.org/Vault/P5//
   <define name="att.datable.attributes">
      <ref name="att.datable.w3c.attributes"/>
   </define>
   <pattern xmlns="http://purl.oclc.org/dsdl/schematron"
            id="commons-publishing-metopes-att.datable-calendar-constraint-rule-4">
      <sch:rule xmlns="http://www.tei-c.org/ns/1.0"
                xmlns:rng="http://relaxng.org/ns/structure/1.0"
                xmlns:sch="http://purl.oclc.org/dsdl/schematron"
                xmlns:xi="http://www.w3.org/2001/XInclude"
                xmlns:xs="http://www.w3.org/2001/XMLSchema"
                context="tei:*[@calendar]">
         <sch:assert test="string-length( normalize-space(.) ) gt 0"> @calendar indicates one or more
            systems or calendars to which the date represented by the content of this element belongs,
            but this <sch:name/> element has no textual content.</sch:assert>
      </sch:rule>
   </pattern>
   <define name="att.global.rendition.attributes">
      <ref name="att.global.rendition.attribute.rend"/>
      <ref name="att.global.rendition.attribute.rendition"/>
@@ -3974,7 +3987,7 @@ TEI Edition Location: https://www.tei-c.org/Vault/P5//
      </optional>
   </define>
   <pattern xmlns="http://purl.oclc.org/dsdl/schematron"
            id="commons-publishing-metopes-att.typed-subtypeTyped-constraint-rule-4">
            id="commons-publishing-metopes-att.typed-subtypeTyped-constraint-rule-5">
      <sch:rule xmlns="http://www.tei-c.org/ns/1.0"
                xmlns:rng="http://relaxng.org/ns/structure/1.0"
                xmlns:sch="http://purl.oclc.org/dsdl/schematron"
@@ -4001,6 +4014,17 @@ TEI Edition Location: https://www.tei-c.org/Vault/P5//
         </attribute>
      </optional>
   </define>
   <pattern xmlns="http://purl.oclc.org/dsdl/schematron"
            id="commons-publishing-metopes-att.pointing-targetLang-constraint-rule-6">
      <sch:rule xmlns="http://www.tei-c.org/ns/1.0"
                xmlns:rng="http://relaxng.org/ns/structure/1.0"
                xmlns:sch="http://purl.oclc.org/dsdl/schematron"
                xmlns:xi="http://www.w3.org/2001/XInclude"
                xmlns:xs="http://www.w3.org/2001/XMLSchema"
                context="tei:*[not(self::tei:schemaSpec)][@targetLang]">
         <sch:assert test="@target">@targetLang should only be used on <sch:name/> if @target is specified.</sch:assert>
      </sch:rule>
   </pattern>
   <define name="att.styleDef.attributes">
      <ref name="att.styleDef.attribute.scheme"/>
      <ref name="att.styleDef.attribute.schemeVersion"/>
@@ -4033,7 +4057,7 @@ TEI Edition Location: https://www.tei-c.org/Vault/P5//
      </optional>
   </define>
   <pattern xmlns="http://purl.oclc.org/dsdl/schematron"
            id="commons-publishing-metopes-att.styleDef-schemeVersion-schemeVersionRequiresScheme-constraint-rule-5">
            id="commons-publishing-metopes-att.styleDef-schemeVersion-schemeVersionRequiresScheme-constraint-rule-7">
      <sch:rule xmlns="http://www.tei-c.org/ns/1.0"
                xmlns:rng="http://relaxng.org/ns/structure/1.0"
                xmlns:sch="http://purl.oclc.org/dsdl/schematron"
@@ -4187,24 +4211,33 @@ Suggested values include: 1] volume (volume); 2] issue; 3] page (page); 4] line;
   </define>
   <define name="model.emphLike">
      <choice>
         <ref name="gloss"/>
         <ref name="term"/>
         <ref name="title"/>
         <ref name="code"/>
         <ref name="foreign"/>
      </choice>
   </define>
   <define name="model.emphLike_alternation">
      <choice>
         <ref name="gloss"/>
         <ref name="term"/>
         <ref name="title"/>
         <ref name="code"/>
         <ref name="foreign"/>
      </choice>
   </define>
   <define name="model.emphLike_sequence">
      <ref name="gloss"/>
      <ref name="term"/>
      <ref name="title"/>
      <ref name="code"/>
      <ref name="foreign"/>
   </define>
   <define name="model.emphLike_sequenceOptional">
      <optional>
         <ref name="gloss"/>
      </optional>
      <optional>
         <ref name="term"/>
      </optional>
@@ -4214,8 +4247,14 @@ Suggested values include: 1] volume (volume); 2] issue; 3] page (page); 4] line;
      <optional>
         <ref name="code"/>
      </optional>
      <optional>
         <ref name="foreign"/>
      </optional>
   </define>
   <define name="model.emphLike_sequenceOptionalRepeatable">
      <zeroOrMore>
         <ref name="gloss"/>
      </zeroOrMore>
      <zeroOrMore>
         <ref name="term"/>
      </zeroOrMore>
@@ -4225,8 +4264,14 @@ Suggested values include: 1] volume (volume); 2] issue; 3] page (page); 4] line;
      <zeroOrMore>
         <ref name="code"/>
      </zeroOrMore>
      <zeroOrMore>
         <ref name="foreign"/>
      </zeroOrMore>
   </define>
   <define name="model.emphLike_sequenceRepeatable">
      <oneOrMore>
         <ref name="gloss"/>
      </oneOrMore>
      <oneOrMore>
         <ref name="term"/>
      </oneOrMore>
@@ -4236,6 +4281,9 @@ Suggested values include: 1] volume (volume); 2] issue; 3] page (page); 4] line;
      <oneOrMore>
         <ref name="code"/>
      </oneOrMore>
      <oneOrMore>
         <ref name="foreign"/>
      </oneOrMore>
   </define>
   <define name="model.highlighted">
      <choice>
@@ -5337,6 +5385,7 @@ Suggested values include: 1] volume (volume); 2] issue; 3] page (page); 4] line;
         <ref name="model.offsetLike"/>
         <ref name="model.placeStateLike"/>
         <ref name="model.persNamePart"/>
         <ref name="lang"/>
         <ref name="idno"/>
      </choice>
   </define>
@@ -5346,6 +5395,7 @@ Suggested values include: 1] volume (volume); 2] issue; 3] page (page); 4] line;
         <ref name="model.offsetLike_alternation"/>
         <ref name="model.placeStateLike_alternation"/>
         <ref name="model.persNamePart_alternation"/>
         <ref name="lang"/>
         <ref name="idno"/>
      </choice>
   </define>
@@ -5354,6 +5404,7 @@ Suggested values include: 1] volume (volume); 2] issue; 3] page (page); 4] line;
      <ref name="model.offsetLike_sequence"/>
      <ref name="model.placeStateLike_sequence"/>
      <ref name="model.persNamePart_sequence"/>
      <ref name="lang"/>
      <ref name="idno"/>
   </define>
   <define name="model.nameLike_sequenceOptional">
@@ -5369,6 +5420,9 @@ Suggested values include: 1] volume (volume); 2] issue; 3] page (page); 4] line;
      <optional>
         <ref name="model.persNamePart_sequenceOptional"/>
      </optional>
      <optional>
         <ref name="lang"/>
      </optional>
      <optional>
         <ref name="idno"/>
      </optional>
@@ -5386,6 +5440,9 @@ Suggested values include: 1] volume (volume); 2] issue; 3] page (page); 4] line;
      <zeroOrMore>
         <ref name="model.persNamePart_sequenceOptionalRepeatable"/>
      </zeroOrMore>
      <zeroOrMore>
         <ref name="lang"/>
      </zeroOrMore>
      <zeroOrMore>
         <ref name="idno"/>
      </zeroOrMore>
@@ -5403,6 +5460,9 @@ Suggested values include: 1] volume (volume); 2] issue; 3] page (page); 4] line;
      <oneOrMore>
         <ref name="model.persNamePart_sequenceRepeatable"/>
      </oneOrMore>
      <oneOrMore>
         <ref name="lang"/>
      </oneOrMore>
      <oneOrMore>
         <ref name="idno"/>
      </oneOrMore>
@@ -5513,6 +5573,7 @@ Suggested values include: 1] volume (volume); 2] issue; 3] page (page); 4] line;
      <choice>
         <ref name="model.divPart"/>
         <ref name="model.inter"/>
         <ref name="model.entryLike"/>
         <ref name="include"/>
      </choice>
   </define>
@@ -5528,6 +5589,7 @@ Suggested values include: 1] volume (volume); 2] issue; 3] page (page); 4] line;
         <ref name="model.phrase.xml"/>
         <ref name="model.specDescLike"/>
         <ref name="model.pPart.data"/>
         <ref name="model.ptrLike.form"/>
      </choice>
   </define>
   <define name="model.paraPart">
@@ -5698,7 +5760,7 @@ Suggested values include: 1] volume (volume); 2] issue; 3] page (page); 4] line;
            <attribute name="type">
               <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">characterizes the element in some sense, using any convenient classification scheme or typology.</a:documentation>
               <choice>
                  <value>gloss</value>
                  <value>example</value>
                  <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
                  <value>quotation2</value>
                  <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
@@ -5739,7 +5801,7 @@ Suggested values include: 1] volume (volume); 2] issue; 3] page (page); 4] line;
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(description) contains a short description of the purpose, function, or use of its parent element, or when the parent is a documentation element, describes or defines the object being documented.  [22.4.1. Description of Components]</a:documentation>
         <ref name="macro.limitedContent"/>
         <pattern xmlns="http://purl.oclc.org/dsdl/schematron"
                  id="commons-publishing-metopes-desc-deprecationInfo-only-in-deprecated-constraint-rule-6">
                  id="commons-publishing-metopes-desc-deprecationInfo-only-in-deprecated-constraint-rule-8">
            <sch:rule xmlns="http://www.tei-c.org/ns/1.0"
                      xmlns:rng="http://relaxng.org/ns/structure/1.0"
                      xmlns:sch="http://purl.oclc.org/dsdl/schematron"
@@ -5753,7 +5815,17 @@ Suggested values include: 1] volume (volume); 2] issue; 3] page (page); 4] line;
        type="deprecationInfo"&gt;.</sch:assert>
            </sch:rule>
         </pattern>
         <ref name="att.translatable.attributes"/>
      </element>
   </define>
   <define name="gloss">
      <element name="gloss">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(gloss) identifies a phrase or word used to provide a gloss or definition for some other word or phrase. [3.4.1. Terms and Glosses 22.4.1. Description of Components]</a:documentation>
         <ref name="macro.phraseSeq"/>
         <ref name="att.global.attribute.xmlid"/>
         <ref name="att.global.attribute.n"/>
         <ref name="att.global.attribute.xmllang"/>
         <ref name="att.global.attribute.xmlbase"/>
         <ref name="att.global.attribute.xmlspace"/>
         <empty/>
      </element>
   </define>
@@ -5909,7 +5981,7 @@ Sample values include: 1] affiliation; 2] site; 3] biographie</a:documentation>
            </zeroOrMore>
         </group>
         <pattern xmlns="http://purl.oclc.org/dsdl/schematron"
                  id="commons-publishing-metopes-list-gloss-list-must-have-labels-constraint-rule-7">
                  id="commons-publishing-metopes-list-gloss-list-must-have-labels-constraint-rule-9">
            <sch:rule xmlns="http://www.tei-c.org/ns/1.0"
                      xmlns:rng="http://relaxng.org/ns/structure/1.0"
                      xmlns:sch="http://purl.oclc.org/dsdl/schematron"
@@ -6504,7 +6576,7 @@ Elements 7.2.5. Speech Contents]</a:documentation>
            </zeroOrMore>
         </group>
         <pattern xmlns="http://purl.oclc.org/dsdl/schematron"
                  id="commons-publishing-metopes-lg-atleast1oflggapl-constraint-assert-5">
                  id="commons-publishing-metopes-lg-atleast1oflggapl-constraint-assert-7">
            <rule context="tei:lg">
               <sch:assert xmlns="http://www.tei-c.org/ns/1.0"
                           xmlns:rng="http://relaxng.org/ns/structure/1.0"
@@ -7910,24 +7982,6 @@ Suggested values include: 1] label; 2] data</a:documentation>
         <empty/>
      </element>
   </define>
   <define name="att.translatable.attributes">
      <ref name="att.translatable.attribute.versionDate"/>
   </define>
   <define name="att.translatable.attribute.versionDate">
      <optional>
         <attribute name="versionDate">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">specifies the date on which the source text was extracted and sent to the translator</a:documentation>
            <choice>
               <data type="date">
                  <param name="pattern">(19[789][0-9]|[2-9][0-9]{3}).*</param>
               </data>
               <data type="dateTime">
                  <param name="pattern">(19[789][0-9]|[2-9][0-9]{3}).*</param>
               </data>
            </choice>
         </attribute>
      </optional>
   </define>
   <define name="code">
      <element name="code">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">contains literal code from some formal language such as a programming language. [22.1.1. Phrase Level Terms]</a:documentation>
@@ -7961,6 +8015,39 @@ Suggested values include: 1] label; 2] data</a:documentation>
         <empty/>
      </element>
   </define>
   <define name="model.entryLike">
      <notAllowed/>
   </define>
   <define name="model.ptrLike.form">
      <notAllowed/>
   </define>
   <define name="model.ptrLike.form_alternation">
      <notAllowed/>
   </define>
   <define name="model.ptrLike.form_sequence">
      <empty/>
   </define>
   <define name="model.ptrLike.form_sequenceOptional">
      <empty/>
   </define>
   <define name="model.ptrLike.form_sequenceOptionalRepeatable">
      <empty/>
   </define>
   <define name="model.ptrLike.form_sequenceRepeatable">
      <notAllowed/>
   </define>
   <define name="lang">
      <element name="lang">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(language name) contains the name of a language mentioned in etymological or other linguistic discussion. [9.3.4. Etymological Information]</a:documentation>
         <ref name="macro.paraContent"/>
         <ref name="att.global.attribute.xmlid"/>
         <ref name="att.global.attribute.n"/>
         <ref name="att.global.attribute.xmllang"/>
         <ref name="att.global.attribute.xmlbase"/>
         <ref name="att.global.attribute.xmlspace"/>
         <empty/>
      </element>
   </define>
   <define name="model.editorialDeclPart">
      <choice>
         <ref name="normalization"/>
@@ -8119,6 +8206,14 @@ Sample values include: 1] leaves; 2] ruled; 3] pricked; 4] written; 5] miniature
         <empty/>
      </element>
   </define>
   <define name="foreign">
      <element name="foreign">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(foreign) identifies a word or phrase as belonging to some language other than that of the surrounding text. []</a:documentation>
         <ref name="macro.phraseSeq"/>
         <ref name="att.global.attributes"/>
         <empty/>
      </element>
   </define>
   <define name="idno">
      <element name="idno">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(identifier) supplies any form of identifier used to identify some object, such as a bibliographic item, a person, a title, an organization, etc. in a standardized way. [   ]</a:documentation>
+2 −1
Changes for odd/src/commons-publishing-metopes.odd: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -38,6 +38,7 @@
        <moduleRef key="tagdocs" />
        <moduleRef key="msdescription" />
        <moduleRef url="mathml.rng" />
        <moduleRef key="dictionaries"/>

        <!-- ############################################## 
     #### Attributes Class customisation       ####
@@ -61,6 +62,7 @@
        <elementRef key="dimensions" source="tei:current" />
        <elementRef key="docAuthor" source="tei:current" />
        <elementRef key="editorialDecl" source="tei:current" />
        <elementRef key="foreign" source="tei:current" />
        <elementRef key="idno" source="tei:current" />
        <elementRef key="index" source="tei:current" />
        <elementRef key="normalization" source="tei:current" />
@@ -88,7 +90,6 @@
                <valItem ident="commons_publication#jatscup" />
                <valItem ident="commons_publication#tex" />
                <valItem ident="commons_publication#onix" />
                <valItem ident="commons_publication#metopesv3" />
              </valList>
            </attDef>
          </attList>