< 

Translation XML Files

< 

Table of Contents

< 

The Work Sets XML File


Annotation XML Files

Annotation XML files define static annotations. Our Iliad Scholia and the E. K. annotations for Spenser's Shepheardes Calender are currently the only NU static annotations.

The directory annotations contains the standard NU annotations. You can add additional annotation definition files for your own works if you wish.

As an example, the Iliad Scholia annotation file is:

<?xml version="1.0" encoding="utf-8"?>
<WordHoardAnnotations corpus="ege" work="IL" category="Iliad Scholia">
    <annotation>
        <start line="IL.1.1"/>
        <end line="IL.1.1"/>
        <p>
        <hi rend="bold">1</hi>
        a.
        <hi rend="sperrtext">Μῆνιν ἄειδε:</hi>
        ζητοῦσι, διὰ τί ἀπὸ τῆς μήνιδος
        ἤρξατο, οὕτω δυσφήμου ὀνόματος. διὰ δύο ταῦτα,
        πρῶτον μέν, ἵν' ἐκ τοῦ πάθους †ἀποκαταρρεύσῃ† τὸ
        τοιοῦτο μόριον τῆς ψυχῆς καὶ προσεκτικωτέρους τοὺς
        ἀκροατὰς ἐπὶ τοῦ μεγέθους ποιήσῃ καὶ προεθίσῃ φέρειν
        γενναίως ἡμᾶς τὰ πάθη, μέλλων πολέμους ἀπαγγέλλειν·
        δεύτερον δέ, ἵνα τὰ ἐγκώμια τῶν Ἑλλήνων πιθανώτερα
        ποιήσῃ. ἐπεὶ δὲ ἔμελλε νικῶντας ἀποφαίνειν τοὺς
        Ἕλληνας, εἰκότως †οὐ κατατρέχει ἀξιοπιστότερον† ἐκ
        τοῦ μὴ πάντα χαρίζεσθαι τῷ ἐκείνων ἐπαίνῳ. | ἤρξατο
        μὲν ἀπὸ μήνιδος, ἐπείπερ αὕτη τοῖς πρακτικοῖς
        ὑπόθεσις γέγονεν· ἄλλως τε καὶ τραγῳδίαις τραγικὸν
        ἐξεῦρε προοίμιον· καὶ γὰρ προσεκτικοὺς ἡμᾶς ἡ τῶν
        ἀτυχημάτων διήγησις ἐργάζεται, καὶ ὡς ἄριστος ἰατρὸς
        πρῶτον ἀναστέλλων τὰ νοσήματα τῆς ψυχῆς ὕστερον τὴν
        ἴασιν ἐπάγει. Ἑλληνικὸν δὲ τὸ πρὸς τέλει τὰς ἡδονὰς
        ἐπάγειν. |  ἰστέον δέ· ὥσπερ ἐπὶ συκῆς πρῶτον μέν
        ἐστιν ὄλυνθος, εἶτα φήληξ σῦκον ἰσχάς, οὕτω πρῶτον
        ὀργή, θυμὸς χόλος κότος μῆνις. ὅμως ὁ ποιητὴς ὡς
        συνωνύμοις ὀνόμασιν ἐπὶ Ἀχιλλέως χρῆται· „ἠὲ χόλον
        παύσειεν ἐρητύσειέ τε θυμόν“ (Α 192)· „οὐδ' ὄθομαι
        κοτέοντος“ (Α 181)· „αὐτὰρ ὁ μήνιε νηυσὶ παρήμενος“
        (Α 488).
        <hi rend="bold">AT</hi>
        <seg type="marginalia">
        <hi rend="italic"> d</hi>
        |<hi rend="italic"> ex.</hi>
        |<hi rend="italic"> ex.</hi>
        </seg>
        </p>
    </annotation>
...
    <annotation>
        <start line="IL.24.804"/>
        <end line="IL.24.804"/>
        <p>
        <hi rend="bold">804</hi> b.
        {ὣς οἵ γ' ἀμφίεπον}
        <hi rend="sperrtext"> τάφον:</hi>
        Ἀττικοὶ τὸ περίδειπνον
        <hi rend="sperrtext">τάφον</hi>
        λέγουσι, Πολύϊδος (p. l. g. iii p. 632 bgk.) δὲ τὸ
        μνημεῖον.
        <hi rend="bold">T</hi>
        <seg type="marginalia">
        <hi rend="italic">ex.</hi>
        </seg>
        </p>
    </annotation>
</WordHoardAnnotations>

Annotation XML files have the following elements:

  • WordHoardAnnotations. The root element.

    Attributes:

    • corpus = the corpus id. Required.
    • work = the work id. Required.
    • category = the annotation category name. Required.

    Children:

    • annotation (0..n). Annotations.
  • annotation. An annotation.

    Children:

    • start (1). The starting location in the text.
    • end (1). The ending location in the text.
    • p (0..n). Paragraphs of annotation text.
  • start. Starting location.

    Attributes:

    • line. The id of the starting line.
    • word. The id of the starting word.
    • offset. Character offset in the line or word.

    At least one of the line or word attributes must be specified. If both are present, the line attribute is used and the word attribute is ignored. The offset attribute is optional. It specifies a character offset within the line or word. If it is not present, the start of the line or word is used.

  • end. Ending location.

    Attributes:

    • line. The id of the ending line.
    • word. The id of the ending word.
    • offset. Character offset in the line or word.

    At least one of the line or word attributes must be specified. If both are present, the line attribute is used and the word attribute is ignored. The offset attribute is optional. It specifies a character offset within the line or word. If it is not present, the end of the line or word is used.

  • p. A paragraph of annotation text.

    Attributes:

    • rend="style". Optional. The default style is normal.
    • align="alignment". Optional. The default alignment is left.
    • indent = Opional additional left margin indentation in pixels.

    Children:

    • hi (0..n). Changes style. See Work XML Files.
    • title (0..n). Changes style to italics. See Work XML Files.
    • seg type="marginalia" (0..n). Marginalia.
  • seg type="marginalia". Marginalia.

    Children: Same as in p elements, except that nested marginalia are not permitted.


< 

Translation XML Files

< 

Table of Contents

< 

The Work Sets XML File