Dear Idris,
سلام
I tested your file. What I mean is more than that. In your file if I
write 1 then it is printed as one. But I mean something like
conversion command. For example look at the output of your file. The
page number is 1. But what I mean is that engine prints every 1 as one
for example. Let me explain in a different way. I declare
\setupsection [chapter][conversion=persiannumerals]
and the engine puts persiandecimalseparator character "E8C8" between
chapter numbers and section numbers. I am not satisfied with this
character and like the separator character to be a period "002E". In
XeTeX one of the font features is to assign the value of "E8C8" to
"002E". Then the engine automatically prints "002E" whenever it has to
print "E8C8" (except in math mode for which there is a \XeTeXmathcode
command).
Best wishes
On 7/22/08, Idris Samawi Hamid ادريس سماوي حامد
Dear Mehdi, سلام
On Tue, 22 Jul 2008 08:48:46 -0600, Mehdi Omidali
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 ___________________________________________________________________________________