Fixed to convert to man properly.
--- a/doc/ja/Makefile
+++ b/doc/ja/Makefile
@@ -9,7 +9,7 @@ man: $(MAN)
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
new file mode 100644
--- /dev/null
+++ b/doc/ja/docbook.ja.xsl
@@ -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 名前 </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> .SH "書式" </xsl:text>
+ <xsl:apply-templates/>
+ </xsl:template>
+
+</xsl:stylesheet>