[OS X TeX] Trouble with Cyrillic--Solved!

Roussanka Loukanova rloukano at stp.lingfil.uu.se
Sun Feb 3 16:20:29 EST 2008


Hi,

I also have done some tests, by adding few words in Russian, as follows:

On Sun, 3 Feb 2008, Peter Dyballa wrote:
>
> 	 \usepackage[T2A]{fontenc}
> 	 \usepackage[utf8]{inputenc}
> 	 \begin{document}
> 	 \selectlanguage{english}
> 	 Here!
> 	 \end{document}
>
> You're selecting only Cyrillic fonts although you are also using non-Cyrillic 
> characters! This can't work. You should properly use and select

Right, or almost so:

1. I took away \usepackage[utf8]{inputenc}

>
> 	\usepackage[T2A,T1]{fontenc}
>
> or even better
>
> 	\usepackage[T2A,T1,TS1]{fontenc}

I tried all of these, incl.

\usepackage[T2A]{fontenc}
or
\usepackage[T2A,OT1]{fontenc}

With all of them, or taking \usepackage[...]{fontenc} alltogether away, I 
get:

(/usr/local/texlive/2007/texmf-dist/tex/latex/cyrillic/ot2enc.def)

Package inputenc Warning: No characters defined
(inputenc)                by input encoding change to `ot2enc'
(inputenc)                 on input line 128.

But Russian and English text typeset as expected, with the following code:

\documentclass[11pt]{article}
\usepackage[ot2enc]{inputenc} %% take off the Russian keyboard;
\usepackage[russian,english]{babel}
\begin{document}

\selectlanguage{russian}
Zdes\cyrsftsn{}!

\selectlanguage{english}
Here!

{\cyr
Moroz i solnce, den\cyrsftsn{} chudesny\U{i}!
}

\end{document}

2.
> UTF-8 encoding and LaTeX is a joke.

Mildly said. I tried it with the following code:

\documentclass[11pt]{article}
\usepackage[utf8]{inputenc} %% the Russian Phonetic keyboard is activated
                             %% use the Show Keyboard Viewer
%\usepackage[ot2enc]{inputenc} %% clash when the Russian keyboard is on
\usepackage[russian,english]{babel}
\begin{document}

\selectlanguage{russian}
Zdes\cyrsftsn{}!

Tuk! %% Russian Phonetic keyboard activated

\selectlanguage{english}

Here!

\end{document}

I find UTF-8 extraordinary clumsy. When the Russian Keyboard is on, I 
can't use any of the Emacs commands, like Save, LaTeX, etc. To do these, 
I have to switch back and forth to the English Keyboard. But it might be 
so because my MBP has EN keyboard. Those who use actual Russian keyboard 
might find UTF8 OK.

Roussanka



More information about the MacOSX-TeX mailing list