ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* can Context render complex scripts?
@ 2010-06-11  7:14 Michael Saunders
  2010-06-11  7:49 ` Khaled Hosny
  2010-06-13 14:59 ` Hans Hagen
  0 siblings, 2 replies; 15+ messages in thread
From: Michael Saunders @ 2010-06-11  7:14 UTC (permalink / raw)
  To: ntg-context

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 : ntg-context@ntg.nl / 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2010-06-14  7:57 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-11  7:14 can Context render complex scripts? Michael Saunders
2010-06-11  7:49 ` Khaled Hosny
2010-06-13 14:59 ` Hans Hagen
2010-06-13 16:58   ` Michael Saunders
2010-06-13 19:07     ` Hans Hagen
2010-06-13 19:15       ` Khaled Hosny
2010-06-13 19:19         ` Khaled Hosny
2010-06-13 19:28           ` Khaled Hosny
2010-06-13 19:41         ` Hans Hagen
2010-06-13 20:07           ` Idris Samawi Hamid ادريس   سماوي حامد
2010-06-14  1:21             ` Michael Saunders
2010-06-14  7:57               ` Hans Hagen
2010-06-13 19:29       ` Michael Saunders
2010-06-13 19:50         ` Khaled Hosny
2010-06-13 20:08           ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).