Discussion:
Problem with cyrillic letters
a a
2010-10-21 18:28:25 UTC
Permalink
Hi, scientists!

Please, help me to make Ipe deal with cyrillic letters.
I use Windows XP and MikTex 2.8.

When I type in the preambule

\usepackage[utf8]{inputenc}

I receive the error message

! Package inputenc Error: Unicode char \u8:и not set up for use with LaTeX.


When I write
\usepackage[utf8]{inputenc}
\usepackage[english,russian]{babel}

during the work of pdflatex I don't have error messages,
but after I get
"Something's wrong with pdflatex" on Ipe 6 and
"An error occurred during pdflatex run.
There was an error reading the pdflatex output".

In all my russian files I write
\usepackage[cp1251]{inputenc}
\usepackage[english,russian]{babel}
in preambule (because I prefer cp1251)
and latex and pdflatex work properly.

The site
http://tclab.kaist.ac.kr/ipe/pdftex.html
is not accessible from my computer (or is dead?)

I followed the advice of Ipe 6 to update the latex base. It does not help.

The same thing with Ipe 6 and 7.


When I in Ipe 6 write
\usepackage{ttfucs}
...

I get the error, something like
"unexpected \pagestyle{empty}"

I have put a lot of time for it, and all my ideas are over.

Can anyone help?
Otfried Cheong
2010-10-22 15:18:58 UTC
Permalink
Post by a a
Please, help me to make Ipe deal with cyrillic letters.
I use Windows XP and MikTex 2.8.
One word first: Ipe can only use pdflatex, and it can only handle
scalable fonts (either Postscript or Truetype fonts).

Currently Ipe writes the Latex source file in UTF-8, but I'm planning to
change this so that you can select the encoding yourself. cp1251 would
be possible then.
Post by a a
When I type in the preambule
\usepackage[utf8]{inputenc}
I receive the error message
! Package inputenc Error: Unicode char \u8:и not set up for use with LaTeX.
I have tried this just now with a small test file:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english,russian]{babel}
\begin{document}
Лeв Николaевич Толстoи
\end{document}

It seems that pdflatex can handle this. HOWEVER, on my latex
installation, the fonts used are Metafont fonts, which are embedded into
PDF as bitmapped fonts. (You can check this by looking at Document
properties->Fonts in Acrobat Reader.)

I got exactly the error you describe when I tried to use the correct
accents:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english,russian]{babel}
\begin{document}
Лeв Никола́евич Толсто́й
\end{document}

I don't know why this is the case, but it seems that inputenc simply
doesn't know about these accents.
Post by a a
In all my russian files I write
\usepackage[cp1251]{inputenc}
\usepackage[english,russian]{babel}
in preambule (because I prefer cp1251)
and latex and pdflatex work properly.
As I said, in the next Ipe version I plan to allow you to write the
Latex source file in any encoding you want, including cp1251. However,
this would not solve the problem on my setup here, as it still uses
Metafont fonts. There should be a way to switch to Postscript fonts
when using Russian, though.

Cheers,
Otfried
Otfried Cheong
2010-10-22 15:44:41 UTC
Permalink
Post by a a
When I write
\usepackage[utf8]{inputenc}
\usepackage[english,russian]{babel}
during the work of pdflatex I don't have error messages,
but after I get
"Something's wrong with pdflatex" on Ipe 6 and
"An error occurred during pdflatex run.
There was an error reading the pdflatex output".
If pdflatex doesn't give an error message, that means that the problem
is the fonts used - they are not scalable (Postscript type1) fonts.

After some googling I think you can use the PsCyr package on MikTex - if
it is setup correctly, it will use Postscript fonts for the cyrillic
letters.

You should then indeed write

\usepackage[utf8]{inputenc}
\usepackage[english,russian]{babel}

in the preamble (and whatever else is necessary for PsCyr).

Cheers,
Otfried
a a
2010-10-22 17:17:26 UTC
Permalink
Thanks a lot to all who answered, espeisially to Otfried.

I installed pscyr following the instruction on http://samolisov.blogspot.com/2009/05/miktex-27-pscyr.html (in russian),
and now all works fine.

The correct preambule now is

\usepackage[utf8]{inputenc}
\usepackage[english,russian]{babel}
\usepackage{pscyr}

Continue reading on narkive:
Loading...