校異源氏物語 TEI カスタマイズ (tei_kouigenji)中村 覚 (Satoru Nakamura). TEI カスタマイズの設計と保守 Design and maintenance of this customization 中村 覚(東京大学史料編纂所 准教授)Satoru Nakamura (Associate Professor, Historiographical Institute, The University of Tokyo)Note: researchmap

Author: 中村 覚 (Satoru Nakamura)2026-08-11

校異源氏物語 TEI カスタマイズ

池田亀鑑『校異源氏物語』(中央公論社) を底本とする 校異源氏物語テキストデータベース のためのカスタマイズである。全54帖の TEI ファイル (xml/master/*.xml) は、 この ODD から生成した RELAX NG と Schematron の両方で検証される。

採用した符号化の方針は次のとおり。

  1. 本文は seg の連なりとして表し、各 segcorresp で API 上の該当箇所 (w3id.org/kouigenjimonogatari) を指す。
  2. 和歌は lg (typewaka) とし、 5句をそれぞれ l として n に句番号を与える。
  3. 底本のページ番号は pb で示し、correspfacsimile 内の zone を、facs で IIIF 画像を指す。
  4. 底本の画像は国立国会図書館デジタルコレクションの IIIF を facsimile / surface / zone で参照する。

スキーマだけでは表せない規則 (和歌は5句である、文書内の参照が解決する、など) は <constraintSpec> として ODD に直接書いてある。この ODD が唯一の正本であり、 docs/schema/tei_kouigenji.rngdocs/schema/tei_kouigenji.schscripts/build-schema.zsh で生成する。

Schema tei_kouigenji: Elements

<author>

<author> (author) 書誌参照において、作品の著者となる人や法人の名前を、たとえば、よく知られた書誌典拠情報機関の形式で提供されるものに合わせるなどして記述する。 [3.12.2.2. Titles, Authors, and Editors 2.2.1. The Title Statement]
Modulecore
Attributes
Member of
Contained by
core: bibl
header: titleStmt
May contain
analysis: s
linking: seg
namesdates: persName placeName
character data
Note

特にヘッダの内容をもとに目録作成が行われると考えられる場合、この要素の内容を広く知られた名前典拠ファイルに準拠することを推奨する。 keyref属性によって何らかの適切な典拠(たとえば図書館目録やオンライン情報のような)における著者(達)についての標準的な参照情報を示すこともできる。

放送番組の場合には、その番組の制作に責任を持つ放送局や放送ネットワークの名前を用いる。

著者が不明であったり不明確である場合、この要素は不詳匿名のようなテキストであってもよい。 特に、複数の名前が用いられている場合には、適切なTEIモジュールを用いて、人や組織、場所に関する名前をより詳細にタグ付けしてもよい。

Example
<author>British Broadcasting Corporation</author>
<author>La Fayette, Marie Madeleine Pioche de la Vergne, comtesse de (1634–1693)</author>
<author>Anonymous</author>
<author>Bill and Melinda Gates Foundation</author>
<author>
 <persName>Beaumont, Francis</persName>
and
<persName>John Fletcher</persName>
</author>
<author>
 <orgName key="BBC">British Broadcasting
   Corporation</orgName>: Radio 3 Network
</author>
Content model
<content>
 <macroRef key="macro.phraseSeq"/>
</content>
Schema Declaration
element author
{
   tei_att.global.attributes,
   tei_att.datable.attributes,
   tei_att.naming.attributes,
   tei_macro.phraseSeq
}

<availability>

<availability> (availability) テキストの利用許可に関する情報を示す。例えば、その使用や頒布の制限、著作権の状態、適用されるライセンス等。 [2.2.4. Publication, Distribution, Licensing, etc.]
Moduleheader
Attributes
status(status) 当該テキストの、現在の利用可能性を表すコードを示す。
Status Optional
Datatype teidata.enumerated
Legal values are:
free
(free) 当該テキストは、自由に使用できる。
unknown
(unknown) 当該テキストの利用可能性は不明。
restricted
(restricted) 当該テキストは、自由に使用できない。
Member of
Contained by
core: bibl
May contain
core: p
Note

一貫した形式を採用すべきである。

Example
<availability status="restricted">
 <p>Available for academic research purposes only.</p>
</availability>
<availability status="free">
 <p>In the public domain</p>
</availability>
<availability status="restricted">
 <p>Available under licence from the publishers.</p>
</availability>
Example
<availability>
 <licence target="http://opensource.org/licenses/MIT">
  <p>The MIT License
     applies to this document.</p>
  <p>Copyright (C) 2011 by The University of Victoria</p>
  <p>Permission is hereby granted, free of charge, to any person obtaining a copy
     of this software and associated documentation files (the "Software"), to deal
     in the Software without restriction, including without limitation the rights
     to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
     copies of the Software, and to permit persons to whom the Software is
     furnished to do so, subject to the following conditions:</p>
  <p>The above copyright notice and this permission notice shall be included in
     all copies or substantial portions of the Software.</p>
  <p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
     AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
     THE SOFTWARE.</p>
 </licence>
</availability>
Schematron

<sch:pattern is-a="declarable">
<sch:param name="tde"
 value="tei:availability"/>

</sch:pattern>
Content model
<content>
 <alternate minOccurs="1"
  maxOccurs="unbounded">

  <classRef key="model.availabilityPart"/>
  <classRef key="model.pLike"/>
 </alternate>
</content>
Schema Declaration
element availability
{
   tei_att.global.attributes,
   tei_att.declarable.attributes,
   attribute status { "free" | "unknown" | "restricted" }?,
   ( tei_model.availabilityPart | tei_model.pLike )+
}

<bibl>

<bibl> (典拠情報の明示) 完全な構造を持たない典拠情報の引用を表す。各構成要素はタグ付けされていてもいなくてもよい。 [3.12.1. Methods of Encoding Bibliographic References and Lists of References 2.2.7. The Source Description 16.3.2. Declarable Elements]
Modulecore
Attributes
Member of
Contained by
core: bibl l p ref title
linking: seg standOff
textstructure: body div
May contain
analysis: s
linking: seg
namesdates: persName placeName
character data
Note

フレーズレベル要素と、model.biblPartクラスの要素の任意の組み合わせを含む。

Example
<bibl>Blain, Clements and Grundy: Feminist Companion to Literature in English (Yale,
1990)</bibl>
Example
<bibl>
 <title level="a">The Interesting story of the Children in the Wood</title>. In
<author>Victor E Neuberg</author>, <title>The Penny Histories</title>.
<publisher>OUP</publisher>
 <date>1968</date>.
</bibl>
Example
<bibl type="articlesubtype="book_chapter"
 xml:id="carlin_2003">

 <author>
  <name>
   <surname>Carlin</surname>
     (<forename>Claire</forename>)</name>
 </author>,
<title level="a">The Staging of Impotence : France’s last
   congrès</title> dans
<bibl type="monogr">
  <title level="m">Theatrum mundi : studies in honor of Ronald W.
     Tobin</title>, éd.
 <editor>
   <name>
    <forename>Claire</forename>
    <surname>Carlin</surname>
   </name>
  </editor> et
 <editor>
   <name>
    <forename>Kathleen</forename>
    <surname>Wine</surname>
   </name>
  </editor>,
 <pubPlace>Charlottesville, Va.</pubPlace>,
 <publisher>Rookwood Press</publisher>,
 <date when="2003">2003</date>.
 </bibl>
</bibl>
Schematron

<sch:pattern is-a="declarable">
<sch:param name="tdevalue="tei:bibl"/>
</sch:pattern>
Content model
<content>
 <alternate minOccurs="0"
  maxOccurs="unbounded">

  <textNode/>
  <classRef key="model.gLike"/>
  <classRef key="model.highlighted"/>
  <classRef key="model.pPart.data"/>
  <classRef key="model.pPart.edit"/>
  <classRef key="model.segLike"/>
  <classRef key="model.ptrLike"/>
  <classRef key="model.biblPart"/>
  <classRef key="model.global"/>
 </alternate>
</content>
Schema Declaration
element bibl
{
   tei_att.global.attributes,
   tei_att.canonical.attributes,
   tei_att.cmc.attributes,
   tei_att.declarable.attributes,
   tei_att.docStatus.attributes,
   tei_att.sortable.attributes,
   tei_att.typed.attributes,
   (
      text
    | tei_model.gLike
    | tei_model.highlighted
    | tei_model.pPart.data
    | tei_model.pPart.edit
    | tei_model.segLike
    | tei_model.ptrLike
    | tei_model.biblPart
    | tei_model.global
   )*
}

<body>

<body> (テキスト本文) 前付、後付を除いた、単一の作品の本文全体を示す。 [4. Default Text Structure]
Moduletextstructure
Attributes
Contained by
textstructure: text
May contain
core: bibl l lb lg p pb
textstructure: div
Example
<body>
 <l>Nu scylun hergan hefaenricaes uard</l>
 <l>metudæs maecti end his modgidanc</l>
 <l>uerc uuldurfadur sue he uundra gihuaes</l>
 <l>eci dryctin or astelidæ</l>
 <l>he aerist scop aelda barnum</l>
 <l>heben til hrofe haleg scepen.</l>
 <l>tha middungeard moncynnæs uard</l>
 <l>eci dryctin æfter tiadæ</l>
 <l>firum foldu frea allmectig</l>
 <trailer>primo cantauit Cædmon istud carmen.</trailer>
</body>
Content model
<content>
 <sequence>
  <classRef key="model.global"
   minOccurs="0maxOccurs="unbounded"/>

  <sequence minOccurs="0">
   <classRef key="model.divTop"/>
   <alternate minOccurs="0"
    maxOccurs="unbounded">

    <classRef key="model.global"/>
    <classRef key="model.divTop"/>
   </alternate>
  </sequence>
  <sequence minOccurs="0">
   <classRef key="model.divGenLike"/>
   <alternate minOccurs="0"
    maxOccurs="unbounded">

    <classRef key="model.global"/>
    <classRef key="model.divGenLike"/>
   </alternate>
  </sequence>
  <alternate>
   <sequence minOccurs="1"
    maxOccurs="unbounded">

    <classRef key="model.divLike"/>
    <alternate minOccurs="0"
     maxOccurs="unbounded">

     <classRef key="model.global"/>
     <classRef key="model.divGenLike"/>
    </alternate>
   </sequence>
   <sequence minOccurs="1"
    maxOccurs="unbounded">

    <classRef key="model.div1Like"/>
    <alternate minOccurs="0"
     maxOccurs="unbounded">

     <classRef key="model.global"/>
     <classRef key="model.divGenLike"/>
    </alternate>
   </sequence>
   <sequence>
    <sequence minOccurs="1"
     maxOccurs="unbounded">

     <alternate minOccurs="1maxOccurs="1">
      <elementRef key="schemaSpec"/>
      <classRef key="model.common"/>
     </alternate>
     <classRef key="model.global"
      minOccurs="0maxOccurs="unbounded"/>

    </sequence>
    <alternate minOccurs="0">
     <sequence minOccurs="1"
      maxOccurs="unbounded">

      <classRef key="model.divLike"/>
      <alternate minOccurs="0"
       maxOccurs="unbounded">

       <classRef key="model.global"/>
       <classRef key="model.divGenLike"/>
      </alternate>
     </sequence>
     <sequence minOccurs="1"
      maxOccurs="unbounded">

      <classRef key="model.div1Like"/>
      <alternate minOccurs="0"
       maxOccurs="unbounded">

       <classRef key="model.global"/>
       <classRef key="model.divGenLike"/>
      </alternate>
     </sequence>
    </alternate>
   </sequence>
  </alternate>
  <sequence minOccurs="0"
   maxOccurs="unbounded">

   <classRef key="model.divBottom"/>
   <classRef key="model.global"
    minOccurs="0maxOccurs="unbounded"/>

  </sequence>
 </sequence>
</content>
Schema Declaration
element body
{
   tei_att.global.attributes,
   tei_att.declaring.attributes,
   (
      tei_model.global*,
      ( ( tei_model.divTop, ( tei_model.global | tei_model.divTop )* )? ),
      (
         ( tei_model.divGenLike, ( tei_model.global | tei_model.divGenLike )* )?
      ),
      (
         (
            ( tei_model.divLike, ( tei_model.global | tei_model.divGenLike )* )+
         )
       | (
            (
               tei_model.div1Like,
               ( tei_model.global | tei_model.divGenLike )*
            )+
         )
       | (
            ( ( ( schemaSpec | tei_model.common ), tei_model.global* )+ ),
            (
               (
                  (
                     tei_model.divLike,
                     ( tei_model.global | tei_model.divGenLike )*
                  )+
               )
             | (
                  (
                     tei_model.div1Like,
                     ( tei_model.global | tei_model.divGenLike )*
                  )+
               )
            )?
         )
      ),
      ( ( tei_model.divBottom, tei_model.global* )* )
   )
}

<change>

<change> (変更) 元文書の作成や電子ファイルの改訂においてなされた一つあるいは一連の変更を記述する。 [2.6. The Revision Description 2.4.1. Creation 12.7. Identifying Changes and Revisions]
Moduleheader
Attributes
target(対象) この変更の対象となる一つ以上の要素を指す。
Status Optional
Datatype 1–∞ occurrences of teidata.pointer separated by whitespace
Contained by
header: revisionDesc
May contain
analysis: s
linking: seg
namesdates: persName placeName
character data
Note

who属性は、他の任意の要素を指すことができるが、典型的には、ヘッダ内の他の場所にある、変更に関わった人物とその役割を示すrespStmtまたは<person>要素を指定する。最新のものを最初に書くことを推奨する。status属性を、変更が適用された後の文書の状態を示すために使用してもよい。

Example

who は同じ teiHeader にある respStmtxml:id を指す。指し先が無い場合は Schematron が検出する。

<teiHeader>
 <fileDesc>
  <titleStmt>
   <title>校異源氏物語・きりつぼ</title>
   <author>池田亀鑑</author>
   <respStmt xml:id="encoder">
    <resp when="2020-08-22">TEI Encoding</resp>
    <name>Satoru Nakamura</name>
   </respStmt>
  </titleStmt>
 </fileDesc>
 <revisionDesc status="published">
  <change when="2024-06-28who="#encoder">pb要素のfacs属性を修正しました。facsimile要素を修正しました。</change>
 </revisionDesc>
</teiHeader>
Schematronchange/@who は teiHeader 中の respStmt を指す。

<sch:rule context="tei:change[ @who ]">
<sch:assert test="every $p in tokenize( normalize-space( @who ), '\s+' ) satisfies ( starts-with( $p, '#' ) and //tei:teiHeader//tei:respStmt[ @xml:id eq substring( $p, 2 ) ] )"
 role="error">
改訂記録の @who "<sch:value-of select="@who"/>" に、teiHeader の respStmt を指していない参照があります
/ change/@who "<sch:value-of select="@who"/>" contains a reference that does not
resolve to a respStmt in the teiHeader</sch:assert>
</sch:rule>
Content model
<content>
 <macroRef key="macro.specialPara"/>
</content>
Schema Declaration
element change
{
   tei_att.global.attributes,
   tei_att.ascribed.attributes,
   tei_att.datable.attributes,
   tei_att.docStatus.attributes,
   tei_att.typed.attributes,
   attribute target { list { teidata.pointer+ } }?,
   tei_macro.specialPara
}

<date>

<date> (date) 日付を示す。 [3.6.4. Dates and Times 2.2.4. Publication, Distribution, Licensing, etc. 2.6. The Revision Description 3.12.2.4. Imprint, Size of a Document, and Reprint Information 16.2.3. The Setting Description 14.4. Dates]
Modulecore
Attributes
Member of
Contained by
May contain
analysis: s
linking: seg
namesdates: persName placeName
character data
Example
<date when="1980-02">early February 1980</date>
Example
Given on the <date when="1977-06-12">Twelfth Day
of June in the Year of Our Lord One Thousand Nine Hundred and Seventy-seven of the Republic
the Two Hundredth and first and of the University the Eighty-Sixth.</date>
Example
<date when="1990-09">September 1990</date>
Content model
<content>
 <alternate minOccurs="0"
  maxOccurs="unbounded">

  <textNode/>
  <classRef key="model.gLike"/>
  <classRef key="model.phrase"/>
  <classRef key="model.global"/>
 </alternate>
</content>
Schema Declaration
element date
{
   tei_att.global.attributes,
   tei_att.calendarSystem.attributes,
   tei_att.canonical.attributes,
   tei_att.cmc.attributes,
   tei_att.datable.attributes,
   tei_att.dimensions.attributes,
   tei_att.editLike.attributes,
   tei_att.typed.attributes,
   ( text | tei_model.gLike | tei_model.phrase | tei_model.global )*
}

<distributor>

<distributor> (distributor) テキストの頒布に責任を持つ人物または団体の名前を示す。 [2.2.4. Publication, Distribution, Licensing, etc.]
Moduleheader
Attributes
Member of
Contained by
core: bibl
May contain
analysis: s
linking: seg
namesdates: persName placeName
character data
Example
<distributor>Oxford Text Archive</distributor>
<distributor>Redwood and Burn Ltd</distributor>
Content model
<content>
 <macroRef key="macro.phraseSeq"/>
</content>
Schema Declaration
element distributor
{
   tei_att.global.attributes,
   tei_att.canonical.attributes,
   tei_macro.phraseSeq
}

<div>

<div> (text division) 前付、本文、後付中のテキスト部分を示す。 [4.1. Divisions of the Body]
Moduletextstructure
Attributes
Member of
Contained by
textstructure: body div
May contain
core: bibl l lb lg p pb
textstructure: div
Example
<body>
 <div type="part">
  <head>Fallacies of Authority</head>
  <p>The subject of which is Authority in various shapes, and the object, to repress all
     exercise of the reasoning faculty.</p>
  <div n="1type="chapter">
   <head>The Nature of Authority</head>
   <p>With reference to any proposed measures having for their object the greatest
       happiness of the greatest number [...]</p>
   <div n="1.1type="section">
    <head>Analysis of Authority</head>
    <p>What on any given occasion is the legitimate weight or influence to be attached to
         authority [...] </p>
   </div>
   <div n="1.2type="section">
    <head>Appeal to Authority, in What Cases Fallacious.</head>
    <p>Reference to authority is open to the charge of fallacy when [...] </p>
   </div>
  </div>
 </div>
</body>
Schematron

<sch:rule context="tei:l//tei:div">
<sch:assert test="ancestor::tei:floatingText"> Abstract model violation: Metrical lines (<l> elements) may not contain higher-level structural elements such as <div>, unless <div> is a descendant of <floatingText>.
</sch:assert>
</sch:rule>
Schematron

<sch:rule context="tei:div">
<sch:report test="(ancestor::tei:p or ancestor::tei:ab) and not(ancestor::tei:floatingText)"> Abstract model violation: <p> and <ab> may not contain higher-level structural elements such as <div>, unless <div> is a descendant of <floatingText>.
</sch:report>
</sch:rule>
Content model
<content>
 <sequence>
  <alternate minOccurs="0"
   maxOccurs="unbounded">

   <classRef key="model.divTop"/>
   <classRef key="model.global"/>
  </alternate>
  <sequence minOccurs="0">
   <alternate>
    <sequence minOccurs="1"
     maxOccurs="unbounded">

     <alternate>
      <classRef key="model.divLike"/>
      <classRef key="model.divGenLike"/>
     </alternate>
     <classRef key="model.global"
      minOccurs="0maxOccurs="unbounded"/>

    </sequence>
    <sequence>
     <sequence minOccurs="1"
      maxOccurs="unbounded">

      <alternate minOccurs="1"
       maxOccurs="1">

       <elementRef key="schemaSpec"/>
       <classRef key="model.common"/>
      </alternate>
      <classRef key="model.global"
       minOccurs="0maxOccurs="unbounded"/>

     </sequence>
     <sequence minOccurs="0"
      maxOccurs="unbounded">

      <alternate>
       <classRef key="model.divLike"/>
       <classRef key="model.divGenLike"/>
      </alternate>
      <classRef key="model.global"
       minOccurs="0maxOccurs="unbounded"/>

     </sequence>
    </sequence>
   </alternate>
   <sequence minOccurs="0"
    maxOccurs="unbounded">

    <classRef key="model.divBottom"/>
    <classRef key="model.global"
     minOccurs="0maxOccurs="unbounded"/>

   </sequence>
  </sequence>
 </sequence>
</content>
Schema Declaration
element div
{
   tei_att.global.attributes,
   tei_att.declaring.attributes,
   tei_att.divLike.attributes,
   tei_att.placement.attributes,
   tei_att.typed.attributes,
   tei_att.written.attributes,
   (
      ( tei_model.divTop | tei_model.global )*,
      (
         (
            (
               (
                  (
                     ( tei_model.divLike | tei_model.divGenLike ),
                     tei_model.global*
                  )+
               )
             | (
                  ( ( ( schemaSpec | tei_model.common ), tei_model.global* )+ ),
                  (
                     (
                        ( tei_model.divLike | tei_model.divGenLike ),
                        tei_model.global*
                     )*
                  )
               )
            ),
            ( ( tei_model.divBottom, tei_model.global* )* )
         )?
      )
   )
}

<encodingDesc>

<encodingDesc> (encoding description) 電子テキストとその元資料との関係を示す。 [2.3. The Encoding Description 2.1.1. The TEI Header and Its Components]
Moduleheader
Attributes
Member of
Contained by
header: teiHeader
May contain
core: p
Example
<encodingDesc>
 <p>Basic encoding, capturing lexical information only. All
   hyphenation, punctuation, and variant spellings normalized. No
   formatting or layout information preserved.</p>
</encodingDesc>
Content model
<content>
 <alternate minOccurs="1"
  maxOccurs="unbounded">

  <classRef key="model.encodingDescPart"/>
  <classRef key="model.pLike"/>
 </alternate>
</content>
Schema Declaration
element encodingDesc
{
   tei_att.global.attributes,
   ( tei_model.encodingDescPart | tei_model.pLike )+
}

<facsimile>

<facsimile> 転記または符号化されたテキストではなく、画像データ中にある、書記資料の 表現を示す。 [12.1. Digital Facsimiles]
Moduletranscr
Attributes
Member of
Contained by
textstructure: TEI
transcr: facsimile
May contain
core: graphic
Example
<facsimile>
 <graphic url="page1.png"/>
 <surface>
  <graphic url="page2-highRes.png"/>
  <graphic url="page2-lowRes.png"/>
 </surface>
 <graphic url="page3.png"/>
 <graphic url="page4.png"/>
</facsimile>
Example
<facsimile>
 <surface ulx="0uly="0lrx="200lry="300">
  <graphic url="Bovelles-49r.png"/>
 </surface>
</facsimile>
Schematron

<sch:rule context="tei:facsimile//tei:line | tei:facsimile//tei:zone">
<sch:report test="child::text()[ normalize-space(.) ne '']"> A <facsimile> element represents a text with images, thus
transcribed text should not be present within it.
</sch:report>
</sch:rule>
Content model
<content>
 <sequence>
  <elementRef key="frontminOccurs="0"/>
  <alternate>
   <alternate minOccurs="1"
    maxOccurs="unbounded">

    <classRef key="model.graphicLike"/>
    <elementRef key="surface"/>
    <elementRef key="surfaceGrp"/>
   </alternate>
   <elementRef key="facsimile"
    minOccurs="1maxOccurs="unbounded"/>

  </alternate>
  <elementRef key="backminOccurs="0"/>
 </sequence>
</content>
Schema Declaration
element facsimile
{
   tei_att.global.attributes,
   tei_att.declaring.attributes,
   (
      front?,
      (
         ( tei_model.graphicLike | tei_surface | surfaceGrp )+
       | tei_facsimile+
      ),
      back?
   )
}

<fileDesc>

<fileDesc> (file description) 電子ファイルに関する完全な書誌情報を示す。 [2.2. The File Description 2.1.1. The TEI Header and Its Components]
Moduleheader
Attributes
Contained by
header: teiHeader
May contain
Note

電子ファイルの書誌項目または書誌引用を示す中心となるもの。 タイトル、当該ファイルの出版や頒布に関連する責任表示、他には記述さ れいない書誌情報に関する詳細な事項を含む。また、当該電子ファイルの 元になった、元資料に関する完全な書誌情報も示す。

Example
<fileDesc>
 <titleStmt>
  <title>The shortest possible TEI document</title>
 </titleStmt>
 <publicationStmt>
  <p>Distributed as part of TEI P5</p>
 </publicationStmt>
 <sourceDesc>
  <p>No print source exists: this is an original digital text</p>
 </sourceDesc>
</fileDesc>
Content model
<content>
 <sequence>
  <sequence>
   <elementRef key="titleStmt"/>
   <elementRef key="editionStmt"
    minOccurs="0"/>

   <elementRef key="extentminOccurs="0"/>
   <elementRef key="publicationStmt"/>
   <elementRef key="seriesStmt"
    minOccurs="0maxOccurs="unbounded"/>

   <elementRef key="notesStmt"
    minOccurs="0"/>

  </sequence>
  <elementRef key="sourceDesc"
   minOccurs="1maxOccurs="unbounded"/>

 </sequence>
</content>
Schema Declaration
element fileDesc
{
   tei_att.global.attributes,
   (
      (
         tei_titleStmt,
         editionStmt?,
         extent?,
         tei_publicationStmt,
         seriesStmt*,
         notesStmt?
      ),
      tei_sourceDesc+
   )
}

<graphic>

<graphic> (graphic) テキスト列中にある図、絵、図表の場所を示す。 [3.10. Graphics and Other Non-textual Components 12.1. Digital Facsimiles]
Modulecore
Attributes
Member of
Contained by
analysis: s
linking: seg
namesdates: persName placeName
May containEmpty element
Note

属性mimeTypeは、属性urlが指定する画像のMIME タイプを示すために使われるべきである。

Example
<figure>
 <graphic url="fig1.png"/>
 <head>Figure One: The View from the Bridge</head>
 <figDesc>A Whistleresque view showing four or five sailing boats in the foreground, and a
   series of buoys strung out between them.</figDesc>
</figure>
Example
<facsimile>
 <surfaceGrp n="leaf1">
  <surface>
   <graphic url="page1.png"/>
  </surface>
  <surface>
   <graphic url="page2-highRes.png"/>
   <graphic url="page2-lowRes.png"/>
  </surface>
 </surfaceGrp>
</facsimile>
Example
<facsimile>
 <surfaceGrp n="leaf1xml:id="spi001">
  <surface xml:id="spi001r">
   <graphic type="normal"
    subtype="thumbnailurl="spi/thumb/001r.jpg"/>

   <graphic type="normalsubtype="low-res"
    url="spi/normal/lowRes/001r.jpg"/>

   <graphic type="normal"
    subtype="high-resurl="spi/normal/highRes/001r.jpg"/>

   <graphic type="high-contrast"
    subtype="low-resurl="spi/contrast/lowRes/001r.jpg"/>

   <graphic type="high-contrast"
    subtype="high-resurl="spi/contrast/highRes/001r.jpg"/>

  </surface>
  <surface xml:id="spi001v">
   <graphic type="normal"
    subtype="thumbnailurl="spi/thumb/001v.jpg"/>

   <graphic type="normalsubtype="low-res"
    url="spi/normal/lowRes/001v.jpg"/>

   <graphic type="normal"
    subtype="high-resurl="spi/normal/highRes/001v.jpg"/>

   <graphic type="high-contrast"
    subtype="low-resurl="spi/contrast/lowRes/001v.jpg"/>

   <graphic type="high-contrast"
    subtype="high-resurl="spi/contrast/highRes/001v.jpg"/>

   <zone xml:id="spi001v_detail01">
    <graphic type="normal"
     subtype="thumbnailurl="spi/thumb/001v-detail01.jpg"/>

    <graphic type="normal"
     subtype="low-res"
     url="spi/normal/lowRes/001v-detail01.jpg"/>

    <graphic type="normal"
     subtype="high-res"
     url="spi/normal/highRes/001v-detail01.jpg"/>

    <graphic type="high-contrast"
     subtype="low-res"
     url="spi/contrast/lowRes/001v-detail01.jpg"/>

    <graphic type="high-contrast"
     subtype="high-res"
     url="spi/contrast/highRes/001v-detail01.jpg"/>

   </zone>
  </surface>
 </surfaceGrp>
</facsimile>
Content model
<content>
 <classRef key="model.descLike"
  minOccurs="0maxOccurs="unbounded"/>

</content>
Schema Declaration
element graphic
{
   tei_att.global.attributes,
   tei_att.cmc.attributes,
   tei_att.declaring.attributes,
   tei_att.media.attributes,
   tei_att.resourced.attributes,
   tei_att.typed.attributes,
   tei_model.descLike*
}

<l>

<l> (verse line) 韻文中の1行を示す。行として完全でない場合もある。 [3.13.1. Core Tags for Verse 3.13. Passages of Verse or Drama 7.2.6. Speech Contents]
Modulecore
Attributes
n(数値) 和歌の何句目かを示す。必須とする。
Derived fromatt.global
Status Required
Datatype teidata.text
Member of
Contained by
core: lg p ref title
header: change
linking: seg
textstructure: body div
May contain
analysis: s
linking: seg
namesdates: persName placeName
character data
Example

句は5つ、n は 1 から 5 まで、和歌の中での位置と一致させる。 位置と n のずれは Schematron が検出する。

<lg xml:id="waka-000type="waka"
 rhyme="tanka">

 <l n="1">かきりとて</l>
 <l n="2">わかるゝ道の</l>
 <l n="3">かなしきに</l>
 <l n="4">いかまほしきは</l>
 <l n="5">いのちなりけり</l>
</lg>
Schematron句の @n は、その句が和歌の何句目かと一致する。

<sch:rule context="tei:lg[ @type eq 'waka' ]/tei:l">
<sch:let name="pos"
 value="count( preceding-sibling::tei:l ) + 1"/>

<sch:assert test="@n eq string( $pos )"
 role="error">
この句の @n は <sch:value-of select="$pos"/> であるはずです (いまは "<sch:value-of select="@n"/>")
/ This line's @n should be <sch:value-of select="$pos"/> (found "<sch:value-of select="@n"/>")</sch:assert>
</sch:rule>
Schematron

<sch:rule context="tei:l">
<sch:report test="ancestor::tei:l[not(.//tei:note//tei:l[. = current()])]">Abstract model violation: Metrical lines (<l> elements) may not contain <l> or <lg> elements.</sch:report>
</sch:rule>
Content model
<content>
 <alternate minOccurs="0"
  maxOccurs="unbounded">

  <textNode/>
  <classRef key="model.gLike"/>
  <classRef key="model.phrase"/>
  <classRef key="model.inter"/>
  <classRef key="model.global"/>
 </alternate>
</content>
Schema Declaration
element l
{
   tei_att.global.attribute.xmlid,
   tei_att.global.attribute.xmllang,
   tei_att.global.attribute.xmlbase,
   tei_att.global.attribute.xmlspace,
   tei_att.global.analytic.attribute.ana,
   tei_att.global.change.attribute.change,
   tei_att.global.facs.attribute.facs,
   tei_att.global.linking.attribute.corresp,
   tei_att.global.linking.attribute.synch,
   tei_att.global.linking.attribute.sameAs,
   tei_att.global.linking.attribute.copyOf,
   tei_att.global.linking.attribute.next,
   tei_att.global.linking.attribute.prev,
   tei_att.global.linking.attribute.exclude,
   tei_att.global.linking.attribute.select,
   tei_att.global.rendition.attribute.rend,
   tei_att.global.rendition.attribute.style,
   tei_att.global.rendition.attribute.rendition,
   tei_att.global.responsibility.attribute.cert,
   tei_att.global.responsibility.attribute.resp,
   tei_att.global.source.attribute.source,
   tei_att.cmc.attributes,
   tei_att.enjamb.attributes,
   tei_att.fragmentable.attributes,
   tei_att.metrical.attributes,
   attribute n { teidata.text },
   (
      text
    | tei_model.gLike
    | tei_model.phrase
    | tei_model.inter
    | tei_model.global
   )*
}

<lb>

<lb> (line beginning) ある版における新しい(印刷上の)行の始まりを示す。 [3.11.3. Milestone Elements 7.2.6. Speech Contents]
Modulecore
Attributes
Member of
Contained by
analysis: s
linking: seg
namesdates: persName placeName
textstructure: body div text
transcr: surface zone
May containEmpty element
Note

当該要素にあるグローバル属性nは、要素lbに続く 行と関連する数値を示す。符号化する人は、改行を示す当該数値が、ペー ジ内にある物理的行数またはテキストの論理構造と関連するかについて、 明確で一貫した方針を採るべきである。 一般には、要素lbは、参照する行の開始地点にあるべきである。

要素lbは、散文中における印刷上の行を示すためのものである。 韻文中の行を示す要素lとは注意して使い分けるべきである。

Example

This example shows the encoding of the beginning of each new topographic line within a metrical line, indicating where it occurs in both the 1667 and 1674 editions:

<l>Of Mans First Disobedience,<lb ed="1674"/> and<lb ed="1667"/> the Fruit</l>
<l>Of that Forbidden Tree, whose<lb ed="1667 1674"/> mortal tast</l>
<l>Brought Death into the World,<lb ed="1667"/> and all<lb ed="1674"/> our woe,</l>
Example

This example shows the encoding of the beginning of a new topographical line as a means of preserving the visual appearance of a title page. The break attribute is used to show that the beginning of the new line does not (as elsewhere) mark the start of a new word.

<titlePart>
 <lb/>With Additions, ne-<lb break="no"/>ver before Printed.
</titlePart>
Content model
<content>
 <empty/>
</content>
Schema Declaration
element lb
{
   tei_att.global.attributes,
   tei_att.breaking.attributes,
   tei_att.cmc.attributes,
   tei_att.edition.attributes,
   tei_att.spanning.attributes,
   tei_att.typed.attributes,
   empty
}

<lg>

<lg> (line group) 形式単位としてある、ある韻文の行をまとまりを示す。例えば、連、リフレ イン、詩節など。 [3.13.1. Core Tags for Verse 3.13. Passages of Verse or Drama 7.2.6. Speech Contents]
Modulecore
Attributes
xml:id(識別子) 和歌は API から参照されるため必須とする。
Derived fromatt.global
Status Required
Datatype ID
rhyme(韻構造) 本データベースの和歌はすべて短歌である。
Derived fromatt.metrical
Status Required
Datatype token
Legal values are:
tanka
短歌(5句31音)
type本データベースの lg は和歌のみ。
Derived fromatt.typed
Status Required
Datatype teidata.enumerated
Legal values are:
waka
和歌
Member of
Contained by
core: lg p ref title
header: change
linking: seg
textstructure: body div
May contain
core: l lb lg pb
Note

韻文の行または(普通は見出しが付く)入れ子化された行グループのみを示 す。

Example

第1帖「きりつぼ」の第一首(実データでは waka-001。用例では xml:id の重複を避けて waka-000 としている)。桐壺更衣の辞世の歌。 和歌は本文中の seg の内側に置き、直前の全角空白2文字で字下げを表す。

<seg corresp="https://w3id.org/kouigenjimonogatari/api/items/0009-03.json">  <lg xml:id="waka-000btype="waka"
  rhyme="tanka">

  <l n="1">かきりとて</l>
  <l n="2">わかるゝ道の</l>
  <l n="3">かなしきに</l>
  <l n="4">いかまほしきは</l>
  <l n="5">いのちなりけり</l>
 </lg>いとか</seg>
Schematron和歌は5句からなる。

<sch:rule context="tei:lg[ @type eq 'waka' ]">
<sch:let name="lines"
 value="count( tei:l )"/>

<sch:assert test="$lines eq 5role="error">和歌は5句です (<sch:value-of select="@xml:id"/><sch:value-of select="$lines"/> 句)
/ A waka must have 5 lines (<sch:value-of select="@xml:id"/> has <sch:value-of select="$lines"/>)</sch:assert>
</sch:rule>
Schematron

<sch:rule context="tei:lg">
<sch:assert test="count(descendant::tei:lg|descendant::tei:l|descendant::tei:gap) > 0">An <lg> element must contain at least one child <l>, <lg>, or <gap> element.</sch:assert>
</sch:rule>
Schematron

<sch:rule context="tei:lg">
<sch:report test="ancestor::tei:l[not(.//tei:note//tei:lg[. = current()])]">Abstract model violation: Lines may not contain line groups.</sch:report>
</sch:rule>
Content model
<content>
 <sequence minOccurs="1maxOccurs="1">
  <alternate minOccurs="0"
   maxOccurs="unbounded">

   <classRef key="model.divTop"/>
   <classRef key="model.global"/>
  </alternate>
  <alternate minOccurs="1maxOccurs="1">
   <classRef key="model.lLike"/>
   <classRef key="model.stageLike"/>
   <classRef key="model.labelLike"/>
   <classRef key="model.pPart.transcriptional"/>
   <elementRef key="lg"/>
  </alternate>
  <alternate minOccurs="0"
   maxOccurs="unbounded">

   <classRef key="model.lLike"/>
   <classRef key="model.stageLike"/>
   <classRef key="model.labelLike"/>
   <classRef key="model.pPart.transcriptional"/>
   <classRef key="model.global"/>
   <elementRef key="lg"/>
  </alternate>
  <sequence minOccurs="0"
   maxOccurs="unbounded">

   <classRef key="model.divBottom"/>
   <classRef key="model.global"
    minOccurs="0maxOccurs="unbounded"/>

  </sequence>
 </sequence>
</content>
Schema Declaration
element lg
{
   tei_att.global.attribute.n,
   tei_att.global.attribute.xmllang,
   tei_att.global.attribute.xmlbase,
   tei_att.global.attribute.xmlspace,
   tei_att.global.analytic.attribute.ana,
   tei_att.global.change.attribute.change,
   tei_att.global.facs.attribute.facs,
   tei_att.global.linking.attribute.corresp,
   tei_att.global.linking.attribute.synch,
   tei_att.global.linking.attribute.sameAs,
   tei_att.global.linking.attribute.copyOf,
   tei_att.global.linking.attribute.next,
   tei_att.global.linking.attribute.prev,
   tei_att.global.linking.attribute.exclude,
   tei_att.global.linking.attribute.select,
   tei_att.global.rendition.attribute.rend,
   tei_att.global.rendition.attribute.style,
   tei_att.global.rendition.attribute.rendition,
   tei_att.global.responsibility.attribute.cert,
   tei_att.global.responsibility.attribute.resp,
   tei_att.global.source.attribute.source,
   tei_att.cmc.attributes,
   tei_att.declaring.attributes,
   tei_att.divLike.attribute.org,
   tei_att.divLike.attribute.sample,
   tei_att.fragmentable.attribute.part,
   tei_att.metrical.attribute.met,
   tei_att.metrical.attribute.real,
   tei_att.typed.attribute.subtype,
   attribute xml:id { xsd:ID },
   attribute rhyme { "tanka" },
   attribute type { "waka" },
   (
      ( tei_model.divTop | tei_model.global )*,
      (
         tei_model.lLike
       | tei_model.stageLike
       | tei_model.labelLike
       | tei_model.pPart.transcriptional
       | tei_lg
      ),
      (
         tei_model.lLike
       | tei_model.stageLike
       | tei_model.labelLike
       | tei_model.pPart.transcriptional
       | tei_model.global
       | tei_lg
      )*,
      ( ( tei_model.divBottom, tei_model.global* )* )
   )
}

<name>

<name> (name, proper noun) 固有名詞。 [3.6.1. Referring Strings]
Modulecore
Attributes
Member of
Contained by
May contain
analysis: s
linking: seg
namesdates: persName placeName
character data
Note

TEI名前モジュールが使われる場合には、人々、場所、組織を示す固有名 詞は、それぞれ要素persNameplaceName<orgName>を使い示されるかもしれない。

Example
<name type="person">Thomas Hoccleve</name>
<name type="place">Villingaholt</name>
<name type="org">Vetus Latina Institut</name>
<name type="personref="#HOC001">Occleve</name>
Content model
<content>
 <macroRef key="macro.phraseSeq"/>
</content>
Schema Declaration
element name
{
   tei_att.global.attributes,
   tei_att.cmc.attributes,
   tei_att.datable.attributes,
   tei_att.editLike.attributes,
   tei_att.personal.attributes,
   tei_att.typed.attributes,
   tei_macro.phraseSeq
}

<p>

<p> (paragraph) 散文の段落を示す。 [3.1. Paragraphs 7.2.6. Speech Contents]
Modulecore
Attributes
Member of
Contained by
May contain
analysis: s
linking: seg
namesdates: persName placeName
character data
Example
<p>Hallgerd was outside. <q>There is blood on your axe,</q> she said. <q>What have you
   done?</q>
</p>
<p>
 <q>I have now arranged that you can be married a second time,</q> replied Thjostolf.
</p>
<p>
 <q>Then you must mean that Thorvald is dead,</q> she said.
</p>
<p>
 <q>Yes,</q> said Thjostolf. <q>And now you must think up some plan for me.</q>
</p>
Schematron

<sch:rule context="tei:p">
<sch:report test="(ancestor::tei:ab or ancestor::tei:p) and not( ancestor::tei:floatingText | parent::tei:exemplum | parent::tei:item | parent::tei:note | parent::tei:q | parent::tei:quote | parent::tei:remarks | parent::tei:said | parent::tei:sp | parent::tei:stage | parent::tei:cell | parent::tei:figure )"> Abstract model violation: Paragraphs may not occur inside other paragraphs or <ab> elements.
</sch:report>
</sch:rule>
Schematron

<sch:rule context="tei:l//tei:p">
<sch:assert test="ancestor::tei:floatingText | parent::tei:figure | parent::tei:note"> Abstract model violation: Metrical lines (<l> elements) may not contain higher-level structural elements such as <div>, <p>, or <ab>, unless <p> is a child of <figure> or <note>, or is a descendant of <floatingText>.
</sch:assert>
</sch:rule>
Content model
<content>
 <macroRef key="macro.paraContent"/>
</content>
Schema Declaration
element p
{
   tei_att.global.attributes,
   tei_att.cmc.attributes,
   tei_att.declaring.attributes,
   tei_att.fragmentable.attributes,
   tei_att.written.attributes,
   tei_macro.paraContent
}

<pb>

<pb> (page beginning) テキストのページ境界を、標準的な参照システム示す。 [3.11.3. Milestone Elements]
Modulecore
Attributes
n(数値) 底本のページ番号。必須とする。
Derived fromatt.global
Status Required
Datatype teidata.text
facs(ファクシミリ) 該当箇所の IIIF 画像を指す。必須とする。
Derived fromatt.global.facs
Status Required
Datatype 1–∞ occurrences of teidata.pointer separated by whitespace
corresp(対応) 対応する zone を指す。必須とする。
Derived fromatt.global.linking
Status Required
Datatype 1–∞ occurrences of teidata.pointer separated by whitespace
Member of
Contained by
analysis: s
linking: seg
namesdates: persName placeName
textstructure: body div text
transcr: surface zone
May containEmpty element
Note

当該要素にあるグローバル属性nは、当該要素pbがあ る場所に続いてあるページと関連する数値を示す。符号化する人は、改ペー ジと関連する数値が、物理的な一連の番号になるのか、または印刷されてい る番号になるのかについて、明確で一貫した方針を採るべきである。 一般には、要素pbは、参照するページの始めに置かれるべきである。

Example

第1帖「きりつぼ」の5ページ目。n が底本のページ番号、corresp が 同じ文書内の zonefacs が国立国会図書館デジタルコレクションの IIIF 画像(切り出し領域つき)を指す。facs の座標は、参照先 zoneulx/uly/幅/高さと一致する。

<pb n="5corresp="#zone_0005"
 facs="https://dl.ndl.go.jp/api/iiif/3437686/R0000022/0,0,3445,4706/full/0/default.jpg"/>
Example

対応する zonefacsimile の中にある。1つの見開き (surface)には通常、右半・左半にあたる2つの zone が入り、 pb はその一方を指す。ただし各帖の最初と最後の見開きは片側だけを収めるため、 zone が1つのこともある(全949面のうち86面)。下の f001 がその例。

<surface xml:id="f001ulx="0uly="0"
 lrx="6890lry="4706"
 sameAs="https://dl.ndl.go.jp/api/iiif/3437686/canvas/22">

 <graphic width="6890pxheight="4706px"
  sameAs="https://dl.ndl.go.jp/api/iiif/3437686/R0000022"
  url="https://dl.ndl.go.jp/api/iiif/3437686/R0000022/full/full/0/default.jpg"/>

 <zone xml:id="zone_0005ulx="0uly="0"
  lrx="3445lry="4706"/>

</surface>
Schematronpb/@corresp は facsimile 内の zone を指していなければならない。

<sch:rule context="tei:pb[ @corresp ]">
<sch:assert test="every $p in tokenize( normalize-space( @corresp ), '\s+' ) satisfies ( starts-with( $p, '#' ) and //tei:zone[ @xml:id eq substring( $p, 2 ) ] )"
 role="error">
ページ <sch:value-of select="@n"/> の @corresp "<sch:value-of select="@corresp"/>" に、文書中の zone を指していない参照があります
/ @corresp "<sch:value-of select="@corresp"/>" on page <sch:value-of select="@n"/> contains a reference that does not resolve to a zone in this document</sch:assert>
</sch:rule>
Schematronページ番号は帖の中で単調に増加する。

<sch:rule context="tei:pb[ @n castable as xs:integer ] [ preceding::tei:pb[ @n ][1]/@n castable as xs:integer ]">
<sch:let name="prev"
 value="preceding::tei:pb[ @n ][1]/@n"/>

<sch:report test="xs:integer( @n ) le xs:integer( $prev )"
 role="error">
ページ番号が逆行しています (前は <sch:value-of select="$prev"/>、いまは <sch:value-of select="@n"/>)
/ Page numbers go backwards (previous <sch:value-of select="$prev"/>, current
<sch:value-of select="@n"/>)</sch:report>
</sch:rule>
Content model
<content>
 <empty/>
</content>
Schema Declaration
element pb
{
   tei_att.global.attribute.xmlid,
   tei_att.global.attribute.xmllang,
   tei_att.global.attribute.xmlbase,
   tei_att.global.attribute.xmlspace,
   tei_att.global.analytic.attribute.ana,
   tei_att.global.change.attribute.change,
   tei_att.global.linking.attribute.synch,
   tei_att.global.linking.attribute.sameAs,
   tei_att.global.linking.attribute.copyOf,
   tei_att.global.linking.attribute.next,
   tei_att.global.linking.attribute.prev,
   tei_att.global.linking.attribute.exclude,
   tei_att.global.linking.attribute.select,
   tei_att.global.rendition.attribute.rend,
   tei_att.global.rendition.attribute.style,
   tei_att.global.rendition.attribute.rendition,
   tei_att.global.responsibility.attribute.cert,
   tei_att.global.responsibility.attribute.resp,
   tei_att.global.source.attribute.source,
   tei_att.breaking.attributes,
   tei_att.cmc.attributes,
   tei_att.edition.attributes,
   tei_att.spanning.attributes,
   tei_att.typed.attributes,
   attribute n { teidata.text },
   attribute facs { list { teidata.pointer+ } },
   attribute corresp { list { teidata.pointer+ } },
   empty
}

<persName>

<persName> (personal name) 人物の固有名詞を示す。例えば、名、姓、敬称、追加名など。 [14.2.1. Personal Names]
Modulenamesdates
Attributes
Member of
Contained by
May contain
analysis: s
linking: seg
namesdates: persName placeName
character data
Example
<persName>
 <forename>Edward</forename>
 <forename>George</forename>
 <surname type="linked">Bulwer-Lytton</surname>, <roleName>Baron Lytton of
 <placeName>Knebworth</placeName>
 </roleName>
</persName>
Content model
<content>
 <macroRef key="macro.phraseSeq"/>
</content>
Schema Declaration
element persName
{
   tei_att.global.attributes,
   tei_att.cmc.attributes,
   tei_att.datable.attributes,
   tei_att.editLike.attributes,
   tei_att.personal.attributes,
   tei_att.typed.attributes,
   tei_macro.phraseSeq
}

<placeName>

<placeName> (place name) 絶対的、相対的場所名を示す。 [14.2.3. Place Names]
Modulenamesdates
Attributes
Member of
Contained by
analysis: s
linking: seg
namesdates: persName placeName
May contain
analysis: s
linking: seg
namesdates: persName placeName
character data
Example
<placeName>
 <settlement>Rochester</settlement>
 <region>New York</region>
</placeName>
Example
<placeName>
 <geogName>Arrochar Alps</geogName>
 <region>Argylshire</region>
</placeName>
Example
<placeName>
 <measure>10 miles</measure>
 <offset>Northeast of</offset>
 <settlement>Attica</settlement>
</placeName>
Content model
<content>
 <macroRef key="macro.phraseSeq"/>
</content>
Schema Declaration
element placeName
{
   tei_att.global.attributes,
   tei_att.cmc.attributes,
   tei_att.datable.attributes,
   tei_att.editLike.attributes,
   tei_att.personal.attributes,
   tei_att.typed.attributes,
   tei_macro.phraseSeq
}

<publicationStmt>

<publicationStmt> (publication statement) 電子テキストなどの出版や頒布に関する情報をまとめる。 [2.2.4. Publication, Distribution, Licensing, etc. 2.2. The File Description]
Moduleheader
Attributes
Contained by
header: fileDesc
May contain
Note

TEI準拠としてスキーマが求めるものではないが、出版に関する情報は、 出版者名、頒布者名、関連著作者に続いて、出版の場所、住所、識別子、 可用性、日付が、この順番で出現することが望ましい。

Example
<publicationStmt>
 <publisher>C. Muquardt </publisher>
 <pubPlace>Bruxelles &amp; Leipzig</pubPlace>
 <date when="1846"/>
</publicationStmt>
Example
<publicationStmt>
 <publisher>Chadwyck Healey</publisher>
 <pubPlace>Cambridge</pubPlace>
 <availability>
  <p>Available under licence only</p>
 </availability>
 <date when="1992">1992</date>
</publicationStmt>
Example
<publicationStmt>
 <publisher>Zea Books</publisher>
 <pubPlace>Lincoln, NE</pubPlace>
 <date>2017</date>
 <availability>
  <p>This is an open access work licensed under a Creative Commons Attribution 4.0 International license.</p>
 </availability>
 <ptr target="http://digitalcommons.unl.edu/zeabook/55"/>
</publicationStmt>
Content model
<content>
 <alternate>
  <sequence minOccurs="1"
   maxOccurs="unbounded">

   <classRef key="model.publicationStmtPart.agency"/>
   <classRef key="model.publicationStmtPart.detail"
    minOccurs="0maxOccurs="unbounded"/>

  </sequence>
  <classRef key="model.pLikeminOccurs="1"
   maxOccurs="unbounded"/>

 </alternate>
</content>
Schema Declaration
element publicationStmt
{
   tei_att.global.attributes,
   (
      (
         (
            tei_model.publicationStmtPart.agency,
            tei_model.publicationStmtPart.detail*
         )+
      )
    | tei_model.pLike+
   )
}

<publisher>

<publisher> (publisher) 書誌項目の出版や頒布に責任のある団体の名前を示す。 [3.12.2.4. Imprint, Size of a Document, and Reprint Information 2.2.4. Publication, Distribution, Licensing, etc.]
Modulecore
Attributes
Member of
Contained by
core: bibl
May contain
analysis: s
linking: seg
namesdates: persName placeName
character data
Note

会社を示す、タイトルページにある省略名ではなく、正式な名前を使う。

Example
<imprint>
 <pubPlace>Oxford</pubPlace>
 <publisher>Clarendon Press</publisher>
 <date>1987</date>
</imprint>
Content model
<content>
 <macroRef key="macro.phraseSeq"/>
</content>
Schema Declaration
element publisher
{
   tei_att.global.attributes,
   tei_att.canonical.attributes,
   tei_macro.phraseSeq
}

<ref>

<ref> (reference) 他の場所への参照を定義する。多くは、追加テキストまたはコメントを含む。 [3.7. Simple Links and Cross-References 17.1. Links]
Modulecore
Attributes
Member of
Contained by
May contain
analysis: s
linking: seg
namesdates: persName placeName
character data
Note

属性targetcRefは、排他的に使用される。

Example
See especially <ref target="http://www.natcorp.ox.ac.uk/Texts/A02.xml#s2">the second
sentence</ref>
Example
See also <ref target="#locution">s.v. <term>locution</term>
</ref>.
Schematron

<sch:rule context="tei:ref">
<sch:report test="@target and @cRef">Only one of the attributes @target and @cRef may be supplied on <<sch:name/>>.</sch:report>
</sch:rule>
Content model
<content>
 <macroRef key="macro.paraContent"/>
</content>
Schema Declaration
element ref
{
   tei_att.global.attributes,
   tei_att.cReferencing.attributes,
   tei_att.cmc.attributes,
   tei_att.declaring.attributes,
   tei_att.internetMedia.attributes,
   tei_att.pointing.attributes,
   tei_att.typed.attributes,
   tei_macro.paraContent
}

<resp>

<resp> (responsibility) 人物の知的責任の性質を表す一節を示す。 [3.12.2.2. Titles, Authors, and Editors 2.2.1. The Title Statement 2.2.2. The Edition Statement 2.2.5. The Series Statement]
Modulecore
Attributes
Contained by
core: respStmt
May contain
namesdates: persName placeName
character data
Note

The attribute ref, inherited from the class att.canonical may be used to indicate the kind of responsibility in a normalized form by referring directly to a standardized list of responsibility types, such as that maintained by a naming authority, for example the list maintained at http://www.loc.gov/marc/relators/relacode.html for bibliographic usage.

Example
<respStmt>
 <resp ref="http://id.loc.gov/vocabulary/relators/com.html">compiler</resp>
 <name>Edward Child</name>
</respStmt>
Content model
<content>
 <macroRef key="macro.phraseSeq.limited"/>
</content>
Schema Declaration
element resp
{
   tei_att.global.attributes,
   tei_att.canonical.attributes,
   tei_att.datable.attributes,
   tei_macro.phraseSeq.limited
}

<respStmt>

<respStmt> (statement of responsibility) 著者や編集者など特定の役割を示す要素が充分ではない場合に、テキスト、 版、記録などの知的内容に関する責任を示す。 [3.12.2.2. Titles, Authors, and Editors 2.2.1. The Title Statement 2.2.2. The Edition Statement 2.2.5. The Series Statement]
Modulecore
Attributes
Member of
Contained by
core: bibl
header: titleStmt
May contain
core: name resp
namesdates: persName
Example
<respStmt>
 <resp>transcribed from original ms</resp>
 <persName>Claus Huitfeldt</persName>
</respStmt>
Example
<respStmt>
 <resp>converted to XML encoding</resp>
 <name>Alan Morrison</name>
</respStmt>
Content model
<content>
 <sequence>
  <alternate>
   <sequence>
    <elementRef key="respminOccurs="1"
     maxOccurs="unbounded"/>

    <classRef key="model.nameLike.agent"
     minOccurs="1maxOccurs="unbounded"/>

   </sequence>
   <sequence>
    <classRef key="model.nameLike.agent"
     minOccurs="1maxOccurs="unbounded"/>

    <elementRef key="respminOccurs="1"
     maxOccurs="unbounded"/>

   </sequence>
  </alternate>
  <elementRef key="noteminOccurs="0"
   maxOccurs="unbounded"/>

 </sequence>
</content>
Schema Declaration
element respStmt
{
   tei_att.global.attributes,
   tei_att.canonical.attributes,
   (
      (
         ( tei_resp+, tei_model.nameLike.agent+ )
       | ( tei_model.nameLike.agent+, tei_resp+ )
      ),
      note*
   )
}

<revisionDesc>

<revisionDesc> (revision description) ファイルの改訂履歴を示す。 [2.6. The Revision Description 2.1.1. The TEI Header and Its Components]
Moduleheader
Attributes
Contained by
header: teiHeader
May contain
header: change
Note

直近の変更をリストの先頭に記録する。

Example
<revisionDesc status="embargoed">
 <change when="1991-11-11who="#LB"> deleted chapter 10 </change>
</revisionDesc>
Content model
<content>
 <alternate>
  <elementRef key="listminOccurs="1"
   maxOccurs="unbounded"/>

  <elementRef key="listChange"
   minOccurs="1maxOccurs="unbounded"/>

  <elementRef key="changeminOccurs="1"
   maxOccurs="unbounded"/>

 </alternate>
</content>
Schema Declaration
element revisionDesc
{
   tei_att.global.attributes,
   tei_att.docStatus.attributes,
   ( list+ | listChange+ | tei_change+ )
}

<s>

<s> (s-unit) 文に相当するテキスト単位を示す。 [18.1. Linguistic Segment Categories 8.4.1. Segmentation]
Moduleanalysis
Attributes
Member of
Contained by
analysis: s
linking: seg
namesdates: persName placeName
May contain
analysis: s
linking: seg
namesdates: persName placeName
character data
Note

テキストや句レベルの要素が混在する。また、当該要素自身も含むかもし れない。

要素sが、ある単位の全体を完全に、入れ子なく示す場合には、 正書形の文や、他のテキスト部分を示すために使われるかもしれない。

Example
<head>
 <s>A short affair</s>
</head>
<s>When are you leaving?</s>
<s>Tomorrow.</s>
Schematron

<sch:rule context="tei:s">
<sch:report test="tei:s">You may not nest one <s> element within another: use <seg> instead.</sch:report>
</sch:rule>
Content model
<content>
 <macroRef key="macro.phraseSeq"/>
</content>
Schema Declaration
element s
{
   tei_att.global.attributes,
   tei_att.cmc.attributes,
   tei_att.notated.attributes,
   tei_att.segLike.attributes,
   tei_att.typed.attributes,
   tei_macro.phraseSeq
}

<seg>

<seg> (arbitrary segment) 任意の句レベルのテキスト単位を示す(要素segを含む)。 [17.3. Blocks, Segments, and Anchors 6.2. Components of the Verse Line 7.2.6. Speech Contents]
Modulelinking
Attributes
corresp(対応) 本データベースの API 上の該当箇所を指す。必須とする。
Derived fromatt.global.linking
Status Required
Datatype 1–∞ occurrences of anyURI separated by whitespace
Member of
Contained by
analysis: s
linking: seg standOff
namesdates: persName placeName
transcr: zone
May contain
analysis: s
linking: seg
namesdates: persName placeName
character data
Note

要素segは、何らかの処理対象を想定して、符号化する人の判断 により、使用されるかもしれない。当該要素は、適当な要素が定義されて いないときに、そのテキスト素性を示すために使われる。すなわち、簡易 拡張機能としてある。また、ある部分に識別子を付与するためにも使用さ れる。すなわち、要素<ptr>等から参照される対象を作る。

Example

本文の冒頭。底本の1行が1つの seg にあたり、corresp の URI は items/<ページ番号4桁>-<行2桁>.json の形をとる。 下の例は5ページ目の1行目。lb は各行の開始を示す。

<lb/>
<seg corresp="https://w3id.org/kouigenjimonogatari/api/items/0005-01.json">いつれの御時にか女御更衣あまたさふらひ給けるなかにいとやむことなきゝは</seg>
Content model
<content>
 <macroRef key="macro.paraContent"/>
</content>
Schema Declaration
element seg
{
   tei_att.global.attribute.xmlid,
   tei_att.global.attribute.n,
   tei_att.global.attribute.xmllang,
   tei_att.global.attribute.xmlbase,
   tei_att.global.attribute.xmlspace,
   tei_att.global.analytic.attribute.ana,
   tei_att.global.change.attribute.change,
   tei_att.global.facs.attribute.facs,
   tei_att.global.linking.attribute.synch,
   tei_att.global.linking.attribute.sameAs,
   tei_att.global.linking.attribute.copyOf,
   tei_att.global.linking.attribute.next,
   tei_att.global.linking.attribute.prev,
   tei_att.global.linking.attribute.exclude,
   tei_att.global.linking.attribute.select,
   tei_att.global.rendition.attribute.rend,
   tei_att.global.rendition.attribute.style,
   tei_att.global.rendition.attribute.rendition,
   tei_att.global.responsibility.attribute.cert,
   tei_att.global.responsibility.attribute.resp,
   tei_att.global.source.attribute.source,
   tei_att.cmc.attributes,
   tei_att.notated.attributes,
   tei_att.segLike.attributes,
   tei_att.typed.attributes,
   tei_att.written.attributes,
   attribute corresp
   {
      list
      {
         xsd:anyURI
         {
            pattern = "https://w3id\.org/kouigenjimonogatari/api/items/\d{4}-\d{2}\.json"
         }+
      }
   },
   tei_macro.paraContent
}

<sourceDesc>

<sourceDesc> (source description) 電子テキストが作られた元テキストの情報を示す。 [2.2.7. The Source Description]
Moduleheader
Attributes
Contained by
header: fileDesc
May contain
core: bibl p
Example
<sourceDesc>
 <bibl>
  <title level="a">The Interesting story of the Children in the Wood</title>. In
 <author>Victor E Neuberg</author>, <title>The Penny Histories</title>.
 <publisher>OUP</publisher>
  <date>1968</date>. </bibl>
</sourceDesc>
Example
<sourceDesc>
 <p>Born digital: no previous source exists.</p>
</sourceDesc>
Schematron

<sch:pattern is-a="declarable">
<sch:param name="tde"
 value="tei:sourceDesc"/>

</sch:pattern>
Content model
<content>
 <alternate>
  <classRef key="model.pLikeminOccurs="1"
   maxOccurs="unbounded"/>

  <alternate minOccurs="1"
   maxOccurs="unbounded">

   <classRef key="model.biblLike"/>
   <classRef key="model.sourceDescPart"/>
   <classRef key="model.listLike"/>
  </alternate>
 </alternate>
</content>
Schema Declaration
element sourceDesc
{
   tei_att.global.attributes,
   tei_att.declarable.attributes,
   (
      tei_model.pLike+
    | ( tei_model.biblLike | tei_model.sourceDescPart | tei_model.listLike )+
   )
}

<standOff>

<standOff> リンクト・データや文脈情報、TEI文書に埋め込まれたスタンドオフ・アノテーションをコンテナ化する要素として機能する。 [17.10. The standOff Container]
Modulelinking
Attributes
Member of
Contained by
textstructure: TEI
May contain
core: bibl
linking: seg
transcr: zone
Example

This example shows an encoding of morphosyntactic features similar to the encoding system used by ISO 24611 (MAF).

<TEI xmlns="http://www.tei-c.org/ns/1.0">
 <teiHeader>
<!-- ... -->
 </teiHeader>
 <text>
  <body>
<!-- ... -->
   <p>
    <w xml:id="w51">I</w>
    <w xml:id="w52">wanna</w>
    <w xml:id="w53">put</w>
    <w xml:id="w54">up</w>
    <w xml:id="w55">new</w>
    <w xml:id="w56">wallpaper</w>
    <pc>.</pc>
   </p>
<!-- ... -->
  </body>
 </text>
 <standOff type="morphosyntax">
  <spanGrp type="wordForm">
   <span target="#w51ana="#fs01"/>
   <span target="#w52ana="#fs02"/>
   <span target="#w52ana="#fs03"/>
   <span target="#w53 #w54ana="#fs04"/>
   <span target="#w55ana="#fs05"/>
   <span target="#w56ana="#fs06"/>
  </spanGrp>
  <fs xml:id="fs01">
   <f name="lemma">
    <string>I</string>
   </f>
   <f name="pos">
    <symbol value="PP"/>
   </f>
  </fs>
  <fs xml:id="fs02">
   <f name="lemma">
    <string>want</string>
   </f>
   <f name="pos">
    <symbol value="VBP"/>
   </f>
  </fs>
  <fs xml:id="fs03">
   <f name="lemma">
    <string>to</string>
   </f>
   <f name="pos">
    <symbol value="TO"/>
   </f>
  </fs>
  <fs xml:id="fs04">
   <f name="lemma">
    <string>put up</string>
   </f>
   <f name="pos">
    <symbol value="VB"/>
   </f>
  </fs>
  <fs xml:id="fs05">
   <f name="lemma">
    <string>new</string>
   </f>
   <f name="pos">
    <symbol value="JJ"/>
   </f>
  </fs>
  <fs xml:id="fs06">
   <f name="lemma">
    <string>wallpaper</string>
   </f>
   <f name="pos">
    <symbol value="NN"/>
   </f>
  </fs>
 </standOff>
</TEI>
Example

This example shows an encoding of contextual information which is referred to from the main text.

<TEI xmlns="http://www.tei-c.org/ns/1.0">
 <teiHeader>
<!-- ... -->
 </teiHeader>
 <standOff>
  <listPlace>
   <place xml:id="LATL">
    <placeName>Atlanta</placeName>
    <location>
     <region key="US-GA">Georgia</region>
     <country key="USA">United States of America</country>
     <geo>33.755 -84.39</geo>
    </location>
    <population when="1963"
     type="interpolatedCensusquantity="489359"
     source="https://www.biggestuscities.com/city/atlanta-georgia"/>

   </place>
   <place xml:id="LBHM">
    <placeName>Birmingham</placeName>
    <location>
     <region key="US-AL">Alabama</region>
     <country key="USA">United States of America</country>
     <geo>33.653333 -86.808889</geo>
    </location>
    <population when="1963"
     type="interpolatedCensusquantity="332891"
     source="https://www.biggestuscities.com/city/birmingham-alabama"/>

   </place>
  </listPlace>
 </standOff>
 <text>
  <body>
<!-- ... -->
   <p>Moreover, I am <choice>
     <sic>congnizant</sic>
     <corr>cognizant</corr>
    </choice> of the interrelatedness of all communities and
   <lb/>states. I cannot sit idly by in <placeName ref="#LATL">Atlanta</placeName> and not be concerned about what happens
   <lb/>in <placeName ref="#LBHM">Birmingham</placeName>. <seg xml:id="FQ17">Injustice anywhere is a threat to justice everywhere.</seg> We
   <lb/>are caught in an inescapable network of mutuality, tied in a single garment
   <lb/>of destiny. Whatever affects one directly affects all indirectly. Never
   <lb/>again can we afford to live with the narrow, provincial <soCalled rendition="#Rqms">outside agitator</soCalled>
    <lb/>idea. Anyone who lives inside the United States can never be considered
   <lb/>an outsider anywhere in this country.</p>
<!-- ... -->
  </body>
 </text>
</TEI>
Content model
<content>
 <classRef key="model.standOffPart"
  minOccurs="1maxOccurs="unbounded"/>

</content>
Schema Declaration
element standOff
{
   tei_att.global.attributes,
   tei_att.declaring.attributes,
   tei_att.typed.attributes,
   tei_model.standOffPart+
}

<surface>

<surface> 矩形の座標により、書記の表面を定義する。選択的に、空間や矩形範囲中のひ とつ以上の図表表現をまとめる。 [12.1. Digital Facsimiles 12.2.2. Embedded Transcription]
Moduletranscr
Attributes
attachmentdescribes the method by which this surface is or was connected to the main surface.
Status Optional
Datatype teidata.enumerated
Sample values include:
glued
glued in place
pinned
pinned or stapled in place
sewn
sewn in place
flippingindicates whether the surface is attached and folded in such a way as to provide two writing surfaces.
Status Optional
Datatype teidata.truthValue
Contained by
May contain
core: graphic lb pb
transcr: surface zone
Note

当該要素surfaceは、素材表面にある矩形範囲を示す。 例えば、紙、碑、掲示板、パピルスの巻子など、2次元の面を持つもの。

当該要素で定義される座標空間は、幅が属性lrx - ulx、高さが属 性uly - lryによるグリッド単位で示される。このグリッドは、要 素surfaceを含む画面全体に重ね合わされる。この表面に含まれてい る要素zoneで使われる座標値は、同じグリッドに対する参照と解釈 される。

Example
<facsimile>
 <surface ulx="0uly="0lrx="200lry="300">
  <graphic url="Bovelles-49r.png"/>
 </surface>
</facsimile>
Content model
<content>
 <sequence>
  <alternate minOccurs="0"
   maxOccurs="unbounded">

   <classRef key="model.global"/>
   <classRef key="model.labelLike"/>
   <classRef key="model.graphicLike"/>
  </alternate>
  <sequence minOccurs="0"
   maxOccurs="unbounded">

   <alternate>
    <elementRef key="zone"/>
    <elementRef key="line"/>
    <elementRef key="path"/>
    <elementRef key="surface"/>
    <elementRef key="surfaceGrp"/>
   </alternate>
   <classRef key="model.global"
    minOccurs="0maxOccurs="unbounded"/>

  </sequence>
 </sequence>
</content>
Schema Declaration
element surface
{
   tei_att.global.attributes,
   tei_att.coordinated.attributes,
   tei_att.declaring.attributes,
   tei_att.typed.attributes,
   attribute attachment { teidata.enumerated }?,
   attribute flipping { teidata.truthValue }?,
   (
      ( tei_model.global | tei_model.labelLike | tei_model.graphicLike )*,
      (
         (
            ( tei_zone | line | path | tei_surface | surfaceGrp ),
            tei_model.global*
         )*
      )
   )
}

<TEI>

<TEI> (TEI文書) 一つ以上のmodel.resourceクラスを持つ一つのTEIヘッダを持つ、単一のTEI準拠文書を含む。<teiCorpus>エレメントには複数のTEI要素が含まれてもよい。 [4. Default Text Structure 16.1. Varieties of Composite Text]
Moduletextstructure
Attributes
version当該文書が妥当(に符号化される)TEIスキームの版を示す。
Status Optional
Datatype teidata.version
Note

ガイドラインのメジャーな版は、長い間、P(ProposalのP)と数字からなる名前で呼ばれてきました。このリリースは、P5と呼ばれる5番目のメジャーな版のなかの多くのリリースのひとつです。この属性は、<schemaSpec>source属性によってより適切に関連づけられていない場合、任意のTEI文書を特定のP5ガイドラインのリリースと関連づけることができる。

Contained by
textstructure: TEI
May contain
header: teiHeader
linking: standOff
textstructure: TEI text
transcr: facsimile
Note

当該要素は必須であり、xmlns 属性を用いてTEIの名前空間 http://www.tei-c.org/ns/1.0 を指定することになっている。

Example
<TEI version="3.3.0" xmlns="http://www.tei-c.org/ns/1.0">
 <teiHeader>
  <fileDesc>
   <titleStmt>
    <title>The shortest TEI Document Imaginable</title>
   </titleStmt>
   <publicationStmt>
    <p>First published as part of TEI P2, this is the P5
         version using a namespace.</p>
   </publicationStmt>
   <sourceDesc>
    <p>No source: this is an original work.</p>
   </sourceDesc>
  </fileDesc>
 </teiHeader>
 <text>
  <body>
   <p>This is about the shortest TEI document imaginable.</p>
  </body>
 </text>
</TEI>
Example
<TEI version="2.9.1" xmlns="http://www.tei-c.org/ns/1.0">
 <teiHeader>
  <fileDesc>
   <titleStmt>
    <title>A TEI Document containing four page images </title>
   </titleStmt>
   <publicationStmt>
    <p>Unpublished demonstration file.</p>
   </publicationStmt>
   <sourceDesc>
    <p>No source: this is an original work.</p>
   </sourceDesc>
  </fileDesc>
 </teiHeader>
 <facsimile>
  <graphic url="page1.png"/>
  <graphic url="page2.png"/>
  <graphic url="page3.png"/>
  <graphic url="page4.png"/>
 </facsimile>
</TEI>
Content model
<content>
 <sequence>
  <elementRef key="teiHeader"/>
  <alternate>
   <sequence>
    <classRef key="model.resource"
     minOccurs="1maxOccurs="unbounded"/>

    <elementRef key="TEIminOccurs="0"
     maxOccurs="unbounded"/>

   </sequence>
   <elementRef key="TEIminOccurs="1"
    maxOccurs="unbounded"/>

  </alternate>
 </sequence>
</content>
Schema Declaration
element TEI
{
   tei_att.global.attributes,
   tei_att.typed.attributes,
   attribute version { teidata.version }?,
   ( tei_teiHeader, ( ( tei_model.resource+, tei_TEI* ) | tei_TEI+ ) )
}

<teiHeader>

<teiHeader> (TEI header) 全てのTEI準拠テキストが伴う、電子版のタイトルページを構成する、記述 的・宣言的情報を示す。 [2.1.1. The TEI Header and Its Components 16.1. Varieties of Composite Text]
Moduleheader
Attributes
Contained by
textstructure: TEI
May contain
Note

当該要素は、TEI文書中で無条件に必要となる要素の1つである。

Example
<teiHeader>
 <fileDesc>
  <titleStmt>
   <title>Shakespeare: the first folio (1623) in electronic form</title>
   <author>Shakespeare, William (1564–1616)</author>
   <respStmt>
    <resp>Originally prepared by</resp>
    <name>Trevor Howard-Hill</name>
   </respStmt>
   <respStmt>
    <resp>Revised and edited by</resp>
    <name>Christine Avern-Carr</name>
   </respStmt>
  </titleStmt>
  <publicationStmt>
   <distributor>Oxford Text Archive</distributor>
   <address>
    <addrLine>13 Banbury Road, Oxford OX2 6NN, UK</addrLine>
   </address>
   <idno type="OTA">119</idno>
   <availability>
    <p>Freely available on a non-commercial basis.</p>
   </availability>
   <date when="1968">1968</date>
  </publicationStmt>
  <sourceDesc>
   <bibl>The first folio of Shakespeare, prepared by Charlton Hinman (The Norton Facsimile,
       1968)</bibl>
  </sourceDesc>
 </fileDesc>
 <encodingDesc>
  <projectDesc>
   <p>Originally prepared for use in the production of a series of old-spelling
       concordances in 1968, this text was extensively checked and revised for use during the
       editing of the new Oxford Shakespeare (Wells and Taylor, 1989).</p>
  </projectDesc>
  <editorialDecl>
   <correction>
    <p>Turned letters are silently corrected.</p>
   </correction>
   <normalization>
    <p>Original spelling and typography is retained, except that long s and ligatured
         forms are not encoded.</p>
   </normalization>
  </editorialDecl>
  <refsDecl xml:id="ASLREF">
   <cRefPattern matchPattern="(\S+) ([^.]+)\.(.*)"
    replacementPattern="#xpath(//div1[@n='$1']/div2/[@n='$2']//lb[@n='$3'])">

    <p>A reference is created by assembling the following, in the reverse order as that
         listed here: <list>
      <item>the <att>n</att> value of the preceding <gi>lb</gi>
      </item>
      <item>a period</item>
      <item>the <att>n</att> value of the ancestor <gi>div2</gi>
      </item>
      <item>a space</item>
      <item>the <att>n</att> value of the parent <gi>div1</gi>
      </item>
     </list>
    </p>
   </cRefPattern>
  </refsDecl>
 </encodingDesc>
 <revisionDesc>
  <list>
   <item>
    <date when="1989-04-12">12 Apr 89</date> Last checked by CAC</item>
   <item>
    <date when="1989-03-01">1 Mar 89</date> LB made new file</item>
  </list>
 </revisionDesc>
</teiHeader>
Content model
<content>
 <sequence>
  <elementRef key="fileDesc"/>
  <classRef key="model.teiHeaderPart"
   minOccurs="0maxOccurs="unbounded"/>

  <elementRef key="revisionDesc"
   minOccurs="0"/>

 </sequence>
</content>
Schema Declaration
element teiHeader
{
   tei_att.global.attributes,
   ( tei_fileDesc, tei_model.teiHeaderPart*, tei_revisionDesc? )
}

<text>

<text> (text) ひとつのテキストを示す。単体でも複合体でもよい。例えば、詩、舞台芸術、 随筆、小説、辞書、コーパスなど。 [4. Default Text Structure 16.1. Varieties of Composite Text]
Moduletextstructure
Attributes
Member of
Contained by
textstructure: TEI
May contain
core: lb pb
textstructure: body
Note

当該要素は、別の構造中、例えば引用された語りの任意の場所に挿入され るテキストを示すためには使うべきではない。この場合は、要素 <floatingText>が使われる。

Example
<text>
 <front>
  <docTitle>
   <titlePart>Autumn Haze</titlePart>
  </docTitle>
 </front>
 <body>
  <l>Is it a dragonfly or a maple leaf</l>
  <l>That settles softly down upon the water?</l>
 </body>
</text>
Example

The body of a text may be replaced by a group of nested texts, as in the following schematic:

<text>
 <front>
<!-- front matter for the whole group -->
 </front>
 <group>
  <text>
<!-- first text -->
  </text>
  <text>
<!-- second text -->
  </text>
 </group>
</text>
Content model
<content>
 <sequence>
  <classRef key="model.global"
   minOccurs="0maxOccurs="unbounded"/>

  <sequence minOccurs="0">
   <elementRef key="front"/>
   <classRef key="model.global"
    minOccurs="0maxOccurs="unbounded"/>

  </sequence>
  <alternate>
   <elementRef key="body"/>
   <elementRef key="group"/>
  </alternate>
  <classRef key="model.global"
   minOccurs="0maxOccurs="unbounded"/>

  <sequence minOccurs="0">
   <elementRef key="back"/>
   <classRef key="model.global"
    minOccurs="0maxOccurs="unbounded"/>

  </sequence>
 </sequence>
</content>
Schema Declaration
element text
{
   tei_att.global.attributes,
   tei_att.declaring.attributes,
   tei_att.typed.attributes,
   tei_att.written.attributes,
   (
      tei_model.global*,
      ( ( front, tei_model.global* )? ),
      ( tei_body | group ),
      tei_model.global*,
      ( ( back, tei_model.global* )? )
   )
}

<title>

<title> (title) 作品の完全なタイトルを示す。 [3.12.2.2. Titles, Authors, and Editors 2.2.1. The Title Statement 2.2.5. The Series Statement]
Modulecore
Attributes
type当該タイトルを分類する。
Derived fromatt.typed
Status Optional
Datatype teidata.enumerated
Sample values include:
main
主タイトル。
sub
(subordinate) 副タイトル、部分タイトル。
alt
(alternate) 別タイトル。多くは他言語によるタイトル。当該作品は、このタイ トルで知られている。
short
タイトルの省略形。
desc
(descriptive) タイトルのように当該作品を解説する言い換え。
Note

当該属性は、タイトルを分析し、処理する際に使用されるもので ある。このような処理を必要としない場合、タイトルを分析する必要 はなく、副タイトルなどは全て要素titleの中に入れてしま うことができる。

levelタイトルの書誌情報のレベルを示す。例えば、論文、書籍、雑誌、叢書、 非刊行物など。
Status Optional
Datatype teidata.enumerated
Legal values are:
a
(analytic) 分析的タイトル(例えば、論文や詩など、大きめの刊行物の部分と なるもの)。
m
(monographic) 単行物のタイトル(例えば、書籍や叢書など、複数の巻に別れる作 品のうちのひとつや、独立してある出版物)。
j
(journal) 雑誌のタイトル。
s
(series) 叢書のタイトル。
u
(unpublished) 非刊行物のタイトル(未刊の学位論文など)。
Note

タイトルが要素<analytic>中にある場合、属性 levelがあれば、値は必ず‘a’となる。タイトルが要 素<monogr>中にある場合、属性levelの値は、必 ず‘m’‘j’‘u’のいずれかになる。要素 titleが要素<series>中にある場合、属性 levelの値は必ず‘s’となる。タイトルが要素 <msItem>中にある場合、当該属性値は付与されない。

Member of
Contained by
May contain
analysis: s
linking: seg
namesdates: persName placeName
character data
Note

The attributes key and ref, inherited from the class att.canonical may be used to indicate the canonical form for the title; the former, by supplying (for example) the identifier of a record in some external library system; the latter by pointing to an XML element somewhere containing the canonical form of the title.

Example
<title>Information Technology and the Research Process: Proceedings of
a conference held at Cranfield Institute of Technology, UK,
18–21 July 1989</title>
Example
<title>Hardy's Tess of the D'Urbervilles: a machine readable
edition</title>
Example
<title type="full">
 <title type="main">Synthèse</title>
 <title type="sub">an international journal for
   epistemology, methodology and history of
   science</title>
</title>
Content model
<content>
 <macroRef key="macro.paraContent"/>
</content>
Schema Declaration
element title
{
   tei_att.global.attributes,
   tei_att.canonical.attributes,
   tei_att.cmc.attributes,
   tei_att.datable.attributes,
   tei_att.typed.attribute.subtype,
   attribute type { teidata.enumerated }?,
   attribute level { "a" | "m" | "j" | "s" | "u" }?,
   tei_macro.paraContent
}

<titleStmt>

<titleStmt> (title statement) 作品や知的内容に責任のあるもののタイトルに関する情報をまとめる。 [2.2.1. The Title Statement 2.2. The File Description]
Moduleheader
Attributes
Contained by
header: fileDesc
May contain
Example
<titleStmt>
 <title>Capgrave's Life of St. John Norbert: a machine-readable transcription</title>
 <respStmt>
  <resp>compiled by</resp>
  <name>P.J. Lucas</name>
 </respStmt>
</titleStmt>
Content model
<content>
 <sequence>
  <elementRef key="titleminOccurs="1"
   maxOccurs="unbounded"/>

  <classRef key="model.respLike"
   minOccurs="0maxOccurs="unbounded"/>

 </sequence>
</content>
Schema Declaration
element titleStmt
{
   tei_att.global.attributes,
   ( tei_title+, tei_model.respLike* )
}

<zone>

<zone> 要素surfaceにある表面上の矩形範囲を定義する。 [12.1. Digital Facsimiles 12.2.2. Embedded Transcription]
Moduletranscr
Attributes
rotateindicates the amount by which this zone has been rotated clockwise, with respect to the normal orientation of the parent surface element as implied by the dimensions given in the <msDesc> element or by the coordinates of the surface itself. The orientation is expressed in arc degrees.
Status Optional
Datatype teidata.numeric
Default 0
Member of
Contained by
linking: standOff
transcr: surface zone
May contain
core: graphic lb pb
linking: seg
transcr: surface zone
character data
Note

要素zoneが表す場所は全て、左表システムを参照して定義される。 当該要素zoneに含まれる要素graphicは、当該要素 zoneが表す面全体を示す。

Example
<surface ulx="14.54uly="16.14lrx="0"
 lry="0">

 <graphic url="stone.jpg"/>
 <zone points="4.6,6.3 5.25,5.85 6.2,6.6 8.19222,7.4125 9.89222,6.5875 10.9422,6.1375 11.4422,6.7125 8.21722,8.3125 6.2,7.65"/>
</surface>

This example defines a non-rectangular zone: see the illustration in section [ID PH-surfzone in TEI Guidelines].

Example
<facsimile>
 <surface ulx="50uly="20lrx="400"
  lry="280">

  <zone ulx="0uly="0lrx="500lry="321">
   <graphic url="graphic.png"/>
  </zone>
 </surface>
</facsimile>

This example defines a zone which has been defined as larger than its parent surface in order to match the dimensions of the graphic it contains.

Content model
<content>
 <alternate minOccurs="0"
  maxOccurs="unbounded">

  <textNode/>
  <classRef key="model.gLike"/>
  <classRef key="model.graphicLike"/>
  <classRef key="model.global"/>
  <elementRef key="surface"/>
  <classRef key="model.linePart"/>
 </alternate>
</content>
Schema Declaration
element zone
{
   tei_att.global.attributes,
   tei_att.coordinated.attributes,
   tei_att.typed.attributes,
   tei_att.written.attributes,
   attribute rotate { teidata.numeric }?,
   (
      text
    | tei_model.gLike
    | tei_model.graphicLike
    | tei_model.global
    | tei_surface
    | tei_model.linePart
   )*
}

Schema tei_kouigenji: Model classes

model.attributable

model.attributable groups elements that contain a word or phrase that can be attributed to a source. [3.3.3. Quotation 4.3.2. Floating Texts]
Moduletei
Used by
Membersmodel.quoteLike

model.biblLike

model.biblLike 書誌情報を含む要素をまとめる。 [3.12. Bibliographic Citations and References]
Moduletei
Used by
Membersbibl

model.biblPart

model.biblPart 書誌情報の項目を表す要素をまとめる。 [3.12. Bibliographic Citations and References]
Moduletei
Used by
Membersmodel.imprintPart [distributor publisher] model.respLike [author respStmt] availability bibl

model.common

model.common 塊レベルと挿入レベルの要素をまとめる。 [1.3. The TEI Class System]
Moduletei
Used by
Membersmodel.cmc model.divPart [model.lLike [l] model.pLike [p] lg] model.inter [model.attributable [model.quoteLike] model.biblLike [bibl] model.egLike model.labelLike model.listLike model.oddDecl model.stageLike]
Note

当該クラスは、塊レベルと挿入レベルの要素集合を定義する。当該クラス は、テキスト部分の要素を含む、多くの内容モデルで使われる。

model.dateLike

model.dateLike 時間表現用の要素をまとめる。 [3.6.4. Dates and Times 14.4. Dates]
Moduletei
Used by
Membersdate

model.divBottom

model.divBottom テキストの終わりに現れる要素をまとめる。 [4.2. Elements Common to All Divisions]
Moduletei
Used by
Membersmodel.divBottomPart model.divWrapper

model.divLike

model.divLike 番号づけられていない、共通構造部分を示す要素をまとめる。
Moduletei
Used by
Membersdiv

model.divPart

model.divPart テキスト部分中にある段落レベルの要素をまとめる。 [1.3. The TEI Class System]
Moduletei
Used by
Membersmodel.lLike [l] model.pLike [p] lg
Note

当該要素クラスは、クラスmodel.interの メンバーを含まないことに注意すること。 クラスmodel.interは、段落レベル項目内 または間にのみ出現可能である。

model.divTop

model.divTop テキスト部分の始まりに現れる要素をまとめる。 [4.2. Elements Common to All Divisions]
Moduletei
Used by
Membersmodel.divTopPart [model.headLike] model.divWrapper

model.divTopPart

model.divTopPart テキスト部分の始まりにのみ現れる要素をまとめる。 [4.6. Title Pages]
Moduletei
Used by
Membersmodel.headLike

model.emphLike

model.emphLike 印刷上他とは異なり、特定の機能が付与されている、句レベルの要素をまと める。 [3.3. Highlighting and Quotation]
Moduletei
Used by
Memberstitle

model.global

model.global TEIデータ内のどこでも出現可能な要素をまとめる。 [1.3. The TEI Class System]
Moduletei
Used by
Membersmodel.global.edit model.global.meta model.milestoneLike [lb pb] model.noteLike

model.graphicLike

model.graphicLike 画像や式などを含む要素をまとめる。 [3.10. Graphics and Other Non-textual Components]
Moduletei
Used by
Membersgraphic

model.highlighted

model.highlighted 印刷上他とは異なる、句レベルの要素をまとめる。 [3.3. Highlighting and Quotation]
Moduletei
Used by
Membersmodel.emphLike [title] model.hiLike

model.imprintPart

model.imprintPart 刊記にある書誌情報要素をまとめる。 [3.12. Bibliographic Citations and References]
Moduletei
Used by
Membersdistributor publisher

model.inter

model.inter 句相当レベルの要素内または間に出現可能な要素をまとめる。 [1.3. The TEI Class System]
Moduletei
Used by
Membersmodel.attributable [model.quoteLike] model.biblLike [bibl] model.egLike model.labelLike model.listLike model.oddDecl model.stageLike

model.limitedPhrase

model.limitedPhrase 現存する元資料から転記するために使用される要素を除く、句レベルの要素 をまとめる。 [1.3. The TEI Class System]
Moduletei
Used by
Membersmodel.emphLike [title] model.hiLike model.pPart.data [model.addressLike model.dateLike [date] model.measureLike model.nameLike [model.nameLike.agent [name persName] model.offsetLike model.persNamePart model.placeStateLike [model.placeNamePart [placeName] ] ] ] model.pPart.editorial model.pPart.msdesc model.phrase.xml model.ptrLike [ref]

model.linePart

model.linePart groups transcriptional elements which appear within lines or zones of a source-oriented transcription within a <sourceDoc> element.
Moduletei
Used by
Membersmodel.hiLike seg zone

model.lLike

model.lLike 韻文の行のような、韻律的構成要素となる要素をまとめる。
Moduletei
Used by
Membersl

model.milestoneLike

model.milestoneLike 参照システムを示すための、標石要素相当の要素をまとめる。 [1.3. The TEI Class System 3.11.3. Milestone Elements]
Moduletei
Used by
Memberslb pb

model.nameLike

model.nameLike 人物、場所、団体に名前を付与する、または参照する要素をまとめる。
Moduletei
Used by
Membersmodel.nameLike.agent [name persName] model.offsetLike model.persNamePart model.placeStateLike [model.placeNamePart [placeName] ]
Note

日付欄、住所情報、責任表示等に現れる、名前を示す要素の親集合。

model.nameLike.agent

model.nameLike.agent 個人や団体の名前を含む要素をまとめる。 [3.6. Names, Numbers, Dates, Abbreviations, and Addresses]
Moduletei
Used by
Membersname persName
Note

当該クラスは、人物や団体の名前を参照する要素の内容モデル中で使用さ れる。

model.paraPart

model.paraPart groups elements that may appear in paragraphs and similar elements. [3.1. Paragraphs]
Moduletei
Used by
Membersmodel.gLike model.global [model.global.edit model.global.meta model.milestoneLike [lb pb] model.noteLike] model.inter [model.attributable [model.quoteLike] model.biblLike [bibl] model.egLike model.labelLike model.listLike model.oddDecl model.stageLike] model.lLike [l] model.phrase [model.graphicLike [graphic] model.highlighted [model.emphLike [title] model.hiLike] model.lPart model.pPart.data [model.addressLike model.dateLike [date] model.measureLike model.nameLike [model.nameLike.agent [name persName] model.offsetLike model.persNamePart model.placeStateLike [model.placeNamePart [placeName] ] ] ] model.pPart.edit [model.pPart.editorial model.pPart.transcriptional] model.pPart.msdesc model.phrase.xml model.ptrLike [ref] model.segLike [s seg] model.specDescLike] lg

model.phrase

model.phrase 独立した語句レベルに出現する要素をまとめる。 [1.3. The TEI Class System]
Moduletei
Used by
Membersmodel.graphicLike [graphic] model.highlighted [model.emphLike [title] model.hiLike] model.lPart model.pPart.data [model.addressLike model.dateLike [date] model.measureLike model.nameLike [model.nameLike.agent [name persName] model.offsetLike model.persNamePart model.placeStateLike [model.placeNamePart [placeName] ] ] ] model.pPart.edit [model.pPart.editorial model.pPart.transcriptional] model.pPart.msdesc model.phrase.xml model.ptrLike [ref] model.segLike [s seg] model.specDescLike
Note

当該要素クラスは、クラスinterにある大きめの要素、すな わちの中で出現可能である。散文においては、当該要素 は、段落、リスト項目、韻文行などの中で出現可能である。

model.placeNamePart

model.placeNamePart 場所名の部分となる要素をまとめる。 [14.2.3. Place Names]
Moduletei
Used by
MembersplaceName

model.placeStateLike

model.placeStateLike 場所の変容を示す要素をまとめる。
Moduletei
Used by
Membersmodel.placeNamePart [placeName]

model.pLike

model.pLike 段落相当の要素をまとめる。
Moduletei
Used by
Membersp

model.pPart.data

model.pPart.data 名前、日付、数値、大きさなどを示す、句レベルの要素をまとめる。 [3.6. Names, Numbers, Dates, Abbreviations, and Addresses]
Moduletei
Used by
Membersmodel.addressLike model.dateLike [date] model.measureLike model.nameLike [model.nameLike.agent [name persName] model.offsetLike model.persNamePart model.placeStateLike [model.placeNamePart [placeName] ] ]

model.pPart.edit

model.pPart.edit 単純な編集上の修正や転記を示す、句レベルの要素をまとめる。 [3.5. Simple Editorial Changes]
Moduletei
Used by
Membersmodel.pPart.editorial model.pPart.transcriptional

model.ptrLike

model.ptrLike 場所や参照を示すための要素をまとめる。 [3.7. Simple Links and Cross-References]
Moduletei
Used by
Membersref

model.publicationStmtPart.agency

model.publicationStmtPart.agency TEIヘダーの要素publicationStmt内に出現する要素をまとめる。 [2.2.4. Publication, Distribution, Licensing, etc.]
Moduletei
Used by
Membersdistributor publisher

model.publicationStmtPart.detail

model.publicationStmtPart.detail TEIヘダーの要素publicationStmt内に出現する要素をまとめる。 [2.2.4. Publication, Distribution, Licensing, etc.]
Moduletei
Used by
Membersmodel.ptrLike [ref] availability date

model.resource

model.resource ヘダーやTEI文書を構成するテキストと共に出現する、非テキスト要素をま とめる。 [1.3. The TEI Class System]
Moduletei
Used by
Membersfacsimile standOff text

model.respLike

model.respLike 知的責任を示す要素をまとめる。例えば、書誌情報要素内にあるもの。
Moduletei
Used by
Membersauthor respStmt

model.segLike

model.segLike 任意の区分で使用される要素をまとめる。 [17.3. Blocks, Segments, and Anchors 18.1. Linguistic Segment Categories]
Moduletei
Used by
Memberss seg
Note

どの区分、どのコード、どの属性値を使うかを決める原則は、関連する TEIヘダー内の要素encodingDescにある要素 <segmentation>中で明示的に宣言されるべきである。

model.standOffPart

model.standOffPart groups elements which may be used as children of standOff.
Moduletei
Used by
Membersmodel.annotationLike model.biblLike [bibl] model.global.meta model.listLike seg zone

model.teiHeaderPart

model.teiHeaderPart TEIヘダー内で高々1回出現する、上位レベルの要素をまとめる。
Moduletei
Used by
MembersencodingDesc

Schema tei_kouigenji: Attribute classes

att.ascribed

att.ascribed 特定個人の発話や行動を示す要素に付随する。 [3.3.3. Quotation 8.3. Elements Unique to Spoken Texts]
Moduletei
Memberschange
Attributes
who当該要素の内容が示す人物を示す。
Status Optional
Datatype 1–∞ occurrences of teidata.pointer separated by whitespace

In the following example from Hamlet, speeches (<sp>) in the body of the play are linked to <role> elements in the <castList> using the who attribute.

<castItem type="role">
 <role xml:id="Barnardo">Bernardo</role>
</castItem>
<castItem type="role">
 <role xml:id="Francisco">Francisco</role>
 <roleDesc>a soldier</roleDesc>
</castItem>
<!-- ... -->
<sp who="#Barnardo">
 <speaker>Bernardo</speaker>
 <l n="1">Who's there?</l>
</sp>
<sp who="#Francisco">
 <speaker>Francisco</speaker>
 <l n="2">Nay, answer me: stand, and unfold yourself.</l>
</sp>
Note

転記された音声の場合、これは通常、参加者または参加者グループを識別する。他のコンテキストでは、識別された<person>要素を指し示す。

att.breaking

att.breaking 当該要素が空白と同じ方法で正字トークンの終わりを示すとみなされるかどうかを示す属性を提供する。 [3.11.3. Milestone Elements]
Moduletei
Memberslb pb
Attributes
breakこの属性を持つ要素が空白と同じ方法で正字トークンの終わりを示すとみなされるべきかどうかを示す。
Status Recommended
Datatype teidata.enumerated
Sample values include
yes
この属性を持つ要素は、隣接する任意の空白の存在に関係なく、隣接する正字法トークンの終わりをマークするとみなされる。
no
この属性を持つ要素は、隣接する空白の存在に関係なく、隣接する正字法トークンの終わりをマークしないとみなされる。
maybe
当該符号化はこの問題に関していかなる立場もとらない。

In the following lines from the Dream of the Rood, the words lāðost and reord-berendum each start on one line and continue onto the next.

<ab> ...eƿesa tome iu icƿæs ȝeƿorden ƿita heardoſt .
leodum la<lb break="no"/> ðost ærþan ichim lifes
ƿeȝ rihtne ȝerymde reord be<lb break="no"/>
rendum hƿæt me þaȝeƿeorðode ƿuldres ealdor ofer...
</ab>

att.calendarSystem

att.calendarSystem provides attributes for indicating calendar systems to which a date belongs. [3.6.4. Dates and Times 14.4. Dates]
Moduletei
Membersdate
Attributes
calendarこの要素を含むコンテントにおける日付の暦やシステムを示す。
Status Optional
Datatype 1–∞ occurrences of teidata.pointer separated by whitespace
Schematron

<sch:rule 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>
He was born on <date calendar="#gregorian">Feb. 22, 1732</date> (<date calendar="#julianwhen="1732-02-22">Feb. 11, 1731/32,
O.S.</date>).
He was born on <date calendar="#gregorian #julian"
 when="1732-02-22">
Feb. 22, 1732
(Feb. 11, 1731/32, O.S.)</date>.
Note

calendar属性は(att.datable.customクラスで定義されるdatingMethod属性と異なり、 親要素によって定義される原資料の日付の暦日システムを定義するものであり、 どの暦日に日付を正規化するかではない。

att.canonical

att.canonical 名前やタイトルのような表現を参照対象についての典拠情報と関連付けるのに利用する属性を提供する。 [14.1.1. Linking Names and Their Referents]
Moduletei
Membersatt.naming [att.personal [name persName placeName] author] bibl date distributor publisher resp respStmt title
Attributes
key何らかのコード化された値を用いて、名付けられたエンティティを識別する外部的に定義された手段を提供する。
Status Optional
Datatype teidata.text
<author>
 <name key="Hugo, Victor (1802-1885)"
  ref="http://www.idref.fr/026927608">
Victor Hugo</name>
</author>
Note

値はデータベースにおけるユニークな識別子や、外部で定義された指示対象を特定するなんらかの文字列であってよい。key属性の値に関してさだまった構文は提案されていない。なぜならば、それぞれのプロジェクトのやりかたに完全に依存するからである。同様の理由によって、データの相互交換においてこの属性は推奨されない。在るプロジェクトで用いられた値が他のプロジェクトの値と異なることを保証できないからである。そのような場面における魔法石的対処は、RFC4151に定義されるタグURIを値とするref属性を用いて、標準的なウェブにおける習慣にしたがってmagic tokenを使うことである。

ref(参照) 一つ以上のURIを用いて、名付けられたエンティティの完全な定義かIDを参照するための明確な手段を提供する。
Status Optional
Datatype 1–∞ occurrences of teidata.pointer separated by whitespace
<name ref="http://viaf.org/viaf/109557338"
 type="person">
Seamus Heaney</name>
Note

値は1つまたは複数のXML要素あるいは、空白によって区切られた1つまたは複数のURIを指し示すものでなければならない。1つ以上の値が与えられているときは、その名前が複数の異るエンティティに対応することを示唆する。

Example

In this contrived example, a canonical reference to the same organisation is provided in four different ways.

<author n="1">
 <name ref="http://nzetc.victoria.ac.nz/tm/scholarly/name-427308.html"
  type="organisation">
New Zealand Parliament, Legislative Council</name>
</author>
 
<author n="2">
 <name ref="nzvn:427308"
  type="organisation">
New Zealand Parliament, Legislative Council</name>
</author>
 
<author n="3">
 <name ref="./named_entities.xml#o427308"
  type="organisation">
New Zealand Parliament, Legislative Council</name>
</author>
 

<author n="4">
 <name key="name-427308"
  type="organisation">
New Zealand Parliament, Legislative Council</name>
</author>

The first presumes the availability of an internet connection and a processor that can resolve a URI (most can). The second requires, in addition, a <prefixDef> that declares how the nzvm prefix should be interpreted. The third does not require an internet connection, but does require that a file named named_entities.xml be in the same directory as the TEI document. The fourth requires that an entire external system for key resolution be available.

att.cmc

att.cmc (computer-mediated communication) provides attributes categorizing how the element content was created in a CMC environment.
Moduletei
Membersbibl date graphic l lb lg name p pb persName placeName ref s seg title
Attributes
generatedBy(generated by) categorizes how the content of an element was generated in a CMC environment.
Status Optional
Datatype teidata.enumerated
Schematron

<sch:rule context="tei:*[@generatedBy]">
<sch:assert test="ancestor-or-self::tei:post">The @generatedBy attribute is for use within a <post> element.</sch:assert>
</sch:rule>
Suggested values include:
human
the content was ‘naturally’ typed or spoken by a human user
template
the content was generated after a human user activated a template for its insertion
system
the content was generated by the system, i.e. the CMC environment
bot
the content was generated by a bot, i.e. a non-human agent, typically one that is not part of the CMC environment itself
unspecified
the content was generated by an unknown or unspecified process

automatic system message in chat: user moves on to another chatroom

<post type="eventgeneratedBy="system"
 who="#systemrend="color:blue">

 <p>
  <name type="nicknamecorresp="#A02">McMike</name> geht
   in einen anderen Raum: <name type="roomname">Kreuzfahrt</name>
 </p>
</post>

automatic system message in chat: user enters a chatroom

<post type="eventgeneratedBy="system">
 <p>
  <name type="nicknamecorresp="#A08">c_bo</name> betritt
   den Raum. </p>
</post>

automatic system message in chat: user changes his font color

<post type="eventgeneratedBy="system"
 rend="color:red">

 <p>
  <name type="nicknamecorresp="#A08">c_bo</name> hat die
   Farbe gewechselt.
 </p>
</post>

An automatic signature of user including an automatic timestamp (Wikipedia discussion, anonymized). The specification of generatedBy at the inner element <signed> is meant to override the specification at the outer element <post>. This is generally possible when the outer generatedBy value is "human".

<post type="standardgeneratedBy="human"
 indentLevel="2synch="#t00394407who="#WU00005582">

 <p> Kurze Nachfrage: Die Hieros für den Goldnamen stammen
   auch von Beckerath gem. Literatur ? Grüße --</p>
 <signed generatedBy="template"
  rend="inline">

  <gap reason="signatureContent"/>
  <time generatedBy="template">18:50, 22. Okt. 2008 (CEST)</time>
 </signed>
</post>

Wikipedia talk page: user signature

<post type="writtengeneratedBy="human">
<!-- ... main content of posting ... -->
 <signed generatedBy="template">
  <gap reason="signatureContent"/>
  <time generatedBy="template">12:01, 12. Jun. 2009 (CEST)</time>
 </signed>
</post>

att.coordinated

att.coordinated 2次元座標システムによる、親要素の場所を示す属性。
Moduletranscr
Memberssurface zone
Attributes
startこのzoneまたはsurface要素で示される記述の少なくとも開始点を含むようなテクストの翻刻内の要素を示す。
Status Optional
Datatype teidata.pointer
ulx矩形における左上点のX軸の値を示す。
Status Optional
Datatype teidata.numeric
uly矩形における左上点のY軸の値を示す。
Status Optional
Datatype teidata.numeric
lrx矩形における右下点のX軸の値を示す。
Status Optional
Datatype teidata.numeric
lry矩形における右下点のY軸の値を示す。
Status Optional
Datatype teidata.numeric
points当該の領域を取り囲む線上の点のXとY軸を与える一連の数値の組を持つ他の属性によって指定されたバウンディングボックス内の2次元の領域を特定する。
Status Optional
Datatype 3–∞ occurrences of teidata.point separated by whitespace

att.cReferencing

att.cReferencing ポインタのターゲットを識別する手段としてcanonical referenceを提供するために使用される属性を提供する。
Moduletei
Membersref
Attributes
cRef(基準的形式の参照) TEIヘダー内の要素<refsDecl>で定義されているスキームにある、基準的参照形式により、当該ポインタの参照場所を示す。
Status Optional
Datatype teidata.text
Note

17.2.5. Canonical References 節での正規化参照を解決するためのアルゴリズムが適用される時にその結果が対象への正しいURI参照となるように、 cRef の値は作られるべきである

<refsDecl>decls 属性とともに示されてもよい。現行のガイドラインが <ptr> 要素に渡すのは、単一の符号化された正規化参照のみである。

att.datable

att.datable 日付や時間または時間事象を含む要素の正規化手法を示す属性を示す。 [3.6.4. Dates and Times 14.4. Dates]
Moduletei
Membersauthor change date name persName placeName resp title
Attributes
period年代測定可能な事柄が起きたとされる名前付の時間幅を定義する、 何らかの場所へのポインタを提供する。
Status Optional
Datatype 1–∞ occurrences of teidata.pointer separated by whitespace
Note

この‘親クラス(スーパークラス)’は、 正規化された時間情報を示すために用いる属性を提供する。デフォルト値として、当該属性は、 クラスatt.datable.w3cが付与されている。 名前と日付に関するモジュールが使用される場合、当該クラスは、クラス att.datable.isoから属性が与えられる。一般には、 W3Cのデータ形式に従った属性値は、ISO8601に従った属性値の下位集合をなす。 しかし、より強力な表現力を持つISOのデータ形式が必要にはならないかもしれない。 W3Cのデータ形式に対するさらに強力な表現力をサポートするソフトウェアも存在する。

att.datable.custom

att.datable.custom 年代を特定できるイベントを含む要素を(たとえば、 W3CやISOで用いられるグレゴリオ暦以外の)なんらかの暦システムで正規化する属性を提供する。 [14.4. Dates]
Modulenamesdates
Membersatt.datable [author change date name persName placeName resp title]
Attributes
when-custom何らかの標準的な準形式で、日付や時刻の値を示す。
Status Optional
Datatype 1–∞ occurrences of teidata.word separated by whitespace

The following are examples of custom date or time formats that are not valid ISO or W3C format normalizations, normalized to a different dating system

<p>Alhazen died in Cairo on the
<date when="1040-03-06"
  when-custom="431-06-12">
12th day of Jumada t-Tania, 430 AH
 </date>.</p>
<p>The current world will end at the
<date when="2012-12-21"
  when-custom="13.0.0.0.0">
end of B'ak'tun 13</date>.</p>
<p>The Battle of Meggidu
(<date when-custom="Thutmose_III:23">23rd year of reign of Thutmose III</date>).</p>
<p>Esidorus bixit in pace annos LXX plus minus sub
<date when-custom="Ind:4-10-11">die XI mensis Octobris indictione IIII</date>
</p>

Not all custom date formulations will have Gregorian equivalents.

The when-custom attribute and other custom dating are not constrained to a datatype by the TEI, but individual projects are recommended to regularize and document their dating formats.

notBefore-custom何らかの標準的な形式で、あるイベントに関して「この時点より前ではない」という日付を示す。
Status Optional
Datatype 1–∞ occurrences of teidata.word separated by whitespace
notAfter-custom何らかの標準的な形式で、あるイベントに関して「この時点より後ではない」という日付を示す。
Status Optional
Datatype 1–∞ occurrences of teidata.word separated by whitespace
from-custom何らかの標準的な形式で期間の開始時点を示す。
Status Optional
Datatype 1–∞ occurrences of teidata.word separated by whitespace
<event xml:id="FIRE1"
 datingMethod="#julianfrom-custom="1666-09-02"
 to-custom="1666-09-05">

 <head>The Great Fire of London</head>
 <p>The Great Fire of London burned through a large part
   of the city of London.</p>
</event>
to-custom何らかの標準的な形式で期間の終了時点を示す。
Status Optional
Datatype 1–∞ occurrences of teidata.word separated by whitespace
datingPointある時点につけた名前とその事柄が起きたとされる時間をともに定義している場所へのポインタを示す。たとえば、「令和改元」という日付をともなうID付きイベント要素を作成した場合にそのIDに対する参照を行う。
Status Optional
Datatype teidata.pointer
datingMethodここで提供するポインタは、<calendar> 要素もしくは日付を示す属性の値を解釈する何らかの方式を指す。
Status Optional
Datatype teidata.pointer
Contayning the Originall, Antiquity, Increaſe, Moderne
eſtate, and deſcription of that Citie, written in the yeare
<date when-custom="1598calendar="#julian"
 datingMethod="#julian">
1598</date>. by Iohn Stow
Citizen of London.

In this example, the calendar attribute points to a <calendar> element for the Julian calendar, specifying that the text content of the date element is a Julian date, and the datingMethod attribute also points to the Julian calendar to indicate that the content of the when-custom attribute value is Julian too.

<date when="1382-06-28"
 when-custom="6890-06-20datingMethod="#creationOfWorld">
μηνὶ Ἰουνίου εἰς <num>κ</num> ἔτους <num>ςωϞ</num>
</date>

In this example, a date is given in a Mediaeval text measured ‘from the creation of the world’, which is normalized (in when) to the Gregorian date, but is also normalized (in when-custom) to a machine-actionable, numeric version of the date from the Creation.

Note

att.datableで定義されるcalendar 属性とは違って) datingMethod属性が定義するのは、親要素で記述された日付を正規化した暦や暦法であり、 当該要素中のオリジナルの日付の暦ではない

att.datable.iso

att.datable.iso ISO8601:2004に従い、時間事象の正規的方法を示す属性を示す。 [3.6.4. Dates and Times 14.4. Dates]
Modulenamesdates
Membersatt.datable [author change date name persName placeName resp title]
Attributes
when-iso日付や時間を、標準形式で示す。
Status Optional
Datatype teidata.temporal.iso

The following are examples of ISO date, time, and date & time formats that are not valid W3C format normalizations.

<date when-iso="1996-09-24T07:25+00">Sept. 24th, 1996 at 3:25 in the morning</date>
<date when-iso="1996-09-24T03:25-04">Sept. 24th, 1996 at 3:25 in the morning</date>
<time when-iso="1999-01-04T20:42-05">4 Jan 1999 at 8:42 pm</time>
<time when-iso="1999-W01-1T20,70-05">4 Jan 1999 at 8:42 pm</time>
<date when-iso="2006-05-18T10:03">a few minutes after ten in the morning on Thu 18 May</date>
<time when-iso="03:00">3 A.M.</time>
<time when-iso="14">around two</time>
<time when-iso="15,5">half past three</time>

All of the examples of the when attribute in the att.datable.w3c class are also valid with respect to this attribute.

He likes to be punctual. I said <q>
 <time when-iso="12">around noon</time>
</q>, and he showed up at <time when-iso="12:00:00">12 O'clock</time> on the dot.

The second occurrence of <time> could have been encoded with the when attribute, as 12:00:00 is a valid time with respect to the W3C XML Schema Part 2: Datatypes Second Edition specification. The first occurrence could not.

notBefore-iso当該事象の一番古い日付を、標準形式で示す。例えば、yyyy-mm-dd。
Status Optional
Datatype teidata.temporal.iso
notAfter-iso当該事象の一番新しい日付を、標準形式で示す。例えば、yyyy-mm-dd。
Status Optional
Datatype teidata.temporal.iso
from-iso当該時間幅の、始点を標準形で示す。
Status Optional
Datatype teidata.temporal.iso
to-iso当該時間幅の、終点を標準形で示す。
Status Optional
Datatype teidata.temporal.iso
Note

この属性の値は、グレゴリオ暦を用い、ISO8601:2004で定義されるいずれかの標準形式で正規化された日付や時刻、あるいはその組み合わせである。

属性when-isoの値は、ISO8601:2004に従った、日付や時間、ま たはその組み合わせになる。属性calendarがある場合に は、要素内容の歴システムが示される。属calendarは、 属性when when-isoの歴システムを示すもので はない。これは普通はグレゴリオ暦になる。

属性when-isodur-isoが付与されている場合、 当該属性値は時間幅を示し、それぞれ始点と幅を示すものになる。 例えば、以下のような場合、
<date when-iso="2007-06-01dur-iso="P8D"/>
この記述は、以下のようにも書くことができる。
<date when-iso="2007-06-01/P8D"/>

‘正規化’形式ということで、元テキストにある形式 が不正確であるということを含むものではない。 ここでいう正規化形式とは、単に、ひとつの項目に同じ値を付与すること を目的とするものである。

att.datable.w3c

att.datable.w3c W3CのXML Schema Part 2: Datatypes Second Editionに準拠した年代測定可能なイベントを含む要素の正規化に関する属性を提供する。 [3.6.4. Dates and Times 14.4. Dates]
Moduletei
Membersatt.datable [author change date name persName placeName resp title]
Attributes
when標準形式での日付や時刻を提供する。たとえば、yyyy-mm-dd
Status Optional
Datatype teidata.temporal.w3c

Examples of W3C date, time, and date & time formats.

<p>
 <date when="1945-10-24">24 Oct 45</date>
 <date when="1996-09-24T07:25:00Z">September 24th, 1996 at 3:25 in the morning</date>
 <time when="1999-01-04T20:42:00-05:00">Jan 4 1999 at 8 pm</time>
 <time when="14:12:38">fourteen twelve and 38 seconds</time>
 <date when="1962-10">October of 1962</date>
 <date when="--06-12">June 12th</date>
 <date when="---01">the first of the month</date>
 <date when="--08">August</date>
 <date when="2006">MMVI</date>
 <date when="0056">AD 56</date>
 <date when="-0056">56 BC</date>
</p>
This list begins in
the year 1632, more precisely on Trinity Sunday, i.e. the Sunday after
Pentecost, in that year the
<date calendar="#julianwhen="1632-06-06">27th of May (old style)</date>.
<opener>
 <dateline>
  <placeName>Dorchester, Village,</placeName>
  <date when="1828-03-02">March 2d. 1828.</date>
 </dateline>
 <salute>To
   Mrs. Cornell,</salute> Sunday <time when="12:00:00">noon.</time>
</opener>
notBefore当該事象の一番古い日付を、標準形式で示す。例えば、yyyy-mm-dd。
Status Optional
Datatype teidata.temporal.w3c
notAfter当該事象の一番新しい日付を、標準形式で示す。例えば、yyyy-mm-dd。
Status Optional
Datatype teidata.temporal.w3c
from標準形で当該時間幅の始点を示す。
Status Optional
Datatype teidata.temporal.w3c
to標準形で当該時間幅の終点を示す。
Status Optional
Datatype teidata.temporal.w3c
Schematron

<sch:rule context="tei:*[@when]">
<sch:report test="@notBefore|@notAfter|@from|@to"
 role="nonfatal">
The @when attribute cannot be used with any other att.datable.w3c attributes.</sch:report>
</sch:rule>
Schematron

<sch:rule context="tei:*[@from]">
<sch:report test="@notBefore"
 role="nonfatal">
The @from and @notBefore attributes cannot be used together.</sch:report>
</sch:rule>
Schematron

<sch:rule context="tei:*[@to]">
<sch:report test="@notAfter"
 role="nonfatal">
The @to and @notAfter attributes cannot be used together.</sch:report>
</sch:rule>
Example
<date from="1863-05-28to="1863-06-01">28 May through 1 June 1863</date>
Note

この属性の値は、グレゴリオ暦を用い、XML Schema Part 2: Datatypes Second Editionで定義されるいずれかの標準形式で正規化された日付や時刻、あるいはその組み合わせである。時間の属性としてもっともよく使われる形式は、yyyy-mm-ddだが、yyyy--mm---ddyyyy-mm--mm-ddも用いてもよい。時間については、hh:mm:ssが用いられる。この形式は、紀元前1年を表現するのに0000という値を用いることは現在のところ許容していないことには注意されたい。代わりに-0001という値を用いる必要がある。

属性whenの値は、日付や時間またはその組み合わを、 XML Schema Part 2: Datatypes Second Editionに従って示される。 当該日付の値が、グレゴリオ暦またはそれ以前の前グレゴリオ暦シス テムの場合に真となる。

現時点では、W3Cは年号の値として0000を認めていない。 この場合、一般的には、1BCE(紀元前1世紀)と記される。 現行W3Cのシステムを採用すれば、1BCEは-0001、2BCEは、 -0002と記される。 ‘この背景には、XML Schema Working Groupが、値 0000を1BCE(閏年)の文字表記として、-0001 を2BCEの文字表記として、-0002を3BCEの文字表記として 利用したかったためである。’ 従って、場合によっては、属性when-isoにより紀元前 を示した方が便利かもしれない。

att.datcat

att.datcat datacat属性とValueDatacat属性を提供する。これらがXML要素や属性を連携させる日付分類は、国際標準ISO 12620:2009で定義されるものであり、http://www.isocat.org/にあるISOCatと呼ばれるWebリポジトリに格納されている。 [10.5.2. Lexical View 19.3. Other Atomic Feature Values]
Moduletei
Membersatt.segLike [s seg]
Attributes
datcat指定された要素をISOcatの適切なデータカテゴリ(または複数のデータカテゴリ)と対応付けるPID(永続的識別子)を含む。
Status Optional
Datatype 1–∞ occurrences of teidata.pointer separated by whitespace
valueDatcat指定された要素の内容または指定された属性の値を、ISOcatの適切かつ単純なデータカテゴリ(または複数のデータカテゴリ)と対応付けるPID(永続的識別子)を含む。
Status Optional
Datatype 1–∞ occurrences of teidata.pointer separated by whitespace
targetDatcatprovides a definition of, and/or general information about, information structure of an object referenced or modeled by the containing element, by reference to an external taxonomy or ontology. This attribute has the characteristics of the datcat attribute, except that it addresses not its containing element, but an object that is being referenced or modeled by its containing element.
Status Optional
Datatype 1–∞ occurrences of teidata.pointer separated by whitespace
Example

The example below presents the TEI encoding of the name-value pair <part of speech, common noun>, where the name (key) ‘part of speech’ is abbreviated as ‘POS’, and the value, ‘common noun’ is symbolized by ‘NN’. The entire name-value pair is encoded by means of the element <f>. In TEI XML, that element acts as the container, labeled with the name attribute. Its contents may be complex or simple. In the case at hand, the content is the symbol ‘NN’.

The datcat attribute relates the feature name (i.e., the key) to the data category ‘part of speech’, while the attribute valueDatcat relates the feature value to the data category common noun. Both these data categories should be defined in an external and preferably open reference taxonomy or ontology.

<fs>
 <f name="POS"
  datcat="http://hdl.handle.net/11459/CCR_C-396_5a972b93-2294-ab5c-a541-7c344c5f26c3">

  <symbol valueDatcat="http://hdl.handle.net/11459/CCR_C-1256_7ec6083c-23d4-224d-6f94-eecbe6861545"
   value="NN"/>

 </f>
<!-- ... -->
</fs>

‘NN’ is the symbol for common noun used e.g. in the CLAWS-7 tagset defined by the University Centre for Computer Corpus Research on Language at the University of Lancaster. The very same data category used for tagging an early version of the British National Corpus, and coming from the BNC Basic (C5) tagset, uses the symbol ‘NN0’ (rather than ‘NN’). Making these values semantically interoperable would be extremely difficult without a human expert if they were not anchored in a single point of an established reference taxonomy of morphosyntactic data categories. In the case at hand, the string http://hdl.handle.net/11459/CCR_C-1256_7ec6083c-23d4-224d-6f94-eecbe6861545 is both a persistent identifier of the data category in question, as well as a pointer to a shared definition of common noun.

While the symbols ‘NN’, ‘NN0’, and many others (often coming from languages other than English) are implicitly members of the container category ‘part of speech’, it is sometimes useful not to rely on such an implicit relationship but rather use an explicit identifier for that data category, to distinguish it from other morphosyntactic data categories, such as gender, tense, etc. For that purpose, the above example uses the datcat attribute to reference a definition of part of speech. The reference taxonomy in this example is the CLARIN Concept Registry.

If the feature structure markup exemplified above is to be repeated many times in a single document, it is much more efficient to gather the persistent identifiers in a single place and to only reference them, implicitly or directly, from feature structure markup. The following example is much more concise than the one above and relies on the concepts of feature structure declaration and feature value library, discussed in chapter [ID FS in TEI Guidelines].
<fs>
 <f name="POSfVal="#commonNoun"/>
<!-- ... -->
</fs>

The assumption here is that the relevant feature values are collected in a place that the annotation document in question has access to — preferably, a single document per linguistic resource, for example an <fsdDecl> that is XIncluded as a sibling of text or a child of encodingDesc; a <taxonomy> available resource-wide (e.g., in a shared header) is also an option.

The example below presents an <fvLib> element that collects the relevant feature values (most of them omitted). At the same time, this example shows one way of encoding a tagset, i.e., an established inventory of values of (in the case at hand) morphosyntactic categories.
<fvLib n="POS values">
 <symbol xml:id="commonNounvalue="NN"
  datcat="http://hdl.handle.net/11459/CCR_C-396_5a972b93-2294-ab5c-a541-7c344c5f26c3"/>

 <symbol xml:id="properNounvalue="NP"
  datcat="http://hdl.handle.net/11459/CCR_C-1371_fbebd9ec-a7f4-9a36-d6e9-88ee16b944ae"/>

<!-- ... -->
</fvLib>

Note that these Guidelines do not prescribe a specific choice between datcat and valueDatcat in such cases. The former is the generic way of referencing a data category, whereas the latter is more specific, in that it references a data category that represents a value. The choice between them comes into play where a single element — or a tight element complex, such as the <f>/<symbol> complex illustrated above — make it necessary or useful to distinguish between the container data category and its value.

Example

In the context of dictionaries designed with semantic interoperability in mind, the following example ensures that the <pos> element is interpreted as the same information container as in the case of the example of <f name="POS"> above.

<gramGrp>
 <pos datcat="http://hdl.handle.net/11459/CCR_C-396_5a972b93-2294-ab5c-a541-7c344c5f26c3"
  valueDatcat="http://hdl.handle.net/11459/CCR_C-1256_7ec6083c-23d4-224d-6f94-eecbe6861545">
NN</pos>
</gramGrp>
Efficiency of this type of interoperable markup demands that the references to the particular data categories should best be provided in a single place within the dictionary (or a single place within the project), rather than being repeated inside every entry. For the container elements, this can be achieved at the level of <tagUsage>, although here, the valueDatcat attribute should be used, because it is not the <tagUsage> element that is associated with the relevant data category, but rather the element <pos> (or <case>, etc.) that is described by <tagUsage>:
<tagsDecl partial="true">
<!-- ... -->
 <namespace name="http://www.tei-c.org/ns/1.0">
  <tagUsage gi="pos"
   targetDatcat="http://hdl.handle.net/11459/CCR_C-396_5a972b93-2294-ab5c-a541-7c344c5f26c3">
Contains the part of speech.</tagUsage>
  <tagUsage gi="case"
   targetDatcat="http://hdl.handle.net/11459/CCR_C-1840_9f4e319c-f233-6c90-9117-7270e215f039">
Contains information about the grammatical case that the described form is inflected for.</tagUsage>
<!-- ... -->
 </namespace>
</tagsDecl>
Another possibility is to shorten the URIs by means of the <prefixDef> mechanism, as illustrated below:
<listPrefixDef>
 <prefixDef ident="ccrmatchPattern="pos"
  replacementPattern="http://hdl.handle.net/11459/CCR_C-396_5a972b93-2294-ab5c-a541-7c344c5f26c3"/>

 <prefixDef ident="ccrmatchPattern="adj"
  replacementPattern="http://hdl.handle.net/11459/CCR_C-1230_23653c21-fca1-edf8-fd7c-3df2d6499157"/>

</listPrefixDef>
<!-- ... -->
<entry>
<!--...-->
 <form>
  <orth>isotope</orth>
 </form>
 <gramGrp>
  <pos datcat="ccr:pos"
   valueDatcat="ccr:adj">
adj</pos>
 </gramGrp>
<!--...-->
</entry>

This mechanism creates implications that are not always wanted, among others, in the case at hand, suggesting that the identifiers ‘pos’ and ‘adj’ belong to a namespace associated with the CLARIN Concept Repository (CCR), whereas that is solely a shorthand mechanism whose scope is the current resource. Documenting this clearly in the header of the dictionary is therefore advised.

Yet another possibility is to associate the information about the relationship between a TEI markup element and the data category that it is intended to model already at the level of modeling the dictionary resource, that is, at the level of the ODD, in the <equiv> element that is a child of <elementSpec> or <attDef>.

Example

The <taxonomy> element is a handy tool for encoding taxonomies that are later referenced by att.datcat attributes, but it can also act as an intermediary device, for example holding a fragment of an external taxonomy (or ‘flattening’ an external ontology) that is relevant to the project or document at hand. (It is also imaginable that, for the purpose of the project at hand, the local <taxonomy> element combines vocabularies that originate from more than one external taxonomy or ontology.) In such cases, the <taxonomy> creates a local layer of indirection: the att.datcat attributes internal to the resource may reference the <category> elements stored in the header (as well as the <taxonomy> element itself), whereas these same <category> and <taxonomy> elements use att.datcat attributes to reference the original taxonomy or ontology.

<encodingDesc>
<!-- ... -->
 <classDecl>
<!-- ... -->
  <taxonomy xml:id="UD-SYN"
   datcat="https://universaldependencies.org/u/dep/index.html">

   <desc>
    <term>UD syntactic relations</term>
   </desc>
   <category xml:id="acl"
    valueDatcat="https://universaldependencies.org/u/dep/acl.html">

    <catDesc>
     <term>acl</term>: Clausal modifier of noun (adjectival clause)</catDesc>
   </category>
   <category xml:id="acl_relcl"
    valueDatcat="https://universaldependencies.org/u/dep/acl-relcl.html">

    <catDesc>
     <term>acl:relcl</term>: relative clause modifier</catDesc>
   </category>
   <category xml:id="advcl"
    valueDatcat="https://universaldependencies.org/u/dep/advcl.html">

    <catDesc>
     <term>advcl</term>: Adverbial clause modifier</catDesc>
   </category>
<!-- ... -->
  </taxonomy>
 </classDecl>
</encodingDesc>

The above fragment was excerpted from the GB subset of the ParlaMint project in April 2023, and enriched with att.datcat attributes for the purpose of illustrating the mechanism described here.

Note that, in the ideal case, the values of att.datcat attributes should be persistent identifiers, and that the addressing scheme of Universal Dependencies is treated here as persistent for the sake of illustration. Note also that the contrast between datcat used on <taxonomy> on the one hand, and the valueDatcat used on <category> on the other, is not mandatory: both kinds of relations could be encoded by means of the generic datcat attribute, but using the former for the container and the latter for the content is more user-friendly.

Example

The targetDatcat attribute is designed to be used in, e.g., feature structure declarations, and is analogous to the targetLang attribute of the att.pointing class, in that it describes the object that is being referenced, rather than the referencing object.

<fDecl name="POS"
 targetDatcat="http://hdl.handle.net/11459/CCR_C-396_5a972b93-2294-ab5c-a541-7c344c5f26c3">

 <fDescr>part of speech (morphosyntactic category)</fDescr>
 <vRange>
  <vAlt>
   <symbol value="NN"
    datcat="http://hdl.handle.net/11459/CCR_C-1256_7ec6083c-23d4-224d-6f94-eecbe6861545"/>

   <symbol value="NP"
    datcat="http://hdl.handle.net/11459/CCR_C-1371_fbebd9ec-a7f4-9a36-d6e9-88ee16b944ae"/>

<!-- ... -->
  </vAlt>
 </vRange>
</fDecl>

Above, the <fDecl> uses targetDatcat, because if it were to use datcat, it would be asserting that it is an instance of the container data category part of speech, whereas it is not — it models a container (<f>) that encodes a part of speech. Note also that it is the <f> that is modeled above, not its values, which are used as direct references to data categories; hence the use of datcat in the <symbol> element.

Example

The att.datcat attributes can be used for any sort of taxonomies. The example below illustrates their usefulness for describing usage domain labels in dictionaries on the example of the Diccionario da Lingua Portugueza by António de Morais Silva, retro-digitised in the MORDigital project.


<!-- in the dictionary header --><encodingDesc>
 <classDecl>
  <taxonomy xml:id="domains">
<!--...-->
   <category xml:id="domain.medical_and_health_sciences">
    <catDesc xml:lang="en">Medical and Health Sciences</catDesc>
    <catDesc xml:lang="pt">Ciências Médicas e da Saúde</catDesc>
    <category xml:id="domain.medical_and_health_sciences.medicine"
     valueDatcat="https://vocabs.rossio.fcsh.unl.pt/pub/morais_domains/pt/page/0025">

     <catDesc xml:lang="en">
      <term>Medicine</term>
      <gloss>
<!--...-->
      </gloss>
     </catDesc>
     <catDesc xml:lang="pt">
      <term>Medicina</term>
      <gloss>
<!--...-->
      </gloss>
     </catDesc>
    </category>
   </category>
<!--...-->
  </taxonomy>
 </classDecl>
</encodingDesc>
<!-- inside an <entry> element: -->
<usg type="domain"
 valueDatcat="#domain.medical_and_health_sciences.medicine">
Med.</usg>

In the Morais dictionary, the relevant domain labels are in the header, getting referenced inside the dictionary, from <usg> elements. The vocabulary used for dictionary-internal labelling is in turn anchored in the MorDigital controlled vocabulary service of the NOVA University of Lisbon – School of Social Sciences and Humanities (NOVA FCSH).

Note

ISO 12620:2009は、データ分類のレジストリ(DCR)に関するデータモデルと手続きについての国際標準である。データ分類は、一つの言語の構造における基本的な記述子として定義される。DCRのデータモデルでは、個々のデータ分類には、ユニークな永続的識別子(PID)、つまり、URIが割り当てられる。DCRからデータ分類を利用する言語資源、あるいは、できることならそのスキーマは、このPIDを用いて参照すべきである。TEI文書のようなXMLベースの資源(https://www.iso.org/standard/37243.htmlにて参照可能)に関しては、ISO 12620:2009 付録 Aに、datcat属性とvalueDatcat属性を提供する小さなデータ分類参照のXML語彙がある。

att.declarable

att.declarable 特別な目的のdecls属性を用いて独自に選択できるTEIヘッダー内の要素の属性を提供する。 [16.3. Associating Contextual Information with a Text]
Moduletei
Membersavailability bibl sourceDesc
Attributes
default親要素が選択された場合に、当該要素がデフォルトとして選択されるか どうかを示す。
Status Optional
Datatype teidata.truthValue
Legal values are:
true
親要素が選択された場合、当該要素が選択される。
false
当該要素は、明示的にのみ選択される。または、親要素が選択され、 これが唯一の選択肢であるときのみに、これは選択される。 [Default]
Note

このような選択可能要素の関連性を決める規則は、 16.3. Associating Contextual Information with a Textにおいて詳しく規定されている。 属性値trueをとるのは、ひとつの要素だけである。

att.declaring

att.declaring TEIヘダーにある特定の宣言可能要素向けの属性を示す。これにより、当該 要素の継承値を上書きすることになる。 [16.3. Associating Contextual Information with a Text]
Moduletei
Membersbody div facsimile graphic lg p ref standOff surface text
Attributes
decls(declarations) TEIヘダーにある、1つ以上の宣言可能要素を示す。 当該属性を持つ要素や内容に適応されると解釈される。
Status Optional
Datatype 1–∞ occurrences of teidata.pointer separated by whitespace
Note

宣言可能要素の関連性を決める規則については、16.3. Associating Contextual Information with a Text を参照のこと。

att.dimensions

att.dimensions 物理的対象の大きさを表す属性を示す。
Moduletei
Membersdate
Attributes
unit当該大きさの単位を示す。
Status Optional
Datatype teidata.enumerated
Suggested values include:
cm
(センチメートル)
mm
(ミリメートル)
in
(インチ)
line
テキスト行
char
(文字) 文字列
quantity当該単位の大きさを示す。
Status Optional
Datatype teidata.numeric
extent単一の文字列の数量と単位を組み合わせたプロジェクト固有の語彙を使用して、関連するオブジェクトのサイズを示す。
Status Optional
Datatype teidata.text
<gap extent="5 words"/>
<height extent="half the page"/>
precision他の属性によって指定された値の精度を特徴付ける。
Status Optional
Datatype teidata.certainty
scope対象物が複数あった場合に、当該数値の適応範囲を示す。
Status Optional
Datatype teidata.enumerated
Sample values include:
all
全インスタンスに当てはまる単位。
most
計測インスタンスの殆どに当てはまる単位。
range
特定インスタンスにのみ当てはまる単位。

att.divLike

att.divLike 区分(div、division)に相当する全要素に共通の属性を示す。 [4. Default Text Structure]
Moduletei
Membersdiv lg
Attributes
org(組織) 当該区分の内容がどのように構成されているかを示す。
Status Optional
Datatype teidata.enumerated
Legal values are:
composite
この部分に含まれる諸内容が処理される順番、すなわち内部関係には制約がない。
parallel
the contents of this element are intended to represent simultaneous or side-by-side delivery.
uniform
この要素直下の諸内容が論理的単位を構成しており、順番に処理すべきものと見なす。 [Default]
sample当該区分が、元資料のものを含むかどうか、そうであればその場所はど こかを示す。
Status Optional
Datatype teidata.enumerated
Legal values are:
initial
当該区分は、元資料の終わりの部分が欠けている。
medial
当該区分は、元資料の始めと終わりの部分が欠けている。
final
当該区分は、元資料の始めの部分が欠けている。
unknown
元資料のどの部分かは不明。
complete
当該領域は、元資料の一部ではない。 [Default]

att.docStatus

att.docStatus 文書のステータスを記述するメタデータ要素用の属性を提供する。
Moduletei
Membersbibl change revisionDesc
Attributes
status現在の、もしくは日時に関連づけられた要素にあっては、指定された時点における文書のステータスを記述する。
Status Optional
Datatype teidata.enumerated
Sample values include:
approved
candidate
cleared
deprecated
draft
[Default]
embargoed
expired
frozen
galley
proposed
published
recommendation
submitted
unfinished
withdrawn
Example
<revisionDesc status="published">
 <change when="2010-10-21"
  status="published"/>

 <change when="2010-10-02status="cleared"/>
 <change when="2010-08-02"
  status="embargoed"/>

 <change when="2010-05-01status="frozen"
  who="#MSM"/>

 <change when="2010-03-01status="draft"
  who="#LB"/>

</revisionDesc>

att.edition

att.edition 符号化された属性が派生する元のソースのエディションを特定する属性を提供する。
Moduletei
Memberslb pb
Attributes
ed(版) 関連する属性(ページ・段落・行の切れ目)がテキストのこの地点において発生するソースのエディションについての印やその他の任意の識別子を提供する。
Status Optional
Datatype 1–∞ occurrences of teidata.word separated by whitespace
edRef(参照) このポインタが示すのは、当該テキスト中に現れる(頁や段、行等の)関連する素性が生じる元の版である。
Status Optional
Datatype 1–∞ occurrences of teidata.pointer separated by whitespace
Example
<l>Of Mans First Disobedience,<lb ed="1674"/> and<lb ed="1667"/> the Fruit</l>
<l>Of that Forbidden Tree, whose<lb ed="1667 1674"/> mortal tast</l>
<l>Brought Death into the World,<lb ed="1667"/> and all<lb ed="1674"/> our woe,</l>
Example
<listBibl>
 <bibl xml:id="stapledon1937">
  <author>Olaf Stapledon</author>,
 <title>Starmaker</title>, <publisher>Methuen</publisher>, <date>1937</date>
 </bibl>
 <bibl xml:id="stapledon1968">
  <author>Olaf Stapledon</author>,
 <title>Starmaker</title>, <publisher>Dover</publisher>, <date>1968</date>
 </bibl>
</listBibl>
<!-- ... -->
<p>Looking into the future aeons from the supreme moment of
the cosmos, I saw the populations still with all their
strength maintaining the<pb n="411edRef="#stapledon1968"/>essentials of their ancient culture,
still living their personal lives in zest and endless
novelty of action, … I saw myself still
preserving, though with increasing difficulty, my lucid
con<pb n="291break="no"
  edRef="#stapledon1937"/>
sciousness;</p>

In the above example, the soft hyphen in Stapledon 1937 is omitted. Such decisions may be documented in the edition's declaration of editorial principles, e.g. with the <hyphenation> element in the teiHeader.

att.editLike

att.editLike 学術的調整・解釈の性質を表す属性を示す。 [3.5. Simple Editorial Changes 11.3.1. Origination 14.3.2. The Person Element 12.3.1.1. Core Elements for Transcriptional Work]
Moduletei
Membersdate name persName placeName
Attributes
evidence当該解釈や調整の信頼度や正確さを判断する証拠を示す。
Status Optional
Datatype 1–∞ occurrences of teidata.enumerated separated by whitespace
Suggested values include:
internal
当該調整を判断する内部証拠を示す。
external
当該調整を判断する外部証拠を示す。
conjecture
編集者、カタログ作成者、研究者による解釈や調整。
instantこれがにわか仕込みの修正か否かを示す。
Status Optional
Datatype teidata.xTruthValue
Default false
Note

当該クラスは、あらゆる編集上の調整、例えば、原稿に対する修正や解釈、日時や場所の特定などを示すために、一般には使用される。

att.enjamb

att.enjamb (句またがり) 親要素における句またがりを示す属性を与える。 [6.2. Components of the Verse Line]
Moduleverse
Membersl
Attributes
enjamb(句またがり) 句またがりが起こる行末を示す。
Status Optional
Datatype teidata.enumerated
Sample values include:
no
当該行が、最終である。
yes
当該行は、次の行へとまたがる。
weak
当該行は、緩くまたがっている。
strong
当該行は強くまたがっている。
Note

一般的には、句またがりが現れるとことで、当該属性に値‘yes’が付 与される。または、その程度により、値‘weak’‘strong’ が付与される。属性値が付与されていない場合でも、当該属性はデフォルト値として、値‘no’を想定しない。従って、句またがりに関心を置かない場合には、当該属性を省略できる。

att.fragmentable

att.fragmentable 通常は階層関係のオーバーラップなどに起因する、構造を持つ要素の断片化を表現するための属性を与える。
Moduletei
Membersatt.divLike [div lg] att.segLike [s seg] l p
Attributes
part通常は他の階層関係のオーバーラップなどに起因して、親要素が何らかの形で断片化されているかどうかを示す。例えば、二つ以上の韻文詩で分割された発話、頁区切りをまたぐ段落、二人の話者に分割された韻文の一行など。
Status Optional
Datatype teidata.enumerated
Legal values are:
Y
(はい) 要素はいくつかの(不特定の)点で断片化されている。
N
(いいえ) 要素が断片化されていないか、または完全性についての主張はない。 [Default]
I
(最初の) これは断片化された要素の最初の部分を示す。
M
(中間の) これは断片化された要素の中間の部分を示す。
F
(最後の) これは断片化された要素の最後の部分を示す。
Note

IM、またはFという値は、要素の再構成方法が明らかな場合にのみ使用する。

att.global

att.global TEI符号化スキーム中の全要素に共通する属性を示す。 [1.3.1.1. Global Attributes]
Moduletei
MembersTEI author availability bibl body change date distributor div encodingDesc facsimile fileDesc graphic l lb lg name p pb persName placeName publicationStmt publisher ref resp respStmt revisionDesc s seg sourceDesc standOff surface teiHeader text title titleStmt zone
Attributes
xml:id(識別子) 当該要素にユニークな識別子を示す。
Status Optional
Datatype ID
Note

xml:id属性は、その要素に対する基準的形式の参照を表すために用いてもよい。詳細は3.11. Reference Systems節を参照のこと。

n(数値) 要素に数値やラベルを与える。これは当該文書中でユニークである必要 はない。
Status Optional
Datatype teidata.text
Note

この属性の値は、もし空白やその他の区切り符号があったとしても、つねにひとまとまりのトークンとして解釈され、また数字のみで構成される必要はない。この属性は典型的には章や節、リスト等の構成要素の付番に用いられる。テキストの標準的な参照体系の仕様に含めることができる。

xml:lang(言語) BCP 47に従って生成された‘タグ’を用いて要素の内容の言語を示す。
Status Optional
Datatype teidata.language
<p> … The consequences of
this rapid depopulation were the loss of the last
<foreign xml:lang="rap">ariki</foreign> or chief
(Routledge 1920:205,210) and their connections to
ancestral territorial organization.</p>
Note

xml:lang の値は、直接の親要素、そのまた親要素からというように、文書の上位階層から継承されてくる。できるだけ高い適切な階層に xml:lang を指定するのが一般には望ましいが、teiHeader には関連するリソース要素と異なるデフォルト値が必要となったり、一つのTEI文書が多くの言語のテキストを含みうることには注意されたい。登録された言語タグの正式なリストはIANAが管理しており、https://www.iana.org/assignments/language-subtag-registry から確認できる。言語タグの構造についての良い概説は https://www.w3.org/International/articles/language-tags/ を、手順を追った実用的なガイドは https://www.w3.org/International/questions/qa-choosing-language-tags.en.php を参照されたい。利用する値は、BCP 47 に準拠しなければならない。もし値が私用コード(x- から始まったり -x- を含む)ならば、その ident 属性と一致する値を持つ <language> 要素をTEIヘッダ内に追加して内容を説明すべきである。この説明は私用コード以外にも任意で追加できるが、 (IETF)Internet Engineering Task Force による定義と整合していなければならない。

xml:base相対URIから絶対URIを構成する際に必要なベースURIを示す。
Status Optional
Datatype teidata.pointer
<div type="bibl">
 <head>Selections from <title level="m">The Collected Letters of Robert Southey. Part 1: 1791-1797</title>
 </head>
 <listBibl xml:base="https://romantic-circles.org/sites/default/files/imported/editions/southey_letters/XML/">
  <bibl>
   <ref target="letterEEd.26.3.xml">
    <title>Robert Southey to Grosvenor Charles Bedford</title>, <date when="1792-04-03">3 April 1792</date>.
   </ref>
  </bibl>
  <bibl>
   <ref target="letterEEd.26.57.xml">
    <title>Robert Southey to Anna Seward</title>, <date when="1793-09-18">18 September 1793</date>.
   </ref>
  </bibl>
  <bibl>
   <ref target="letterEEd.26.85.xml">
    <title>Robert Southey to Robert Lovell</title>, <date from="1794-04-05to="1794-04-06">5-6 April, 1794</date>.
   </ref>
  </bibl>
 </listBibl>
</div>
xml:space空白文字類をアプリケーションがどう解釈するかを示す。
Status Optional
Datatype teidata.enumerated
Legal values are:
default
アプリケーションがデフォルトで持つ空白文字類処理モードが有効であることを知らせる。
preserve
アプリケーションがすべての空白文字類を保持するという意図を示す。
Note

この属性の利用に関する案内はXML仕様を参照。xml:spaceを適切に扱うパーサーは多くない。

att.global.analytic

att.global.analytic 任意のテキスト部分への分析・解釈に関連するグローバル属性を示す。 [18.2. Global Attributes for Simple Analyses 18.3. Spans and Interpretations]
Moduleanalysis
Membersatt.global [TEI author availability bibl body change date distributor div encodingDesc facsimile fileDesc graphic l lb lg name p pb persName placeName publicationStmt publisher ref resp respStmt revisionDesc s seg sourceDesc standOff surface teiHeader text title titleStmt zone]
Attributes
ana(分析) 属性anaを伴う要素の解釈を含む要素を示す。
Status Optional
Datatype 1–∞ occurrences of teidata.pointer separated by whitespace
Note

複数の属性値が付与される場合、各値は当該テキストの異なる解釈や、 または同じ部分が異なる文脈でも同じ解釈であることを示す。

att.global.change

att.global.change そのメンバ要素が関連する1つ以上の状態または改定を指定できるように、change属性を提供する。
Moduletranscr
Membersatt.global [TEI author availability bibl body change date distributor div encodingDesc facsimile fileDesc graphic l lb lg name p pb persName placeName publicationStmt publisher ref resp respStmt revisionDesc s seg sourceDesc standOff surface teiHeader text title titleStmt zone]
Attributes
changeこの属性とその子を持つ要素が符号化する人によって割り当てられた状態または改定を記述する1つまたは複数のchange要素を示す。
Status Optional
Datatype 1–∞ occurrences of teidata.pointer separated by whitespace

att.global.facs

att.global.facs 転写されたテキストを含む要素と、そのテキストを表す画像の全部または一部との間の対応を表すために使用される属性を提供する。 [12.1. Digital Facsimiles]
Moduletranscr
Membersatt.global [TEI author availability bibl body change date distributor div encodingDesc facsimile fileDesc graphic l lb lg name p pb persName placeName publicationStmt publisher ref resp respStmt revisionDesc s seg sourceDesc standOff surface teiHeader text title titleStmt zone]
Attributes
facs(ファクシミリ) 当該要素に対応する要素facsimileにある画像やその部分への 参照。
Status Optional
Datatype 1–∞ occurrences of teidata.pointer separated by whitespace

att.global.linking

att.global.linking ハイパーテキストリンクの属性セットを提供する。 [17. Linking, Segmentation, and Alignment]
Modulelinking
Membersatt.global [TEI author availability bibl body change date distributor div encodingDesc facsimile fileDesc graphic l lb lg name p pb persName placeName publicationStmt publisher ref resp respStmt revisionDesc s seg sourceDesc standOff surface teiHeader text title titleStmt zone]
Attributes
corresp(対応) 当該要素と対応する要素を示す。
Status Optional
Datatype 1–∞ occurrences of teidata.pointer separated by whitespace

In this example a <group> contains two texts, each containing the same document in a different language. The correspondence is indicated using corresp. The language is indicated using xml:lang, whose value is inherited; both the tag with the corresp and the tag pointed to by the corresp inherit the value from their immediate parent.

In this example, a <place> element containing information about the city of London is linked with two <person> elements in a literary personography. This correspondence represents a slightly looser relationship than the one in the preceding example; there is no sense in which an allegorical character could be substituted for the physical city, or vice versa, but there is obviously a correspondence between them.

synch(連動) 当該要素と連動する要素を示す。
Status Optional
Datatype 1–∞ occurrences of teidata.pointer separated by whitespace
sameAs当該要素と同一の要素を示す。
Status Optional
Datatype teidata.pointer
copyOf当該要素のコピー要素を示す。
Status Optional
Datatype teidata.pointer
Note

当該要素の内容は無視されるべき。本当の内容は、参照先の要素の内 容になる。

next(next) 当該要素も所属する仮想集合における次の要素を示す。
Status Optional
Datatype teidata.pointer
Note

指定された要素も、この属性を持つ要素と同じ型であることが推奨される。

prev(前の) 当該要素も所属する仮想集合における前の要素を示す。
Status Optional
Datatype teidata.pointer
Note

指定された要素も、この属性を持つ要素と同じ型であることが推奨される。

exclude当該要素の代替要素を示す。
Status Optional
Datatype 1–∞ occurrences of teidata.pointer separated by whitespace
selectひとつ以上の選択肢を選ぶ。ひとつの選択肢が選ばれる場合、その曖昧 度や不確実度が示される。複数の選択肢が選ばれる場合、選ばれなかっ た選択肢の数から還元される、曖昧度や不確実度が示される。
Status Optional
Datatype 1–∞ occurrences of teidata.pointer separated by whitespace
Note

当該属性は、選択対象となる全ての要素の上位に位置する要素に付与 されるべきである。

att.global.rendition

att.global.rendition TEIの符号化スキーマにおけるすべての要素に共通するレンダリング属性を提供する。 [1.3.1.1.3. Rendition Indicators]
Moduletei
Membersatt.global [TEI author availability bibl body change date distributor div encodingDesc facsimile fileDesc graphic l lb lg name p pb persName placeName publicationStmt publisher ref resp respStmt revisionDesc s seg sourceDesc standOff surface teiHeader text title titleStmt zone]
Attributes
rend(見た目の表示) 当該要素が、元資料でどのように表示されていたかを示す。
Status Optional
Datatype 1–∞ occurrences of teidata.word separated by whitespace
<head rend="align(center) case(allcaps)">
 <lb/>To The <lb/>Duchesse <lb/>of <lb/>Newcastle,
<lb/>On Her <lb/>
 <hi rend="case(mixed)">New Blazing-World</hi>.
</head>
Note

本ガイドラインでは、当該属性rendの値として推奨するものはない。活字化の特徴は様々であり、それらのどれを採用するかはプロジェクトごとでおそろしく異なるからである。当ガイドラインでは、有用な記述法があれば、その都度示すことになっている。rend属性の値は、空白によって区切られる順序不定の個々のトークンの集合である。

styleなんらかの形式的スタイル定義言語においてソーステキスト内の当該要素のレンダリングや表示を定義する際の表現を含む。
Status Optional
Datatype teidata.text
<head style="text-align: center; font-variant: small-caps;">
 <lb/>To The <lb/>Duchesse <lb/>of <lb/>Newcastle, <lb/>On Her
<lb/>
 <hi style="font-variant: normal">New Blazing-World</hi>.
</head>
Note

空白を区切り記号とするrendの属性値とは異なり、style属性は空白を含んでもよい。この属性は資料における行に埋め込まれたスタイル情報を記録するためのものであり、何らかの出力を対象とするものではない。

この属性の値を表現する形式言語はTEIヘッダにおいて<styleDefDecl>要素を用いて指定されてもよい。

もしstylerenditionの両方が一つの要素に現れる場合、stylerenditionを上書きもしくは補完する。stylerendと同時に用いられるべきではない。後者は形式的なスタイル定義言語を採用しているわけではないから。

rendition(rendition reference) 当該要素が示す表現が現れている、元資料のテキスト部分を示す。
Status Optional
Datatype 1–∞ occurrences of teidata.pointer separated by whitespace
<head rendition="#ac #sc">
 <lb/>To The <lb/>Duchesse <lb/>of <lb/>Newcastle, <lb/>On Her
<lb/>
 <hi rendition="#normal">New Blazing-World</hi>.
</head>
<!-- elsewhere... -->
<rendition xml:id="scscheme="css">font-variant: small-caps</rendition>
<rendition xml:id="normalscheme="css">font-variant: normal</rendition>
<rendition xml:id="acscheme="css">text-align: center</rendition>
Note

属性renditionは、XHTMLの属性classと大変 似たように使用される。但し、重要な違いとして、当該属性は、元資 料の表現を記述するものであり、スクリーン上または紙上でどう表示 されているかを示すものではない。

もしrendition属性がCSSのような形式言語において定義されるスタイル定義を参照するのに用いられているなら、rend属性と同時に用いないことが推奨される。属性renditionと属性rendの両方が使用されている場合、後者の値が前者の値を上書きする、または補うと判断される。

当該属性値となるURIは、属性schemeで提示されているス タイル言語により、当該表現を定義する要素<rendition>を示すべきである。

att.global.responsibility

att.global.responsibility テキストやマークアップ、あるいはマークアップによって示されたものの何らかの側面についての責任者と、それに関する確信の度合を示す属性を提供する。 [1.3.1.1.4. Sources, certainty, and responsibility 3.5. Simple Editorial Changes 12.3.2.2. Hand, Responsibility, and Certainty Attributes 18.3. Spans and Interpretations 14.1.1. Linking Names and Their Referents]
Moduletei
Membersatt.global [TEI author availability bibl body change date distributor div encodingDesc facsimile fileDesc graphic l lb lg name p pb persName placeName publicationStmt publisher ref resp respStmt revisionDesc s seg sourceDesc standOff surface teiHeader text title titleStmt zone]
Attributes
cert(確信性) 介入や解釈に関する確信度を示す。
Status Optional
Datatype teidata.probCert
resp(責任者) 介入や解釈の責任者を示す。例えば、編集者、翻刻者など。
Status Optional
Datatype 1–∞ occurrences of teidata.pointer separated by whitespace
Note

resp が直接個人や組織を指した場合のあいまいさを減らすため、resp は行為者 (<person> or <org>) ではなく respStmtauthor<editor> などその行為者の正確な役割を明示するエレメントを指して用いることを推奨する。エンコード者は respStmt にTEI文書内の役割分担を明確に記述できる(作成・翻刻・エンコード・編集・校正など。

Example
Blessed are the
<choice>
 <sic>cheesemakers</sic>
 <corr resp="#editorcert="high">peacemakers</corr>
</choice>: for they shall be called the children of God.
Example

<!-- in the <text> ... --><lg>
<!-- ... -->
 <l>Punkes, Panders, baſe extortionizing
   sla<choice>
   <sic>n</sic>
   <corr resp="#JENS1_transcriber">u</corr>
  </choice>es,</l>
<!-- ... -->
</lg>
<!-- in the <teiHeader> ... -->
<!-- ... -->
<respStmt xml:id="JENS1_transcriber">
 <resp when="2014">Transcriber</resp>
 <name>Janelle Jenstad</name>
</respStmt>

att.global.source

att.global.source 外部ソースを参照する要素によって用いられる属性を示す。 [1.3.1.1.4. Sources, certainty, and responsibility 3.3.3. Quotation 8.3.4. Writing]
Moduletei
Membersatt.global [TEI author availability bibl body change date distributor div encodingDesc facsimile fileDesc graphic l lb lg name p pb persName placeName publicationStmt publisher ref resp respStmt revisionDesc s seg sourceDesc standOff surface teiHeader text title titleStmt zone]
Attributes
sourceこの要素の何らかの側面を示すソースを指定する。
Status Optional
Datatype 1–∞ occurrences of teidata.pointer separated by whitespace
Schematron

<sch:rule context="tei:*[@source]">
<sch:let name="srcs"
 value="tokenize( normalize-space(@source),' ')"/>

<sch:report test="( self::tei:classRef | self::tei:dataRef | self::tei:elementRef | self::tei:macroRef | self::tei:moduleRef | self::tei:schemaSpec ) and $srcs[2]"> When used on a schema description element (like
<<sch:value-of select="name(.)"/>>), the @source attribute
should have only 1 value. (This one has <sch:value-of select="count($srcs)"/>.)
</sch:report>
</sch:rule>
Note

source 属性は外部ソースを指し示す。<schemaSpec><moduleRef> といったスキーマの構成要素を記述する要素で用いられた場合は、 その定義しようとしているオブジェクトの構成要素の宣言が得られるソースを特定する。 その他の要素では、引用の出典となる書誌ソースへのポインタを提供する。いずれの場合も、 場所は何らかの URI、例えば絶対 URI や相対 URI、<prefixDef> に定められた方法で絶対 URI に展開できる私用形式の URI で与えることができる。 複数の場所が指定された場合、デフォルトでは要求されたソースがそれらのリソースの組み合わせによって得られるものと想定される。

Example
<p>
<!-- ... --> As Willard McCarty (<bibl xml:id="mcc_2012">2012, p.2</bibl>) tells us, <quote source="#mcc_2012">‘Collaboration’ is a problematic and should be a contested
   term.</quote>
<!-- ... -->
</p>
Example
<p>
<!-- ... -->
 <quote source="#chicago_15_ed">Grammatical theories are in flux, and the more we learn, the
   less we seem to know.</quote>
<!-- ... -->
</p>
<!-- ... -->
<bibl xml:id="chicago_15_ed">
 <title level="m">The Chicago Manual of Style</title>,
<edition>15th edition</edition>. <pubPlace>Chicago</pubPlace>: <publisher>University of
   Chicago Press</publisher> (<date>2003</date>), <biblScope unit="page">p.147</biblScope>.

</bibl>
Example
<elementRef key="psource="tei:2.0.1"/>

Include in the schema an element named p available from the TEI P5 2.0.1 release.

Example
<schemaSpec ident="myODD"
 source="mycompiledODD.xml">

<!-- further declarations specifying the components required -->
</schemaSpec>

Create a schema using components taken from the file mycompiledODD.xml.

att.internetMedia

att.internetMedia 標準的な用語による計算機資源の種類を表す属性を示す。
Moduletei
Membersatt.media [graphic] ref
Attributes
mimeType(MIMEメディアタイプ) 当該データのMIMEタイプ。
Status Optional
Datatype 1–∞ occurrences of teidata.word separated by whitespace
Example

In this example mimeType is used to indicate that the URL points to a TEI XML file encoded in UTF-8.

<ref mimeType="application/tei+xml; charset=UTF-8"
 target="https://raw.githubusercontent.com/TEIC/TEI/dev/P5/Source/guidelines-en.xml"/>
Note

当該属性クラスは、コンピューターリソースを示すためのもので、通常、インターネット上にあるリソースを標準的な用語で示す。現時点では、MIME(Multipurpose Internet Mail Extensions)タイプのみが標準的な用語として使用可能である。このMIMEタイプについては、IETF(Internet Engineering Task Force)のRFC 2046で規定されている。使用できるタイプ名のリストの管理は、IANA(Internet Assigned Numbers Authority)によって行われている。mimeType属性は上記のタイプ名リストにより定義された値を含んでいなくてはならない。

att.media

att.media 外部メディアの表示と関連プロパティを指定するための諸属性を提供する。
Moduletei
Membersgraphic
Attributes
widthメディアが表示されている場合、表示部分の幅を示す。
Status Optional
Datatype teidata.outputMeasurement
heightメディアが表示されている場合、表示部分の高さを示す。
Status Optional
Datatype teidata.outputMeasurement
scaleメディアが表示されている場合、望ましい表示サイズを生成する際に適用されるスケール倍率を示す。
Status Optional
Datatype teidata.numeric

att.metrical

att.metrical 特性の要素が韻律情報を示す属性を定義する。 [6.4. Rhyme and Metrical Analysis]
Moduleverse
Membersatt.divLike [div lg] att.segLike [s seg] l
Attributes
met(韻律構造、定型) 当該要素の通常韻律構造を示す、ユーザ定義のデータを含む。
Status Recommended
Datatype token
Note

パターンは、韻律単位の種類の標準用語(例えば、hexameter)または韻律パターンの符号化表現(例えば、+--+-+-+-+-)によって指定される。 どちらの場合でも、使用される表記法は、関連づけられたヘッダのencodingDesc内の<metDecl>要素によって記述されるべきである。 この属性が指定されていない場合、関係する要素の韻律パターンはその親から継承されると理解される。

real(韻律構造、実現型) 当該要素に当てはまる通常韻律構造の実現形を、ユーザーの定義で示す。
Status Optional
Datatype token
Note

パターンは、韻律単位の種類の標準用語(例えば、hexameter)または韻律パターンの符号化表現(例えば、+--+-+-+-+-)によって指定される。 どちらの場合でも、使用される表記法は、関連づけられたヘッダのencodingDesc内の<metDecl>要素によって記述されるべきである。 この属性が指定されていない場合、関係する要素の韻律の実現形は、 met属性に対して指定された、または暗示されたものと同じであると理解される。

rhyme(韻構造) 韻文の行集合に当てはまる韻構造を示す。
Status Recommended
Datatype token
Note

デフォルトでは、韻構造は、一つの韻を踏む行と逐一対応するアルファベットの文字列として表現される。すべての押韻しない行は、ハイフンまたはXで表す。 TEIヘッダーの<metDecl>要素を使用して、metの代替表記を定義できる。 デフォルトの表記法が使用される時、この属性を行未満の単位に指定しても、意味をなさない。 デフォルトの表記法は、行内部の韻を記録するものでも、定型でない押韻を指定するものでもない。このような拡張をするには、ユーザが代替の表記法を定義する必要がある。

att.naming

att.naming 名前、人物、場所、組織を示す要素に付与される属性を示す。 [3.6.1. Referring Strings 14.3.7. Names and Nyms]
Moduletei
Membersatt.personal [name persName placeName] author
Attributes
roleこの属性名によって参照されるエンティティに関する詳細な情報(例えば人物の職業や場所のステータスなど)を示すために用いられる。この値は空白文字で区切られる。
Status Optional
Datatype 1–∞ occurrences of teidata.enumerated separated by whitespace
nymRef(基準化された名前への参照) 当該要素で名前が付与されている対象に関連する基準形(nym)と紐付ける。
Status Optional
Datatype 1–∞ occurrences of teidata.pointer separated by whitespace
Note

当該属性値は、ひとつ以上のXML要素を直接指示する、空白文字で区切られたひとつ以上のURIでなくてはならない。複数与えられている場合は、その名前がいくつかの異なる基準形に対応していることを示唆する。

att.notated

att.notated 要素の内容を対象とした特別な表記法を示す属性を提供する。
Moduletei
Memberss seg
Attributes
notation当該要素の内容に用いられた表記法の名前を示す。
Status Optional
Datatype teidata.enumerated

att.personal

att.personal (名前を構成するもののための属性。通常は人物名だが、必ずしもそうとは限らない。) 名前の構成要素となる要素に付与される一般的な属性。通常は人物名だが、必ずしもそうとは限らない。 [14.2.1. Personal Names]
Moduletei
Membersname persName placeName
Attributes
full当該名前要素は省略がないか、省略形か、イニシャルのような簡単なも のか示す。
Status Optional
Datatype teidata.enumerated
Legal values are:
yes
(yes) 当該名前要素は、省略無く示されている。 [Default]
abb
(省略された) 当該名前要素には、省略がある。
init
(イニシャルの) 当該名前要素は、イニシャルだけで示されている。
sort(並び替え) 名前の並び替えにおいて、その名前要素が他の構成要素との関係で何番目に優先されるかを指定する。
Status Optional
Datatype teidata.count

att.placement

att.placement テキスト要素が出現する元資料中のページやオブジェクトを表す属性を示す。 [3.5.3. Additions, Deletions, and Omissions 12.3.1.4. Additions and Deletions]
Moduletei
Membersdiv
Attributes
placeこのアイテムが置かれた場所を指定する。
Status Recommended
Datatype 1–∞ occurrences of teidata.enumerated separated by whitespace
Suggested values include:
top
当該頁の上の余白。
bottom
当該頁の下の余白。
margin
余白(左left、右right、左右both)
opposite
反対側,つまり,向かいのページ。
overleaf
当該葉の裏面。
above
当該行の上。
right
右側、つまり、縦書きテキストや図の右側。
below
当該行の下。
left
左側、つまり、縦書きテキストや図の左側。
end
末尾(たとえば章や巻の)。
inline
テキスト本文の中で。
inspace
あらかじめ用意された箇所(たとえば過去の書写者が空けておいたなど)。
<add place="margin">[An addition written in the margin]</add>
<add place="bottom opposite">[An addition written at the
foot of the current page and also on the facing page]</add>
<note place="bottom">Ibid, p.7</note>

att.pointing

att.pointing すべての、一つ以上のURIを参照することで別の要素を指示する要素で使用できる属性のセットを示す。 [1.3.1.1.2. Language Indicators 3.7. Simple Links and Cross-References]
Moduletei
Membersref
Attributes
targetLangBCP 47に従って生成された‘言語タグ’を使用することで、targetの参照先にあるコンテンツの言語を特定する。
Status Optional
Datatype teidata.language
Schematron

<sch:rule 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>
<linkGrp xml:id="pol-swh_aln_2.1-linkGrp">
 <ptr xml:id="pol-swh_aln_2.1.1-ptr"
  target="pol/UDHR/text.xml#pol_txt_1-headtype="tuvtargetLang="pl"/>

 <ptr xml:id="pol-swh_aln_2.1.2-ptr"
  target="swh/UDHR/text.xml#swh_txt_1-headtype="tuvtargetLang="sw"/>

</linkGrp>

In the example above, the <linkGrp> combines pointers at parallel fragments of the Universal Declaration of Human Rights: one of them is in Polish, the other in Swahili.

Note

値はBCP 47に準拠している必要がある。言語コードがx-で始まっていたり、-x-を含んでいたりする私的利用の値である場合、TEIヘッダーにおいて、そのコードをident属性の値として持った<language>要素を記述しなければならない。私的利用にあたらないコードの記述をしてもよいが、 (IETF)Internet Engineering Task Forceの定義に準拠したものでなくてはならない。

target一つ以上のURI参照を与えることで、参照先を指定する。
Status Optional
Datatype 1–∞ occurrences of teidata.pointer separated by whitespace
Note

空白で区切られた一つ以上の構文的に有効なURI参照。空白は複数のURIを区別するために使用されるので、それぞれのURI中において空白を使用することはできない。URI中で空白文字が必要な場合は、たとえばTEI%20Consortiumと言ったような通常の方法でエスケープする必要がある。

evaluate(evaluate) 当該ポインタの参照先がポインタである場合、その意図を示す。
Status Optional
Datatype teidata.enumerated
Legal values are:
all
参照先の要素がポインターである場合、そのポインターの参照先へ と展開する。これを、参照先がポインターでなくなるまで続ける。
one
参照先の要素がポインターである場合、(そのポインターの参照先 がどうであれ)そのポインターが参照先になる。
none
当該ポインターの参照先から先にあるリンクへの展開は行わない。
Note

値がない場合、ソフトウェア側がポインター連鎖の扱いを決める(恐 らく利用者が指示を元に行われる)。

att.ranging

att.ranging 数値範囲を記述するための属性を提供する。
Moduletei
Membersatt.dimensions [date]
Attributes
atLeast概算推量のための最小推定値を与える。
Status Optional
Datatype teidata.numeric
atMost概算推量のための最大推定値を与える。
Status Optional
Datatype teidata.numeric
min1回以上の観察あるいは範囲をまとめた推量において、観察された最小値を提供する。
Status Optional
Datatype teidata.numeric
max1回以上の観察あるいは範囲をまとめた推量において、観察された最大値を提供する。
Status Optional
Datatype teidata.numeric
confidenceminmax、で指定された範囲内の値、あるいはその範囲内で観察された値の割合の統計的な信頼度を0から1の値で示す。
Status Optional
Datatype teidata.probability
Example
The MS. was lost in transmission by mail from
<del rend="overstrike">
 <gap reason="illegible"
  extent="one or two lettersatLeast="1atMost="2unit="chars"/>

</del>
Philadelphia to the Graphic office, New York.
Example
Americares has been supporting the health sector in Eastern Europe since 1986,
and since 1992 has provided <measure atLeast="120000000unit="USD"
 commodity="currency">
more
than $120m</measure> in aid to Ukrainians.

att.resourced

att.resourced (外部のメディアファイルのような)資料を示す属性を提供する。
Moduletei
Membersgraphic
Attributes
url(統一資源位置指定子) 関連するメディアを入手するURLを示す。
Status Required
Datatype teidata.pointer

att.segLike

att.segLike 任意の部分に使用される要素向けの属性を示す。 [17.3. Blocks, Segments, and Anchors 18.1. Linguistic Segment Categories]
Moduletei
Memberss seg
Attributes
function(function) 当該部分の役割を示す。
Status Optional
Datatype teidata.enumerated
Note

属性値は付与された要素のタイプに応じてしばしば変化する。 たとえば、<cl>は座標や主語、副詞のような値をとることができる。 <phr>の場合、主語や述語のような値はより適切かもしれない。 そういった制約は、典型的には、プロジェクトで定義されたカスタマイズとして実装されるだろう。

att.sortable

att.sortable ソート可能だが、ソートのキーは要素の内容から機械的に取り出すことはできないリストやグループにおける要素に関する属性。 [10.1. Dictionary Body and Overall Structure]
Moduletei
Membersbibl
Attributes
sortKeyインデックスやリスト、グループに含まれる要素のソートキーを提供する。
Status Optional
Datatype teidata.word
David's other principal backer, Josiah
ha-Kohen <index indexName="NAMES">
 <term sortKey="Azarya_Josiah_Kohen">Josiah ha-Kohen b. Azarya</term>
</index> b. Azarya, son of one of the last gaons of Sura was David's own first
cousin.
Note

当該属性は、索引中の項目の並びやグループを決めるために使用される。 これはほかの値によって並べ替えを行いたいときの一続きの文字を与え、それによって望まれる順序を実現する。 ソートキー構文の詳細はアプリケーション依存である。

辞書順はしばしば機械可読文字集合の照合順と異なる。 英語圏の辞書では、4-Hという項目はしばしば‘fourh’としてアルファベット化され、McCoyは、‘maccoy’としてアルファベット化されうる。 それに対して、A1A4A5‘a-’‘AA’のあいだに数字順に置かれてしまうこともある。 ソートキーは、辞書項目の表記が辞書における順序を決定するのに不十分な際に必要となる。

att.spanning

att.spanning テキスト幅の範囲を内容としてではなく参照機能を使って示す要素に付与される属性を示す。 [12.3.1.4. Additions and Deletions]
Moduletei
Memberslb pb
Attributes
spanTo当該要素が示す範囲の終点を示す。
Status Optional
Datatype teidata.pointer
SchematronThe @spanTo attribute must point to an element following the current element; however, this can only be tested if both this element and the one pointed to are in the same document.

<sch:rule context="tei:*[ starts-with( @spanTo, '#') ]">
<sch:assert test="id( substring( @spanTo, 2 ) ) >> ."> The element indicated by @spanTo (<sch:value-of select="@spanTo"/>) must follow the current <<sch:name/>> element.
</sch:assert>
</sch:rule>
Note

当該範囲は、当該文書中にある、(もしあれば)参照要素の内容の始点から、 (もしあれば)属性spanToで示された要素の内容の終点までになる。 当該属性に値がない場合、当該範囲は、当該参照要素と同じ範囲と想定す る。

att.typed

att.typed 要素を分類するための属性を示す。 [1.3.1. Attribute Classes 18.1.1. Words and Above 3.6.1. Referring Strings 3.7. Simple Links and Cross-References 3.6.5. Abbreviations and Their Expansions 3.13.1. Core Tags for Verse 7.2.6. Speech Contents 4.1.1. Un-numbered Divisions 4.1.2. Numbered Divisions 4.2.1. Headings and Trailers 4.4. Virtual Divisions 14.3.2.3. Personal Relationships 12.3.1.1. Core Elements for Transcriptional Work 17.1.1. Pointers and Links 17.3. Blocks, Segments, and Anchors 13.2. Linking the Apparatus to the Text 23.5.1.2. Defining Content Models: RELAX NG 8.3. Elements Unique to Spoken Texts 24.3.1.3. Modification of Attribute and Attribute Value Lists]
Moduletei
MembersTEI bibl change date div graphic lb lg name pb persName placeName ref s seg standOff surface text title zone
Attributes
type当該要素の分類を示す。
Status Optional
Datatype teidata.enumerated
<div type="verse">
 <head>Night in Tarras</head>
 <lg type="stanza">
  <l>At evening tramping on the hot white road</l>
  <l></l>
 </lg>
 <lg type="stanza">
  <l>A wind sprang up from nowhere as the sky</l>
  <l></l>
 </lg>
</div>
subtype(subtype) 必要であれば、当該要素の下位分類を示す。
Status Optional
Datatype teidata.enumerated
Note

属性subtypeは、属性typeに加えて、当該要 素の下位分類を示すために使われる。

Schematron

<sch:rule context="tei:*[@subtype]">
<sch:assert test="@type"> The <<sch:name/>> element should not be categorized in detail with @subtype unless also categorized in general with @type.
</sch:assert>
</sch:rule>

att.written

att.written provides attributes to indicate the hand in which the content of an element was written in the source being transcribed. [1.3.1. Attribute Classes]
Moduletei
Membersdiv p seg text zone
Attributes
hand当該調整を行った主体の筆致を特定する。
Status Optional
Datatype teidata.pointer

Schema tei_kouigenji: Datatypes

teidata.certainty

teidata.certainty 確信度を示す属性値の程度を示す。
Moduletei
Used by
Content model
<content>
 <valList type="closed">
  <valItem ident="high"/>
  <valItem ident="medium"/>
  <valItem ident="low"/>
  <valItem ident="unknown"/>
 </valList>
</content>
Declaration
tei_teidata.certainty = "high" | "medium" | "low" | "unknown"
Note

確信度は、予め定義された値highmedium、またはlowのいずれかで表現される。確信度に関して何らかの意見を表明することを望んでいない場合は、unknownという値が使用されるべきである。より正確な指標を望む場合は、data.probabilityを先に挙げた値の代わりに、またはそれに加えて使用することができる。

teidata.count

teidata.count 非負整数値を採る属性値の範囲を定義する。
Moduletei
Used by
Content model
<content>
 <dataRef name="nonNegativeInteger"/>
</content>
Declaration
tei_teidata.count = xsd:nonNegativeInteger
Note

正の整数値(ゼロを含む)のみが許可される。

teidata.duration.iso

teidata.duration.iso ISO 8601にある標準形式を使い、時間幅を表現する当該属性値の範囲を定義 する。
Moduletei
Used by
Content model
<content>
 <dataRef name="token"
  restriction="[0-9.,DHMPRSTWYZ/:+\-]+"/>

</content>
Declaration
tei_teidata.duration.iso = token { pattern = "[0-9.,DHMPRSTWYZ/:+\-]+" }
Example
<time dur-iso="PT0,75H">three-quarters of an hour</time>
Example
<date dur-iso="P1,5D">a day and a half</date>
Example
<date dur-iso="P14D">a fortnight</date>
Example
<time dur-iso="PT0.02S">20 ms</time>
Note

時間幅は、先頭文字Pに続いて、数値-文字のペア列で示される。 文字は単位を示している。Y(年)、M(月)、D(日)、H(時間)、M(分)、S(秒) の順番になる。数値は符号のない整数である。但し、最後に10進数の 表記記号(小数点を示す.または,。後者が望 ましい)をとることはある。数値が0の場合、 数値-文字のペアは省略されることがある。 H(時間)、M(分)、 S(秒)が数値-文字のペアを作る場合、区切子 Tを先頭にして‘時間’を示す数値-文字 のペアを示す必要がある。

詳細については、ISO 8601Data elements and interchange formats - Information interchange - Representation of dates and timesを参照のこと。

teidata.duration.w3c

teidata.duration.w3c W3Cのデータ型を使用して表現できる時間幅を値域とする属性値を定義する。
Moduletei
Used by
Content model
<content>
 <dataRef name="duration"/>
</content>
Declaration
tei_teidata.duration.w3c = xsd:duration
Example
<time dur="PT45M">forty-five minutes</time>
Example
<date dur="P1DT12H">a day and a half</date>
Example
<date dur="P7D">a week</date>
Example
<time dur="PT0.02S">20 ms</time>
Note

時間幅は、先頭文字Pに続いて、数値-文字のペア列で示される。 文字は単位を示している。Y(年)、M(月)、D(日)、H(時間)、M(分)、S(秒) の順番になる。数値は符号のない整数である。但し、Sの場 合、最後に10進数の表記記号(小数点を示す.)をとることが ある。数値が0の場合、数値-文字のペアは省略 されることがある。H(時間)、M(分)、S(秒)が数値-文字のペアを作る場合、 区切子Tを先頭にして‘時間’を示す 数値-文字のペアを示す必要がある。

詳細については、 W3C specificationを参照のこと。

teidata.enumerated

teidata.enumerated 定められた選択肢の一覧から選ばれる単一のXML名前を値域とする属性値を定義する。
Moduletei
Used by
Element:
Content model
<content>
 <dataRef key="teidata.word"/>
</content>
Declaration
tei_teidata.enumerated = teidata.word
Note

このデータ型を使用する属性は、このデータ型のために定義されたパターンと一致する単一の単語を含めなければならない。たとえば、空白は含むことはできないが、数字で始まってもよい。定められた選択肢の一覧は、典型的には関連する属性指定のなかで<valList>要素による値のリストの形で提供(または例示)される。

teidata.language

teidata.language 自然言語と表記体系の組合せを示す表現を値域とする属性値を定義する。 [6.1. Language Identification]
Moduletei
Used by
Content model
<content>
 <alternate>
  <dataRef name="language"/>
  <valList>
   <valItem ident=""/>
  </valList>
 </alternate>
</content>
Declaration
tei_teidata.language = xsd:language | ( "" )
Note

当該属性値は、BCP 47で定義されている言語‘タグ’である。 BCP 47は、RFC 5646とRFC 4647からなる。将来的に、その他のIETF文書が現状における最良の慣行としての地位を受け継ぐかもしれない。

BCP 47における‘言語タグ’とは、ハイフン (-, U+002D)で区切られた一連の下位タグと呼ばれる構成要素からなっている。 下位タグは、以下の順番に並べられる。 下位タグは、初めの1つ以外は必須でない。もし存在するときは、それぞれの下位タグは、繰返し可能な4番目と5番目の構成要素(変種と拡張)をのぞき、1度までしか用いられない。

言語
IANAに登録された、言語に対するコード。 これは、当該言語が既にISO 639の2文字言語コードにあれば、ほとんどのばあい、それと同一である。 利用可能な言語下位タグのリストはhttps://www.iana.org/assignments/language-subtag-registry/language-subtag-registryにある。 言語コードは、小文字で書くことが推奨されている。
用字系
ISO 15924による用字系を示すコード。 4文字から構成され、先頭の文字は大文字で、残りの3文字は小文字で書くことが推奨されている。 公式なコードのリストは、ユニコードコンソーシアムが管理しており、 https://unicode.org/iso15924/iso15924-codes.htmlから入手することができる。 IETFでは、不要であれば当該コードを省略することを推奨している。
地域
IANAに登録されたISO 3166の国名コードまたはUN M.49による地域コード (但し全てが〔IANAに〕登録されてはいない。例えば、UNコードのうち、経済圏やISO 3166の2文字コードが存在するものは含まれない)。 このうち前者は、2文字から構成され、大文字で書かれることが推奨されている。このコードのリストは、 https://www.iso.org/obp/ui/#search/code/ にあり、確認できる。 後者は、数字3桁から構成されている。このコードは、 https://unstats.un.org/unsd/methodology/m49/にある。
変種
IANAに登録された変種。 このコードは、他の下位タグでは対応できない、その他のよく知られている言語や方言として定義される変種を示すために使用される
拡張
拡張は、英字1文字、ハイフン、後続する(1つ以上の)下位タグの形式からなる。 これは、BCP 47が将来拡張された時のためにある。執筆時点ではそのような拡張はない。〔2024年時点ではuとtの2つの拡張が存在する。〕
私用
拡張の先頭の下位タグがx1文字である (すなわち、x-で始まる) ものは、関係者間で取り決めがある場合のみ意味を持つ。 このコードは十分に注意して使用しなければならない。これは、RFC 4646を使用する目的である相互運用性を損なうからである。〔現在ではRFC 4646は廃止され、RFC 5646を使用すべきである。〕 文書内で私用タグを使う場合、TEIに準拠するためには<language>要素をTEIヘッダー中に記述しなければならない。

上記記述形式には、2つの例外がある。 ひとつは、IANAレジストリにある言語タグには、上述の形式に違反しているが有効なものがある。これはIANAでは以前の形式では許容されていた‘歴史的例外’だからである。

ふたつめは、言語タグ全体を私用タグにすることができる。 x-で始まるタグの内容は、IETFにある他の規定にも当該TEIガイドラインにある規定にも従う必要はない。 私用タグを含む言語タグと同様に、その言語をTEIヘッダーにある<language>要素に記述しなければならない。

言語コードには、以下のようなものがある。

sn
ショナ語
zh-TW
中国語(台湾)
zh-Hant-HK
繁体字中国語(香港)
en-SL
英語(シエラレオネ)
pl
ポーランド語
es-MX
スペイン語(メキシコ)
es-419
スペイン語(ラテンアメリカ)

W3Cの国際化活動では、BCP 47の解説 「HTMLとXMLで使用される言語タグ」を以下に用意している。

teidata.name

teidata.name XML名前としてある属性値の範囲を定義する。
Moduletei
Used by
Content model
<content>
 <dataRef name="Name"/>
</content>
Declaration
tei_teidata.name = xsd:Name
Note

当該属性は、妥当なXML名前(詳細は https://www.w3.org/TR/REC-xml/#dt-nameを参照)である ひとつの単語をとる。例えば、空白文字を含まず、数字が先頭文字にこな いもの。

teidata.numeric

teidata.numeric 数値をとる属性値の範囲を定義する。
Moduletei
Used by
Element:
Content model
<content>
 <alternate>
  <dataRef name="double"/>
  <dataRef name="token"
   restriction="(\-?[\d]+/\-?[\d]+)"/>

  <dataRef name="decimal"/>
 </alternate>
</content>
Declaration
tei_teidata.numeric =
   xsd:double | token { pattern = "(\-?[\d]+/\-?[\d]+)" } | xsd:decimal
Note

浮動小数点形式の10進小数、あるいは比の形式で表現されるなんらかの数値。浮動小数点数を表現するには、‘指数表記’の一種である科学的表記、通称‘E記法’が使用できる。この形式では、値はEの文字で区切られた二つの数字で表現する。一つ目の数字である仮数は小数で、二つ目の数字は整数で表される。値は、仮数を〔二つ目の〕整数の示す回数だけ10倍することで得られる。したがって、10進小数で1000.0と表記されている値は、科学的表記では10E3となる。

比の値は、二つの整数を「/」で区切って表す。したがって、10進小数で0.5と表される値は、比としては1/2という文字列で表現できる。

teidata.outputMeasurement

teidata.outputMeasurement 表示を意図するオブジェクトの寸法を指定するための値の範囲を定義する。
Moduletei
Used by
Content model
<content>
 <dataRef name="token"
  restriction="[\-+]?\d+(\.\d+)?(%|cm|mm|in|pt|pc|px|em|ex|ch|rem|vw|vh|vmin|vmax)"/>

</content>
Declaration
tei_teidata.outputMeasurement =
   token
   {
      pattern = "[\-+]?\d+(\.\d+)?(%|cm|mm|in|pt|pc|px|em|ex|ch|rem|vw|vh|vmin|vmax)"
   }
Example
<figure>
 <head>The TEI Logo</head>
 <figDesc>Stylized yellow angle brackets with the letters <mentioned>TEI</mentioned> in
   between and <mentioned>text encoding initiative</mentioned> underneath, all on a white
   background.</figDesc>
 <graphic height="600pxwidth="600px"
  url="http://www.tei-c.org/logos/TEI-600.jpg"/>

</figure>
Note

当該値は、XSLFOやCSSで使用される値になる。詳細は各規格を参照のこと。 現時点で一番詳細なリストは、 CSS3 working draftになる。

teidata.pattern

teidata.pattern 正規表現を属性値として定義する。
Moduletei
Used by
Content model
<content>
 <dataRef name="token"/>
</content>
Declaration
tei_teidata.pattern = token
Note
正規表現は、よくパタン/パターンともいわれるもので、文字列の集合を記述するための表現方法である。一般には、簡潔な表現で、 すべての要素を列挙することなく集合を表現するために使用される。例えば、三つの文字列HandelHändelHaendel〔訳注:これらはすべて「ヘンデル」の異表記〕を、一つのパタンH(ä|ae?)ndelで記述することができる(あるいは、H(ä|ae?)ndelは、三つの文字列のいずれにもマッチするといわれる)。
wikipedia

teidata.point

teidata.point デカルト空間内の点を表現するデータ型を定義する。
Moduletei
Used by
Content model
<content>
 <dataRef name="token"
  restriction="(-?[0-9]+(\.[0-9]+)?,-?[0-9]+(\.[0-9]+)?(,-?[0-9]+(\.[0-9]+)?)?)"/>

</content>
Declaration
tei_teidata.point =
   token
   {
      pattern = "(-?[0-9]+(\.[0-9]+)?,-?[0-9]+(\.[0-9]+)?(,-?[0-9]+(\.[0-9]+)?)?)"
   }
Example
<facsimile>
 <surface ulx="0uly="0lrx="400lry="280">
  <zone points="220,100 300,210 170,250 123,234">
   <graphic url="handwriting.png"/>
  </zone>
 </surface>
</facsimile>
Note

点は、ふたつの数値で定義される。数値は10進小数で表されることが望ましい。数値は小数点で終わってはならない。たとえば、0.0,84.20,84も有効であるが、0.,84.はそうではない。

teidata.pointer

teidata.pointer 現在の文書や他の場所にあるなんらかの他の資源を指す単一の相対URIもしくは絶対URIを提供するために用いる属性値の範囲を定義する。
Moduletei
Used by
Element:
Content model
<content>
 <dataRef restriction="\S+name="anyURI"/>
</content>
Declaration
tei_teidata.pointer = xsd:anyURI { pattern = "\S+" }
Note

シンタクス上正しい値の範囲はRFC 3986 Uniform Resource Identifier (URI): Generic Syntaxで定義されている。値自体はRFC 3987 Internationalized Resource Identifiers (IRIs)をURIにマッピングして符号化する。たとえば、https://secure.wikimedia.org/wikipedia/en/wiki/%https://secure.wikimedia.org/wikipedia/en/wiki/%25と符号化され、http://موقع.وزارة-الاتصالات.مصر/http://xn--4gbrim.xn----rmckbbajlc6dj7bxne2c.xn--wgbh1c/と符号化される。

teidata.probability

teidata.probability 出現度を示す属性値の範囲を定義する。
Moduletei
Used by
Content model
<content>
 <dataRef name="double">
  <dataFacet name="minInclusivevalue="0"/>
  <dataFacet name="maxInclusivevalue="1"/>
 </dataRef>
</content>
Declaration
tei_teidata.probability = xsd:double
Note

出現度は、0から1までの実数で表現される。0は 確実に偽、1は、 確実に真を示す。

teidata.probCert

teidata.probCert defines a range of attribute values which can be expressed either as a numeric probability or as a coded certainty value.
Moduletei
Used by
Content model
<content>
 <alternate>
  <dataRef key="teidata.probability"/>
  <dataRef key="teidata.certainty"/>
 </alternate>
</content>
Declaration
tei_teidata.probCert = teidata.probability | teidata.certainty

teidata.replacement

teidata.replacement 置換テンプレートを含む属性値を定義する。
Moduletei
Used by
Content model
<content>
 <textNode/>
</content>
Declaration
tei_teidata.replacement = text

teidata.temporal.iso

teidata.temporal.iso 日付や時間などの時間表現をとる属性値の範囲を定義する。これは、国際標準であるData elements and interchange formats - Information interchange - Representation of dates and timesに準拠したものになる。
Moduletei
Used by
Content model
<content>
 <alternate>
  <dataRef name="date"/>
  <dataRef name="gYear"/>
  <dataRef name="gMonth"/>
  <dataRef name="gDay"/>
  <dataRef name="gYearMonth"/>
  <dataRef name="gMonthDay"/>
  <dataRef name="time"/>
  <dataRef name="dateTime"/>
  <dataRef name="token"
   restriction="[0-9.,DHMPRSTWYZ/:+\-]+"/>

 </alternate>
</content>
Declaration
tei_teidata.temporal.iso =
   xsd:date
 | xsd:gYear
 | xsd:gMonth
 | xsd:gDay
 | xsd:gYearMonth
 | xsd:gMonthDay
 | xsd:time
 | xsd:dateTime
 | token { pattern = "[0-9.,DHMPRSTWYZ/:+\-]+" }
Note

当該属性値が他の値と比較される場合、時間帯は必ず示されるべきである。 またはdateTimeを使うべきである(訳注:この文は修正されるかもしれな い)。

ISO 8601:2004には基本形式拡張形式がある。 本ガイドラインでは拡張形式を使うことを推奨する。

teidata.temporal.w3c

teidata.temporal.w3c 日付や時間などの時間表現をとる属性値の範囲を定義する。これは、W3Cの XML Schema Part 2: Datatypes Second Editionに従ったものになる。
Moduletei
Used by
Content model
<content>
 <alternate>
  <dataRef name="date"/>
  <dataRef name="gYear"/>
  <dataRef name="gMonth"/>
  <dataRef name="gDay"/>
  <dataRef name="gYearMonth"/>
  <dataRef name="gMonthDay"/>
  <dataRef name="time"/>
  <dataRef name="dateTime"/>
 </alternate>
</content>
Declaration
tei_teidata.temporal.w3c =
   xsd:date
 | xsd:gYear
 | xsd:gMonth
 | xsd:gDay
 | xsd:gYearMonth
 | xsd:gMonthDay
 | xsd:time
 | xsd:dateTime
Note

当該属性値が他の値と比較される場合、時間帯は必ず示されるべきである。 またはdateTimeを使うべきである(訳注:この文は修正されるかもしれな い)。

teidata.text

teidata.text 空白文字を含みうるUnicode文字の単一の列として表現される何らかの識別のための文字列を示す属性値の範囲を定義する。
Moduletei
Used by
Element:
Content model
<content>
 <dataRef name="string"/>
</content>
Declaration
tei_teidata.text = string
Note

このデータ型を用いる属性は、単一の‘トークン’(空白文字や句読点を入れてもよい)を含まなければならない。

teidata.truthValue

teidata.truthValue 真偽値を示す属性値の範囲を定義する。
Moduletei
Used by
Element:
Content model
<content>
 <dataRef name="boolean"/>
</content>
Declaration
tei_teidata.truthValue = xsd:boolean
Note

このデータ型が取り得る値は、1またはtrueまたは0またはfalseである。曖昧な値が許されない場合に使われるデータ型である。属性値が真偽値でない場合、例えばunknowninapplicableの場合には、当該データ型の拡張版であるdata.xTruthValueを使うべきである。

teidata.version

teidata.version TEIあるいはUnicodeのバージョン番号を指定するために使用できる属性値の範囲を定義する。
Moduletei
Used by
Element:
Content model
<content>
 <dataRef name="token"
  restriction="[\d]+(\.[\d]+){0,2}"/>

</content>
Declaration
tei_teidata.version = token { pattern = "[\d]+(\.[\d]+){0,2}" }
Note

この属性の値はUnicodeコンソーシアムがバージョン番号のために定めた書式 (http://unicode.org/versions/) に従う。一つのバージョン番号は数字とピリオドのみからなる。与えられた1番目の数字がメジャーバージョンを示す。2番目と3番目の数字をマイナーバージョンとサブマイナーバージョンを示すために付加することができる。

teidata.versionNumber

teidata.versionNumber バージョン番号に使用される属性値の範囲を定義する。
Moduletei
Used by
Content model
<content>
 <dataRef name="token"
  restriction="[\d]+[a-z]*[\d]*(\.[\d]+[a-z]*[\d]*){0,3}"/>

</content>
Declaration
tei_teidata.versionNumber =
   token { pattern = "[\d]+[a-z]*[\d]*(\.[\d]+[a-z]*[\d]*){0,3}" }

teidata.word

teidata.word いち単語またはトークンをとる属性値の範囲を定義する。
Moduletei
Used by
Content model
<content>
 <dataRef name="token"
  restriction="[^\p{C}\p{Z}]+"/>

</content>
Declaration
tei_teidata.word = token { pattern = "[^\p{C}\p{Z}]+" }
Note

当該データ型を使用する属性値は、ひとつの‘単語’ になる。単語とは、文字、数字、句読点などの記号から構成されている。 空白文字は含むことができない。

teidata.xpath

teidata.xpath XPath式を含む属性を定義する。
Moduletei
Used by
Content model
<content>
 <textNode/>
</content>
Declaration
tei_teidata.xpath = text
Note

XPath式は、6.2. で定義された文法を用いる。

XPath式を評価するプログラムを作成するときは、プログラマーはコー ドインジェクション攻撃の可能性に留意すべきである。XPathのインジェ クション攻撃については、OWASP に掲載された記事を参照せよ。

teidata.xTruthValue

teidata.xTruthValue (拡張真理値) 不明の場合もある真偽値をとる属性値の範囲を定義する。
Moduletei
Used by
Content model
<content>
 <alternate>
  <dataRef name="boolean"/>
  <valList>
   <valItem ident="unknown"/>
   <valItem ident="inapplicable"/>
  </valList>
 </alternate>
</content>
Declaration
tei_teidata.xTruthValue = xsd:boolean | ( "unknown" | "inapplicable" )
Note

不確実性を持つべきではない場合は、データ型teidata.TruthValueを使用する。

Schema tei_kouigenji: Macros

macro.paraContent

macro.paraContent (paragraph content) 段落やそれ相当の要素の内容を定義する。 [1.3. The TEI Class System]
Moduletei
Used by
Content model
<content>
 <alternate minOccurs="0"
  maxOccurs="unbounded">

  <textNode/>
  <classRef key="model.paraPart"/>
 </alternate>
</content>
Declaration
tei_macro.paraContent = ( text | tei_model.paraPart )*

macro.phraseSeq

macro.phraseSeq (phrase sequence) 一連の文字列と句レベル要素を定義する。 [1.4.1. Standard Content Models]
Moduletei
Used by
Content model
<content>
 <alternate minOccurs="0"
  maxOccurs="unbounded">

  <textNode/>
  <classRef key="model.gLike"/>
  <classRef key="model.attributable"/>
  <classRef key="model.phrase"/>
  <classRef key="model.global"/>
 </alternate>
</content>
Declaration
tei_macro.phraseSeq =
   (
      text
    | tei_model.gLike
    | tei_model.attributable
    | tei_model.phrase
    | tei_model.global
   )*

macro.phraseSeq.limited

macro.phraseSeq.limited (limited phrase sequence) 一般には、現存資料の転記に使われることはない、一連の文字列と句レベル の要素を定義する。 [1.4.1. Standard Content Models]
Moduletei
Used by
Content model
<content>
 <alternate minOccurs="0"
  maxOccurs="unbounded">

  <textNode/>
  <classRef key="model.limitedPhrase"/>
  <classRef key="model.global"/>
 </alternate>
</content>
Declaration
tei_macro.phraseSeq.limited =
   ( text | tei_model.limitedPhrase | tei_model.global )*

macro.specialPara

macro.specialPara ('special' paragraph content) 一連の句レベルまたは挿入レベルの要素と共に、一連の構成要素レベルの要 素、または段落相当の構造を持つ、注釈やリスト項目となる要素の内容モデ ルを定義する。 [1.3. The TEI Class System]
Moduletei
Used by
Content model
<content>
 <alternate minOccurs="0"
  maxOccurs="unbounded">

  <textNode/>
  <classRef key="model.gLike"/>
  <classRef key="model.phrase"/>
  <classRef key="model.inter"/>
  <classRef key="model.divPart"/>
  <classRef key="model.global"/>
 </alternate>
</content>
Declaration
tei_macro.specialPara =
   (
      text
    | tei_model.gLike
    | tei_model.phrase
    | tei_model.inter
    | tei_model.divPart
    | tei_model.global
   )*
中村 覚 (Satoru Nakamura). Date: 2026-08-11