diff options
Diffstat (limited to 'tex/context/third')
-rw-r--r-- | tex/context/third/cyrillicnumbers/cyrillicnumbers.lua | 6 | ||||
-rw-r--r-- | tex/context/third/cyrillicnumbers/t-cyrillicnumbers.mkvi | 30 |
2 files changed, 18 insertions, 18 deletions
diff --git a/tex/context/third/cyrillicnumbers/cyrillicnumbers.lua b/tex/context/third/cyrillicnumbers/cyrillicnumbers.lua index c28a044..f33395c 100644 --- a/tex/context/third/cyrillicnumbers/cyrillicnumbers.lua +++ b/tex/context/third/cyrillicnumbers/cyrillicnumbers.lua @@ -1,12 +1,12 @@ #!/usr/bin/env texlua -------------------------------------------------------------------------------- -- FILE: cyrillicnumbers.lua --- USAGE: called by t-cyrillicnumbers.mkiv +-- USAGE: called by t-cyrillicnumbers.mkvi -- DESCRIPTION: part of the Cyrillic Numbers module for ConTeXt -- REQUIREMENTS: recent ConTeXt MkIV and LuaTeX --- AUTHOR: Philipp Gesang (phg), <gesang at stud dot uni-heidelberg dot de> +-- AUTHOR: Philipp Gesang (phg), <phg42 dot 2a at gmail dot com> -- VERSION: hg tip --- CHANGED: 2013-03-27 23:59:10+0100 +-- CHANGED: 2013-03-28 00:10:47+0100 -------------------------------------------------------------------------------- -- diff --git a/tex/context/third/cyrillicnumbers/t-cyrillicnumbers.mkvi b/tex/context/third/cyrillicnumbers/t-cyrillicnumbers.mkvi index 6c5ae07..d72083b 100644 --- a/tex/context/third/cyrillicnumbers/t-cyrillicnumbers.mkvi +++ b/tex/context/third/cyrillicnumbers/t-cyrillicnumbers.mkvi @@ -1,6 +1,6 @@ %D \module -%D [ file=t-cyrillicnumbers.mkiv, -%D version=2013-03-27 23:57:37+0100, +%D [ file=t-cyrillicnumbers.mkvi, +%D version=2013-03-28 00:11:33+0100, %D title=\CONTEXT\ User Module, %D subtitle=Cyrillic Numbers, %D author=Philipp Gesang, @@ -83,8 +83,8 @@ \stopluacode% } -\appendtoks \setuevalue{\currentcyrnum}{\do_cyrnum[\currentcyrnum]} \to \everydefinecyrnum -\appendtoks \cyrnumsetvariables \to \everysetupcyrnum +\appendtoks \setuevalue{\currentcyrnum}{\cyrnum_cmd[\currentcyrnum]} \to \everydefinecyrnum +\appendtoks \cyrnumsetvariables \to \everysetupcyrnum %D This allows the module to be loaded with a second set of %D key-value arguments. If initialized as follows, additional debug @@ -377,21 +377,21 @@ %D \stoptext %D \stoptyping -\unexpanded\def\do_cyrnum[#1]{% - \edef\currentcyrnum{#1}% - \dosingleempty\dodo_cyrnum% +\unexpanded\def\cyrnum_cmd[#id]{% + \edef\currentcyrnum{#id}% + \dosingleempty\cyrnum_cmd_parms% } -\def\dodo_cyrnum[#1]{% +\def\cyrnum_cmd_parms[#parms]{% \begingroup - \setupcyrnum[\currentcyrnum][#1]% + \setupcyrnum[\currentcyrnum][#parms]% \cyrnumparameter{command}\begingroup% - \dododo_cyrnum% + \cyrnum_cmd_content% } -\def\dododo_cyrnum#1{% - \ctxcommand{cyrillicnumerals(\number#1)}% - \endgroup% +\def\cyrnum_cmd_content#num{% + \ctxcommand{cyrillicnumerals(\number#num)}% + \endgroup \endgroup% } @@ -460,10 +460,10 @@ % Fun %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\def\peano#1{\ctxcommand{peanonumerals(\number#1)}} +\def\peano#num{\ctxcommand{peanonumerals(\number#num)}} \defineconversion[peano][\peano] -\def\church#1{\ctxcommand{churchnumerals(\number#1)}} +\def\church#num{\ctxcommand{churchnumerals(\number#num)}} \defineconversion[church][\church] \protect \endinput |