Hi, afraid I don't use Chinese, so the only thing I can suggest is to try fop instead, its more unicode compliant.
Cheers Lex On 22 May 2013 15:14, ping <[email protected]> wrote: > I'm trying to use a2x to generate xml, and then using xsltproc chain to > convert to PDF. > but I got errors and never succeed... > > I'm assuming, that since xml file got generated, this should be nothing to > do with asciidoc ? > > regardless of whether this is about asciidoc or not, since I don't have > much idea about pdf tool chains, can I get some advice about how to > generate PDF for chinese? > attached is the generated xml FYI. > > thanks! > > > :!a2x -f pdf -d book --verbose --no-xmllint -D ~/Dropbox/temp-transfer/ > "/data/backup/living files/books/shiji/benji1.txt" > [No write since last change] > a2x: args: ['-f', 'pdf', '-d', 'book', '--verbose', '--no-xmllint', '-D', > '/home/ping/Dropbox/temp-**transfer/', '/data/backup/living > files/books/shiji/benji1.txt'] > a2x: resource files: [] > a2x: resource directories: ['/usr/local/etc/asciidoc/**images', > '/usr/local/etc/asciidoc/**stylesheets'] > a2x: executing: "/usr/local/bin/asciidoc.py" --backend docbook -a > "a2x-format=pdf" --doctype book --verbose --out-file > "/home/ping/Dropbox/temp-**transfer/benji1.xml" "/data/backup/living > files/books/shiji/benji1.txt" > > asciidoc: reading: /usr/local/etc/asciidoc/**asciidoc.conf > asciidoc: reading: /data/backup/living files/books/shiji/benji1.txt > asciidoc: reading: /usr/local/etc/asciidoc/**docbook45.conf > asciidoc: reading: /usr/local/etc/asciidoc/**filters/source/source-** > highlight-filter.conf > asciidoc: reading: /usr/local/etc/asciidoc/**filters/code/code-filter.conf > asciidoc: reading: /usr/local/etc/asciidoc/**filters/latex/latex-filter.** > conf > asciidoc: reading: /usr/local/etc/asciidoc/**filters/music/music-filter.** > conf > asciidoc: reading: /usr/local/etc/asciidoc/**filters/graphviz/graphviz-** > filter.conf > asciidoc: reading: /home/ping/.asciidoc/filters/** > aafigure/aafigure-filter.conf > asciidoc: reading: /home/ping/.asciidoc/filters/** > shaape/shaape-filter.conf > asciidoc: reading: /usr/local/etc/asciidoc/lang-**en.conf > asciidoc: writing: /home/ping/Dropbox/temp-**transfer/benji1.xml > > a2x: executing: "dblatex" -t pdf -p > "/usr/local/etc/asciidoc/**dblatex/asciidoc-dblatex.xsl" > -s "/usr/local/etc/asciidoc/**dblatex/asciidoc-dblatex.sty" -V > "/home/ping/Dropbox/temp-**transfer/benji1.xml" > > > <about a million lines of these stuff> > Missing character , > Missing character 以 > Missing character 奉 > Missing character 燕 > Missing character 王 > Missing character 祭 > Missing character 祀 > Missing character 。 > > Build the book set list... > xsltproc -o /tmp/tmpHpeAZb/doclist.txt --xinclude --xincludestyle > doclist.xsl /Dropbox/temp-transfer/benji1.**xml > Build the listings... > xsltproc -o /tmp/tmpHpeAZb/listings.xml --xinclude --xincludestyle --param > current.dir '/Dropbox/temp-transfer' > /usr/share/dblatex/xsl/common/**mklistings.xsl > /Dropbox/temp-transfer/benji1.**xml > xsltproc -o benji1.rtex --xinclude --xincludestyle --param current.dir > '/Dropbox/temp-transfer' --param listings.xml '/tmp/tmpHpeAZb/listings.xml' > /tmp/tmpHpeAZb/custom.xsl /Dropbox/temp-transfer/benji1.**xml > XSLT stylesheets DocBook - LaTeX 2e (0.3.2-2) > ==============================**===================== > Image 'dblatex' not found > Build benji1.pdf > built-in module pdftex registered > no support found for ifthen > no support found for ifxetex > no support found for fontspec > no support found for xltxtra > no support found for fontenc > no support found for inputenc > no support found for fancybox > built-in module makeidx registered > no support found for asciidoc-dblatex > building additional files... > checking if compiling is necessary... > the output file doesn't exist > pdflatex -interaction=batchmode benji1.tex > pdflatex failed > benji1.tex:58: TeX capacity exceeded, sorry [input stack size=5000]. > benji1.tex:58: leading text: ...纪第一}\hyperlabel{_五帝本纪第一} > Unexpected error occured > Error: pdflatex compilation failed > > a2x: ERROR: "dblatex" -t pdf -p > "/usr/local/etc/asciidoc/**dblatex/asciidoc-dblatex.xsl" > -s "/usr/local/etc/asciidoc/**dblatex/asciidoc-dblatex.sty" -V > "/home/ping/Dropbox/temp-**transfer/benji1.xml" returned non-zero exit > status 1 > > shell returned 1 > > Press ENTER or type command to continue > > -- > You received this message because you are subscribed to the Google Groups > "asciidoc" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to > asciidoc+unsubscribe@**googlegroups.com<asciidoc%[email protected]> > . > To post to this group, send email to [email protected]. > Visit this group at > http://groups.google.com/**group/asciidoc?hl=en<http://groups.google.com/group/asciidoc?hl=en> > . > For more options, visit > https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> > . > > > -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/asciidoc?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
