Skip to content

A problem with @lang: Review attributes for languages, and attribute-element name sharing #2893

Description

@ebeshero

An@lang that may only be used on a <code> element for designating a computer programming language seems a very inefficient use of an attribute that should be available elsewhere.

For example, consulting on a project that works with as-yet unknown or identified language systems, we have need to use esoteric codes defined internally by a scholarly community simply to identify shifts from one unknown language system to another (e.g. "language A" vs. "language B"). Scholars have identified multiple language systems in the document that they have designated with a special lettering system that would not be conformant with @xml:lang because the project codes don't follow BCP 47.

Other TEI attributes related to language are sparse and bespoke for set purposes. So we need a more multipurpose attribute for designating as-yet unknown or unclassified languages in a document.

Related questions:
Why is @lang not a member of teidata.language? (Maybe this is because @lang was introduced prior to 2005 with the <code> element and has not been discussed much since then).

Related to P6:

  • If we want every attribute to be convertible to an element in P6, we'll have problems with the current definition of @lang not matching <lang> (which broadly "contains the name of a language mentioned in etymological or other linguistic discussion).

  • Which other P5 attributes and elements share the same name but are defined with different scopes / semantics?

(Tagging @HadleighJae since this is relevant to her project.)

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions