← Back to team overview

kicad-doc-devs team mailing list archive

Problem building Japanese version of pcbnew.pdf

 

Hi,

as RC2 of KiCad will take dome more further days and people complaining
about GTK+3 linked binaries for KiCad in debian/experimental I wanted to
upload another snapshot build of current Head development. This fixes
the build issue with CMake 3.11.

For this I need to bundle also kicad-doc as a extra tarball we use in
Debian to provide the KiCad documentation packages together with the
KiCad binaries.

KiCad builds fine but I don't get the file pcbnew.pdf with the Japanese
translations build now. This worked before.

> make[4]: Entering directory '/build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc'
> cd "/build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew" && /usr/bin/a2x --xsltproc-opts=--nonet --no-xmllint -f pdf -a lang=ja --dblatex-opts -P\ latex.output.revhistory=0\ -P\ doc.publisher.show=0\ -s\ /build/kicad-5.0.0~rc1+dfsg1+20180506/doc/CMakeSupport/pdf-cover-dblatex.sty\ -b\ xetex\ -p\ /build/kicad-5.0.0~rc1+dfsg1+20180506/doc/src/pcbnew/../../xsl/dblatex-pdf-ja.xsl\ -o\ /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew.pdf /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew.adoc
> a2x: ERROR: "dblatex" -t pdf -p "/etc/asciidoc/dblatex/asciidoc-dblatex.xsl" -s "/etc/asciidoc/dblatex/asciidoc-dblatex.sty" -P latex.output.revhistory=0 -P doc.publisher.show=0 -s /build/kicad-5.0.0~rc1+dfsg1+20180506/doc/CMakeSupport/pdf-cover-dblatex.sty -b xetex -p /build/kicad-5.0.0~rc1+dfsg1+20180506/doc/src/pcbnew/../../xsl/dblatex-pdf-ja.xsl -o /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew.pdf  "/build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew.xml" returned non-zero exit status 1
> make[4]: *** [src/pcbnew/CMakeFiles/pcbnew_pdf_ja.dir/build.make:64: src/pcbnew/ja/pcbnew.pdf] Error 1
> make[4]: Leaving directory '/build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc'
> make[3]: *** [CMakeFiles/Makefile2:9637: src/pcbnew/CMakeFiles/pcbnew_pdf_ja.dir/all] Error 2
> make[3]: *** Waiting for unfinished jobs....

Doing a more verbose build show some more output here.

> root@i5:/build/kicad-5.0.0~rc1+dfsg1+20180506# cd "/build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew" && /usr/bin/a2x --verbose --xsltproc-opts=--nonet --no-xmllint -f pdf -a lang=ja --dblatex-opts -P\ latex.output.revhistory=0\ -P\ doc.publisher.show=0\ -s\ /build/kicad-5.0.0~rc1+dfsg1+20180506/doc/CMakeSupport/pdf-cover-dblatex.sty\ -b\ xetex\ -p\ /build/kicad-5.0.0~rc1+dfsg1+20180506/doc/src/pcbnew/../../xsl/dblatex-pdf-ja.xsl\ -o\ /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew.pdf /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew.adoc
> a2x: args: ['--verbose', '--xsltproc-opts=--nonet', '--no-xmllint', '-f', 'pdf', '-a', 'lang=ja', '--dblatex-opts', '-P latex.output.revhistory=0 -P doc.publisher.show=0 -s /build/kicad-5.0.0~rc1+dfsg1+20180506/doc/CMakeSupport/pdf-cover-dblatex.sty -b xetex -p /build/kicad-5.0.0~rc1+dfsg1+20180506/doc/src/pcbnew/../../xsl/dblatex-pdf-ja.xsl -o /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew.pdf', '/build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew.adoc']
> a2x: resource files: []
> a2x: resource directories: ['/etc/asciidoc/images', '/etc/asciidoc/stylesheets']
> a2x: executing: "/usr/bin/asciidoc" --backend docbook -a "a2x-format=pdf"  --attribute "lang=ja" --verbose  --out-file "/build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew.xml" "/build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew.adoc"
> 
> asciidoc: reading: /etc/asciidoc/asciidoc.conf
> asciidoc: reading: /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew.adoc
> asciidoc: reading: /etc/asciidoc/docbook45.conf
> asciidoc: reading: /etc/asciidoc/filters/latex/latex-filter.conf
> asciidoc: reading: /etc/asciidoc/filters/graphviz/graphviz-filter.conf
> asciidoc: reading: /etc/asciidoc/filters/source/source-highlight-filter.conf
> asciidoc: reading: /etc/asciidoc/filters/music/music-filter.conf
> asciidoc: reading: /etc/asciidoc/filters/code/code-filter.conf
> asciidoc: reading: /etc/asciidoc/lang-ja.conf
> asciidoc: writing: /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew.xml
> asciidoc: include: /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew_introduction.adoc
> asciidoc: pcbnew.adoc: line 53: reading: /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew_introduction.adoc
> asciidoc: include: /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew_installation.adoc
> asciidoc: pcbnew.adoc: line 55: reading: /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew_installation.adoc
> asciidoc: include: /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew_general_operations.adoc
> asciidoc: pcbnew.adoc: line 57: reading: /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew_general_operations.adoc
> asciidoc: include: /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew_schematics.adoc
> asciidoc: pcbnew.adoc: line 59: reading: /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew_schematics.adoc
> asciidoc: include: /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew_layers.adoc
> asciidoc: pcbnew.adoc: line 61: reading: /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew_layers.adoc
> asciidoc: include: /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew_create_and_modify_board.adoc
> asciidoc: pcbnew.adoc: line 63: reading: /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew_create_and_modify_board.adoc
> asciidoc: include: /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew_footprint_placement.adoc
> asciidoc: pcbnew.adoc: line 65: reading: /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew_footprint_placement.adoc
> asciidoc: include: /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew_routing.adoc
> asciidoc: pcbnew.adoc: line 67: reading: /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew_routing.adoc
> asciidoc: include: /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew_interactive_router.adoc
> asciidoc: pcbnew.adoc: line 69: reading: /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew_interactive_router.adoc
> asciidoc: include: /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew_zones.adoc
> asciidoc: pcbnew.adoc: line 71: reading: /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew_zones.adoc
> asciidoc: include: /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew_fabrication_files.adoc
> asciidoc: pcbnew.adoc: line 73: reading: /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew_fabrication_files.adoc
> asciidoc: include: /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew_managing_libs.adoc
> asciidoc: pcbnew.adoc: line 75: reading: /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew_managing_libs.adoc
> asciidoc: include: /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew_creating_editing_footprints.adoc
> asciidoc: pcbnew.adoc: line 77: reading: /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew_creating_editing_footprints.adoc
> asciidoc: include: /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew_editing_tools.adoc
> asciidoc: pcbnew.adoc: line 79: reading: /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew_editing_tools.adoc
> asciidoc: include: /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew_python_scripting.adoc
> asciidoc: pcbnew.adoc: line 81: reading: /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew_python_scripting.adoc
> 
> a2x: executing: "dblatex" -t pdf -p "/etc/asciidoc/dblatex/asciidoc-dblatex.xsl" -s "/etc/asciidoc/dblatex/asciidoc-dblatex.sty" -P latex.output.revhistory=0 -P doc.publisher.show=0 -s /build/kicad-5.0.0~rc1+dfsg1+20180506/doc/CMakeSupport/pdf-cover-dblatex.sty -b xetex -p /build/kicad-5.0.0~rc1+dfsg1+20180506/doc/src/pcbnew/../../xsl/dblatex-pdf-ja.xsl -o /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew.pdf -V  "/build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew.xml"
> 
> Build the book set list...
> xsltproc -o doclist.txt --xinclude --xincludestyle doclist.xsl /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew.xml
> Build the listings...
> xsltproc -o listings.xml --xinclude --xincludestyle --param current.dir '/build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja' /usr/share/dblatex/xsl/common/mklistings.xsl /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew.xml
> xsltproc -o pcbnew.rtex --xinclude --xincludestyle --param current.dir '/build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja' --param listings.xml '/tmp/tmpv9zAk9/listings.xml' /tmp/tmpv9zAk9/custom.xsl /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew.xml
> XSLT stylesheets DocBook - LaTeX 2e (0.3.10)
> ===================================================
> Pixel unit not handled (replaced by pt)
> Build pcbnew.pdf
> built-in module xetex 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 xeCJK
> no support found for indentfirst
> no support found for ucs
> no support found for fancybox
> built-in module makeidx registered
> no support found for pdf-cover-dblatex
> building additional files...
> checking if compiling is necessary...
> the output file doesn't exist
> xelatex -interaction=batchmode pcbnew.tex
> xelatex failed
> pcbnew.tex:900: Undefined control sequence \@empty.
> pcbnew.tex:900: leading text: ... Down} 及び \texttt{スペース バー\`{})。\`{}エスケープ}
> pcbnew.tex:900: Undefined control sequence \@empty.
> pcbnew.tex:900: leading text: ... Down} 及び \texttt{スペース バー\`{})。\`{}エスケープ}
> Unexpected error occured
> Error: xelatex compilation failed
> 
> a2x: ERROR: "dblatex" -t pdf -p "/etc/asciidoc/dblatex/asciidoc-dblatex.xsl" -s "/etc/asciidoc/dblatex/asciidoc-dblatex.sty" -P latex.output.revhistory=0 -P doc.publisher.show=0 -s /build/kicad-5.0.0~rc1+dfsg1+20180506/doc/CMakeSupport/pdf-cover-dblatex.sty -b xetex -p /build/kicad-5.0.0~rc1+dfsg1+20180506/doc/src/pcbnew/../../xsl/dblatex-pdf-ja.xsl -o /build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew.pdf -V  "/build/kicad-5.0.0~rc1+dfsg1+20180506/debian/build/doc/src/pcbnew/ja/pcbnew.xml" returned non-zero exit status 1

First I thought some textlive package might be missing here and I
installed texlive-lang-all along with some Japanese related fonts but
the the problem is staying alive.

I'm wondering why I got these 'sequence \@empty'.

If I look into the generated files pcbnew.{adoc,xml} I'd say they look
broken and not correct. I can remember for Russian and Japaneses
languages the XSL stylesheet was adjusted (files in xsl/), but I can't
find this commit.

Maybe one ore more source file is also broken now, I mean something like
this eg but the commit has no further explanation *what* was broken here.

> $ git show e6578aff
> commit e6578affc5c74e1c367071f1677e3239c4e22f8b
> Author: Marco Ciampa <ciampix@xxxxxxxxx>
> Date:   Wed Jun 10 08:40:44 2015 +0200
> 
>     Fixed compilation for dblatex
> 
> diff --git a/src/Eeschema/Eeschema_schematic_creation_and_editing.adoc b/src/Eeschema/Eeschema_schematic_creation_and_editing.adoc
> index b2dc7e1e..fb72da53 100644
> --- a/src/Eeschema/Eeschema_schematic_creation_and_editing.adoc
> +++ b/src/Eeschema/Eeschema_schematic_creation_and_editing.adoc
> @@ -477,7 +477,7 @@ image:images/rescue-conflicts.png[Rescue conflicts dialog]
>  
>  You can see in this example that the project originally used a diode with the cathode facing up,
>  but the library now contains one with the cathode facing down. This change could ruin the project!
> -Pressing OK here will cause the old symbol to be saved into a special "rescue" library, and all
> +Pressing OK here will cause the old symbol to be saved into a special ``rescue'' library, and all
>  the components using that symbol will be renamed to avoid naming conflicts.
>  
>  If you press Cancel, no rescues will be made, so Eeschema will load all the new components by

That's why commit messages are so useful later ...

Anyway, someone have ideas how to fix this? I'm not working with
asciidoc or dblatex normally.

I added the two files mentioned above.

-- 
Regards
Carsten Schönert

Attachment: pcbnew-ja.pdf.zip
Description: Zip archive


Follow ups