Skip to content

Commit

Permalink
add role and roleDesc #68
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstadler committed Nov 15, 2024
1 parent ddc27f6 commit 3dc748f
Show file tree
Hide file tree
Showing 3 changed files with 150 additions and 4 deletions.
115 changes: 115 additions & 0 deletions compiled-ODD/guidelines-de-wegaSourcesTEI.compiled.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5483,6 +5483,17 @@ which contain an XPath expression.</desc>
de valeurs dans la spécification de l'attribut associé, exprimée par un élément
<gi>valList</gi>.</p>
</remarks>
</dataSpec><dataSpec module="tei" ident="teidata.gender">
<desc xmlns:xi="http://www.w3.org/2001/XInclude" versionDate="2022-05-17" xml:lang="en">defines the range of attribute values used to
represent the gender of a person, persona, or character.</desc>
<content xmlns:xi="http://www.w3.org/2001/XInclude">
<dataRef key="teidata.enumerated"/>
</content>
<remarks xmlns:xi="http://www.w3.org/2001/XInclude" versionDate="2022-08-27" xml:lang="en">
<p>Values for attributes using this datatype may be defined locally by a project, or they may refer to an external standard.</p>
<p>Values for this datatype should not be used to encode morphological gender (cf. <gi>gen</gi>,
<att>msd</att> as defined in <ident type="class">att.linguistic</ident>, and <ref target="https://www.tei-c.org/release/doc/tei-p5-doc/en/html/DI.html#DITPFO">10.3.1. Information on Written and Spoken Forms</ref>).</p>
</remarks>
</dataSpec><dataSpec module="tei" ident="teidata.probCert">
<desc xmlns:xi="http://www.w3.org/2001/XInclude" versionDate="2007-10-18" xml:lang="en">defines a range of attribute values which can be expressed either as a numeric
probability or as a coded certainty value.</desc>
Expand Down Expand Up @@ -11260,6 +11271,110 @@ either a single role or a list of non-speaking roles.</desc>
<listRef>
<ref target="https://www.tei-c.org/release/doc/tei-p5-doc/en/html/DR.html#DRCAST">7.1.4. Cast Lists</ref>
</listRef>
</elementSpec><elementSpec module="drama" ident="role">
<gloss xml:lang="en" versionDate="2007-06-12">role</gloss>
<gloss versionDate="2007-06-12" xml:lang="fr">rôle</gloss>
<desc versionDate="2012-12-27" xml:lang="en">contains the name of a dramatic role, as given in a cast list.</desc>
<desc versionDate="2007-12-20" xml:lang="ko">배역 목록에 제시되는 드라마 배역의 이름</desc>
<desc versionDate="2007-05-02" xml:lang="zh-TW">角色名單所列的劇中角色名稱。</desc>
<desc versionDate="2008-04-06" xml:lang="es">el nombre de un papel dramático, según los dados en el
reparto.</desc>
<desc versionDate="2008-04-05" xml:lang="ja">配役リスト中にある、役名を示す。</desc>
<desc versionDate="2007-06-12" xml:lang="fr">le nom d'un rôle au théâtre tel qu’il est donné dans la
distribution.</desc>
<desc versionDate="2007-01-21" xml:lang="it">il nome di un ruolo teatrale, secondo la lista dei
personaggi.</desc>
<classes>
<memberOf key="att.global"/>
<memberOf key="model.castItemPart"/>
</classes>
<content>
<macroRef key="macro.phraseSeq"/>
</content>
<attList>
<attDef ident="gender" usage="opt">
<desc versionDate="2023-03-11" xml:lang="en">specifies the gender of the role.</desc>
<datatype minOccurs="1" maxOccurs="unbounded"><dataRef key="teidata.gender"/></datatype>
<remarks versionDate="2023-03-11" xml:lang="en">
<p>Values for this attribute may be locally defined by a project, or they may refer to an external standard.</p>
</remarks>
</attDef>
</attList>
<exemplum xml:lang="en">
<egXML xmlns="http://www.tei-c.org/ns/Examples" source="#JonsBart">
<role xml:id="jt">Joan Trash</role>
<roleDesc>A Ginger-bread-woman</roleDesc>
</egXML>
</exemplum>
<exemplum versionDate="2008-04-06" xml:lang="fr">
<egXML xmlns="http://www.tei-c.org/ns/Examples">
<role xml:id="fr_pr">Le professeur Rubeck</role>
<roleDesc>sculpteur</roleDesc>
</egXML>
</exemplum>
<exemplum xml:lang="zh-TW">
<egXML xmlns="http://www.tei-c.org/ns/Examples" source="#biblzh-tw_n35-36">
<role xml:id="zh-tw_王">鄧肯</role>
<roleDesc>蘇格蘭國王</roleDesc>
</egXML>
</exemplum>
<remarks versionDate="2005-01-14" xml:lang="en">
<p>It is important to assign a meaningful ID attribute to the <gi>role</gi> element, since this
ID is referred to by <att>who</att> attributes on many other elements.</p>
</remarks>
<remarks xml:lang="fr" versionDate="2007-06-12">
<p>Il est important de fournir un identifiant signifiant pour
l'attribut <att>xml:id</att> de l'élément <gi>role</gi> :
l'identifiant donné sera utilisé pour renseigner l'attribut
<att>who</att> de nombreux autres éléments, et faire ainsi
référence à l'élément <gi>role</gi>.</p>
</remarks>
<remarks xml:lang="ja" versionDate="2008-04-05">
<p> 要素<gi>role</gi>の属性IDに有意義な値を付与することが重要である。 この属性IDの値は、他の要素にある属性<att>who</att>から参照される。 </p>
</remarks>
<listRef>
<ref target="https://www.tei-c.org/release/doc/tei-p5-doc/en/html/DR.html#DRCAST">7.1.4. Cast Lists</ref>
</listRef>
</elementSpec><elementSpec module="drama" ident="roleDesc">
<gloss versionDate="2005-01-14" xml:lang="en">role description</gloss>
<gloss versionDate="2007-12-20" xml:lang="ko">배역 기술</gloss>
<gloss versionDate="2007-05-02" xml:lang="zh-TW">角色描述</gloss>
<gloss versionDate="2008-04-06" xml:lang="es">descripción del rol</gloss>
<gloss versionDate="2007-06-12" xml:lang="fr">description du rôle </gloss>
<gloss versionDate="2007-01-21" xml:lang="it">descrizione del ruolo</gloss>
<desc versionDate="2005-01-14" xml:lang="en">describes a character's role in a drama.</desc>
<desc versionDate="2007-12-20" xml:lang="ko">드라마에서 등장인물의 배역을 기술한다.</desc>
<desc versionDate="2007-05-02" xml:lang="zh-TW">描述劇中人物所扮演的角色。</desc>
<desc versionDate="2008-04-06" xml:lang="es">describe el papel de un personaje en un drama.</desc>
<desc versionDate="2008-04-05" xml:lang="ja">舞台芸術における登場人物の役を示す。</desc>
<desc versionDate="2007-06-12" xml:lang="fr">décrit le rôle d'un personnage dans une pièce de
théâtre.</desc>
<desc versionDate="2007-01-21" xml:lang="it">descrive il ruolo di un personaggio in un'opera teatrale.</desc>
<classes>
<memberOf key="att.global"/>
<memberOf key="model.castItemPart"/>
</classes>
<content>
<macroRef key="macro.phraseSeq"/>
</content>
<exemplum xml:lang="en">
<egXML xmlns="http://www.tei-c.org/ns/Examples">
<roleDesc>gentlemen of leisure</roleDesc>
</egXML>
</exemplum>
<exemplum versionDate="2008-04-06" xml:lang="fr">
<egXML xmlns="http://www.tei-c.org/ns/Examples">
<roleDesc>valet de chasse</roleDesc>
</egXML>
</exemplum>
<exemplum xml:lang="zh-TW">
<egXML xmlns="http://www.tei-c.org/ns/Examples">
<roleDesc>悠閒的紳士</roleDesc>
</egXML>
</exemplum>
<listRef>
<ref target="https://www.tei-c.org/release/doc/tei-p5-doc/en/html/DR.html#DRCAST">7.1.4. Cast Lists</ref>
</listRef>
</elementSpec><elementSpec module="drama" ident="caption">
<gloss versionDate="2007-06-12" xml:lang="en">caption</gloss>
<gloss versionDate="2007-06-12" xml:lang="fr">sous-titre</gloss>
Expand Down
37 changes: 34 additions & 3 deletions schema/de/wegaSourcesTEI.rng
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
xmlns="http://relaxng.org/ns/structure/1.0"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
ns="http://www.tei-c.org/ns/1.0"><!--
Schema generated from ODD source 2024-11-15T13:35:38Z. .
Schema generated from ODD source 2024-11-15T13:59:30Z. .
TEI Edition: P5 Version 4.8.1. Last updated on 1st November 2024, revision 0a2bff95a
TEI Edition Location: https://www.tei-c.org/Vault/P5/4.8.1/
Expand Down Expand Up @@ -2321,7 +2321,10 @@ The element indicated by @spanTo (<sch:value-of select="@spanTo"/>) must follow
</choice>
</define>
<define name="model.castItemPart">
<notAllowed/>
<choice>
<ref name="role"/>
<ref name="roleDesc"/>
</choice>
</define>
<define name="model.addressLike">
<choice>
Expand Down Expand Up @@ -4731,7 +4734,7 @@ Empfohlene Werte sind: 1] setting; 2] entrance; 3] exit; 4] business; 5] novelis
<choice>
<ref name="castItem"/>
<ref name="castGroup"/>

<ref name="roleDesc"/>
</choice>
<zeroOrMore>
<ref name="model.global"/>
Expand Down Expand Up @@ -4775,6 +4778,34 @@ Empfohlene Werte sind: 1] setting; 2] entrance; 3] exit; 4] business; 5] novelis
<empty/>
</element>
</define>
<define name="role">
<element name="role">
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(role) contains the name of a dramatic role, as given in a cast list. [7.1.4. Cast Lists]</a:documentation>
<ref name="macro.phraseSeq"/>
<ref name="att.global.attributes"/>
<optional>
<attribute name="gender">
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">specifies the gender of the role.</a:documentation>
<list>
<oneOrMore>
<data type="token">
<param name="pattern">[^\p{C}\p{Z}]+</param>
</data>
</oneOrMore>
</list>
</attribute>
</optional>
<empty/>
</element>
</define>
<define name="roleDesc">
<element name="roleDesc">
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(role description) describes a character's role in a drama. [7.1.4. Cast Lists]</a:documentation>
<ref name="macro.phraseSeq"/>
<ref name="att.global.attributes"/>
<empty/>
</element>
</define>
<define name="caption">
<element name="caption">
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(Beschriftung) contains the text of a caption or other text displayed as part of a film script or screenplay. [7.3.1. Technical Information 7.3. Other Types of Performance Text]</a:documentation>
Expand Down
2 changes: 1 addition & 1 deletion src/Specs/schemaSpec-sourcesTEI.odd.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xmlns:rng="http://relaxng.org/ns/structure/1.0"
xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<moduleRef key="core" include="add address author bibl biblStruct choice corr date del divGen editor gap graphic head hi imprint item label l lb lg list mentioned milestone monogr name note p pb postCode publisher pubPlace q quote ref relatedItem rs sic sp speaker stage street term title unclear"/>
<moduleRef key="drama" include="caption castGroup castItem castList"/>
<moduleRef key="drama" include="caption castGroup castItem castList role roleDesc"/>
<moduleRef key="figures" include="cell figDesc figure row table"/>
<moduleRef key="header" include="availability change editionStmt fileDesc handNote idno keywords licence notesStmt profileDesc publicationStmt revisionDesc sourceDesc teiHeader textClass titleStmt"/>
<moduleRef key="linking" include="anchor seg"/>
Expand Down

0 comments on commit 3dc748f

Please sign in to comment.