[Debian-handbook-translators] English PDF fail to build

Petter Reinholdtsen pere at hungry.com
Fri Oct 14 09:21:53 BST 2022


I ran into a PDF build problem with the nb-NO edition of the book, only
to discover that the problem also exist in the en-US edition.  Can
someone perhaps fix the original to get the PDF building working?  Once
this is in place, I can adjust the nb-NO build to follow suit.

This is what I get when building from the bullseye/main branch using the
stable tools (publican 4.3.2-3, dblatex 0.3.12py3-1):


% ./bin/build-pdf --lang=en-US
+ dirname ./bin/build-pdf
+ . ./bin/common.sh
+ check_cwd
+ test -e publican.cfg
+ OPT_lang=en-US
+ get_product_version
+ sed -n -e s|.*<productnumber>\(.*\)</productnumber>.*|\1|p en-US/Book_Info.xml
+ version=11
+ pwd
+ topdir=/home/user/src/debian-handbook
+ parse_options --lang=en-US
+ local temp
+ getopt -o l:so:p -l lang:,skip,opts:,paperback -- --lang=en-US
+ temp= --lang 'en-US' --
+ eval set --  --lang 'en-US' --
+ set -- --lang en-US --
+ true
+ OPT_lang=en-US
+ shift 2
+ true
+ shift
+ break
+ [ ! -e tmp/en-US/xml ]
+ publican build --config=publican-pdf.cfg --formats=xml --langs=en-US
Setting up en-US
        Processing file tmp/en-US/xml/Common_Content/Conventions.xml -> tmp/en-US/xml/Common_Content/Conventions.xml
        Processing file tmp/en-US/xml/Common_Content/Feedback.xml -> tmp/en-US/xml/Common_Content/Feedback.xml
        Processing file tmp/en-US/xml/Common_Content/Legal_Notice.xml -> tmp/en-US/xml/Common_Content/Legal_Notice.xml
        Processing file tmp/en-US/xml/Common_Content/Program_Listing.xml -> tmp/en-US/xml/Common_Content/Program_Listing.xml
        Processing file tmp/en-US/xml/Common_Content/Revision_History.xml -> tmp/en-US/xml/Common_Content/Revision_History.xml
        Processing file tmp/en-US/xml_tmp/00a_preface.xml -> tmp/en-US/xml/00a_preface.xml
        Processing file tmp/en-US/xml_tmp/00b_foreword.xml -> tmp/en-US/xml/00b_foreword.xml
        Processing file tmp/en-US/xml_tmp/01_the-debian-project.xml -> tmp/en-US/xml/01_the-debian-project.xml
        Processing file tmp/en-US/xml_tmp/02_case-study.xml -> tmp/en-US/xml/02_case-study.xml
        Processing file tmp/en-US/xml_tmp/03_existing-setup.xml -> tmp/en-US/xml/03_existing-setup.xml
        Processing file tmp/en-US/xml_tmp/04_installation.xml -> tmp/en-US/xml/04_installation.xml
        Processing file tmp/en-US/xml_tmp/05_packaging-system.xml -> tmp/en-US/xml/05_packaging-system.xml
        Processing file tmp/en-US/xml_tmp/06_apt.xml -> tmp/en-US/xml/06_apt.xml
        Processing file tmp/en-US/xml_tmp/07_solving-problems.xml -> tmp/en-US/xml/07_solving-problems.xml
        Processing file tmp/en-US/xml_tmp/08_basic-configuration.xml -> tmp/en-US/xml/08_basic-configuration.xml
        Processing file tmp/en-US/xml_tmp/09_unix-services.xml -> tmp/en-US/xml/09_unix-services.xml
        Processing file tmp/en-US/xml_tmp/10_network-infrastructure.xml -> tmp/en-US/xml/10_network-infrastructure.xml
        Processing file tmp/en-US/xml_tmp/11_network-services.xml -> tmp/en-US/xml/11_network-services.xml
        Processing file tmp/en-US/xml_tmp/12_advanced-administration.xml -> tmp/en-US/xml/12_advanced-administration.xml
        Processing file tmp/en-US/xml_tmp/13_workstation.xml -> tmp/en-US/xml/13_workstation.xml
        Processing file tmp/en-US/xml_tmp/14_security.xml -> tmp/en-US/xml/14_security.xml
        Processing file tmp/en-US/xml_tmp/15_debian-packaging.xml -> tmp/en-US/xml/15_debian-packaging.xml
        Processing file tmp/en-US/xml_tmp/70_conclusion.xml -> tmp/en-US/xml/70_conclusion.xml
        Processing file tmp/en-US/xml_tmp/90_derivative-distributions.xml -> tmp/en-US/xml/90_derivative-distributions.xml
        Processing file tmp/en-US/xml_tmp/92_short-remedial-course.xml -> tmp/en-US/xml/92_short-remedial-course.xml
        Processing file tmp/en-US/xml_tmp/99_backcover.xml -> tmp/en-US/xml/99_backcover.xml
        Processing file tmp/en-US/xml_tmp/99_website.xml -> tmp/en-US/xml/99_website.xml
        Processing file tmp/en-US/xml_tmp/Author_Group.xml -> tmp/en-US/xml/Author_Group.xml
        Processing file tmp/en-US/xml_tmp/Book_Info.xml -> tmp/en-US/xml/Book_Info.xml
        Processing file tmp/en-US/xml_tmp/Revision_History.xml -> tmp/en-US/xml/Revision_History.xml
        Processing file tmp/en-US/xml_tmp/debian-handbook.xml -> tmp/en-US/xml/debian-handbook.xml
Beginning work on en-US
DTD Validation OK
        Starting xml
        Finished xml
+ grep <book  tmp/en-US/xml/debian-handbook.xml
+ grep -q lang=
+ [ -n  ]
+ cp -a bin/dblatex tmp/en-US/xml/
+ cd tmp/en-US/xml/
+ echo RUN: dblatex -c dblatex/librement.conf  debian-handbook.xml
RUN: dblatex -c dblatex/librement.conf  debian-handbook.xml
+ dblatex -c dblatex/librement.conf debian-handbook.xml
Text configuration files are deprecated. Use the XML format instead
Build the book set list...
Build the listings...
Build debian-handbook.pdf
xelatex failed
debian-handbook.tex:6317: FancyVerb Error:
debian-handbook.tex:6317: leading text: ...oredelim={**[is][\itshape]{<i>}{</i>}},]
debian-handbook.tex:8122: FancyVerb Error:
debian-handbook.tex:8122: leading text: ...oredelim={**[is][\itshape]{<i>}{</i>}},]
debian-handbook.tex:10225: FancyVerb Error:
debian-handbook.tex:10225: leading text: ...redelim={**[is][\itshape]{<i>}{</i>}},]
debian-handbook.tex:17307: FancyVerb Error:
debian-handbook.tex:17307: leading text: ...redelim={**[is][\itshape]{<i>}{</i>}},]
Unexpected error occured
Error: xelatex compilation failed
+ echo ERROR: Failed to build PDF version for en-US
ERROR: Failed to build PDF version for en-US
+ exit 1
%

The first lines in question seem to be in
en-US/08_basic-configuration.xml, the <screen> block with non-UTF-8
characters starting in line 324.  I have no idea what is wrong, but
suspect the non-UTF-8 characters are involved. :)

-- 
Happy hacking
Petter Reinholdtsen



More information about the Debian-handbook-translators mailing list