Return-Path: Received: from suncom.rz.hu-berlin.de ([141.20.1.31] verified) by vsu.ru (CommuniGate Pro SMTP 3.4b6) with ESMTP id 2161519 for CyrTeX-en@vsu.ru; Tue, 05 Dec 2000 00:18:10 +0300 Received: from amor.rz.hu-berlin.de (amor.rz.hu-berlin.de [141.20.1.38]) by suncom.rz.hu-berlin.de (8.9.3/8.9.3) with ESMTP id WAA21829 for ; Mon, 4 Dec 2000 22:18:03 +0100 (MET) Received: from localhost (h0444tuv@localhost) by amor.rz.hu-berlin.de (8.9.3/8.9.3) with ESMTP id WAA22092 for ; Mon, 4 Dec 2000 22:18:02 +0100 (MET) X-Authentication-Warning: amor.rz.hu-berlin.de: h0444tuv owned process doing -bs Date: Mon, 4 Dec 2000 22:18:02 +0100 (MET) From: Ruprecht Freiherr von Waldenfels X-Sender: h0444tuv@amor To: CyrTeX-en@vsu.ru Subject: Re: German/Russian via Babel Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Dear Vladimir I am working under Win98, so I prefer using cp1251 for Russian and cp1252 for=20 German. I don=B4t have an unicode editor, and so I can=B4t use the utf-8 encoding, as far as=20 I understand. Your option number three is what I=B4ve tried to do. The problem seems to b= e indeed=20 changing the encoding. I=B4m sending you my code, and maybe you can see wha= t the=20 problem is.=20 Thanks a lot,=20 =09Ruprecht > 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. >=20 (1) First try, resulting in umlauts not appearing on dvi.: \documentclass{article}=20 \usepackage[T2A,T1]{fontenc}=20 \usepackage[cp1251,cp1252]{inputenc}=20 \usepackage[russian, german]{babel} =20 \begin{document} \selectlanguage{russian}\inputencoding{cp1251} =C2=EE=F2 =E2=E0=EC =F2=E5= =F1=F2.\\ \selectlanguage{german} \inputencoding{cp1252} D=FCs =FCst =F6in T=E4st.=DF= =DF \\ \end{document} (1b) Without the Russian encoding, this works fine and gives beautiful umlauts: \documentclass{article}=20 \usepackage[T1]{fontenc}=20 \usepackage[cp1252]{inputenc}=20 \usepackage[german]{babel} =20 \begin{document} %\selectlanguage{russian}\inputencoding{cp1251} =C2=EE=F2 =E2=E0=EC =F2=E5= =F1=F2.\\ \selectlanguage{german} \inputencoding{cp1252} D=FCs =FCst =F6in T=E4st.=DF= =DF \\ \end{document} (2) if I use fontencoding, it doesn=B4t get better; umlauts are ignored: \documentclass{article}=20 \usepackage[T2A,T1]{fontenc}=20 \usepackage[cp1251,cp1252]{inputenc}=20 \usepackage[russian, german]{babel} =20 \begin{document} \selectlanguage{russian}\inputencoding{cp1251} \fontencoding{T2A} =C2=EE=F2= =E2=E0=EC =F2=E5=F1=F2.\\ \selectlanguage{german} \inputencoding{cp1252} \fontencoding{T1} D=FCs =FCs= t =F6in=20 T=E4st.=DF=DF \\ \end{document} But, if I have to specify encoding of font and input, what do I need Babel for? Only for=20 hyphenations and such? I realize TeX is not as easy as I thought it was. I`ve spent quite some time trying a lot=20 of possibilities, but it doesn=B4t work. Maybe there is no way that does no= t involve=20 rewriting babel?