On Fri, Jul 2, 2010 at 5:57 PM, luigi scarso <luigi.sca...@gmail.com> wrote: > In this example \N{COMBINING CARON BELOW} looks bad -- a font problem ? > > \usetypescript[libertine] > \setupbodyfont[libertine,rm,10pt] > \setupinterlinespace[line=2.6ex] > > \starttext > %%echo '\N{LATIN SMALL LETTER A}\N{COMBINING DOT BELOW}\N{COMBINING > CARON BELOW}' |./uconv -t utf-8 -x "name-any > ạ̬ > \stoptext
Better in pure mkiv \usetypescript[libertine] \setupbodyfont[libertine,rm,10pt] \setupinterlinespace[line=2.6ex] \startluacode function desc2utf8(desc) local us = '' local plane = 0 for i,v in pairs(characters.data) do plane = i if v.description == desc then us = v.unicodeslot break end end return tex.sprint(tex.ctxcatcodes,unicode.utf8.char(us)) end \stopluacode \def\N#1{\ctxlua{desc2utf8("#1")}} \starttext \N{LATIN SMALL LETTER A}\N{COMBINING DOT BELOW}\N{COMBINING CARON BELOW} \stoptext -- luigi ___________________________________________________________________________________ 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 ___________________________________________________________________________________