<num>

<num> (數字) 包含一個以任何形式呈現的數字。 [3.6.3 Numbers and Measures]
組件 core — Elements Available in All TEI Documents
屬性 att.global (@xml:id, @n, @xml:lang, @xml:base, @xml:space) (att.global.rendition (@rend, @style, @rendition)) (att.global.linking (@corresp, @synch, @sameAs, @copyOf, @next, @prev, @exclude, @select)) (att.global.analytic (@ana)) (att.global.facs (@facs)) (att.global.change (@change)) (att.global.responsibility (@cert, @resp)) (att.global.source (@source)) att.ranging (@atLeast, @atMost, @min, @max, @confidence) att.typed (type, @subtype)
type⚓︎ 指出數值的種類。
Derived from att.typed
狀態 非必備的
資料類型 teidata.enumerated
被推薦的值包含:
cardinal
絕對數,例如21、21.5
ordinal
序數,例如第21
fraction
分數,例如二分之一或是四分之三
percentage
百分比
value⚓︎ 用標準形式來說明該數字所代表的值。
狀態 非必備的
資料類型 teidata.numeric
a numeric value.
俱乐部会员
可包含在於
analysis: cl phr s span
figures: cell figDesc
iso-fs: fDescr fsDescr
linking: ab seg
spoken: u writing
tagdocs: eg valDesc
verse: metSym rhyme
可包含

Detailed analyses of quantities and units of measure in historical documents may also use the feature structure mechanism described in chapter 18 Feature Structures. The num element is intended for use in simple applications.

例子
<p><num type="ordinalvalue="21">第二十一</num>歲的生日那天,我變成<num type="cardinalvalue="21">二十一</num>歲了... 光以每秒<num value="10E10">10<hi rend="sup">10</hi>
 </num> 公分移動。</p>
Content model
<content>
 <macroRef key="macro.phraseSeq"/>
</content>
宣告
<rng:element name="num">
 <rng:ref name="att.global.attributes"/>
 <rng:ref name="att.global.rendition.attributes"/>
 <rng:ref name="att.global.linking.attributes"/>
 <rng:ref name="att.global.analytic.attributes"/>
 <rng:ref name="att.global.facs.attributes"/>
 <rng:ref name="att.global.change.attributes"/>
 <rng:ref name="att.global.responsibility.attributes"/>
 <rng:ref name="att.global.source.attributes"/>
 <rng:ref name="att.ranging.attributes"/>
 <rng:ref name="att.typed.attribute.subtype"/>
 <rng:optional>
  <rng:attribute name="type">
   <rng:choice>
    <rng:value>cardinal</rng:value>
    <rng:value>ordinal</rng:value>
    <rng:value>fraction</rng:value>
    <rng:value>percentage</rng:value>
    <rng:ref name="teidata.enumerated"/>
   </rng:choice>
  </rng:attribute>
 </rng:optional>
 <rng:optional>
  <rng:attribute name="value">
   <rng:ref name="teidata.numeric"/>
  </rng:attribute>
 </rng:optional>
 <rng:ref name="macro.phraseSeq"/>
</rng:element>
element num
{
   att.global.attributes,
   att.global.rendition.attributes,
   att.global.linking.attributes,
   att.global.analytic.attributes,
   att.global.facs.attributes,
   att.global.change.attributes,
   att.global.responsibility.attributes,
   att.global.source.attributes,
   att.ranging.attributes,
   att.typed.attribute.subtype,
   attribute type
   {
      "cardinal" | "ordinal" | "fraction" | "percentage" | teidata.enumerated
   }?,
   attribute value { teidata.numeric }?,
   macro.phraseSeq
}