Bug#298125: db2latex-xsl: German Umlaut pattern leads to bad output

2005-03-05 Thread Roland Stigge
Hi,

On Sat, 2005-03-05 at 10:40 +0100, Michael Wiedmann wrote:
> > in a lang="de" book, consider a pattern like this:
> > 
> > "123" abc
> > 
> > db2latex-xsl seems to copy this to the output, causing LaTeX to create
> > an A-Umlaut (Ã).
> 
> If using a "lang" attribute (which IMO is good practice) for DocBook 
> Documents 
> which are to be processed using db2latex the user should contact the "babel"
> documentation and read carefully all the options for the chosen
> language.
> 
> "shorthands" are quite often used in babel and can be switched
> off. This depends on the language.
> 
> For the given example the customization layer should emit (after
> "\begin{document}":
> 
> \shorthandoff{"}
> 
> and all is fine...
> 
> IMO it is very difficult to find reasonable "babel" default values for a
> given language, so the user _must_ configure "babel" in a
> customization layer anyhow.

Nevertheless, at least the known problems (as this one) should be fixed
in the default case.

bye,
  Roland




Bug#298125: db2latex-xsl: German Umlaut pattern leads to bad output

2005-03-05 Thread Michael Wiedmann
* Roland Stigge <[EMAIL PROTECTED]> wrote [050304 22:42]:

> in a lang="de" book, consider a pattern like this:
> 
> "123" abc
> 
> db2latex-xsl seems to copy this to the output, causing LaTeX to create
> an A-Umlaut (Ä).

If using a "lang" attribute (which IMO is good practice) for DocBook Documents 
which are to be processed using db2latex the user should contact the "babel"
documentation and read carefully all the options for the chosen
language.

"shorthands" are quite often used in babel and can be switched
off. This depends on the language.

For the given example the customization layer should emit (after
"\begin{document}":

\shorthandoff{"}

and all is fine...

IMO it is very difficult to find reasonable "babel" default values for a
given language, so the user _must_ configure "babel" in a
customization layer anyhow.

Michael
-- 
[EMAIL PROTECTED]  http://www.miwie.org



Bug#298125: db2latex-xsl: German Umlaut pattern leads to bad output

2005-03-04 Thread Roland Stigge
Package: db2latex-xsl
Version: 0.8pre1-5
Severity: normal

Hi,

in a lang="de" book, consider a pattern like this:

"123" abc

db2latex-xsl seems to copy this to the output, causing LaTeX to create
an A-Umlaut (Ã).

See the attached example.

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


umlaut.xml
Description: application/xml
%   
% Autogenerated LaTeX file for books
%   
\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 
% 
\newif\ifpdf
\ifx\pdfoutput\undefined
\pdffalse % we are not running PDFLaTeX
\else
\pdfoutput=1 % we are running PDFLaTeX
\pdftrue
\fi
% 
% Load graphicx package with pdf if needed 
% 
\ifpdf
\usepackage[pdftex]{graphicx}
\pdfcompresslevel=9
\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 chapter
% is printed whenever there are figures or tables from that chapter. encourage
% pagebreak prior to the name of the chapter (discourage orphans).
\let\save@@[EMAIL PROTECTED]
\let\save@@[EMAIL PROTECTED]@figure
[EMAIL PROTECTED]@[EMAIL PROTECTED]
[EMAIL PROTECTED]@@chapter[{#1}]{#2}%
[EMAIL PROTECTED]@[EMAIL PROTECTED]
[EMAIL PROTECTED]@[EMAIL PROTECTED]
}
[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL 
PROTECTED]
[EMAIL PROTECTED]@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 
skipped.}}
\pagestyle{fancy}
% -- 
% Most Common Packages   
% -- 
\usepackage{latexsym} 
\usepackage{enumerate} 
\usepackage{fancybox}  
\usepackage{float}   
\usepackage{ragged2e}   
\usepackage{fancyvrb} 
[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]
\fvset{obeytabs=true,tabsize=3}
\makeatletter
[EMAIL PROTECTED]@endcenter\endcenter
[EMAIL PROTECTED]@ \parsep\parskip [EMAIL PROTECTED]
[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]
[EMAIL PROTECTED]
\makeatother
\usepackage{rotating} 
\usepackage{subfigure} 
\usepackage{tabularx} 
\usepackage{url} 
% 
% Math support
% 
\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}
 \DeclareMath