summaryrefslogtreecommitdiff
path: root/tex
diff options
context:
space:
mode:
authorPhilipp Gesang <gesang@stud.uni-heidelberg.de>2012-06-14 10:50:24 +0200
committerPhilipp Gesang <gesang@stud.uni-heidelberg.de>2012-06-14 10:50:24 +0200
commit6444854eb79158101f039d4eacb65b95550a79ab (patch)
tree4fcafa19a90a2263bc0e9dd85b0365e2b64bcc87 /tex
parentbcea502ef79449ab4115dd5be0fe225ffdf32709 (diff)
downloadenigma-6444854eb79158101f039d4eacb65b95550a79ab.tar.gz
[module] adapted code to current naming conventions
Diffstat (limited to 'tex')
-rw-r--r--tex/context/third/enigma/t-enigma.mkvi24
1 files changed, 12 insertions, 12 deletions
diff --git a/tex/context/third/enigma/t-enigma.mkvi b/tex/context/third/enigma/t-enigma.mkvi
index e555583..84c6ed5 100644
--- a/tex/context/third/enigma/t-enigma.mkvi
+++ b/tex/context/third/enigma/t-enigma.mkvi
@@ -49,9 +49,9 @@ thirddata = thirddata or { }
%D on the internal mechanisms but implement our own macro generator.
%D \stopparagraph
-\def\do_do_define_enigma#id{%
+\def\enigma_define_indeed#id{%
\edef\enigmaid{#id}%
- \expandafter\gdef\csname \v!start\enigmaid\endcsname{%
+ \expandafter\gdef\csname \e!start\enigmaid\endcsname{%
\endgraf
\bgroup
\ctxlua{
@@ -64,7 +64,7 @@ thirddata = thirddata or { }
}%
}%
%
- \expandafter\gdef\csname \v!stop\enigmaid\endcsname{%
+ \expandafter\gdef\csname \e!stop\enigmaid\endcsname{%
\endgraf%% We need to force a paragraph here for the callback to be
%% applied.
\ctxlua{
@@ -77,13 +77,13 @@ thirddata = thirddata or { }
}
%D \startparagraph
-%D The \texmacro{inherit_enigma}\reference[listing:inherit]{} is called as
+%D The \texmacro{enigma_inherit}\reference[listing:inherit]{} is called as
%D an intermediate step when deriving one machine from an already existing
%D one. It gets the stored configuration of its ancestor, relying on the
%D \luafunction{retrieve_raw_args} function (see
%D \at{page}[listing:retrieve].
%D \stopparagraph
-\def\inherit_enigma#to#from{%
+\def\enigma_inherit#to#from{%
\ctxlua{%
local enigma = thirddata.enigma
local current_args = enigma.retrieve_raw_args(\!!bs#from\!!es)
@@ -91,15 +91,15 @@ thirddata = thirddata or { }
enigma.new_callback(enigma.new_machine(\!!bs#to\!!es),
\!!bs#to\!!es)
}%
- \do_do_define_enigma{#to}%
+ \enigma_define_indeed{#to}%
}
-\def\do_define_enigma[#id][#secondid]{%
+\def\enigma_define[#id][#secondid]{%
\ifsecondargument %% Copy an existing machine and callback.
- \inherit_enigma{#id}{#secondid}%
+ \enigma_inherit{#id}{#secondid}%
\else %% Create a new machine.
\iffirstargument
- \do_do_define_enigma{#id}%
+ \enigma_define_indeed{#id}%
\else
\donothing
\fi
@@ -109,13 +109,13 @@ thirddata = thirddata or { }
\def\defineenigma{%
\begingroup
- \dodoubleempty\do_define_enigma%
+ \dodoubleempty\enigma_define
}
%D \stopdocsection
%D \startdocsection[title=Setup]
-\def\do_do_setup_enigma#args{%
+\def\enigma_setup#args{%
\ctxlua{
local enigma = thirddata.enigma
local current_args =
@@ -137,7 +137,7 @@ thirddata = thirddata or { }
\edef\currentenigmaid{#id}
\pushcatcodetable
\catcodetable \txtcatcodes
- \do_do_setup_enigma{#args}%
+ \enigma_setup{#args}%
\else
\donothing
\fi