On Tue, Jul 22, 2008 at 4:48 PM, 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 )
There definitely is a way, but I don't know why you would want to do remap numbers on font level. You need such hacks in LaTeX where changing page numbers is a pain, but I would do that with conversions in ConTeXt. "arabic" (starting with U+0660) is already defined. If you need U+06F0, you might need to do minor modification in core-con.*, but try with normal arabic first. \setuppagenumbering [conversion=arabicnumerals] Here are the needed modifications: core-con.lua: ['arabic'] = { 0x0660, 0x0661, 0x0662, 0x0663, 0x0664, 0x0665, 0x0666, 0x0667, 0x0668, 0x0669 }, you need to add the same for extendedarabic ['extendedarabic'] = { 0x0660, 0x0661, 0x0662, 0x0663, 0x0664, 0x0665, 0x0666, 0x0667, 0x0668, 0x0669 }, core-con.mkiv: \def\arabicnumerals #1{\ctxlua{converters.alphabetic(\number#1,"arabic")}} \def\extendedarabicnumerals #1{\ctxlua{converters.alphabetic(\number#1,"extendedarabic")}} \defineconversion [arabicnumerals] [\arabicnumerals] \defineconversion [extendedarabicnumerals] [\extendedarabicnumerals] (You also need to modify core-con.mkii if you want the same feature to be available in XeTeX afterwards.) And then you should be able to use \setuppagenumbering [conversion=extendedarabicnumerals] You can also set up itemize to use arabic numbers. What exactly would you like to do with those numbers? Then you can probably get a more precise answer. Mojca