Figure Annotation¶
Structure annotation for including pictures, optionally captioned, in documents.
Specification¶
Figure¶
Annotation Category: | |
---|---|
Declaration: |
|
Version History: | |
Since the beginning |
|
Element: |
|
API Class: |
|
Required Attributes: | |
Optional Attributes: | |
|
|
Accepted Data: |
|
Valid Context: |
|
Extra Attributes: | |
|
Explanation¶
Even figures can be encoded in the FoLiA format, although the actual figure
itself can only be included as a mere reference to an external image file, but
including such a reference with the src
attribute is optional.
Within the context of a figure, a caption
element can be used.
Example¶
The following example shows a figure and caption:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | <?xml version="1.0" encoding="utf-8"?> <FoLiA xmlns="http://ilk.uvt.nl/folia" version="2.0" xml:id="example"> <metadata> <annotations> <text-annotation> <annotator processor="p1" /> </text-annotation> <division-annotation set="https://raw.githubusercontent.com/LanguageMachines/uctodata/master/setdefinitions/divisions.foliaset.xml"> <annotator processor="p1" /> </division-annotation> <head-annotation> <annotator processor="p1" /> </head-annotation> <figure-annotation> <annotator processor="p1" /> </figure-annotation> </annotations> <provenance> <processor xml:id="p1" name="proycon" type="manual" /> </provenance> </metadata> <text xml:id="example.text"> <div xml:id="example.div.1" class="chapter" n="1"> <head> <t>Rosetta Stone</t> </head> <figure xml:id="example.figure.1" n="1" src="https://upload.wikimedia.org/wikipedia/commons/thumb/2/23/Rosetta_Stone.JPG/1280px-Rosetta_Stone.JPG"> <caption><t>Wikipedia: The Rosetta Stone is a granodiorite stele, found in 1799, inscribed with three versions of a decree issued at Memphis, Egypt in 196 BC during the Ptolemaic dynasty on behalf of King Ptolemy V </t></caption> </figure> </div> </text> </FoLiA> |