fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove cut lines
[librarian.git]
/
librarian
/
pdf
/
wl2tex.xslt
diff --git
a/librarian/pdf/wl2tex.xslt
b/librarian/pdf/wl2tex.xslt
index
c278981
..
8a31a22
100644
(file)
--- a/
librarian/pdf/wl2tex.xslt
+++ b/
librarian/pdf/wl2tex.xslt
@@
-107,7
+107,7
@@
</xsl:if>
\def\editors{<TeXML escape="1"><xsl:call-template name="editors" /></TeXML>}
<xsl:if test="@funders">
</xsl:if>
\def\editors{<TeXML escape="1"><xsl:call-template name="editors" /></TeXML>}
<xsl:if test="@funders">
- \def\funders{Publikację
ufundowali i ufundowa
ły:
+ \def\funders{Publikację
wsparli i wspar
ły:
<TeXML escape="1"><xsl:value-of select="@funders" /></TeXML>.}
</xsl:if>
<TeXML escape="1"><xsl:value-of select="@funders" /></TeXML>.}
</xsl:if>
@@
-191,7
+191,22
@@
Tekst opracowany na podstawie: <TeXML escape="1"><xsl:apply-templates select=".//dc:source" mode="inline" /></TeXML>
\vspace{.6em}
</xsl:if>}
Tekst opracowany na podstawie: <TeXML escape="1"><xsl:apply-templates select=".//dc:source" mode="inline" /></TeXML>
\vspace{.6em}
</xsl:if>}
+ \def\publisherinfo{
+ <xsl:if test=".//dc:publisher">
+ Wydawca:
+ <TeXML escape="1">
+ <xsl:for-each select=".//dc:publisher/text()">
+ <xsl:value-of select="."/>
+ <xsl:if test="not(position() = last())">, </xsl:if>
+ </xsl:for-each>
+ </TeXML>
+ \vspace{.6em}
+ </xsl:if>}
\def\description{<TeXML escape="1"><xsl:apply-templates select=".//dc:description" mode="inline" /></TeXML>}
\def\description{<TeXML escape="1"><xsl:apply-templates select=".//dc:description" mode="inline" /></TeXML>}
+ <xsl:if test=".//meta[@id='pdf-id']">
+ <xsl:variable name="isbn" select=".//meta[@id='pdf-id']"/>
+ \def\isbn{ISBN <xsl:value-of select="substring-after($isbn, 'ISBN-')"/>}
+ </xsl:if>
</TeXML>
</xsl:template>
</TeXML>
</xsl:template>
@@
-256,6
+271,12
@@
</cmd>
</xsl:template>
</cmd>
</xsl:template>
+<xsl:template match="ilustr">
+ <cmd name="ilustr">
+ <parm><xsl:value-of select="@src" /></parm>
+ <parm><xsl:value-of select="@alt" /></parm>
+ </cmd>
+</xsl:template>
<!-- ========================================== -->
<!-- = PARAGRAPH TAGS = -->
<!-- ========================================== -->
<!-- = PARAGRAPH TAGS = -->
@@
-341,7
+362,7
@@
<!-- ================================================ -->
<xsl:template mode="inline"
<!-- ================================================ -->
<xsl:template mode="inline"
- match="pa|pe|pr|pt|mat|didask_tekst|slowo_obce|wyroznienie|osoba">
+ match="pa|pe|pr|pt|mat|didask_tekst|slowo_obce|wyroznienie|osoba
|indeks_dolny
">
<cmd>
<xsl:attribute name="name">
<xsl:value-of select="wl:texcommand(name())" />
<cmd>
<xsl:attribute name="name">
<xsl:value-of select="wl:texcommand(name())" />
@@
-455,7
+476,13
@@
<cmd name="par" />
<cmd name="vspace"><parm>1em</parm></cmd>
<group><cmd name="raggedright" />
<cmd name="par" />
<cmd name="vspace"><parm>1em</parm></cmd>
<group><cmd name="raggedright" />
- <env name="longtabu"> to <TeXML escape="0">\textwidth </TeXML>
+ <xsl:element name="env">
+ <xsl:attribute name="name">
+ <xsl:choose>
+ <xsl:when test="name(.)='tabela'">longtabu</xsl:when>
+ <xsl:otherwise>tabu</xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute> to <TeXML escape="0">\textwidth </TeXML>
<!--parm><cmd name="textwidth"/></parm-->
<parm><TeXML escape="0"><xsl:value-of select="@_format" /></TeXML></parm>
<xsl:choose>
<!--parm><cmd name="textwidth"/></parm-->
<parm><TeXML escape="0"><xsl:value-of select="@_format" /></TeXML></parm>
<xsl:choose>
@@
-467,7
+494,7
@@
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
- </
env
>
+ </
xsl:element
>
</group>
<cmd name="vspace"><parm>1em</parm></cmd>
</xsl:template>
</group>
<cmd name="vspace"><parm>1em</parm></cmd>
</xsl:template>