Error compiling docbook in pt-br with dblatex

Bug #225083 reported by Augusto Santos
2
Affects Status Importance Assigned to Milestone
dblatex (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: dblatex

When trying to compile a document in XML docbook write in pt-br (i.e., one that has the <book lang="pt-br"> attribute), i get the following error:

1:Build the listings...
2:XSLT stylesheets DocBook - LaTeX 2e (0.2.6-1)
3:===================================================
4:Processing Revision History
5:Build SegurancaDeRedes.docbook.pdf
6:This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
7: %&-line parsing enabled.
8:entering extended mode
9:pdflatex failed
10:/usr/share/texmf-texlive/tex/generic/babel/babel.sty:141: Package babel Error: Language definition file portugese.ldf not found.
11usr/share/texmf-texlive/tex/generic/babel/babel.sty:141: leading text: \ProcessOptions*
12:/1sr/share/texmf-texlive/tex/generic/babel/babel.sty:149: Package babel Error: You haven't specified a language option.
13:/usr/share/texmf-texlive/tex/generic/babel/babel.sty:149: leading text: ...ry to proceed from here, type x to quit.}
14:SegurancaDeRedes.docbook_tmp.tex:37: Package babel Error: You haven't loaded the option english yet.
15:SegurancaDeRedes.docbook_tmp.tex:37: leading text: \begin{document}
16:SegurancaDeRedes.docbook_tmp.aux:14: Package babel Error: You haven't loaded the option english yet.
17:SegurancaDeRedes.docbook_tmp.aux:14: leading text: \select@language{english}
18:SegurancaDeRedes.docbook_tmp.aux:61: Missing \endcsname inserted.
19:SegurancaDeRedes.docbook_tmp.aux:61: leading text: ...a de pacotes \relax }{subsection.2.2.2}{}}

Note that, on line 10, its looking for the file portugesse.ldf. Doing a search on packges.ubuntu.com, i can see that there is no such file in ubuntu.
Looking for that string i see its present on line 110 of /usr/share/xml/docbook/stylesheet/dblatex/xsl/lang.xsl
Changing this line, that, at first, contains:
<xsl:otherwise>portugese</xsl:otherwise>
to
<xsl:otherwise>portuges</xsl:otherwise>
the compilation works Ok!

This is happening on Kubuntu, 8.04 final, dblatex 0.2.6-1.

Revision history for this message
Andreas Hoenen (andreas-hoenen) wrote :

Hi Augusto,

would you mind to retest? I think this has been fixed with dblatex 0.2.8

Regards, Andreas Hoenen

Aron Xu (happyaron)
Changed in dblatex (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.