setup(
name='librarian',
- version='24.5.8',
+ version='24.5.9',
description='Converter from WolneLektury.pl XML-based language to XHTML, TXT and other formats',
author="Marek Stępniowski",
author_email='marek@stepniowski.com',
"numeracja": tools.Numeracja,
"rownolegle": tools.Rownolegle,
"tab": tools.Tab,
+ "audio": tools.Audio,
+ "br": tools.Br,
# Section
"wywiad_pyt": blocks.WywiadPyt,
get_epub_attr = get_html_attr
+
+class Audio(WLElement):
+ def build_epub(self, builder):
+ return
+
+
+class Br(WLElement):
+ TXT_SUFFIX = "\n"
+ EPUB_TAG = HTML_TAG = "br"
\newcommand{\osoba}[1]{%
{\scshape \MakeLowercase{#1}}%
}
+\newcommand{\br}[1]{%
+\\
+}
\newcommand{\wllist}[1]{%
<xsl:template mode="inline"
- match="pa|pe|pr|pt|ptrad|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|br">
<cmd>
<xsl:attribute name="name">
<xsl:value-of select="wl:texcommand(name())" />
<em class="person"><xsl:apply-templates mode="inline" /></em>
</xsl:template>
+<xsl:template match="br" mode="inline">
+ <br/>
+</xsl:template>
+
<xsl:template match="www" mode="inline">
<a target="_blank">
<xsl:attribute name="href">
<xsl:text>*</xsl:text><xsl:apply-templates mode="inline" /><xsl:text>*</xsl:text>
</xsl:template>
+<xsl:template match="br" mode="inline">
+<xsl:text>
+</xsl:text>
+</xsl:template>
+
<xsl:template match="indeks_dolny" mode="inline">
<xsl:apply-templates mode="inline" />
</xsl:template>