THL Toolbox > Developers' Zone > THL Database Technologies and Models > Our Guide to TEI XML Markup > Text Markup - Emphasis
Contributor(s): Nathaniel Garson & David Germano
The general element for emphasis is the <hi> tag. It uses its “rend” attribute to distinguish between types of emphasis. It contains the text that is to be emphasized. There are two typologies for the “rend” attribute, a general one and a specific one.
In the general typology, there are two values for the rend attribute, strong and weak. Bold and italic are examples respectively of strong and weak emphasis, but by using the general typology, the rendering is not limited to those choices. One may choose to render strong as bold and weak as italic, or one could render strong as dark green and weak as light green.
Specific typology of the rend attribute of the <hi> element refers to using the terms, “bold”, “italic”, “underline”, etc. These specifically indicate the type of rendering that is to be performed.
However, there is another use of the <hi> element apart from ostensibly rendering concerns. This is to mark up Tibetan words or phrases that are contained within non-Tibetan text. In such an instance, the “rend” attribute is not used but the <hi> element’s lang attribute is set to “tib”. This is for latter implementations when all elements with lang=”tib” will be rendered in Tibetan script.
When one wants to include a foreign language gloss for an English word, or vice versa, where the gloss is included in parentheses and italicized, one can use the <gloss> element. The lang attribute for the element should be set to the appropriate language code, as listed in the global attributes section. The XSLT stylesheets will automatically place the words within the tag in parentheses and italicize them. Thus, for example, the element <gloss lang="tib">thig le</gloss> would be rendered as: (thig le).