<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Test the following code<br><br>%!TEX TS-program = xetex<br>%!TEX encoding = UTF-8 Unicode<br><br>% glyphlist.tex -- to find glyphs and their index<br><br>\parindent 0pt<br><br> \font\test="Chandas" at 14pt<br>%\font\test="Charis SIL" at 14pt<br><br>\newcount\charcountA \charcountA 0<br><br>\newcount\charcountB \charcountB \XeTeXcountglyphs\test \advance\charcountB -1<br>\newcount\charcountC \charcountC 0<br><br>\def\ystrut {\vrule height 15.0pt depth 5.5pt width 0pt}<br><br>\advance\vsize 4\baselineskip<br><br>\loop<br> \advance\charcountC 1<br> \leavevmode<br> \hbox{\hbox to 10mm{\hss\number\charcountA\quad}%<br> \hbox to 10mm{\test\XeTeXglyph\charcountA\ystrut\hss}%<br> }%<br> \ifnum\charcountC = 8 \endgraf \charcountC 0 \fi<br> \ifnum\charcountA < \charcountB \advance\charcountA 1<br>\repeat<br><br>\bye<br><br>> Date: Mon, 21 Sep 2009 15:22:41 +0200<br>> From: bpj@melroch.se<br>> To: xetex@tug.org<br>> Subject: Re: [XeTeX] Trouble with displaying word containing 3 conjunct        consonants in Devanagari<br>> <br>> Ravi Parimi skrev:<br>> > On Sun, Sep 20, 2009 at 11:30 AM, Benct Philip Jonsson <bpj@melroch.se> wrote:<br>> >> Ravi Parimi skrev:<br>> >>> Hi,<br>> >>><br>> >>> I'm using xelatex Version 3.1415926-2.2-0.999.6 (Web2C 7.5.7) on Max<br>> >>> OSX 10.5.8 with Devanagari MT.<br>> >>><br>> >>> There's a word that contains the following sequence of letters: ङ् ख्<br>> >>> ये (which is zf + Kf + ye using the devanagri qwerty keys). When run<br>> >>> through xelatex, I see that the final य (y) doesn't merge into the<br>> >>> previous two letters. Instead, I see a halant character intervening<br>> >>> the first two letters (ङ् + ख्) and the final letter (य).<br>> >> Are you sure the conjunct exists in the font?<br>> >> It looks like a conjunct which would require<br>> >> its own glyph.<br>> > <br>> > Is there a way to figure out (other than creating the .tex and<br>> > processing it with xelatex) what level of conjuncts are supported by<br>> > the font I'm using (Devanagari MT). Also, would you know if there are<br>> > other fonts which support a wider variety of glyphs, conjuncts etc.<br>> > for the Mac?<br>> > <br>> > Thanks<br>> > <br>> <br>> Just test with a number of other fonts and see if you get<br>> the conjunct in them. As far as I'm aware any TTF/OTF<br>> font should work on the Mac (I'm on Ubuntu). A good place to<br>> start would be<br>> <br>> <http://www.wazu.jp/gallery/Fonts_Devanagari.html><br>> <br>> Chandas while not being the most beautiful font produces the<br>> desired conjunct without a glitch!<br>> <br>> As someone else said XeTeX lets you get any glyph in a font<br>> with a \XeTeXglyph command.<br>> <br>> The trouble is to find out what glyph exist and what glyph index <br>> number they have. This script is helpful:<br>> <br>> %!TEX TS-program = xetex<br>> %!TEX encoding = UTF-8 Unicode<br>> <br>> % glyphlist.tex -- to find glyphs and their index<br>> <br>> \font\test="Chandas" at 14pt<br>> <br>> \newcount\charcount \charcount0<br>> <br>> \raggedright<br>> <br>> \loop\number\charcount<br>> \hbox{\test\XeTeXglyph\charcount} % \hfill\break % Uncomment for <br>> more easily scanned list!<br>> \ifnum\charcount<4450 \advance\charcount1 \repeat<br>> % First set this number to something very high and<br>> % run the file with xetex. You will get an error<br>> %<br>> %        ** ERROR ** Invalid glyph index (gid <number>)<br>> %<br>> % If you don't get this error message there are more<br>> % glyphs in the font than your trial number; increase<br>> % the number and try again!<br>> %<br>> % Now set the number to the number in the error<br>> % message -1 and xetex it again. You will get a<br>> % compact list of all glyphs in the font.<br>> <br>> \bye<br>> <br>> You can just hope that the glyphs in a font come in some<br>> logical order, since the list can be hard to scan.<br>> For example I couldn't find the ;nkhy glyph in Chandas<br>> although I evidently could evoke it with ङ्ख्य in XeLaTeX!<br>> <br>> Once you find a glyph something like \def\ipaB{\XeTeXglyph2886}<br>> (To get the IPA-style beta in Junicode) is helpful.<br>> <br>> /BP 8^)><br>> -- <br>> Benct Philip Jonsson -- melroch atte melroch dotte se<br>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>> "C'est en vain que nos Josués littéraires crient<br>> à la langue de s'arrêter; les langues ni le soleil<br>> ne s'arrêtent plus. Le jour où elles se *fixent*,<br>> c'est qu'elles meurent." (Victor Hugo)<br>> <br>                                            <br /><hr />Posteingang immer voll? Der erste Speicher, der mitwächst: <a href='http://redirect.gimas.net/?n=M0906WLHM1' target='_new'>Unbegrenzter Speicher bei Windows Live Hotmail!</a></body>
</html>