Secondary tags

From Apertium
Revision as of 11:03, 30 May 2020 by Tino Didriksen (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Registry of known secondary tag prefixes/namespaces that may only be used for their intended purpose. These must be kept the same across all languages and pairs.

Prefix Gloss Notes
id Numerical ID For alignment and dependency, e.g. <id:5>
sf Surface form For when there is no translation, e.g. <sf:station>
t Inline markup tag In the form of t:tag:uniq, where tag is which inline tag this is (i, em, a, strong, b, etc) and uniq is a placeholder that the deformatter/reformatter can use to look up the whole tag with all attributes. E.g. <t:a:qx4u6>
tr Translatable For marking whether the reading can be translated (i.e. exists in bidix and generator), though currently only the value 0 is respected (meaning no). E.g. <tr:0>
uc Upper case If the input token had any upper-case letters, denotes if the token was First upper, ALL UPPER, or MiXeD UppEr. E.g. <uc:first>, <uc:all>, <uc:mixed>

See also[edit]