]> 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 52766285937294b554a0afce3c62f4d320fd1f5a..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:param name="hyphenate">false</xsl:param>
   <xsl:param name="generate.toc">book toc title</xsl:param>
 
-  <!-- Drop the number in front of chapters -->
+  <!-- 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">
-    <l:l10n language="nb">
-      <l:context name="title-numbered">
-       <l:template name="chapter" text="%t"/>
+    <!-- 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:i18n>
 
+    <l:l10n language="fr">
+      <l:context name="xref">
+       <l:template name="page.citation" text=" (p.&#160;%p)"/>
+      </l:context>
+    </l:l10n>
 
-  <!-- Fix bugs in default nb locale -->
-  <xsl:template name="gentext.startquote">
-    <xsl:text>«</xsl:text>
-  </xsl:template>
-  <xsl:template name="gentext.endquote">
-    <xsl:text>»</xsl:text>
-  </xsl:template>
-  <xsl:template name="gentext.nestedstartquote">
-    <xsl:text>‘</xsl:text>
-  </xsl:template>
-  <xsl:template name="gentext.nestedendquote">
-    <xsl:text>’</xsl:text>
-  </xsl:template>
+    <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>
 
-  <!-- This is not working.  No idea why -->
-  <xsl:template name="gentext.Index">
-    <xsl:text>Register</xsl:text>
-  </xsl:template>
-  <xsl:template name="gentext.index">
-    <xsl:text>register</xsl:text>
-  </xsl:template>
+  <!-- Make preface show up in toc for dblatex -->
+  <xsl:param name="preface.tocdepth">1</xsl:param>
 
 </xsl:stylesheet>