Mailing List CyrTeX-en@vsu.ru Message #112
From: Ruprecht Freiherr von Waldenfels <h0444tuv@rz.hu-berlin.de>
Subject: Re: German/Russian via Babel
Date: Mon, 4 Dec 2000 22:18:02 +0100 (MET)
To: <CyrTeX-en@vsu.ru>
Dear Vladimir

I am working under Win98, so I prefer using cp1251 for Russian and cp1252
for
German. I don´t have an unicode editor, and so I can´t use the utf-8
encoding, as far as
I understand.
Your option number three is what I´ve tried to do. The problem seems to be
indeed
changing the encoding. I´m sending you my code, and maybe you can see what
the
problem is.

Thanks a lot,
Ruprecht


> 3) you could also save your files in a mixed input encoding and switch
>    between latin-1 and e.g. koi8-r (do not forget to switch also
>    fontencoding from T1 to T2A). for this you will need to get the
>    current base LaTeX if you will need to switch input encoding within
>    the same text paragraph.
>


(1) First try, resulting in umlauts not appearing on dvi.:

\documentclass{article}
\usepackage[T2A,T1]{fontenc}
\usepackage[cp1251,cp1252]{inputenc}
\usepackage[russian, german]{babel}  
\begin{document}

\selectlanguage{russian}\inputencoding{cp1251} Âîò âàì òåñò.\\
\selectlanguage{german} \inputencoding{cp1252} Düs üst öin Täst.ßß \\


\end{document}


(1b) Without the Russian encoding, this works fine and gives beautiful
umlauts:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[cp1252]{inputenc}
\usepackage[german]{babel}  
\begin{document}

%\selectlanguage{russian}\inputencoding{cp1251} Âîò âàì òåñò.\\
\selectlanguage{german} \inputencoding{cp1252} Düs üst öin Täst.ßß \\

\end{document}

(2) if I use fontencoding, it doesn´t get better; umlauts are ignored:
\documentclass{article}
\usepackage[T2A,T1]{fontenc}
\usepackage[cp1251,cp1252]{inputenc}
\usepackage[russian, german]{babel}  
\begin{document}

\selectlanguage{russian}\inputencoding{cp1251} \fontencoding{T2A} Âîò âàì
òåñò.\\
\selectlanguage{german} \inputencoding{cp1252} \fontencoding{T1} Düs üst
öin
Täst.ßß \\

\end{document}

But, if I have to specify encoding of font and input, what do I need Babel
for? Only for
hyphenations and such?

I realize TeX is not as easy as I thought it was. I`ve spent quite some
time trying a lot
of possibilities, but it doesn´t work. Maybe there is no way that does not
involve
rewriting babel?

Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster