Skip to content
Snippets Groups Projects
Commit 0f110aa0 authored by Martin de la Iglesia's avatar Martin de la Iglesia
Browse files

Anpassungen für Wildbad; Handling von Zeilenumbrüchen am Absatzanfang verbessert

parent df678b77
No related branches found
No related tags found
No related merge requests found
......@@ -173,9 +173,22 @@
<xsl:apply-templates select="//tei:titleStmt/tei:title" mode="step3"/>
</fo:block>
<fo:block space-before="2cm">
<xsl:apply-templates select="//tei:sourceDesc/tei:msDesc/tei:msIdentifier/tei:repository" mode="step3"/>
<xsl:text>, </xsl:text>
<xsl:apply-templates select="//tei:sourceDesc/tei:msDesc/tei:msIdentifier/tei:idno" mode="step3"/>
<xsl:choose>
<xsl:when test="contains(//tei:title, 'Wildbad/Heidelberg/Durlach 1615')">
<xsl:value-of select="substring-before(//tei:sourceDesc/tei:msDesc/tei:msIdentifier/tei:repository,' / ')"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="substring-before(//tei:sourceDesc/tei:msDesc/tei:msIdentifier/tei:idno,' / ')"/>
<xsl:text> / </xsl:text>
<xsl:value-of select="substring-after(//tei:sourceDesc/tei:msDesc/tei:msIdentifier/tei:repository,' / ')"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="substring-after(//tei:sourceDesc/tei:msDesc/tei:msIdentifier/tei:idno,' / ')"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="//tei:sourceDesc/tei:msDesc/tei:msIdentifier/tei:repository" mode="step3"/>
<xsl:text>, </xsl:text>
<xsl:apply-templates select="//tei:sourceDesc/tei:msDesc/tei:msIdentifier/tei:idno" mode="step3"/>
</xsl:otherwise>
</xsl:choose>
</fo:block>
<xsl:if test="//tei:listWit">
<fo:block space-before="2cm">
......@@ -238,11 +251,22 @@
<fo:leader leader-pattern="rule" leader-length="100%"/>
</fo:block>
</fo:static-content>
<fo:static-content flow-name="xsl-region-before">
<fo:block text-align="left">
<xsl:value-of select="//tei:title"/>
</fo:block>
</fo:static-content>
<xsl:choose>
<xsl:when test="contains(//tei:title, 'Wildbad/Heidelberg/Durlach 1615')">
<fo:static-content flow-name="xsl-region-before">
<fo:block text-align="left">
<xsl:value-of select="//tei:title"/>
</fo:block>
</fo:static-content>
</xsl:when>
<xsl:otherwise>
<fo:static-content flow-name="xsl-region-before">
<fo:block text-align="left">
<xsl:value-of select="//tei:title"/>
</fo:block>
</fo:static-content>
</xsl:otherwise>
</xsl:choose>
<fo:flow flow-name="xsl-region-body">
<xsl:for-each select="//tei:pb[tei:p/node()]">
<fo:block-container>
......@@ -258,20 +282,19 @@
</xsl:otherwise>
</xsl:choose>
<xsl:if test="(matches(@n, '^fol. 199v-200r$') and contains(//tei:title, 'München 1611')) or (matches(@n, '^fol. 50v$') and contains(//tei:title, 'München 1636'))">
<xsl:if test="(matches(@n, '^fol. 199v-200r$') and contains(//tei:title, 'München 1611')) or (matches(@n, '^fol. 50v$') and contains(//tei:title, 'München 1636')) or (matches(@n, '(^fol\. 3[5-7][0-9]v-3[5-7][0-9]r$)') and contains(//tei:title, 'Wildbad/Heidelberg/Durlach 1615'))">
<xsl:attribute name="break-after">page</xsl:attribute>
</xsl:if>
<fo:block text-align="justify" hyphenate="true" xml:lang="de">
<xsl:for-each select=".//tei:note[@subtype != 'addition']">
<fo:block line-height-shift-adjustment="disregard-shifts" margin-bottom="0.5em">
<xsl:choose>
<xsl:when test="(matches(ancestor::tei:pb/@n, '^fol. 199v-200r$') and contains(//tei:title, 'München 1611'))">
<xsl:attribute name="font-size">7.5pt</xsl:attribute>
</xsl:when>
</xsl:when>
<!-- vorläufig - kann wegfallen, wenn Stellenkommentar gekürzt wird: -->
<xsl:when test="(matches(ancestor::tei:pb/@n, '^fol. (5r|22v|23v|29v|34v|40v|56v)$') and contains(//tei:title, 'Eichstätt 1611')) or (matches(ancestor::tei:pb/@n, '^fol. (12v|18v|24v|31v|36r|39v|42r)$') and contains(//tei:title, 'Regensburg 1613')) or (matches(ancestor::tei:pb/@n, '^fol. (265r)$') and contains(//tei:title, 'Nürnberg 1612')) or (matches(ancestor::tei:pb/@n, '^fol. (166v)$') and contains(//tei:title, 'Neuburg 1614'))">
<xsl:when test="(matches(ancestor::tei:pb/@n, '^fol. (5r|22v|23v|29v|34v|40v|56v)$') and contains(//tei:title, 'Eichstätt 1611')) or (matches(ancestor::tei:pb/@n, '^fol. (12v|18v|24v|31v|36r|39v|42r)$') and contains(//tei:title, 'Regensburg 1613')) or (matches(ancestor::tei:pb/@n, '^fol. (265r)$') and contains(//tei:title, 'Nürnberg 1612')) or (matches(ancestor::tei:pb/@n, '^fol. (166v)$') and contains(//tei:title, 'Neuburg 1614')) or (matches(ancestor::tei:pb/@n, '(^fol\. 250v$)') and contains(//tei:title, 'Wildbad/Heidelberg/Durlach 1615'))">
<xsl:attribute name="font-size">8pt</xsl:attribute>
</xsl:when>
<xsl:when test="(matches(ancestor::tei:pb/@n, '^fol. (72r|89r|90r|110v|112r|114v|118v|121r|123r|123v|126v04r)$') and contains(//tei:title, 'München 1613')) or (matches(ancestor::tei:pb/@n, '^fol. (50r|75r|118v-119r)$') and contains(//tei:title, 'München 1636')) or (matches(ancestor::tei:pb/@n, '^fol. (5r|22v|23v|29v|34v|40v|48r|56v)$') and contains(//tei:title, 'Eichstätt 1611')) or (matches(ancestor::tei:pb/@n, '^fol. 44r$') and contains(//tei:title, 'Regensburg 1613')) or (matches(ancestor::tei:pb/@n, '^fol. (258r|259r|263r|283r|283v|284r|284v|285r|285v|286r|287r|288r|288v|289r|289v|291r|291v|292r|293r|293v)$') and contains(//tei:title, 'Nürnberg 1612'))">
......@@ -280,7 +303,7 @@
<xsl:when test="(matches(ancestor::tei:pb/@n, '^fol. (271v)$') and contains(//tei:title, 'Nürnberg 1612')) or (matches(ancestor::tei:pb/@n, '^fol. (164r)$') and contains(//tei:title, 'Neuburg 1614'))">
<xsl:attribute name="font-size">7pt</xsl:attribute>
</xsl:when>
<xsl:when test="(matches(ancestor::tei:pb/@n, '^fol. (75r|107v|126v04v)$') and contains(//tei:title, 'München 1613')) or (matches(ancestor::tei:pb/@n, '^fol. (11r|24r|26v|45v|46v|86r)$') and contains(//tei:title, 'Eichstätt 1611')) or (matches(ancestor::tei:pb/@n, '^fol. 30v$') and contains(//tei:title, 'Regensburg 1613')) or (matches(ancestor::tei:pb/@n, '^fol. (263v|271v|290r|292v|294v|295v)$') and contains(//tei:title, 'Nürnberg 1612'))">
<xsl:when test="(matches(ancestor::tei:pb/@n, '^fol. (75r|107v|126v04v)$') and contains(//tei:title, 'München 1613')) or (matches(ancestor::tei:pb/@n, '^fol. (11r|24r|26v|45v|46v|86r)$') and contains(//tei:title, 'Eichstätt 1611')) or (matches(ancestor::tei:pb/@n, '^fol. 30v$') and contains(//tei:title, 'Regensburg 1613')) or (matches(ancestor::tei:pb/@n, '^fol. (263v|271v|290r|292v|294v|295v)$') and contains(//tei:title, 'Nürnberg 1612')) or (matches(ancestor::tei:pb/@n, '(^fol\. 251v$)') and contains(//tei:title, 'Wildbad/Heidelberg/Durlach 1615'))">
<xsl:attribute name="font-size">6.5pt</xsl:attribute>
</xsl:when>
<xsl:when test="(matches(ancestor::tei:pb/@n, '^fol. 74r$') and contains(//tei:title, 'München 1613'))">
......@@ -332,7 +355,7 @@
<xsl:attribute name="margin-left">-0.5cm</xsl:attribute>
<xsl:attribute name="margin-top">0.5cm</xsl:attribute>
<xsl:attribute name="font-size">8pt</xsl:attribute>
</xsl:when>
</xsl:when>
<xsl:when test="matches(@n, '^fol. 172v$') and contains(//tei:title, 'München 1611')">
<xsl:attribute name="break-before">column</xsl:attribute>
......@@ -380,6 +403,43 @@
<xsl:attribute name="linefeed-treatment">preserve</xsl:attribute>
<xsl:attribute name="margin-top">-0.5cm</xsl:attribute>
</xsl:when>
<xsl:when test="matches(@n, '(^fol\. 3[5-7][0-9]v-3[5-7][0-9]r$)') and contains(//tei:title, 'Wildbad/Heidelberg/Durlach 1615')">
<xsl:attribute name="width">13cm</xsl:attribute>
<xsl:attribute name="font-size">7pt</xsl:attribute>
<xsl:attribute name="margin-left">-0.5cm</xsl:attribute>
<xsl:attribute name="wrap-option">wrap</xsl:attribute>
<xsl:attribute name="break-before">column</xsl:attribute>
<xsl:attribute name="break-after">page</xsl:attribute>
<!-- Die reguläre Folio-Angabe wird weiter unten deaktiviert. -->
<fo:block-container break-before="column" margin-top="-1cm">
<fo:block text-align="right" wrap-option="no-wrap" font-size="12pt">
<fo:inline>
<xsl:text>HAB, Cod. Guelf. 83 Extrav., </xsl:text>
<xsl:apply-templates select="@n" mode="step3"/>
</fo:inline>
</fo:block>
</fo:block-container>
</xsl:when>
<xsl:when test="matches(@n, '(^fol\. 353r$)') and contains(//tei:title, 'Wildbad/Heidelberg/Durlach 1615')">
<xsl:attribute name="break-before">column</xsl:attribute>
<xsl:attribute name="width">12.5cm</xsl:attribute>
<xsl:attribute name="linefeed-treatment">preserve</xsl:attribute>
<xsl:attribute name="margin-left">-0.5cm</xsl:attribute>
<xsl:attribute name="wrap-option">no-wrap</xsl:attribute>
<xsl:attribute name="font-size">10pt</xsl:attribute>
<xsl:attribute name="break-after">page</xsl:attribute>
<!-- Die reguläre Folio-Angabe wird weiter unten deaktiviert. -->
<fo:block-container break-before="column" margin-top="-1cm">
<fo:block text-align="right" wrap-option="no-wrap" font-size="12pt">
<fo:inline>
<xsl:text>HAB, Cod. Guelf. 83 Extrav., </xsl:text>
<xsl:apply-templates select="@n" mode="step3"/>
</fo:inline>
</fo:block>
</fo:block-container>
</xsl:when>
<xsl:when test="matches(@n, '^fol. 208v$') and contains(//tei:title, 'München 1611') or (matches(@n, '^fol. (25r)$') and contains(//tei:title, 'Eichstätt 1611'))">
<xsl:attribute name="break-before">column</xsl:attribute>
<xsl:attribute name="width">12.5cm</xsl:attribute>
......@@ -445,7 +505,7 @@
<xsl:attribute name="wrap-option">no-wrap</xsl:attribute>
<xsl:attribute name="font-size">8pt</xsl:attribute>
</xsl:when>
<xsl:when test="matches(@n, '^fol. (126v05r|126v09v-126v10r)$') and contains(//tei:title, 'München 1613')">
<xsl:when test="(matches(@n, '^fol. (126v05r|126v09v-126v10r)$') and contains(//tei:title, 'München 1613')) or (matches(@n, '(^fol. 248v$)') and contains(//tei:title, 'Wildbad/Heidelberg/Durlach 1615'))">
<xsl:attribute name="break-before">column</xsl:attribute>
<xsl:attribute name="width">12.5cm</xsl:attribute>
<xsl:attribute name="linefeed-treatment">preserve</xsl:attribute>
......@@ -736,14 +796,22 @@
</fo:block-container>
</xsl:if>
<xsl:if test="not(matches(@n, '^fol. 172v$') and contains(//tei:title, 'München 1611') or (matches(@n, '^fol. (74r|126v0(5v|6r))$') and contains(//tei:title, 'München 1613')) or (matches(@n, '^fol. 18r$') and contains(//tei:title, 'München 1636')))">
<xsl:if test="not(matches(@n, '^fol. 172v$') and contains(//tei:title, 'München 1611') or (matches(@n, '^fol. (74r|126v0(5v|6r))$') and contains(//tei:title, 'München 1613')) or (matches(@n, '^fol. 18r$') and contains(//tei:title, 'München 1636')) or (matches(@n, '(^fol\. 3[5-7][0-9])') and contains(//tei:title, 'Wildbad/Heidelberg/Durlach 1615') and contains(//tei:title, 'Wildbad/Heidelberg/Durlach 1615')))">
<fo:block-container break-before="column" break-after="page" margin-top="-1cm">
<fo:block text-align="right" wrap-option="no-wrap">
<fo:inline>
<xsl:text>HAB, </xsl:text>
<xsl:apply-templates select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:msDesc/tei:msIdentifier/tei:idno" mode="step3"/>
<xsl:text>, </xsl:text>
<xsl:apply-templates select="@n" mode="step3"/>
<xsl:choose>
<xsl:when test="contains(//tei:title, 'Wildbad/Heidelberg/Durlach 1615')">
<xsl:text>München, UB, 2° Cod. Ms. 403, </xsl:text>
<xsl:apply-templates select="@n" mode="step3"/>
</xsl:when>
<xsl:otherwise>
<xsl:text>HAB, </xsl:text>
<xsl:apply-templates select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:msDesc/tei:msIdentifier/tei:idno" mode="step3"/>
<xsl:text>, </xsl:text>
<xsl:apply-templates select="@n" mode="step3"/>
</xsl:otherwise>
</xsl:choose>
</fo:inline>
</fo:block>
</fo:block-container>
......@@ -870,7 +938,7 @@
</fo:inline>
</xsl:template>
<xsl:template match="tei:lb[not(local-name(preceding-sibling::node()[1]) = 'pb')][not(parent::tei:p and count(preceding-sibling::*) = 0)]" mode="step3">
<xsl:template match="tei:lb[not(local-name(preceding-sibling::node()[1]) = 'pb')][not(parent::tei:p and (count(preceding-sibling::node()) = 0) or matches(preceding-sibling::node()[1],'^\s*$'))]" mode="step3">
<xsl:text>&#xA;</xsl:text>
<xsl:apply-templates mode="step3"/>
</xsl:template>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment