X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/e31846b5146f144013121af2112f1ce62c226bc8..f164694b5e7ad5ed5f6d95743f9259bd3a9292bd:/src/librarian/pdf/wl2tex.xslt?ds=sidebyside diff --git a/src/librarian/pdf/wl2tex.xslt b/src/librarian/pdf/wl2tex.xslt index 1377bbb..ab189e0 100644 --- a/src/librarian/pdf/wl2tex.xslt +++ b/src/librarian/pdf/wl2tex.xslt @@ -2,7 +2,7 @@ <!-- This file is part of Librarian, licensed under GNU Affero GPLv3 or later. - Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. + Copyright © Fundacja Wolne Lektury. See NOTICE for more information. --> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" @@ -678,4 +678,39 @@ </xsl:template> + +<xsl:template match="f_spot"> + <xsl:if test="@active"> + <cmd name="clearpage"/> + <cmd name="thispagestyle"><parm>empty</parm></cmd> + <cmd name="vspace*"><parm><cmd name="fill"/></parm></cmd> + <env name="center"> + <env name="framed"> + <cmd name="vspace*"><parm>2em</parm></cmd> + <cmd name="Large"><parm> + <xsl:apply-templates mode="fspot"/> + </parm></cmd> + <cmd name="vspace*"><parm>2em</parm></cmd> + </env> + </env> + <cmd name="vspace*"><parm><cmd name="fill"/></parm></cmd> + </xsl:if> +</xsl:template> +<xsl:template match="br" mode="fspot"> + <TeXML escape="0"> + \\ + </TeXML> +</xsl:template> +<xsl:template match="text()" mode="fspot"> + <xsl:value-of select="." /> +</xsl:template> +<xsl:template match="a" mode="fspot"> + <TeXML escape="0">\href{<xsl:value-of select="@href" />}{<TeXML escape="1"><xsl:apply-templates mode="fspot" /></TeXML>}</TeXML> +</xsl:template> +<xsl:template match="nbsp" mode="fspot"> + <spec cat="tilde" /> +</xsl:template> + + + </xsl:stylesheet>