From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: No malayalam glyphs in language/mlm-util.el Date: Mon, 24 Feb 2003 10:46:57 +0900 (JST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200302240146.KAA25144@etlken.m17n.org> References: <200302132347.IAA10169@etlken.m17n.org> <200302141100.UAA11513@etlken.m17n.org> <87u1f5zg81.fsf@vsnl.net> <87znowvlqp.fsf@vsnl.net> <200302170626.PAA15499@etlken.m17n.org> <200302171441.h1HEfdi26989@rum.cs.yale.edu> <200302181151.UAA17618@etlken.m17n.org> <87smugyh08.fsf@vsnl.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1046051280 20526 80.91.224.249 (24 Feb 2003 01:48:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 24 Feb 2003 01:48:00 +0000 (UTC) Cc: monnier+gnu/emacs@rum.cs.yale.edu Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18n7in-0005Kd-00 for ; Mon, 24 Feb 2003 02:47:57 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18n7y1-0006nn-00 for ; Mon, 24 Feb 2003 03:03:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18n7ib-0005Wy-02 for emacs-devel@quimby.gnus.org; Sun, 23 Feb 2003 20:47:45 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18n7iH-0005Uu-00 for emacs-devel@gnu.org; Sun, 23 Feb 2003 20:47:25 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18n7iE-0005Ue-00 for emacs-devel@gnu.org; Sun, 23 Feb 2003 20:47:24 -0500 Original-Received: from tsukuba.m17n.org ([192.47.44.130]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18n7iD-0005UE-00; Sun, 23 Feb 2003 20:47:21 -0500 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2])h1O1kwk06758; Mon, 24 Feb 2003 10:46:58 +0900 (JST) (envelope-from handa@m17n.org) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) h1O1kwR21940; Mon, 24 Feb 2003 10:46:58 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id KAA25144; Mon, 24 Feb 2003 10:46:57 +0900 (JST) Original-To: gnu@vsnl.net In-reply-to: <87smugyh08.fsf@vsnl.net> (gnu@vsnl.net) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.2.92 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) Original-cc: harinath@cs.umn.edu Original-cc: gnu@vsnl.net Original-cc: batta@beige.ocn.ne.jp Original-cc: bob@gnu.org Original-cc: bob@rattlesnake.com Original-cc: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:11890 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11890 In article <87smugyh08.fsf@vsnl.net>, gnu@vsnl.net (Ramakrishnan M) writes: > Ah.. I finally could see malayalam. Thanks to all of you > who helped me get this working. I did the following in > ~/.emacs > (if (eq 'x window-system) > (let ((fontset (query-fontset (frame-parameter nil 'font)))) > (when (not fontset) > (setq fontset "fontset-default") > (set-default-font fontset)) > (set-fontset-font fontset > (cons (decode-char 'ucs #x0D00) > (decode-char 'ucs #x0D7f)) > (cons "misc-malayalam" "iso10646-1")))) I think you can simply do this: (if (featurep 'fontset) (set-fontset-font "fontset-default" (cons (decode-char 'ucs #x0D00) (decode-char 'ucs #x0D7f)) (cons "misc-malayalam" "iso10646-1"))) > Now, my question is, can the whole thing be automated such > that when I just add a font to the system, it gets automatically > added to the fontset-default ? There are fonts that have malayalam glyphs other than "misc-malayalam", e.g. the font distribute here. http://openlab.jp/efont/dist/unicode-bdf/ They don't have "misc-malayalam" name but can be used in Emacs as well. So, even if Emacs finds "misc-malayalam" font, it doesn't mean a user want to use it. The problem of "iso10646-1" fonts is that, inspite of that registy name, they don't contain the whole glyphs for iso10646. To select a proper font for for a specific character automatically, Emacs has to check contents of each font. The current Emacs doesn't have this facility. As I implemented it for emacs-unicode, I'd like to ask people to wait for emacs-unicode. --- Ken'ichi HANDA handa@m17n.org