fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Hebrew support in pdfs.
[librarian.git]
/
src
/
librarian
/
pdf
/
wl2tex.xslt
diff --git
a/src/librarian/pdf/wl2tex.xslt
b/src/librarian/pdf/wl2tex.xslt
index
3388154
..
78e9c2b
100644
(file)
--- a/
src/librarian/pdf/wl2tex.xslt
+++ b/
src/librarian/pdf/wl2tex.xslt
@@
-448,7
+448,7
@@
<xsl:template mode="inline"
<xsl:template mode="inline"
- match="pa|pe|pr|pt|mat|didask_tekst|slowo_obce|wyroznienie|osoba|indeks_dolny|wieksze_odstepy">
+ match="pa|pe|pr|pt|
ptrad|
mat|didask_tekst|slowo_obce|wyroznienie|osoba|indeks_dolny|wieksze_odstepy">
<cmd>
<xsl:attribute name="name">
<xsl:value-of select="wl:texcommand(name())" />
<cmd>
<xsl:attribute name="name">
<xsl:value-of select="wl:texcommand(name())" />
@@
-546,7
+546,7
@@
</xsl:template>
<xsl:template name="strip-for-toc">
</xsl:template>
<xsl:template name="strip-for-toc">
- <xsl:for-each select="./text() | nbsp | dywiz | alien | slowo_obce">
+ <xsl:for-each select="./text() | nbsp | dywiz | alien |
fallback |
slowo_obce">
<xsl:choose>
<xsl:when test="name() = 'nbsp'">
<xsl:text> </xsl:text>
<xsl:choose>
<xsl:when test="name() = 'nbsp'">
<xsl:text> </xsl:text>
@@
-557,6
+557,9
@@
<xsl:when test="name() = 'alien'">
<xsl:apply-templates mode="inline" />
</xsl:when>
<xsl:when test="name() = 'alien'">
<xsl:apply-templates mode="inline" />
</xsl:when>
+ <xsl:when test="name() = 'fallback'">
+ <xsl:apply-templates mode="inline" />
+ </xsl:when>
<xsl:when test="name() = 'slowo_obce'">
<xsl:call-template name="strip-for-toc" />
</xsl:when>
<xsl:when test="name() = 'slowo_obce'">
<xsl:call-template name="strip-for-toc" />
</xsl:when>
@@
-658,6
+661,12
@@
<xsl:apply-templates mode="inline" />
</group>
</xsl:template>
<xsl:apply-templates mode="inline" />
</group>
</xsl:template>
+<xsl:template match="fallback" mode="inline">
+ <group>
+ <cmd name="fallback" />
+ <xsl:apply-templates mode="inline" />
+ </group>
+</xsl:template>
<!-- ================ -->
<!-- = IGNORED TAGS = -->
<!-- ================ -->
<!-- = IGNORED TAGS = -->