5

私は Asciidoc ドキュメントを持っており、ここfoo.1.txtの指示に従って、次のようにコンパイルしようとしました:a2x

a2x --doctype manpage --format manpage foo.1.txt

この後、次のエラーが発生しました。

a2x: ERROR: "/usr/bin/asciidoc.py" --backend docbook -a 
"a2x-format=manpage"  --doctype manpage  --out-file 
"/home/koz/Documents/foo.1.xml" 
"/home/koz/Documents/foo.1.txt" returned non-zero exit status 1

何が起こっているのか、または何が間違っているのかをどのように診断できるのかわかりません。このプロセスの一環として、 xml ファイル同じフォルダー (タイトル) に生成されます。foo.1.xmlすべての助けに感謝します。

編集:--verboseフラグの使用に基づいて、問題はこのセクションにあるようです:

COPYING
----------
 Copyright \(C) 2015, Koz Ross <koz.ross@runbox.com>. Free use of this software
is granted under the terms of the GNU General Public License (GPL) version 3, or
any later version.

苦情は次[blockdef-listing] missing closing delimiterのとおりCOPYINGです。

4

1 に答える 1

4
COPYING
----------
 Copyright \(C) 2015, Koz Ross <koz.ross@runbox.com>. Free use of this software
is granted under the terms of the GNU General Public License (GPL) version 3, or
any later version.
----------

http://asciidoctor.org/docs/asciidoc-writers-guide/#delimited-blocksを参照する と、次のようになります。

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<?asciidoc-toc?>
<?asciidoc-numbered?>

<article lang="en">
<articleinfo>
    <date>2015-10-08</date>
</articleinfo>
<simpara>COPYING</simpara>
<screen> Copyright \(C) 2015, Koz Ross &lt;koz.ross@runbox.com&gt;. Free use of this software
is granted under the terms of the GNU General Public License (GPL) version 3, or
any later version.</screen>
</article>
于 2015-10-08T19:46:07.283 に答える