Emacs 21.3 for Windows XP Devanagari Support

Emacs 21.3 for Windows XP Devanagari Support

Post by deepakjoi » Thu, 06 Nov 2003 15:59:53


Hi All
I was wanting to edit devanagari text using Emacs on Windows XP. I
downloaded and successfully installed Emacs 21.3 compiled from CVS
from here..

http://www.yqcomputer.com/

I also downloaded the fonts required (cdacfonts.tar.gz) from here and
put them in my C:\WINDOWS\Fonts folder.

http://www.yqcomputer.com/

I am able to set my language mode to Devanagari and change the input
method to devanagari-itrans.

However, all I see is Empty boxes. What additional configuration do I
have to do in order to get Devanagari to display.

Thanks in advance
Deepak
 
 
 

Emacs 21.3 for Windows XP Devanagari Support

Post by jasonr » Fri, 07 Nov 2003 05:30:08


XXXX@XXXXX.COM (Vyom) writes:


The CDAC fonts seem to be falsely marked as being in ANSI encoding
(which in Windows terms, means Windows-1252), probably because Windows
does not define a suitable encoding for Devanagari. This means that
Emacs cannot detect that these fonts are suitable for Devanagari.

You will need to force the use of these fonts for the Devanagari
characters by defining your own fontset, or using set-fontset-font to
modify the default fontset.

 
 
 

Emacs 21.3 for Windows XP Devanagari Support

Post by deepakjoi » Fri, 07 Nov 2003 18:14:56

> You will need to force the use of these fonts for the Devanagari

Could you please tell me how do I do it. The main problem is how do I
describe the font that I have to define in the way that is shown in
the documentation. Is there a tool on windows (like xfontsel on Linux)
that can give me the exact font name to include.

Thanks
Deepak
 
 
 

Emacs 21.3 for Windows XP Devanagari Support

Post by jasonr » Sat, 08 Nov 2003 05:59:06


XXXX@XXXXX.COM (Vyom) writes:


Try putting the following in the *scratch* buffer, and press C-j.

(w32-select-font nil t)

Then something like:

(set-fontset-font "fontset-default" (indian-font-char-range 'cdac:dv-ttsurekh)
"FONT NAME WITH iso8859-1 CHANGED to Devanagari-CDAC")


I just tried it, and though I cannot read Devanagari the result still
does not look right to me, so it probably needs debugging. I don't
know if anyone has got the CDAC fonts working on Windows before.