minor style fixes to EPUBs
authorMarcin Koziej <marcinkoziej@nowoczesnapolska.org.pl>
Mon, 3 Feb 2014 09:42:26 +0000 (10:42 +0100)
committerMarcin Koziej <marcinkoziej@nowoczesnapolska.org.pl>
Mon, 3 Feb 2014 09:42:26 +0000 (10:42 +0100)
librarian/epub/style.css
librarian/epub/xsltScheme.xsl
librarian/pdf/wl2tex.xslt

index d3ca5b6..f279ca8 100644 (file)
@@ -379,5 +379,10 @@ img.latex {
     display: block;
     width: 50%;
     float: right;
+    clear: both;
+    margin: 10pt;
+    padding: 0pt 5pt;
     background-color: #d0d0d0;
+    font-style: italic;
+    font-size: 0.8em;
 }
\ No newline at end of file
index f273c4b..7ec1f8b 100644 (file)
 
   <xsl:template match="podtytul" />
 
-  <xsl:template match="naglowek_czesc|srodtytul">
+  <xsl:template match="naglowek_czesc">
     <h2 class="h2" xmlns="http://www.w3.org/1999/xhtml">
       <xsl:apply-templates />
     </h2>
     </h2>
   </xsl:template>
 
-  <xsl:template match="naglowek_podpodrozdzial">
+  <xsl:template match="naglowek_podpodrozdzial|srodtytul">
     <a xmlns="http://www.w3.org/1999/xhtml"></a>
     <div class="p" xmlns="http://www.w3.org/1999/xhtml">
       <xsl:apply-templates />
     <img>
       <xsl:attribute name="src"><xsl:value-of select="@src"/>.<xsl:choose><xsl:when test="@extbitmap"><xsl:value-of select="@extbitmap"/></xsl:when><xsl:otherwise><xsl:value-of select="@ext"/></xsl:otherwise></xsl:choose></xsl:attribute>
     </img>
+    <xsl:apply-templates />
   </xsl:template>
 
   <xsl:template match="img">
index 0f841b8..cffb8da 100644 (file)
 <!-- = INLINE TAGS                                  = -->
 <!-- = (contain other inline tags and special tags) = -->
 <!-- ================================================ -->
+<xsl:strip-space elements="nota|akap|wyroznienie"/>
 
 <xsl:template mode="inline"
     match="pa|pe|pr|pt|mat|didask_tekst|slowo_obce|wyroznienie|osoba|punkt|www|nota_red">