From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: MULE shows gibberish; now what? Date: Wed, 09 Oct 2002 20:55:25 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <200210100055.g9A0tQg04263@rum.cs.yale.edu> References: <5lu1jvfp9c.fsf@rum.cs.yale.edu> <200210100029.JAA19642@etlken.m17n.org> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1034211762 28473 127.0.0.1 (10 Oct 2002 01:02:42 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 10 Oct 2002 01:02:42 +0000 (UTC) Cc: monnier+gnu.emacs.help/news/@rum.cs.yale.edu, emacs-devel@gnu.org, ilya@Math.Berkeley.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 17zRiq-0007P7-00 for ; Thu, 10 Oct 2002 03:02:40 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17zSX9-00007b-00 for ; Thu, 10 Oct 2002 03:54:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17zRiJ-0001tA-00; Wed, 09 Oct 2002 21:02:07 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17zRhk-0001Fu-00 for emacs-devel@gnu.org; Wed, 09 Oct 2002 21:01:32 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17zRhi-0001FB-00 for emacs-devel@gnu.org; Wed, 09 Oct 2002 21:01:32 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17zRhi-0001Eu-00 for emacs-devel@gnu.org; Wed, 09 Oct 2002 21:01:30 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g9A0tQg04263; Wed, 9 Oct 2002 20:55:26 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Kenichi Handa Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:8493 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:8493 > As I didn't receive the original message from Ilya, this is my guess. > The current problem is: > > (1) Now people install CP-1252 fonts and give alias names "*-iso8859-5". > (2) Emacs finds such a font for displaying cyrillic-iso8859-5 chars. > > Correct? Right on! > Then, if such a font can be distinguished from correct > iso8859-5 fonts (perhaps, by family or foundary fields), the > easiest solution is to ignore such a font by setting the > variable `face-ignored-fonts' properly. Ah, I didn't remember that one. It sounds just perfect. > > It could also look at the CHARSET_REGISTRY and CHARSET_ENCODING property > > of the font (rather than assuming it's the same as in the fontname) ? > > To get those properties, we must call XListFontsWithInfo > which, I think, is very slow compared with XListFonts. > Perhaps, we must introduce a variable, for instance, > `unreliable-font-registry-encoding-name-list, use > XListFontsWithInfo only to find a font whose > registry-encoding matches with this variable. I was indeed thinking that it would probably be too costly preformancewise. Although maybe we could do a sanity-check late in the game (after we have settled on a particular font) and if the sanity check fails, we add the fontname to face-ignored-fonts and try again. > > BTW, I agree that the fontset management could be made simpler (I think > > it's not just a question of the doc being dense or incomplete). > > Especially in your case, there should be some way to say something like: > > (fontset-prefer-font 'cyrillic-iso8859-5 "-etl-fixed-*-iso8859-5") > > Is that intention different from this? > > (dolist (fontset (fontest-list)) > (set-fontset-font fontset 'cyrillic-iso8859-5 > '("etl-fixed" . "iso8859-5"))) No, that sounds just right. But I think such things should be documented in the Emacs Manual (and thus understandable to someone who's not proficient in ELisp). Stefan