ArticleslgStudy

science

Text Encoding Initiative

Text Encoding Initiative is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Text Encoding Initiative rather than just read about it. In short: The Text Encoding Initiative (TEI) is a text-centric community of practice in the academic field of digital humanities, operating continuously since the 1980s. The community currently runs a mailing list, meetings and conference series, and maintains the TEI technical standard, a journal, a wiki, a GitHub repository and toolchains for processing files and customizing the TEI framework.

Text Encoding Initiative — main illustration
Text Encoding Initiative — illustration

Key takeaways

  • Text Encoding Initiative belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Text Encoding Initiative to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Text Encoding Initiative from memory before moving on to harder problems.

Reference excerpt

The Text Encoding Initiative (TEI) is a text-centric community of practice in the academic field of digital humanities, operating continuously since the 1980s. The community currently runs a mailing list, meetings and conference series, and maintains the TEI technical standard, a journal, a wiki, a GitHub repository and toolchains for processing files and customizing the TEI framework.

TEI guidelines The TEI Guidelines collectively define an encoding standard currently serialized as an XML format. Many of its recommendations were previously expressed using and recommending use of SGML and it may allow formats other than XML in the future. The TEI Guidelines form the basis of and are the defining output of this community of practice. The format is more of a framework and differs from other well-known open formats for text (such as HTML and OpenDocument) in that it is primarily semantic rather than presentational and users can customize the TEI for their own needs. The semantics and interpretation of every tag and attribute are specified. There are over 580 individual elements representing different textual components and concepts: word, sentence, character, glyph, person, etc. In many cases general purpose elements such as damage but are then semantically extended through a series of attributes such as 'agent', 'degree', or 'extent', to provide more context for the damage. The methods of recording the user's interpretation of the textual phenomena are often grounded in one or more academic disciplines and detailed sections of the TEI Guidelines explain them with numerous examples.

Technical details The standard is split into two parts, a discursive textual description with extended examples and discussion and set of tag-by-tag definitions. Schemata in most of the modern formats (DTD, RELAX NG and XML Schema (W3C)) are generated automatically from the tag-by-tag definitions. A number of tools support the production of the guidelines and the application of the guidelines to specific projects. A number of elements can be used to document the presence of glyphs not present in Unicode such as glyph., char., or charDecl. This enables encoders to document non-Unicode characters present in their texts, but the TEI Guidelines encourage users to first check whether this is necessary. The TEI Guidelines also include documentation on how to make use of the Unicode Private Use Areas. Most users of the format do not use the complete range of elements, but produce a customisation using a project-specific subset of the tags and attributes defined by the Guidelines. The TEI defines a sophisticated customization mechanism known as ODD for this purpose. In addition to documenting and describing each TEI tag, an ODD specification specifies its content model and other usage constraints, which may be expressed using schematron. TEI Lite is an example of such a customization. It defines an XML-based file format for exchanging texts. It is a manageable selection from the extensive set of elements available in the full TEI Guidelines. As an XML-based format, TEI cannot directly deal with overlapping markup and non-hierarchical structures. A variety of options to represent this sort of data is suggested by the guidelines.

Examples The text of the TEI guidelines is rich in examples. There is also a samples page on the TEI wiki, which gives examples of real-world projects that expose their underlying TEI.

Prose tags TEI allows texts to be marked up syntactically at any level of granularity, or mixture of granularities. For example, this paragraph (p) has been marked up into sentences (s) and clauses (cl).

Verse TEI has tags for marking up verse. This example (taken from the French translation of the TEI Guidelines) shows a sonnet.

Choice tag The choice tag is used to represent sections of text that might be encoded or tagged in more than one possible way. In the following example, based on one in the standard, choice is used twice, once to indicate an original and a corrected number, and once to indicate an original and regularised spelling.

It should be noted though that XML and TEI XML in specific is not necessarily formed of embedded markup as in the above examples. It also relies on attributes which take URI-based pointers, which when used with nested hierarchies effectively creates a powerful human-readable graph notation. Moreover, TEI XML allows and enables the creation of stand off markup, often linked by xml:id attribute, with elements such as <standOff>.

ODD One Document Does it all ("ODD") is a literate programming language for XML schemas. In literate-programming style, ODD documents combine human-readable documentation and machine-readable models using the Documentation Elements module of the Text Encoding Initiative. Tools generate localised and internationalised HTML, EPUB, or PDF human-readable output and DTDs, W3C XML Schema, Relax NG Compact Syntax, or Relax NG XML Syntax machine-readable output. The Roma web application is built around the ODD format and can use it to generate schemas in DTD, W3C XML Schema, Relax NG Compact Syntax, or Relax NG XML Syntax formats, as used by many XML validation tools and services. ODD is the format used internally by the Text Encoding Initiative for the TEI technical standard. Although ODD files generally describe the difference between a customized XML format and the full TEI model, ODD also can be used to describe XML formats that are entirely separate from the TEI. One example of this is the W3C's Internationalization Tag Set which uses the ODD format to generate schemas and document its vocabulary.

TEI customizations TEI customizations are specializations of the TEI XML specification for use in particular fields or by specific communities.

EpiDoc (Epigraphic Documents) Charters Encoding Initiative Medieval Nordic Text Archive (Menota) Customization in the TEI is done through the ODD mechanism mentioned above. In truth since its P5 version, all so-called 'TEI Conformant' uses of the TEI Guidelines are based on a TEI customization documented in a TEI ODD file. Even when users choose one of the off-the-shelf pre-generated schemas to validate against, these have been created from freely available customization files.

Projects The format is used by many projects worldwide. GitHub contains more than 2 million TEI XML files. Practically all projects are associated with one or more universities. Some well-known projects that encode texts using TEI include:

… excerpt ends here. Continue reading the full article.

Illustrations

Text Encoding Initiative: TEI Logo
TEI Logo

Worked examples

Example 1 — a first encounter with Text Encoding Initiative

Start with the simplest possible case. Write down what Text Encoding Initiative claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Text Encoding Initiative before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Text Encoding Initiative ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Text Encoding Initiative

In research
Text Encoding Initiative appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Text Encoding Initiative in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Text Encoding Initiative is common in secondary-school and first-year university syllabi. It links to neighbouring topics Data modeling languages, Digital humanities, Markup languages, so understanding it makes those chapters shorter.
In everyday life
Look for Text Encoding Initiative outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Text Encoding Initiative” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Text Encoding Initiative in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Text Encoding Initiative means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Text Encoding Initiative out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Text Encoding Initiative in simple terms?

The Text Encoding Initiative (TEI) is a text-centric community of practice in the academic field of digital humanities, operating continuously since the 1980s. The community currently runs a mailing list, meetings and conference series, and maintains the TEI technical standard, a journal, a wiki, a…

Why does Text Encoding Initiative matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Text Encoding Initiative?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Text Encoding Initiative.

Tags

  • Data modeling languages
  • Digital humanities
  • Markup languages
  • Metadata standards
  • Text Encoding Initiative
  • Textual scholarship
  • XML-based standards

Keep exploring