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: Emacs Mule Devanagari support quite possibly broken Date: Mon, 30 Sep 2002 20:24:02 +0900 (JST) Sender: emacs-devel-admin@gnu.org Message-ID: <200209301124.UAA05248@etlken.m17n.org> References: <87fzvtew7w.fsf@STRATTON-TWO-EIGHTY-SIX.MIT.EDU> NNTP-Posting-Host: localhost.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 1033385173 14168 127.0.0.1 (30 Sep 2002 11:26:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 30 Sep 2002 11:26:13 +0000 (UTC) Cc: emacs-devel@gnu.org, batta@beige.ocn.ne.jp, aatharuv@mit.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 17vygl-0003gO-00 for ; Mon, 30 Sep 2002 13:26:11 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17vzQQ-0004Sh-00 for ; Mon, 30 Sep 2002 14:13:22 +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 17vyh0-0004tD-00; Mon, 30 Sep 2002 07:26:26 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17vyf1-0004Vq-00 for emacs-devel@gnu.org; Mon, 30 Sep 2002 07:24:23 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17vyey-0004Ut-00 for emacs-devel@gnu.org; Mon, 30 Sep 2002 07:24:22 -0400 Original-Received: from tsukuba.m17n.org ([192.47.44.130]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17vyet-0004Up-00 for emacs-devel@gnu.org; Mon, 30 Sep 2002 07:24:15 -0400 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2]) by tsukuba.m17n.org (8.11.6/3.7W-20010518204228) with ESMTP id g8UBO3F28691; Mon, 30 Sep 2002 20:24:03 +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.3/3.7W-20010823150639) with ESMTP id g8UBO2d02369; Mon, 30 Sep 2002 20:24:02 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id UAA05248; Mon, 30 Sep 2002 20:24:02 +0900 (JST) Original-To: aatharuv@mit.edu In-reply-to: <87fzvtew7w.fsf@STRATTON-TWO-EIGHTY-SIX.MIT.EDU> (message from Arun A Tharuvai on 28 Sep 2002 15:43:31 -0400) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.1.30 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) 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:8252 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:8252 In article <87fzvtew7w.fsf@STRATTON-TWO-EIGHTY-SIX.MIT.EDU>, Arun A Tharuvai writes: > I noticed that the devanagari script support was rewritten sometime > after the release of Emacs 21.2, and that the current cvs version uses > CDAC fonts instead of the muleindian encoded fonts that come with > intlfonts. However, none of the fonts that I've been able to find > online, that are labelled as CDAC fonts (which by inspection don't > appear to have a single encoding), are available under a free license, As far as I remember, Kawabata-san got a permission to use it freely. Kawabata-san, could you please desciribe the precise status of the permission? > Attempting to test with these fonts, I've found that all of the > devanagari input methods merely output blank characters, and as such, I've just added the following paragraphs in the section "* Extra fonts" of the file INSTALL, which I long ago received but forgot to install, sorry. Could you please try it? If your X server for X font server supports TrueType fonts, you can directly use the downloaded fonts (without converting them to PCF as below). But, in that case, you must give "Devanagari-CDAC" to the CHARSET_REGISTRY and CHARSET_ENCODING field of the devanagari font. ---------------------------------------------------------------------- The new Indian implementation uses the ISFOC standard fonts. We use CDAC ISFOC fonts to display the Devanagari script in Emacs. They are copyrighted, but we received permission to use them in Emacs from the font developers. These fonts can be obtained from the internet, or may be found in C-DAC products (including downloadable ones). For examle, you can search the CDAC Devanagari font `dvsr0ntt.ttf' by using some search engines and they will guide you to appropriate URLs to obtain them. After you've downloaded the fonts, then run the following Makefile to create the appropriate BDF/PCF fonts. (You will need `ttf2bdf', equipped with freetype 1, to create BDF file.) TTFS= asdr0ntt.ttf:Assamese\ bndr0ntt.ttf:Bengali\ dvsr0ntt.ttf:Devanagari\ gjav0ntt.ttf:Gujarati\ knum0ntt.ttf:Kannada\ mlkr0ntt.ttf:Malayalam\ orsr0ntt.ttf:Oriya\ pnam0ntt.ttf:Punjabi\ sdsr0ntt.ttf:Sanskrit\ tlhm0ntt.ttf:Telugu\ tmvl0ntt.ttf:Tamil all: for f in ${TTFS}; do \ ttf=`echo $$f | sed 's/:.*$$//'`; \ reg=`echo $$f | sed 's/[^:]*://'`; \ base=`basename $$ttf .ttf`; \ echo Converting "$$ttf to $$base-XX.bdf/pcf with registry $$reg"; \ for i in 16 24; do \ ttf2bdf -p $${i} -r 100 -l 0_255 $$ttf > temp; \ sed "/^FONT /s/ISO10646-1/$$reg-CDAC/" $$base-$$i.bdf; \ bdftopcf $$base-$$i.bdf > $$base-$$i.pcf; \ done; \ done rm -f temp clean: rm -f *.pcf *.bdf ---------------------------------------------------------------------- --- Ken'ichi HANDA handa@m17n.org