From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Raja R Harinath Newsgroups: gmane.emacs.devel Subject: Re: No malayalam glyphs in language/mlm-util.el Date: Fri, 14 Feb 2003 16:20:59 -0600 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200302132347.IAA10169@etlken.m17n.org> <200302141100.UAA11513@etlken.m17n.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1045261162 30760 80.91.224.249 (14 Feb 2003 22:19:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 14 Feb 2003 22:19:22 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18joAx-0007zi-00 for ; Fri, 14 Feb 2003 23:19:19 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18joO5-0006gF-00 for ; Fri, 14 Feb 2003 23:32:54 +0100 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 18joCv-0005Yt-04 for emacs-devel@quimby.gnus.org; Fri, 14 Feb 2003 17:21:21 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18joCc-0005YA-00 for emacs-devel@gnu.org; Fri, 14 Feb 2003 17:21:02 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18joCb-0005Xn-00 for emacs-devel@gnu.org; Fri, 14 Feb 2003 17:21:01 -0500 Original-Received: from mail.cs.umn.edu ([128.101.32.202]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18joCa-0005Xj-00 for emacs-devel@gnu.org; Fri, 14 Feb 2003 17:21:00 -0500 Original-Received: from bose.cs.umn.edu (bose.cs.umn.edu [128.101.35.195]) by mail.cs.umn.edu (Postfix) with ESMTP id 0F7471136C; Fri, 14 Feb 2003 16:21:00 -0600 (CST) Original-Received: by bose.cs.umn.edu (Postfix, from userid 818) id 905A03200; Fri, 14 Feb 2003 16:20:59 -0600 (CST) Original-To: bob@rattlesnake.com In-Reply-To: ("Robert J. Chassell"'s message of "Fri, 14 Feb 2003 21:50:01 +0000 (UTC)") User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 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:11649 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11649 "Robert J. Chassell" writes: > Still no success. > > Still using, today's CVS snapshot, Fri, 2003 Feb 14 13:31 UTC GNU > Emacs 21.3.50.146 (i686-pc-linux-gnu, X toolkit) started with > > /usr/local/bin/emacs -q --no-site-file --eval '(blink-cursor-mode 0)' > > > ...I see empty boxes when I visit > > > > emacs/lisp/language/mlm-util.el > > AFAI can make out, the variables 'malayalam-consonant' and the regexp > in 'malayalam-composable-pattern' use Unicode. You need an Unicode > font that has glyphs in that range. If your default font doesn't > have the correct stuff, you'll need in your .emacs > > (set-fontset-font (query-fontset (frame-parameter nil 'font)) > (cons (decode-char 'ucs ?\x0D00) (decode-char 'ucs ?\x0D7f)) > (cons "monotype-arial unicode ms" "iso10646-1")) > > I just started a fresh Emacs, evaluated that expression in it, and visited > emacs/lisp/language/mlm-util.el > > No success. Same problem as before: empty boxes. It wasn't clear my previous mail: but the second cons refers to the font name. I used as an example the font "Arial Unicode MS": a TTF font that came with Microsoft Office 2000. Sorry about using an non-free font as an example. > You can use any font that has Malayalam, ... > > Such as...? please tell me a URL that I can download. Try http://malayalamlinux.sourceforge.net/input-methods/ http://malayalamlinux.sourceforge.net/input-methods/malayalam.ttf (That site had no indication about the freedom of usage of the font. So, the situation is not really much better.) > After downloading and unpacking into directory foobar/, > I presume I then do: > > mkfontdir > xset fp+ /usr/X11R6/lib/X11/fonts/foobar/ > xset fp rehash > > Is that right? > > (If that is right and you tell me a URL and it all works, I will > write up a short example of what to do.) If there is no 'fonts.scale' file in that directory, create it with the following contents inside the ---8<--- lines. ---8<--- fonts.scale 1 malayalam.ttf -misc-malayalam-medium-r-normal--0-0-0-0-p-0-iso10646-1 ---8<--- If there's already a fonts.scale in that directory, add 1 to the number on top of that file, and append the "malayalam.ttf -misc-...-1" line to it. Then run in that directory $ mkfontdir $ xset fp+ `pwd` $ xset fp rehash Then, add the following to your .emacs: (set-fontset-font (query-fontset (frame-parameter nil 'font)) (cons (decode-char 'ucs #x0D00) (decode-char 'ucs #x0D7f)) (cons "misc-malayalam" "iso10646-1")) HTH - Hari -- Raja R Harinath ------------------------------ harinath@cs.umn.edu