fix slowo_obce for toc
authorJan Szejko <janek37@gmail.com>
Mon, 3 Sep 2018 12:47:27 +0000 (14:47 +0200)
committerJan Szejko <janek37@gmail.com>
Mon, 3 Sep 2018 12:47:27 +0000 (14:47 +0200)
librarian/pdf/wl2tex.xslt

index 8124410..4a27875 100644 (file)
     <cmd name="nazwapodutworu">
         <parm><xsl:apply-templates mode="inline"/></parm>
         <parm>
     <cmd name="nazwapodutworu">
         <parm><xsl:apply-templates mode="inline"/></parm>
         <parm>
-            <xsl:for-each select="./text() | nbsp | dywiz | alien">
+            <xsl:for-each select="./text() | nbsp | dywiz | alien | slowo_obce">
                 <xsl:choose>
                     <xsl:when test="name() = 'nbsp'">
                         <xsl:text> </xsl:text>
                 <xsl:choose>
                     <xsl:when test="name() = 'nbsp'">
                         <xsl:text> </xsl:text>
                     <xsl:when test="name() = 'dywiz'">
                         <xsl:text>-</xsl:text>
                     </xsl:when>
                     <xsl:when test="name() = 'dywiz'">
                         <xsl:text>-</xsl:text>
                     </xsl:when>
-                    <xsl:when test="name() = 'alien'">
+                    <xsl:when test="name() = 'alien' or name() = 'slowo_obce'">
                         <xsl:apply-templates mode="inline" />
                     </xsl:when>
                     <xsl:otherwise>
                         <xsl:apply-templates mode="inline" />
                     </xsl:when>
                     <xsl:otherwise>
         <parm><xsl:apply-templates mode="inline"/></parm>
         <parm>
             <!-- osobny szablon? -->
         <parm><xsl:apply-templates mode="inline"/></parm>
         <parm>
             <!-- osobny szablon? -->
-            <xsl:for-each select="./text() | nbsp | dywiz | alien">
+            <xsl:for-each select="./text() | nbsp | dywiz | alien | slowo_obce">
                 <xsl:choose>
                     <xsl:when test="name() = 'nbsp'">
                         <xsl:text> </xsl:text>
                 <xsl:choose>
                     <xsl:when test="name() = 'nbsp'">
                         <xsl:text> </xsl:text>
                     <xsl:when test="name() = 'dywiz'">
                         <xsl:text>-</xsl:text>
                     </xsl:when>
                     <xsl:when test="name() = 'dywiz'">
                         <xsl:text>-</xsl:text>
                     </xsl:when>
-                    <xsl:when test="name() = 'alien'">
+                    <xsl:when test="name() = 'alien' or name() = 'slowo_obce'">
                         <xsl:apply-templates mode="inline" />
                     </xsl:when>
                     <xsl:otherwise>
                         <xsl:apply-templates mode="inline" />
                     </xsl:when>
                     <xsl:otherwise>