fix for audio 24.5.10
authorRadek Czajka <rczajka@rczajka.pl>
Tue, 1 Jul 2025 08:30:35 +0000 (10:30 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Tue, 1 Jul 2025 08:30:35 +0000 (10:30 +0200)
setup.py
src/librarian/xslt/book2html.xslt

index 17cecda..06e019f 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@ def whole_tree(prefix, path):
 
 setup(
     name='librarian',
-    version='24.5.9',
+    version='24.5.10',
     description='Converter from WolneLektury.pl XML-based language to XHTML, TXT and other formats',
     author="Marek StÄ™pniowski",
     author_email='marek@stepniowski.com',
index 7ea41d4..b1099e0 100644 (file)
 </xsl:template>
 
 
+<xsl:template match="audio">
+  <span>
+    <xsl:attribute name="data-audio-part">
+      <xsl:value-of select="@part"/>
+    </xsl:attribute>
+    <xsl:attribute name="data-audio-ts">
+      <xsl:value-of select="@ts"/>
+    </xsl:attribute>
+  </span>
+</xsl:template>
+<xsl:template match="audio" mode="inline">
+  <xsl:apply-templates select="." />
+</xsl:template>
+
+
 <!-- ================ -->
 <!-- = SPECIAL TAGS = -->
 <!-- ================ -->