distantreading / WG1

Discussion documents and working papers from WG1
8 stars 9 forks source link

Translations for boilerplate in the header #30

Open lb42 opened 5 years ago

lb42 commented 5 years ago

There are a few places in the TEI Header where a bit of boilerplate text is required, e.g. "ELTEC edition" in the title, "Encoded in ELTEC" in the responsibility statement, "header created" in the revisionDescription and so on. These should all be in the language of the text, rather than in English.

To make at least the first of these consistent, the headChecker script will do the following when it finds a title which lacks the magic word "ELTeC" :

  <xsl:choose>
            <xsl:when test="$textLang eq 'cs'">vydání ELTeC</xsl:when>
            <xsl:when test="$textLang eq 'de'">ELTeC ausgabe</xsl:when>
            <xsl:when test="$textLang eq 'en'">ELTeC edition</xsl:when>
            <xsl:when test="$textLang eq 'fr'">édition ELTeC</xsl:when>
            <xsl:when test="$textLang eq 'hu'">ELTeC kiadás</xsl:when>
            <xsl:when test="$textLang eq 'it'">edizione ELTeC</xsl:when>
            <xsl:when test="$textLang eq 'lv'">ELTeC izdevums</xsl:when>
            <xsl:when test="$textLang eq 'no'">ELTeC-utgave</xsl:when>
            <xsl:when test="$textLang eq 'po'">edycja ELTeC</xsl:when>
            <xsl:when test="$textLang eq 'pt'">edição para o ELTeC</xsl:when>
            <xsl:when test="$textLang eq 'ro'">ediție ELTeC</xsl:when>
            <xsl:when test="$textLang eq 'sl'">Izdaja ELTeC</xsl:when>
            <xsl:when test="$textLang eq 'sp'">edición ELTeC</xsl:when>
            <xsl:when test="$textLang eq 'sr'">ELTeC издање</xsl:when>
            <xsl:otherwise>ELTeC edition</xsl:otherwise>
        </xsl:choose>

Not sure how far we want to go with this. But certainly encoders should remember that their header ought to use the language of the text.

CarolinOdebrecht commented 5 years ago

Good idea. Does it also include a ":" between title and boilerplate text? (e.g. as in Chéri : ELTeC edition)