help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[h-e-w] emacs, cyrillic, utf-8


From: Sam Steingold
Subject: [h-e-w] emacs, cyrillic, utf-8
Date: Tue, 09 Dec 2003 15:48:38 -0500
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (windows-nt)

I can open in Emacs a utf-8 file with Cyrillic characters in it and it
is displayed just fine - with correct glyphs &c.
I set `default-input-method' to "cyrillic-yawerty" in .emacs,
so when I try C-\ `toggle-input-method', I get 2 "character outline
boxes" in the modeline and when I type, I see these "character outline
boxes" in the buffer instead of the characters I just typed.
When I save the buffer, kill it, and re-visit the file,
I see what I just typed displayed correctly as Cyrillic!
So, why does Emacs display the characters that I type as boxes
(rectangles) but shows them correctly when loaded from a file on disk?

I use:

   (setq default-input-method "cyrillic-yawerty")
   (prefer-coding-system 'utf-8)
   (when (fboundp 'utf-translate-cjk-mode) (utf-translate-cjk-mode 1))

when I type using cyrillic-yawerty, I get this:

  character: а (07120, 3664, 0xe50, U+0430)
    charset: cyrillic-iso8859-5
             (Right-Hand Part of Latin/Cyrillic Alphabet (ISO/IEC 8859-5): 
ISO-IR-144.)
 code point: 80
     syntax: w  which means: word
   category: y:Cyrillic  
buffer code: 0x8C 0xD0
  file code: 0xD0 0xB0 (encoded by coding system mule-utf-8-unix)
    display: no font available

when I save the file, kill the buffer and visit the file again, that
character becomes

  character: а (01212120, 332880, 0x51450, U+0430)
    charset: mule-unicode-0100-24ff
             (Unicode characters of the range U+0100..U+24FF.)
 code point: 40 80
     syntax: w  which means: word
   category: y:Cyrillic  
buffer code: 0x9C 0xF4 0xA8 0xD0
  file code: 0xD0 0xB0 (encoded by coding system mule-utf-8-unix)
    display: by this font (glyph code)
     -outline-Courier New-normal-r-normal-normal-13-97-96-96-c-80-iso10646-1 
(0x430)

So, how do I tell cyrillic-yawerty to insert UTF-8?!

or, alternatively, how do I make Emacs display "cyrillic-iso8859-5"
characters properly?

-- 
Sam Steingold (http://www.podval.org/~sds) running w2k
<http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/>
<http://www.mideasttruth.com/> <http://www.honestreporting.com>
Garbage In, Gospel Out





reply via email to

[Prev in Thread] Current Thread [Next in Thread]