[XeTeX] Sanskrit hyphenation

Jonathan Kew jonathan_kew at sil.org
Mon Apr 4 11:41:46 CEST 2005


On 3 Apr 2005, at 4:53 pm, Yves Codet wrote:

> Thanks for this. Now I only have to discover how to say in XSL: "write 
> {\parfillskip=0pt\par\parskip=0pt\noindent} in the first blank space 
> following the 1000th character after a <p> unless there is a </p> in 
> the chain" :-) I guess it would be easier by hand.

Probably! :)

If it were me, I'd write a short script to read the XML data and break 
up unreasonably long <p> elements. Should only be a few lines of Perl 
using the Expat.pm parser module.

> The following question is perhaps not quite off-topic. I'm trying to 
> check Sanskrit hyphenation in Malayalam script and I have a small 
> difficulty with two-part vowels (Unicode Standard, ch. 9, p. 239). In 
> TextEdit (even if I select all ligatures) or TeXShop, MA + OO, for 
> instance, is displayed like this:
> <pastedGraphic1.tiff>
> But in XeTeX's output, with the Fontspec command:
>
> 	\setromanfont[Script=Malayalam]{AnjaliOldLipi}
>
> I get the right display:
> <pastedGraphic2.tiff>
> Is this a limitation of text editors? Of course it would be more 
> pleasant to have a script displayed normally in text editors too.

This is because you're using an OpenType Malayalam font, and TextEdit, 
TeXShop, etc, don't support OpenType layout features.

It's possible that Mellel might work; I believe it supports some 
OpenType features, but I don't know about Malayalam specifically. Or 
you could try OpenOffice.org; again, I don't know whether it handles 
Malayalam.

If you have an AAT Malayalam font, that ought to work in editors that 
use the AAT/Cocoa text system, AFAIK. The likeliest place to find one 
is probably <http://www.xenotypetech.com/>, as Apple doesn't seem to 
ship one.

JK



More information about the XeTeX mailing list