From: Kenichi Handa <handa@m17n.org>
To: Werner LEMBERG <wl@gnu.org>
Cc: kasahara@nc.kyushu-u.ac.jp, emacs-devel@gnu.org
Subject: Re: set-fontset-font and preferred charset?
Date: Fri, 03 Jul 2009 16:21:40 +0900 [thread overview]
Message-ID: <tl7ab3mjkor.fsf@m17n.org> (raw)
In-Reply-To: <20090703.082403.252821682.wl@gnu.org> (message from Werner LEMBERG on Fri, 03 Jul 2009 08:24:03 +0200 (CEST))
In article <20090703.082403.252821682.wl@gnu.org>, Werner LEMBERG <wl@gnu.org> writes:
[...]
> > (set-fontset-font "fontset-default"
> > 'cyrillic '(nil . "jisx0208.1983-0") 'append)
[...]
> There are typos; this should rather be
Oops, right. We need nil before 'append.
> IMHO, this kind of setup should be the default -- I'm quite sure that
> even Japanese or Chinese prefer half-width characters for Greek and
> Cyrillic. Any reason against this?
Actually, 23.1 doesn't contain "jisx0208.1983-0" for
cyrillic and greek. So, they are always displayed as
half-width.
Recently, for 23.2, I added this code to make them displayed
as doble-width when charset property is some of CJK charset.
+ ;; Append CJK fonts for characters other than han, kana, cjk-misc.
+ ;; CHARSET-REGISTRY CHARSET FROM-CODE TO-CODE
+ (let ((list '(("JISX0208.1983-0" japanese-jisx0208 #x2121 #x287E)
+ ("GB2312.1980-0" chinese-gb2312 #x2121 #x297E)
+ ("BIG5-0" big5 #xA140 #xA3FE)
+ ("CNS11643.1992-1" chinese-cns11643-1 #x2121 #x427E)
+ ("KSC5601.1987-0" korean-ksc5601 #x2121 #x2C7E))))
+ (dolist (elt list)
+ (map-charset-chars
+ #'(lambda (range arg)
+ (set-fontset-font "fontset-default" range
+ (cons nil (car elt)) nil 'append))
+ (nth 1 elt) nil (nth 2 elt) (nth 3 elt))))
So, if he uses 23.2 trunk code, there's no need of extra
setting.
Perhaps, I should add that code for 23.1 too because it can
be considered as a bug that Emacs 23.1 dislays several
characters as half width by M-x list-charset-chars RET
japanese-jisx0208 RET.
---
Kenichi Handa
handa@m17n.org
next prev parent reply other threads:[~2009-07-03 7:21 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-03 5:15 set-fontset-font and preferred charset? Yoshiaki Kasahara
2009-07-03 5:53 ` Kenichi Handa
2009-07-03 6:24 ` Werner LEMBERG
2009-07-03 7:21 ` Kenichi Handa [this message]
2009-07-03 8:09 ` YAMAMOTO Mitsuharu
2009-07-06 12:17 ` Kenichi Handa
2009-07-03 9:05 ` Yoshiaki Kasahara
2009-07-08 7:44 ` Kenichi Handa
2009-07-08 8:09 ` YAMAMOTO Mitsuharu
2009-07-08 8:48 ` YAMAMOTO Mitsuharu
2009-07-08 11:29 ` Kenichi Handa
2009-07-09 0:00 ` YAMAMOTO Mitsuharu
2009-07-09 1:06 ` Kenichi Handa
2009-07-08 8:13 ` Yoshiaki Kasahara
2009-07-09 1:21 ` Kenichi Handa
2009-07-09 2:40 ` Yoshiaki Kasahara
2009-07-09 3:55 ` Kenichi Handa
2009-07-09 4:32 ` Yoshiaki Kasahara
2009-07-09 4:50 ` Kenichi Handa
2009-07-09 5:06 ` Yoshiaki Kasahara
2009-07-09 12:00 ` Kenichi Handa
2009-07-10 2:52 ` Yoshiaki Kasahara
2009-07-10 4:05 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tl7ab3mjkor.fsf@m17n.org \
--to=handa@m17n.org \
--cc=emacs-devel@gnu.org \
--cc=kasahara@nc.kyushu-u.ac.jp \
--cc=wl@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 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.