From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Font back end font selection process Date: Sun, 07 Jun 2009 14:59:43 +0900 Message-ID: <87iqj8fusw.fsf@uwakimon.sk.tsukuba.ac.jp> References: <8BA022EF-AACD-495A-ABBB-24B230475217@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1244354213 31525 80.91.229.12 (7 Jun 2009 05:56:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Jun 2009 05:56:53 +0000 (UTC) Cc: Emacs-Devel devel To: Adrian Robert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 07 07:56:50 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MDBNB-0005gh-Rj for ged-emacs-devel@m.gmane.org; Sun, 07 Jun 2009 07:56:50 +0200 Original-Received: from localhost ([127.0.0.1]:37645 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MDBNB-0003dP-2k for ged-emacs-devel@m.gmane.org; Sun, 07 Jun 2009 01:56:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MDBN2-0003cq-32 for emacs-devel@gnu.org; Sun, 07 Jun 2009 01:56:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MDBMw-0003cd-Ch for emacs-devel@gnu.org; Sun, 07 Jun 2009 01:56:38 -0400 Original-Received: from [199.232.76.173] (port=41973 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MDBMw-0003cZ-6q for emacs-devel@gnu.org; Sun, 07 Jun 2009 01:56:34 -0400 Original-Received: from mtps01.sk.tsukuba.ac.jp ([130.158.97.223]:50106) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MDBMv-0002Wc-Ju for emacs-devel@gnu.org; Sun, 07 Jun 2009 01:56:33 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mtps01.sk.tsukuba.ac.jp (Postfix) with ESMTP id 601D81537B8; Sun, 7 Jun 2009 14:56:32 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id B4E6B1A2664; Sun, 7 Jun 2009 14:59:43 +0900 (JST) In-Reply-To: <8BA022EF-AACD-495A-ABBB-24B230475217@gmail.com> X-Mailer: VM 8.0.12-devo-585 under 21.5 (beta28) "fuki" 83e35df20028+ XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:111366 Archived-At: Adrian Robert writes: > Also, often I have noticed that when given a Chinese text file > (encoded in UTF-8), the only request that comes through is :lang=ja. That reflects the historical origin of Mule, I would guess. > How should the font driver know to return a kanji font instead of > hiragana / katakana? If kana are present, it's Japanese. If Hangul are present, it's Korean. If the accents outnumber the base characters, it's Vietnamese. Otherwise, it's Chinese. There are more precise criteria based on usage of simplified characters, but that would be good enough for a start.