[Debian-handbook-translators] Problem when build a localized version

Claudio Filho filhocf at gmail.com
Tue May 6 19:31:01 UTC 2014


Hi

Raphael, thanks by your assistance, but i yet have errors. Now, i have a
new lot:

$ build/build-pdf --lang=pt-BR --opts='-V'
...
Build debian-handbook.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 fontenc
no support found for ucs
no support found for inputenc
no support found for fancybox
built-in module makeidx registered
no support found for babel
no support found for cmap
no support found for geometry
no support found for librement
building additional files...
checking if compiling is necessary...
the output file doesn't exist
xelatex -interaction=batchmode debian-handbook.tex
xelatex failed
/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty:297: Package
babel Error: Unknown option `brazil'. Either you misspelled it
/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty:297: leading
text: \ProcessOptions*
/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty:330: Package
babel Error: You haven't specified a language option.
/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty:330: leading
text: ...ry to proceed from here, type x to quit.}
Unexpected error occured
Error: xelatex compilation failed
ERROR: Failed to build PDF version for pt-BR

More some idea?

In other hand, we have some buildd for pdf/html/epub?

Thanks in advance,

Claudio



2014-05-06 10:37 GMT-03:00 Raphael Hertzog <hertzog at debian.org>:

> Hi,
>
> On Sun, 04 May 2014, Claudio Filho wrote:
> > I'm trying build a pdf for pt-BR version, but i couldn't find my error. I
> > installed the required packages, but to pdf gives the error above, but
> runs
> > fine to html.
> >
> > RUN: dblatex -c dblatex/librement.conf  debian-handbook.xml
> > Build the book set list...
> > /home/filhocf/debian-handbook/tmp/pt-BR/xml/debian-handbook.xml:4:
> > parser error : Attribute lang redefined
> > <book lang="pt-BR" lang="pt-BR">
> >                                ^
> > unable to parse
> /home/filhocf/debian-handbook/tmp/pt-BR/xml/debian-handbook.xml
>
> What version of publican are you using? It looks like Publican started to
> add
> the required lang attributes by itself and the one added by
> build/build-pdf is
> now an unwanted duplicate.
>
> > Some tip?
>
> Try this patch and let me know:
>
> diff --git a/build/build-pdf b/build/build-pdf
> index 1ec2e61..1421c0d 100755
> --- a/build/build-pdf
> +++ b/build/build-pdf
> @@ -19,7 +19,9 @@ parse_options "$@"
>
>  if [ ! -e tmp/$OPT_lang/xml ] || [ -z "$OPT_skip" ]; then
>      publican build --config=publican-pdf.cfg --formats=xml
> --langs=$OPT_lang
> -    sed -i -e "s/<book/<book lang=\"${OPT_lang}\"/"
> tmp/$OPT_lang/xml/debian-handbook.xml
> +    if ! grep "<book " tmp/$OPT_lang/xml/debian-handbook.xml | grep -q
> "lang="; then
> +       sed -i -e "s/<book/<book lang=\"${OPT_lang}\"/"
> tmp/$OPT_lang/xml/debian-handbook.xml
> +    fi
>  fi
>
>  cp -a build/dblatex tmp/$OPT_lang/xml/
>
> Cheers,
> --
> Raphaël Hertzog ◈ Debian Developer
>
> Discover the Debian Administrator's Handbook:
>http://debian-handbook.info/get/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/debian-handbook-translators/attachments/20140506/f5c48a93/attachment.html>


More information about the Debian-handbook-translators mailing list