Fixed to convert to man properly.
authorHidetaka Iwai <tyuyu@debian.or.jp>
Thu, 03 Nov 2005 11:56:51 +0900
changeset 1500 cadde8ebf167
parent 1499 874efc57e00a
child 1501 c5c4381d898b
Fixed to convert to man properly.
doc/ja/Makefile
doc/ja/docbook.ja.xsl
--- a/doc/ja/Makefile	Thu Nov 03 11:54:07 2005 +0900
+++ b/doc/ja/Makefile	Thu Nov 03 11:56:51 2005 +0900
@@ -9,7 +9,7 @@
 html: $(HTML)
 
 %: %.xml
-	xmlto man $*.xml
+	xmlto -x docbook.ja.xsl man $*.xml
 
 %.xml: %.txt
 	-asciidoc -d manpage -b docbook -f docbook.ja.conf $*.txt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/doc/ja/docbook.ja.xsl	Thu Nov 03 11:56:51 2005 +0900
@@ -0,0 +1,23 @@
+<?xml version='1.0' encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
+  <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"/>
+  <xsl:output encoding="UTF-8"/>
+
+  <xsl:template match="refnamediv">
+  <xsl:text>.SH 名前&#10;</xsl:text>
+  <xsl:for-each select="refname">
+    <xsl:if test="position()>1">
+      <xsl:text>, </xsl:text>
+    </xsl:if>
+    <xsl:value-of select="."/>
+  </xsl:for-each>
+  <xsl:text> \- </xsl:text>
+  <xsl:value-of select="normalize-space (refpurpose)"/>
+  </xsl:template>
+
+  <xsl:template match="refsynopsisdiv">
+  <xsl:text>&#10;.SH "書式"&#10;</xsl:text>
+  <xsl:apply-templates/>
+  </xsl:template>
+
+</xsl:stylesheet>