all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jason Rumney <jasonr@gnu.org>
To: Bostjan Vilfan <bvilf@yahoo.com>
Cc: Bug-Gnu-Emacs <bug-gnu-emacs@gnu.org>
Subject: Re: Problem with multilingual input?
Date: Wed, 21 Nov 2007 09:28:26 +0000	[thread overview]
Message-ID: <4743FA3A.7000809@gnu.org> (raw)
In-Reply-To: <994796.58819.qm@web58603.mail.re3.yahoo.com>

Bostjan Vilfan wrote:
>   character: б (332881, #o1212121, #x51451, U+0431)
>     charset: mule-unicode-0100-24ff
>          (Unicode characters of the range U+0100..U+24FF.)
>  code point: #x28 #x51
>      syntax: w     which means: word
>    category: y:Cyrillic
> buffer code: #x9C #xF4 #xA8 #xD1
>   file code: #xD0 #xB1 (encoded by coding system mule-utf-8-dos)
>     display: by this font (glyph code)
>      -outline-Bitstream Vera Sans
> Mono-bold-r-normal-normal-16-120-96-96-c-*-iso10646-1 (#x431)
>
> Comparing this result to yours in your previous message, it would
> appear that the font is the culprit. Namely I invoke Emacs with the
> command line options
>
> "C:\Program Files\Emacs\emacs-22.1\bin\runemacs.exe" -g -0 --font
> "-outline-Bitstream Vera Sans
> Mono-bold-r-normal-normal-*-*-96-96-c-*-iso8859-1"
Try the font "DejaVu Sans Mono". It is an extended version of Bitstream
Vera Sans Mono that supports many more characters, including Cyrillic.

> and the cyrillic characters are clearly visible. However, this still
> does not exhaust  the possible questions. Namely, when I invoke Emacs
> with the "problematic font" as described above, I can still display
> cyrillic characters in a new file. Problems arise only when I 
> _reopen_ the file.
The difference is the character encoding: when you enter characters,
they are entered as iso8859-5 encoded characters, so Emacs chooses a
Cyrillic font to display them. When you read them from a UTF-8 encoded
file, they are read as mule-unicode-0100-24ff encoded characters, so
Emacs chooses a Unicode font to display them. On Windows, all truetype
fonts are Unicode fonts for some subset of characters, but Emacs 22 does
not look in any more detail to see what subset that is.

This will improve with Emacs 23 (once the unicode branch is merged),
since Cyrillic will always be consistently encoded as Unicode, and a new
font backend now has the ability to look more closely at Unicode fonts
to see which Unicode subranges they support.






  reply	other threads:[~2007-11-21  9:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-21  8:31 Problem with multilingual input? Bostjan Vilfan
2007-11-21  9:28 ` Jason Rumney [this message]
     [not found] <14794.6183.qm@web58603.mail.re3.yahoo.com>
2007-11-21  7:23 ` martin rudalics
  -- strict thread matches above, loose matches on Subject: below --
2007-11-20  6:11 Bostjan Vilfan
2007-11-20  6:50 ` martin rudalics

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4743FA3A.7000809@gnu.org \
    --to=jasonr@gnu.org \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=bvilf@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.