Dear Mehdi,
سلام

On Tue, 22 Jul 2008 08:48:46 -0600, Mehdi Omidali <[EMAIL PROTECTED]>  
wrote:

> Hi everyone,
> Is it possible to pass a character to another in MKIV, I mean, like
> XeTeX in which one can pass one unicode character to another one (this
> is done in some mapping files with some lines in it of the form
> U+0030 <> U+06F0 )

I'm not quite sure I understand you, but there is a mechanism so that you  
can write your own feature file with your own gsubs and gposs and then  
pass those along to luatex.

This was broken in earlier versions of luatex; seems to be working now --  
just checked. See below.

Best wishes
Idris

===============verbose.fea==================
lookup NumericLookupDFLT {
     lookupflag 0 ;
         sub zero  by z e r o ;
         sub one   by o n e ;
         sub two   by t w o ;
         sub three by t h r e e ;
         sub four  by f o u r ;
         sub five  by f i v e ;
         sub six   by s i x ;
         sub seven by s e v e n ;
         sub eight by e i g h t ;
         sub nine  by n i n e ;
} NumericLookupDFLT ;

feature verb {

     script DFLT ;
         language dflt ;
             lookup NumericLookupDFLT ;

     script latn;
         language dflt ;
             lookup NumericLookupDFLT ;
         language AZE exclude_dflt ;
             lookup NumericLookupDFLT ;
         language CRT exclude_dflt ;
             lookup NumericLookupDFLT ;
         language MOL exclude_dflt ;
             lookup NumericLookupDFLT ;
         language ROM exclude_dflt ;
             lookup NumericLookupDFLT ;
         language TRK exclude_dflt ;
             lookup NumericLookupDFLT ;

} verb ;
============================================

=================verb.tex===================
% engine=luatex

% \setupoutput[pdftex]

\starttext

\installfontfeature[otf][verb]

\definefontfeature  
[test][mode=node,language=dflt,script=latn,verb=yes,featurefile=verbose.fea]

\font\test=lmroman10-regular*test at 20pt

\test 1 2 3 4

\stoptext
============================================
-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to