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: Implementing charset-aware X font names [was: Cyrillic vs UTF-8] Date: Mon, 28 Apr 2003 20:09:30 +0900 (JST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200304281109.UAA10876@etlken.m17n.org> References: <87ist17vzu.fsf_-_@tleepslib.sk.tsukuba.ac.jp> 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 1051529639 29766 80.91.224.249 (28 Apr 2003 11:33:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 28 Apr 2003 11:33:59 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Apr 28 13:33:56 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19A6tQ-0007js-00 for ; Mon, 28 Apr 2003 13:33:56 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19A71Z-00031c-00 for ; Mon, 28 Apr 2003 13:42:21 +0200 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 19A6jb-00065r-05 for emacs-devel@quimby.gnus.org; Mon, 28 Apr 2003 07:23:47 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19A6at-00048u-00 for emacs-devel@gnu.org; Mon, 28 Apr 2003 07:14:47 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19A6Z5-0003d7-00 for emacs-devel@gnu.org; Mon, 28 Apr 2003 07:12:56 -0400 Original-Received: from tsukuba.m17n.org ([192.47.44.130]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19A6Vv-0002yu-00 for emacs-devel@gnu.org; Mon, 28 Apr 2003 07:09:39 -0400 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2])h3SB9Vo12080; Mon, 28 Apr 2003 20:09:31 +0900 (JST) (envelope-from handa@m17n.org) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) h3SB9UA19666; Mon, 28 Apr 2003 20:09:30 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id UAA10876; Mon, 28 Apr 2003 20:09:30 +0900 (JST) Original-To: stephen@xemacs.org In-reply-to: <87ist17vzu.fsf_-_@tleepslib.sk.tsukuba.ac.jp> (stephen@xemacs.org) 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) 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:13509 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13509 In article <87ist17vzu.fsf_-_@tleepslib.sk.tsukuba.ac.jp>, "Stephen J. Turnbull" writes: > Instead, the font names and properties should provide encoding range > specifications instead of the useless "1" (which in ISO 10646-1 is not > an encoding specification, really). As a first take, I think a > reasonable way to do this would be to specify that for the iso10646 > registry the encoding field of an XLFD name should contain a > comma-separated list of Unicode block names, or a comma-separated list > of hex ranges xxxx..yyyy (can't use hyphens for the ranges, > obviously). I fully agree with that idea. [...] > This would also allow Emacs and other smart apps to create virtual > fonts (ie, in faces) by requesting Ryumin Light for the Han and Kana > blocks and Times-Roman for the Basic Latin and Latin-1 Supplement > blocks, as an alternative to X Font Sets. (This would be nearly > trivial to implement in XEmacs since we use specifiers to implement > faces, and specifiers already do magic to connect charsets to font > registries. I suppose it would be more work in GNU Emacs, but I > haven't looked at Emacs's font set code.) We connect charsets to font registries vis fontset. And in the emacs-unicode version, we have enhanced it so that we can connect scripts, charsets, range of characters to multiple font specs. In addtion, in emacs-unicode, we separate the concept of font encoding and font repertory, and for *-iso10646-1 fonts, we checks the font contents to get the true repertory as a char table. --- Ken'ichi HANDA handa@m17n.org