My first experiments aren't going well. For example:
using the free font, BNBDOT0N.ttf, from Deutsche Welle here:
http://www.dw-world.de/dw/article/0,,3219221,00.html
and the following typescript, "type-bidisha.tex":
\starttypescript [serif] [dwbangla]
\definefontsynonym[DWbangla][name:BNBIDISHAOpentypeNormal][features=body]
\stoptypescript
\starttypescript [serif] [dwbangla]
\definefontsynonym[Serif][DWbangla][features=body]
\stoptypescript
\starttypescript [dwbangla]
\definetypeface [dwbangla] [rm] [serif] [dwbangla] [default]
[script=beng,features=body]
\stoptypescript
I try the following test:
\definefontfeature[default][mode=node,language=dflt,script=latn,kern=yes,liga=yes,tlig=yes,trep=yes]
\definefontfeature[body][default][mode=node,script=latn,onum=yes,pnum=yes,calt=yes,protrusion=quality,expansion=quality]
%just to be sure:
\definefontfeature[indic][body][nukt=yes,akhn=yes,rphf=yes,blwf=yes,half=yes,pstf=yes,vatu=yes,pres=yes,blws=yes,abvs=yes,psts=yes,
haln=yes,blwm=yes,abvm=yes,dist=yes]
\usetypescriptfile[type-bidisha]
\starttypescript [MTbook]
\definetypeface [dwbangla] [rm] [serif] [dwbangla] [default]
[script=beng,language=ben,features=body]
\stoptypescript
\def\bengali#1{{\switchtobodyfont[dwbangla]\addff{indic}\language[ben]#1}}
\usetypescript[MTbook]
\starttext
\bengali{সত্যজিৎ রায়}
\stoptext
"সত্যজিৎ" isn't rendered correctly in the output---after a the first
two characters, things go wrong. Yet, with the same font, it is
rendered correctly everywhere else I look in windows---notepad,
Firefox, TexnicCenter, etc., etc. To see what a correct rendering
should look like, google "সত্যজিৎ রায়" or see here:
http://bn.wikipedia.org/wiki/%E0%A6%B8%E0%A6%A4%E0%A7%8D%E0%A6%AF%E0%A6%9C%E0%A6%BF%E0%A7%8E_%E0%A6%B0%E0%A6%BE%E0%A6%AF%E0%A6%BC
or here (first word in text, in bold):
http://i367.photobucket.com/albums/oo113/andbipul/All%20about%20JJ/JJ%20Torjoma%20Works/Work-11Post-1.jpg
I tried this with several other free and MS fonts (e.g., arial Unicode
MS) and got the same results. Am I doing something wrong?
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________