Historical release v0.9.4. Latest at lex-0.org.

TEI Lex-0

Clarity for lexicographers. Stability for data. Compatibility for the future.

10.1.58. <language>

<language> (language) characterizes a single language or sublanguage used within a text. [2.4.2. Language Usage]
Moduleheader — Specification
Attributes
role
StatusRequired
Legal values are:
objectLanguage
Object language is the "language being described." (ISO 16642:2017)
workingLanguage
Working language is the "language used to describe objects." (ISO 16642:2017)
sourceLanguage
Source language is the language of the content to be translated. (ISO 17100:215)
targetLanguage
Target language is the language of the content into which source language content is translated. (ISO 17100:215)
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 may be referenced by the global xml:lang attribute.
StatusRequired
Datatypeteidata.language
usagespecifies the approximate percentage of the text which uses this language.
StatusOptional
DatatypenonNegativeInteger
Contained by
header: langUsage
May containCharacter data only
Note

In a monolingual dictionary, where the object language and the working language are the same, one should list each as a separate <language> element with a specific role attribute. A human-readable, informal prose characterization should be supplied as content for the element. When the human-readable name(s) of languages are provided in multiple languages, the attribute xml:lang should be used to indicate what language is used to name the given object or working language.

A bilingual dictionary could be documented as having two object languages. In those cases, however, it is recommended -- and more precise -- to describe each object language as either a source language or a target language.

Example
<langUsage>
 <language ident="rurole="objectLanguagexml:lang="ru">Русский литературный язык XIX века</language>
 <language ident="rurole="workingLanguagexml:lang="ru">Современный русский язык</language>
 <language ident="rurole="objectLanguagexml:lang="en">19th-century literary Russian</language>
 <language ident="rurole="workingLanguagexml:lang="en">Modern Russian</language>
</langUsage>
Example
<langUsage>
 <language ident="churole="sourceLanguage">Old Church Slavic</language>
 <language ident="larole="targetLanguage">Latin</language>
 <language ident="grcrole="targetLanguage">(Premodern) Greek</language>
</langUsage>
Content model
<content>
 <textNode/>
</content>
    
Schema Declaration

element language
{
   att.scope.attributes,
   attribute role
   {
      "objectLanguage"
    | "workingLanguage"
    | "sourceLanguage"
    | "targetLanguage"
   },
   attribute ident { text },
   attribute usage { text }?,
   text
}