2015-08-11 21 views
5

Tôi có một tài liệu một Asciidoc foo.1.txt, và, theo các hướng dẫn here, tôi đã cố gắng để biên dịch nó với a2x như sau:a2x thất bại trong việc biên dịch manpage tôi

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

Sau này, tôi đã nhận lỗi sau đây:

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 

Tôi không chắc chắn điều gì đang xảy ra hoặc làm cách nào để chẩn đoán được điều gì là sai. Tệp xml được tạo trong cùng một thư mục (có tiêu đề foo.1.xml) như một phần của quá trình này. Tất cả trợ giúp đều được đánh giá cao.

EDIT: Dựa trên việc sử dụng --verbose cờ, vấn đề có vẻ là trong phần này:

COPYING 
---------- 
Copyright \(C) 2015, Koz Ross <[email protected]>. Free use of this software 
is granted under the terms of the GNU General Public License (GPL) version 3, or 
any later version. 

Việc khiếu nại là: [blockdef-listing] missing closing delimiter trên dòng nơi COPYING là.

+0

Thử bật 'cái cờ --verbose' để có được sản lượng nhiều hơn để gỡ lỗi. –

Trả lời

4
COPYING 
---------- 
Copyright \(C) 2015, Koz Ross <[email protected]>. Free use of this software 
is granted under the terms of the GNU General Public License (GPL) version 3, or 
any later version. 
---------- 

công trình thấy http://asciidoctor.org/docs/asciidoc-writers-guide/#delimited-blocks và trở thành:

<?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.r[email protected]&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> 
+0

Cảm ơn bạn * rất * nhiều. Cuối cùng, một câu trả lời! –

Các vấn đề liên quan