From: Kenichi Handa <handa@m17n.org>
Cc: emacs-devel@gnu.org
Subject: Re: TUTORIAL.bg and windows-1251
Date: Wed, 26 Nov 2003 16:47:14 +0900 (JST) [thread overview]
Message-ID: <200311260747.QAA27236@etlken.m17n.org> (raw)
In-Reply-To: <3FC45367.6070504@fmi.uni-sofia.bg> (message from Ognyan Kulev on Wed, 26 Nov 2003 09:16:55 +0200)
In article <3FC45367.6070504@fmi.uni-sofia.bg>, Ognyan Kulev <ogi@fmi.uni-sofia.bg> writes:
> Kenichi Handa wrote:
>> In article <3FBA3F81.4010602@fmi.uni-sofia.bg>, Ognyan Kulev <ogi@fmi.uni-sofia.bg> writes:
>>> Can X encoding be adjusted? Isn't there only two choices for cyrillic:
>>> iso10646-1 and iso8859-5?
>>
>> It seems that bg_BG locale of glibc, gtk, or XFree86 (I
>> don't know which is responsible for) encodes cyrillic
>> characters using extended segment with charset name
>> "microsoft-cp1251" in selection.
> Yes, CP1251 in Bulgaria is what is KOI8-R in Russia.
Have you tested copy&paste of Cyrillic text between Emacs
and the other applications (e.g. Mozilla)? Did it work well?
>> Please try the attached file. It overrides the ctext
>> encoder/decoder so that microsoft-cp1251 is used on decoding
>> in Bulgarian lang. env.
> After (use-microsoft-cp1251-font) in *scratch*, windows-1251 files are
> displayed correctly :-)
> Is it problem if this function is always evaled when Emacs is started?
> One can want to view windows-1251 encoded file without being in
> Bulgarian language environment. Will this case be resolved?
But, if he is not in a lang. env. that mainly uses
windows-1251, I think we can't assume that he want to see
them in microsoft-cp1251 font. I think the possibility that
he has iso10646 font is higher.
By the way, I'm now designing a facility to use
microsoft-cp1251 for Cyrillic characters automatically in
Bulgarian lang. env. by implementing something like this.
------------------------------------------------------------
set-overriding-fontspec-internal is a built-in function.
Internal use only.
FONTLIST is an alist of TARGET vs FONTNAME, where TARGET is a charset
or a char-table, FONTNAME have the same meanings as in
`set-fontset-font'.
It overrides the font specifications for each TARGET in the default
fontset by the corresponding FONTNAME.
If TARGET is a charset, targets are all characters in the charset. If
TARGET is a char-table, targets are characters whose value is non-nil
in the table.
It is intended that this function is called only from
`set-language-environment'.
------------------------------------------------------------
Such lang. env. as Bulgarian will have `overrinding-fontset'
property whose value is used as an argument to the above
function.
It's a lightweight method that overrides the default fontset
but can be cancelled easily when we switch to the other
lang. env.
---
Ken'ichi HANDA
handa@m17n.org
next prev parent reply other threads:[~2003-11-26 7:47 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-14 18:56 TUTORIAL.bg and windows-1251 Ognyan Kulev
2003-11-15 12:19 ` Ognyan Kulev
2003-11-26 7:33 ` Ognyan Kulev
2003-11-15 14:24 ` Jason Rumney
2003-11-17 7:21 ` Kenichi Handa
2003-11-18 15:49 ` Ognyan Kulev
2003-11-24 23:55 ` Kenichi Handa
2003-11-26 7:16 ` Ognyan Kulev
2003-11-26 7:47 ` Kenichi Handa [this message]
2003-11-26 8:30 ` Ognyan Kulev
2003-11-26 13:17 ` Kenichi Handa
2003-11-26 14:08 ` Ognyan Kulev
2003-12-03 8:34 ` Kenichi Handa
2003-12-04 16:28 ` Ognyan Kulev
2003-12-04 23:28 ` Kenichi Handa
2003-12-31 15:06 ` Ognyan Kulev
2003-12-31 15:54 ` Eli Zaretskii
2004-01-05 4:20 ` Kenichi Handa
2004-01-05 4:14 ` Kenichi Handa
2004-01-06 12:03 ` YAMAMOTO Mitsuharu
2004-01-07 0:25 ` Kenichi Handa
2004-01-07 1:32 ` YAMAMOTO Mitsuharu
2004-01-07 16:22 ` Ognyan Kulev
2004-01-07 23:58 ` Kenichi Handa
2004-01-09 16:10 ` Ognyan Kulev
2004-01-13 4:07 ` Kenichi Handa
2004-01-14 11:42 ` Ognyan Kulev
2004-01-14 12:10 ` Kenichi Handa
2004-01-17 19:31 ` Ognyan Kulev
2004-01-19 0:34 ` Kenichi Handa
2004-01-21 6:45 ` Ognyan Kulev
2004-01-21 10:52 ` Kenichi Handa
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200311260747.QAA27236@etlken.m17n.org \
--to=handa@m17n.org \
--cc=emacs-devel@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).