2009/12/23 Yanrui Li <[email protected]>

> Hi Hans,
>
> I modified the part of Chinese numeral conversion in core-con.lua script.
> The attachment is the patch. After many tests as the following I think the
> patch is right even though it looks dirty.
>
> %%%%
> \definefont[song][name:adobesongstdlight]\song
> \starttext
>
> \startluacode
> local function test (cs)
>     j = 1
>     for i = 1, 9 do
>         tex.print (j .. ': ' .. '\\chinesenumerals{' .. j .. '}\\par')
>         j = j * 10 + 1
>     end
>     tex.print ('\\blank')
> end
>
>
sorry, this function should be:

 local function test (cs)
    j = 1
    for i = 1, 9 do
        tex.print (j .. ': ' .. cs .. '{' .. j .. '}\\par')
        j = j * 10 + 1
    end
    tex.print ('\\blank')
end


-- 
Best regards,

Li Yanrui
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 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
___________________________________________________________________________________

Reply via email to