diff options
Diffstat (limited to 'tex/context/base/syst-aux.lua')
-rw-r--r-- | tex/context/base/syst-aux.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tex/context/base/syst-aux.lua b/tex/context/base/syst-aux.lua new file mode 100644 index 000000000..a585ed8b2 --- /dev/null +++ b/tex/context/base/syst-aux.lua @@ -0,0 +1,17 @@ +if not modules then modules = { } end modules ['syst-aux'] = { + version = 1.001, + comment = "companion to syst-aux.mkiv", + author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", + copyright = "PRAGMA ADE / ConTeXt Development Team", + license = "see context related readme files" +} + +function commands.getfirstcharacter(str) + local first, rest = utf.match(str,"(.?)(.*)$") + context.setvalue("firstcharacter",first) + context.setvalue("remainingcharacters",rest) +end + +function commands.doiffirstcharelse(chr,str) + commands.doifelse(utf.sub(str,1,1) == chr) +end |