cldf-int.mkxl /size: 1127 b    last modification: 2021-10-28 13:50
1%D \module
2%D   [       file=cldf-int,
3%D        version=2019.01.01,
4%D          title=\CONTEXT\ Data Macros,
5%D       subtitle=Integer,
6%D         author=Hans Hagen,
7%D           date=\currentdate,
8%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
9%C
10%C This module is part of the \CONTEXT\ macro||package and is
11%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
12%C details.
13
14\writestatus{loading}{ConTeXt Multilingual Macros / Lua}
15
16\registerctxluafile{cldf-int}{autosuffix}
17
18%D These are user commands so we don't add any protection against overloading
19%D here.
20
21\unprotect
22
23\permanent\protected\def\newluatable#1{\clf_newluatable#1\atendofgrouped{\disposeluatable#1}}
24\permanent\protected\def\useluatable#1{\clf_useluatable#1\atendofgrouped{\disposeluatable#1}}
25
26\installcorenamespace{datavalue}
27
28\permanent\protected\def\setdatavalue#1#2% #2 is a number (expression)
29  {\expandafter\integerdef\csname\??datavalue#1\endcsname\numexpr#2\relax}
30
31\permanent\def\getdatavalue#1{\begincsname\??datavalue#1\endcsname}
32\permanent\def\thedatavalue#1{\the\begincsname\??datavalue#1\endcsname}
33
34\protect \endinput
35