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: TUTORIAL.bg and windows-1251 Date: Wed, 14 Jan 2004 21:10:43 +0900 (JST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200401141210.VAA16210@etlken.m17n.org> References: <3FB52552.6090302@fmi.uni-sofia.bg> <200311170721.QAA11735@etlken.m17n.org> <3FBA3F81.4010602@fmi.uni-sofia.bg> <200311242355.IAA24563@etlken.m17n.org> <3FC45367.6070504@fmi.uni-sofia.bg> <200311260747.QAA27236@etlken.m17n.org> <3FC464C2.7010504@fmi.uni-sofia.bg> <200311261317.WAA27673@etlken.m17n.org> <200312030834.RAA03004@etlken.m17n.org> <3FCF60C9.8060009@fmi.uni-sofia.bg> <200312042328.IAA06933@etlken.m17n.org> <3FF2E5DF.4090906@fmi.uni-sofia.bg> <200401050414.NAA00014@etlken.m17n.org> <3FFC3249.3010501@fmi.uni-sofia.bg> <200401072358.IAA05239@etlken.m17n.org> <3FFED268.3020908@fmi.uni-sofia.bg> <200401130407.NAA13705@etlken.m17n.org> <40052B24.2030803@fmi.uni-sofia.bg> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1074085091 28782 80.91.224.253 (14 Jan 2004 12:58:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 14 Jan 2004 12:58:11 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Jan 14 13:58:04 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Agkay-0001cF-00 for ; Wed, 14 Jan 2004 13:58:04 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Agkax-000632-00 for ; Wed, 14 Jan 2004 13:58:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AgkQ0-0005h0-0r for emacs-devel@quimby.gnus.org; Wed, 14 Jan 2004 07:46:44 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AgkP7-0005cq-PD for emacs-devel@gnu.org; Wed, 14 Jan 2004 07:45:49 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AgkAO-0003tL-Km for emacs-devel@gnu.org; Wed, 14 Jan 2004 07:31:07 -0500 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AgjzP-0002pr-IL for emacs-devel@gnu.org; Wed, 14 Jan 2004 07:19:15 -0500 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2]) by tsukuba.m17n.org (8.11.6p2/3.7W-20010518204228) with ESMTP id i0ECAih14857; Wed, 14 Jan 2004 21:10:44 +0900 (JST) (envelope-from handa@m17n.org) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) by fs.m17n.org (8.11.6/3.7W-20010823150639) with ESMTP id i0ECAis17634; Wed, 14 Jan 2004 21:10:44 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id VAA16210; Wed, 14 Jan 2004 21:10:43 +0900 (JST) Original-To: ogi@fmi.uni-sofia.bg In-reply-to: <40052B24.2030803@fmi.uni-sofia.bg> (message from Ognyan Kulev on Wed, 14 Jan 2004 13:42:28 +0200) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.3 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:19173 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19173 In article <40052B24.2030803@fmi.uni-sofia.bg>, Ognyan Kulev writes: > We can exchange mails this way for another month, so I decided to dive > into the Source ;-) Thank you for that! But... > It seems override-fontspec hasn't enough > "priority". To see what I mean, take a look at the attached patch. > After applying it, microsoft-cp1251 is used in rendering. That's still strange. You wrote that microsoft-cp1251 font is used when you modify the default fontset by this code: (defun use-microsoft-cp1251-font () (let ((fontspec '(nil . "microsoft-cp1251"))) (map-char-table #'(lambda (k v) (if (and v (> k 128)) (set-fontset-font "fontset-default" k fontspec))) (get 'encode-windows-1251 'translation-table)))) That means that you are using the default fontset, thus making override-fontspec have the higher priority than the defualt fontset should be enough (as the current Emacs code). And, if a user is using a fontset (other than the default fontset) that specifies some font for Cyrillic characters, I think override-fontspec should not have the higher priority than that fontset. --- Ken'ichi HANDA handa@m17n.org