]> pere.pagekite.me Git - text-free-culture-lessig.git/blobdiff - data/user_param.xsl
Add several font setups + group the index font in the setup + add french template.
[text-free-culture-lessig.git] / data / user_param.xsl
index 72487361d45bff36a10103b85f241ba7e03f1749..21c2b154abf5702cec0e7244b3e264c3c77b3541 100644 (file)
   <xsl:template match="book|article" mode="docinfo">
     <!-- Apply default settings -->
     <xsl:apply-imports/>
-    <!--
-    <xsl:text>\input{</xsl:text>po4a/hyphenation.<xsl:value-of select="$lingua"/><xsl:text>.tex}</xsl:text>
-    -->
   </xsl:template>
-</xsl:stylesheet>
 
+  <xsl:param name="hyphenate">false</xsl:param>
+  <xsl:param name="generate.toc">book toc title</xsl:param>
+
+  <!-- Require dblatex 0.3.7 or newer -->
+  <xsl:param name="figure.title.top">0</xsl:param>
+  <xsl:param name="figure.anchor.top">1</xsl:param>
+
+  <xsl:param name="local.l10n.xml" select="document('')"/> 
+  <l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
+    <!-- Drop the number in front of chapters -->
+    <l:context name="title-numbered">
+      <l:template name="chapter" text="%t"/>
+    </l:context>
+
+    <l:l10n language="en">
+      <!-- The default page citation [12] is hard to understand for
+           most readers.  use (p. 12) instead. -->
+      <l:context name="xref">
+       <l:template name="page.citation" text=" (p.&#160;%p)"/>
+      </l:context>
+    </l:l10n>
+
+    <l:l10n language="fr">
+      <l:context name="xref">
+       <l:template name="page.citation" text=" (p.&#160;%p)"/>
+      </l:context>
+    </l:l10n>
+
+    <l:l10n language="nb">
+      <!-- Fix bugs in default nb locale -->
+      <l:dingbat key="startquote" text="«"/>
+      <l:dingbat key="endquote" text="»"/>
+      <l:dingbat key="nestedstartquote" text="‘"/>
+      <l:dingbat key="nestedendquote" text="’"/>
+
+      <l:context name="xref">
+       <l:template name="page.citation" text=" (s.&#160;%p)"/>
+      </l:context>
+    </l:l10n>
+  </l:i18n>
+
+  <!-- Make preface show up in toc for dblatex -->
+  <xsl:param name="preface.tocdepth">1</xsl:param>
+
+</xsl:stylesheet>