<language>

<language> characterizes a single language or sublanguage used within a text. [2.4.2 Language Usage]
Moduleheader — 2 The TEI Header
Attributesatt.global (@xml:id, @n, @xml:lang, @rend, @rendition, @xml:base, @xml:space) (att.global.linking (@corresp, @synch, @sameAs, @copyOf, @next, @prev, @exclude, @select)) (att.global.analytic (@ana)) (att.global.facs (@facs)) (att.global.change (@change))
ident(identifier) Supplies a language code constructed as defined in BCP 47 which is used to identify the language documented by this element, and which is referenced by the global xml:lang attribute.
Status Required
Datatype

<rng:ref name="data.language"/>
data.language
usagespecifies the approximate percentage (by volume) of the text which uses this language.
Status Optional
Datatype

<rng:data type="nonNegativeInteger">
 <rng:param name="maxInclusive">100</rng:param>
</rng:data>
xsd:nonNegativeInteger { maxInclusive = "100" }
Values a whole number between 0 and 100
Used by
Contained by
header: langUsage
May contain
Declaration

<rng:element name="language">
 <rng:ref name="att.global.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:attribute name="ident">
  <rng:ref name="data.language"/>
 </rng:attribute>
 <rng:optional>
  <rng:attribute name="usage">
   <rng:data type="nonNegativeInteger">
    <rng:param name="maxInclusive">100</rng:param>
   </rng:data>
  </rng:attribute>
 </rng:optional>
 <rng:ref name="macro.phraseSeq.limited"/>
</rng:element>
element language
{
   att.global.attributes,
   att.global.linking.attributes,
   att.global.analytic.attributes,
   att.global.facs.attributes,
   att.global.change.attributes,
   attribute ident { data.language },
   attribute usage { xsd:nonNegativeInteger { maxInclusive = "100" } }?,
   macro.phraseSeq.limited
}
Example
<langUsage xml:lang="en-US">
 <language ident="en-US" usage="75">modern American English</language>
 <language ident="i-az-Arab" usage="20">Azerbaijani in Arabic script</language>
 <language ident="x-lap" usage="05">Pig Latin</language>
</langUsage>
Note
Particularly for sublanguages, an informal prose characterization should be supplied as content for the element.