[xml/sgml-pkgs] Bug#298123: db2latex-xsl: Default language French?
Roland Stigge
Roland Stigge <stigge@antcom.de>, 298123@bugs.debian.org
Fri, 04 Mar 2005 22:36:31 +0100
This is a multi-part MIME message sent by reportbug.
--===============1026606233==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Package: db2latex-xsl
Version: 0.8pre1-5
Severity: normal
Hi,
I'm living in an en_GB.UTF-8 locale and am wondering why the default
language in the result seems to be French.
I'm attaching an XML example. Compile with
xsltproc http://db2latex.sourceforge.net/xsl/docbook.xsl lang.xml > lang.tex
Thanks for considering.
bye,
Roland
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8)
-- no debconf information
--===============1026606233==
Content-Type: application/xml
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="lang.xml"
PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9Im5vIj8+Cjwh
RE9DVFlQRSBib29rIFBVQkxJQyAiLS8vT0FTSVMvL0RURCBEb2NCb29rIFhNTCBWNC4zLy9FTiIK
CQkgICAgICAiaHR0cDovL253YWxzaC5jb20vZG9jYm9vay94bWwvNC4zL2RvY2Jvb2suZHRkIj4K
PGJvb2s+CiAgPGNoYXB0ZXI+PHRpdGxlPkEgQ2hhcHRlcjwvdGl0bGU+CiAgICA8c2VjdDE+PHRp
dGxlPkEgU2VjdGlvbjwvdGl0bGU+CiAgICAgIDxwYXJhPgoJdGVzdAogICAgICA8L3BhcmE+CiAg
ICA8L3NlY3QxPgogIDwvY2hhcHRlcj4KPC9ib29rPgoK
--===============1026606233==
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Disposition: attachment; filename="lang.tex"
Content-Transfer-Encoding: quoted-printable
% ------------------------------------------------------------=09
% Autogenerated LaTeX file for books=09
% ------------------------------------------------------------=09
\ifx\pdfoutput\undefined
\documentclass[,a4paper,10pt,twoside,openright,]{report}
\else
\documentclass[pdftex,,a4paper,10pt,twoside,openright,]{report}
\fi
\label{id2425233}\usepackage{ifthen}
% --------------------------------------------
% Check for PDFLaTeX/LaTeX=20
% --------------------------------------------
\newif\ifpdf
\ifx\pdfoutput\undefined
\pdffalse % we are not running PDFLaTeX
\else
\pdfoutput=3D1 % we are running PDFLaTeX
\pdftrue
\fi
% --------------------------------------------
% Load graphicx package with pdf if needed=20
% --------------------------------------------
\ifpdf
\usepackage[pdftex]{graphicx}
\pdfcompresslevel=3D9
\else
\usepackage{graphicx}
\fi
\usepackage{anysize}
\marginsize{3cm}{2cm}{1.25cm}{1.25cm}
\makeatletter
% redefine the listoffigures and listoftables so that the name of the cha=
pter
% is printed whenever there are figures or tables from that chapter. enco=
urage
% pagebreak prior to the name of the chapter (discourage orphans).
\let\save@@chapter\@chapter
\let\save@@l@figure\l@figure
\let\the@l@figure@leader\relax
\def\@chapter[#1]#2{\save@@chapter[{#1}]{#2}%
\addtocontents{lof}{\protect\def\the@l@figure@leader{\protect\pagebreak[0=
]\protect\contentsline{chapter}{\protect\numberline{\thechapter}#1}{}{\th=
epage}}}%
\addtocontents{lot}{\protect\def\the@l@figure@leader{\protect\pagebreak[0=
]\protect\contentsline{chapter}{\protect\numberline{\thechapter}#1}{}{\th=
epage}}}%
}
\renewcommand*\l@figure{\the@l@figure@leader\let\the@l@figure@leader\rela=
x\save@@l@figure}
\let\l@table\l@figure
\makeatother
\usepackage{fancyhdr}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
% Safeguard against long headers.
\IfFileExists{truncate.sty}{
\usepackage{truncate}
% Use an ellipsis when text would be larger than x% of the text width.
% Preserve left/right text alignment using \hfill (works for English).
\fancyhead[ol]{\truncate{0.49\textwidth}{\sl\leftmark}}
\fancyhead[er]{\truncate{0.49\textwidth}{\hfill\sl\rightmark}}
\fancyhead[el]{\truncate{0.49\textwidth}{\sl\leftmark}}
\fancyhead[or]{\truncate{0.49\textwidth}{\hfill\sl\rightmark}}
}{\typeout{WARNING: truncate.sty wasn't available and functionality was s=
kipped.}}
\pagestyle{fancy}
% ----------------------=20
% Most Common Packages =20
% ----------------------=20
\usepackage{latexsym} =20
\usepackage{enumerate} =20
\usepackage{fancybox} =20
\usepackage{float} =20
\usepackage{ragged2e} =20
\usepackage{fancyvrb} =20
\makeatletter\@namedef{FV@fontfamily@default}{\def\FV@FontScanPrep{}\def\=
FV@FontFamily{}}\makeatother
\fvset{obeytabs=3Dtrue,tabsize=3D3}
\makeatletter
\let\dblatex@center\center\let\dblatex@endcenter\endcenter
\def\dblatex@nolistI{\leftmargin\leftmargini\topsep\z@ \parsep\parskip \i=
temsep\z@}
\def\center{\let\@listi\dblatex@nolistI\@listi\dblatex@center\let\@listi\=
@listI\@listi}
\def\endcenter{\dblatex@endcenter}
\makeatother
\usepackage{rotating} =20
\usepackage{subfigure} =20
\usepackage{tabularx} =20
\usepackage{url} =20
% --------------------------------------------
% Math support =20
% --------------------------------------------
\usepackage{amsmath,amsthm, amsfonts, amssymb, amsxtra,amsopn}
%\newtheorem{thm}{Theorem}[section]
%\newtheorem{cor}[section]{Corollary}
%\newtheorem{lem}[section]{Lemma}
%\newtheorem{defn}[section]{Definition}
%\newtheorem{prop}[section]{Proposition}
%\newtheorem{ax}{Axiom}
%\newtheorem{theorem}[section]{Theorem}
%\newtheorem{corollary}{Corollary}
%\newtheorem{lemma}{Lemma}
%\newtheorem{proposition}{Proposition}
%\theoremstyle{definition}
%\newtheorem{definition}{Definition}
%\theoremstyle{remark}
%\newtheorem{rem}{Remark}
%\newtheorem*{notation}{Notation}
%\newcommand{\ntt}{\normalfont\ttfamily}
%\newcommand{\thmref}[1]{Theorem~\ref{#1}}
%\newcommand{\secref}[1]{\S\ref{#1}}
%\newcommand{\lemref}[1]{Lemma~\ref{#1}}
\newcommand{\bysame}{\mbox{\rule{3em}{.4pt}}\,}
\newcommand{\A}{\mathcal{A}}
\newcommand{\B}{\mathcal{B}}
\newcommand{\XcY}{{(X,Y)}}
\newcommand{\SX}{{S_X}}
\newcommand{\SY}{{S_Y}}
\newcommand{\SXY}{{S_{X,Y}}}
\newcommand{\SXgYy}{{S_{X|Y}(y)}}
\newcommand{\Cw}[1]{{\hat C_#1(X|Y)}}
\newcommand{\G}{{G(X|Y)}}
\newcommand{\PY}{{P_{\mathcal{Y}}}}
\newcommand{\X}{\mathcal{X}}
\newcommand{\wt}{\widetilde}
\newcommand{\wh}{\widehat}
% --------------------------------------------
%\DeclareMathOperator{\per}{per}
\DeclareMathOperator{\cov}{cov}
\DeclareMathOperator{\non}{non}
\DeclareMathOperator{\cf}{cf}
\DeclareMathOperator{\add}{add}
\DeclareMathOperator{\Cham}{Cham}
\DeclareMathOperator{\IM}{Im}
\DeclareMathOperator{\esssup}{ess\,sup}
\DeclareMathOperator{\meas}{meas}
\DeclareMathOperator{\seg}{seg}
% --------------------------------------------
% ---------------
% Document Font =20
% ---------------
\usepackage{palatino}
% --------------------------------------------
% Load hyperref package with pdf if needed=20
% --------------------------------------------
\ifpdf
\usepackage[pdftex,bookmarksnumbered,colorlinks,backref,bookmarks,breakli=
nks,linktocpage,plainpages=3Dfalse,pdfstartview=3DFitH]{hyperref}
\else
\usepackage[bookmarksnumbered,colorlinks,backref,bookmarks,breaklinks,lin=
ktocpage,plainpages=3Dfalse,]{hyperref}
\fi
% --------------------------------------------
% ----------------------------------------------
% Define a new LaTeX environment (adminipage)
% ----------------------------------------------
\newenvironment{admminipage}%
{ % this code corresponds to the \begin{adminipage} command
\begin{Sbox}%
\begin{minipage}%
} %done
{ % this code corresponds to the \end{adminipage} command
\end{minipage}
\end{Sbox}
\fbox{\TheSbox}
} %done
% ----------------------------------------------
% Define a new LaTeX length (admlength)
% ----------------------------------------------
\newlength{\admlength}
% ----------------------------------------------
% Define a new LaTeX environment (admonition)
% With 2 parameters:
% #1 The file (e.g. note.pdf)
% #2 The caption
% ----------------------------------------------
\newenvironment{admonition}[2]=20
{ % this code corresponds to the \begin{admonition} command
\hspace{0mm}\newline\hspace*\fill\newline
\noindent
\setlength{\fboxsep}{5pt}
\setlength{\admlength}{\linewidth}
\addtolength{\admlength}{-10\fboxsep}
\addtolength{\admlength}{-10\fboxrule}
\admminipage{\admlength}
{\bfseries \sc\large{#2}} \newline
\\[1mm]
\sffamily
\includegraphics[width=3D1cm]{#1}
\addtolength{\admlength}{-1cm}
\addtolength{\admlength}{-20pt}
\begin{minipage}[lt]{\admlength}
\parskip=3D0.5\baselineskip \advance\parskip by 0pt plus 2pt
} %done
{ % this code corresponds to the \end{admonition} command
\vspace{5mm}=20
\end{minipage}
\endadmminipage
\vspace{.5em}
\par
}
% --------------------------------------------
% Commands to manage/style/create floats =20
% figures, tables, algorithms, examples, eqn =20
% --------------------------------------------
\floatstyle{ruled}
\restylefloat{figure}
\floatstyle{ruled}
\restylefloat{table}
\floatstyle{ruled}
\newfloat{program}{ht}{lop}[section]
\floatstyle{ruled}
\newfloat{example}{ht}{loe}[section]
\floatname{example}{Exemple}
\floatstyle{ruled}
\newfloat{dbequation}{ht}{loe}[section]
\makeatletter\def\toclevel@dbequation{0}\makeatother
\floatname{dbequation}{=C9quation}
\floatstyle{boxed}
\newfloat{algorithm}{ht}{loa}[section]
\floatname{algorithm}{Algorithm}
\ifpdf
\DeclareGraphicsExtensions{.pdf,.png,.jpg}
\else
\DeclareGraphicsExtensions{.eps}
\fi
% --------------------------------------------
% $latex.caption.swapskip enabled for $formal.title.placement support
\newlength{\docbooktolatextempskip}
\newcommand{\captionswapskip}{\setlength{\docbooktolatextempskip}{\abovec=
aptionskip}\setlength{\abovecaptionskip}{\belowcaptionskip}\setlength{\be=
lowcaptionskip}{\docbooktolatextempskip}}
\usepackage[french]{babel}=20
% Guard against a problem with old package versions.
\makeatletter
\AtBeginDocument{
\DeclareRobustCommand\ref{\@refstar}
\DeclareRobustCommand\pageref{\@pagerefstar}
}
\makeatother
% --------------------------------------------
\makeatletter
\newcommand{\dbz}{\penalty \z@}
\newcommand{\docbooktolatexpipe}{\ensuremath{|}\dbz}
\newskip\docbooktolatexoldparskip
\newcommand{\docbooktolatexnoparskip}{\docbooktolatexoldparskip=3D\parski=
p\parskip=3D0pt plus 1pt}
\newcommand{\docbooktolatexrestoreparskip}{\parskip=3D\docbooktolatexoldp=
arskip}
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else\hbox{}\this=
pagestyle{empty}\newpage\if@twocolumn\hbox{}\newpage\fi\fi\fi}
\usepackage[latin1]{inputenc}
\ifx\dblatex@chaptersmark\@undefined\def\dblatex@chaptersmark#1{\markboth=
{\MakeUppercase{#1}}{}}\fi
\let\save@makeschapterhead\@makeschapterhead
\def\dblatex@makeschapterhead#1{\vspace*{-80pt}\save@makeschapterhead{#1}=
}
\def\@makeschapterhead#1{\dblatex@makeschapterhead{#1}\dblatex@chaptersma=
rk{#1}}
=09
\AtBeginDocument{\ifx\refname\@undefined\let\docbooktolatexbibname\bibnam=
e\def\docbooktolatexbibnamex{\bibname}\else\let\docbooktolatexbibname\ref=
name\def\docbooktolatexbibnamex{\refname}\fi}
% Facilitate use of \cite with \label
\newcommand{\docbooktolatexbibaux}[2]{%
\protected@write\@auxout{}{\string\global\string\@namedef{docbooktolate=
xcite@#1}{#2}}
}
% Provide support for bibliography `subsection' environments with titles
\newenvironment{docbooktolatexbibliography}[3]{
\begingroup
\let\save@@chapter\chapter
\let\save@@section\section
\let\save@@@mkboth\@mkboth
\let\save@@bibname\bibname
\let\save@@refname\refname
\let\@mkboth\@gobbletwo
\def\@tempa{#3}
\def\@tempb{}
\ifx\@tempa\@tempb
\let\chapter\@gobbletwo
\let\section\@gobbletwo
\let\bibname\relax
\else
\let\chapter#2
\let\section#2
\let\bibname\@tempa
\fi
\let\refname\bibname
\begin{thebibliography}{#1}
}{
\end{thebibliography}
\let\chapter\save@@chapter
\let\section\save@@section
\let\@mkboth\save@@@mkboth
\let\bibname\save@@bibname
\let\refname\save@@refname
\endgroup
}
=09
=09
%\usepackage{cite}
%\renewcommand\citeleft{(} % parentheses around list
%\renewcommand\citeright{)} % parentheses around list
\newcommand{\docbooktolatexcite}[2]{%
\@ifundefined{docbooktolatexcite@#1}%
{\cite{#1}}%
{\def\@docbooktolatextemp{#2}\ifx\@docbooktolatextemp\@empty%
\cite{\@nameuse{docbooktolatexcite@#1}}%
\else\cite[#2]{\@nameuse{docbooktolatexcite@#1}}%
\fi%
}%
}
\newcommand{\docbooktolatexbackcite}[1]{%
\ifx\Hy@backout\@undefined\else%
\@ifundefined{docbooktolatexcite@#1}{%
% emit warning?
}{%
\ifBR@verbose%
\PackageInfo{backref}{back cite \string`#1\string' as \string`\@n=
ameuse{docbooktolatexcite@#1}\string'}%
\fi%
\Hy@backout{\@nameuse{docbooktolatexcite@#1}}%
}%
\fi%
}
=09
=09
% --------------------------------------------
% A way to honour <footnoteref>s
% Blame j-devenish (at) users.sourceforge.net
% In any other LaTeX context, this would probably go into a style file.
\newcommand{\docbooktolatexusefootnoteref}[1]{\@ifundefined{@fn@label@#1}=
%
{\hbox{\@textsuperscript{\normalfont ?}}%
\@latex@warning{Footnote label `#1' was not defined}}%
{\@nameuse{@fn@label@#1}}}
\newcommand{\docbooktolatexmakefootnoteref}[1]{%
\protected@write\@auxout{}%
{\global\string\@namedef{@fn@label@#1}{\@makefnmark}}%
\@namedef{@fn@label@#1}{\hbox{\@textsuperscript{\normalfont ?}}}%
}
=09
=09
% index labeling helper
\newif\ifdocbooktolatexprintindex\docbooktolatexprintindextrue
\let\dbtolatex@@theindex\theindex
\let\dbtolatex@@endtheindex\endtheindex
\def\theindex{\relax}
\def\endtheindex{\relax}
\newenvironment{dbtolatexindex}[1]
{
\if@openright\cleardoublepage\else\clearpage\fi
\let\dbtolatex@@indexname\indexname
\def\dbtolatex@indexlabel{%
\ifnum \c@secnumdepth >\m@ne \refstepcounter{chapter}\fi%
\label{#1}\hypertarget{#1}{\dbtolatex@@indexname}%
\global\docbooktolatexprintindexfalse}
\def\indexname{\ifdocbooktolatexprintindex\dbtolatex@indexlabel\else\dbto=
latex@@indexname\fi}
\dbtolatex@@theindex
}
{
\dbtolatex@@endtheindex\let\indexname\dbtolatex@@indexname
}
\newlength\saveparskip \newlength\saveparindent
\newlength\tempparskip \newlength\tempparindent
=09
\def\docbooktolatexgobble{\expandafter\@gobble}
% Prevent multiple openings of the same aux file
% (happens when backref is used with multiple bibliography environments)
\ifx\AfterBeginDocument\undefined\let\AfterBeginDocument\AtBeginDocument\=
fi
\AfterBeginDocument{
\let\latex@@starttoc\@starttoc
\def\@starttoc#1{%
\@ifundefined{docbooktolatex@aux#1}{%
\global\@namedef{docbooktolatex@aux#1}{}%
\latex@@starttoc{#1}%
}{}
}
}
% --------------------------------------------
% Hacks for honouring row/entry/@align
% (\hspace not effective when in paragraph mode)
% Naming convention for these macros is:
% 'docbooktolatex' 'align' {alignment-type} {position-within-entry}
% where r =3D right, l =3D left, c =3D centre
\newcommand{\docbooktolatex@align}[2]{\protect\ifvmode#1\else\ifx\LT@@tab=
array\@undefined#2\else#1\fi\fi}
\newcommand{\docbooktolatexalignll}{\docbooktolatex@align{\raggedright}{}=
}
\newcommand{\docbooktolatexalignlr}{\docbooktolatex@align{}{\hspace*\fill=
}}
\newcommand{\docbooktolatexaligncl}{\docbooktolatex@align{\centering}{\hf=
ill}}
\newcommand{\docbooktolatexaligncr}{\docbooktolatex@align{}{\hspace*\fill=
}}
\newcommand{\docbooktolatexalignrl}{\protect\ifvmode\raggedleft\else\hfil=
l\fi}
\newcommand{\docbooktolatexalignrr}{}
\ifx\captionswapskip\@undefined\newcommand{\captionswapskip}{}\fi
\makeatother
\title{}
\author{}
% --------------------------------------------
\makeindex
\makeglossary
% --------------------------------------------
\setcounter{tocdepth}{4}
\setcounter{secnumdepth}{4}
\begin{document}
\InputIfFileExists{title}{\typeout{WARNING: Using cover page title}}{\mak=
etitle\pagestyle{fancy}
\thispagestyle{empty}}
% -------------------------------------------------------------
% Chapter A Chapter=20
% ------------------------------------------------------------- =09
\chapter{A Chapter}
\label{id2425286}\hypertarget{id2425286}{}%
% ------------------------ =20
% Section=20
\section{A Section}
\label{id2424769}\hypertarget{id2424769}{}%
test
\end{document}
--===============1026606233==--