g (character or glyph) represents a non-standard character or glyph.
Where a symbol is non meaning-bearing, it should be represented using <g[@ref]>. The ref points to a glyph element in the charDecl section of the teiHeader which contains descrptive information about the glyph such as its name and character mappings that may be used to represent it. The TEI Guidelines chapter 5. Characters, Glyphs and Writing Modes provides a detailed explanation..
Note that in the past, many projects used type.
A Unicode character representing the symbol may also appear inside the g if desired.
The ref attribute in g can be used in various ways.
The following encoding
expects that charDecl in the <teiHeader/encodingDesc> of the document. This will look like the following.
The charDecl may be added in the file header, or included as am extermal resource. The existing charDecl.xml file in the example stylesheets is used as a default where charDecl is not explicitly encoded in the XML file. The character mappings in this file can accommodate parameters.
The list of glyphs may be maintained in an external file, in which case it is necessarty to specify the path to the charDecl.xml file in the <g/@ref>.
It is also possible to create shortcuts to external files, as defined by the TEI prefixDef mechanism. The following example maps the file path to the prefix "glyph."
It is possible to use multiple sources, such as the EpiDoc charDecl.xml file together with a project specific file that defines additional symbols. Alternatively, a project may contribute new symbols to the default charDecl in the stylesheet repository.
Panciera 1991 19: ((crux))
Dohnicht 4: ⊂crux⊃
Sosin 2011: /
SEG: dr.
The projects providing the following examples used type when this was the suggested way of encoding. They would now be encoded using <g/@ref> where the value of the ref is a pointer.
Transformation using the EpiDoc Reference stylesheets:
Transformation using the EpiDoc Reference stylesheets:
Transformation using the EpiDoc Reference stylesheets:
An extensive list of symbols is available in the EpiDoc default charDecl.xml file which forms part of the EpiDoc stylesheets.
Other pages describing <g>:
Other pages describing <glyph>:
Other pages describing <mapping>:
Other pages describing <prefixDef>: