summaryrefslogtreecommitdiff
path: root/tex/context/base/mult-cld.mkiv
blob: 97b69b92ef9c61890381cf25ebc7f1439052f66c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
%D \module
%D   [       file=mult-ini,
%D        version=2008.10.22, % 1996.06.01,
%D          title=\CONTEXT\ Multilingual Macros,
%D       subtitle=Initialization,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA / Hans Hagen \& Ton Otten}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

\writestatus{loading}{ConTeXt Multilingual Macros / Lua}

\registerctxluafile{mult-cld}{1.001}
\registerctxluafile{mult-clm}{1.001}

\unprotect

\unexpanded\def\mkivdefstart  #1{\unexpanded\expandafter\def\csname\e!start#1\endcsname}
\unexpanded\def\mkivdefstop   #1{\unexpanded\expandafter\def\csname\e!stop #1\endcsname}
\unexpanded\def\mkivdef       #1{\unexpanded\expandafter\def\csname        #1\endcsname}

\unexpanded\def\cldprocessfile#1{\directlua\zerocount{context.runfile("#1")}}
           \def\cldcontext    #1{\directlua\zerocount{context(#1)}}
           \def\cldcommand    #1{\directlua\zerocount{context.#1}}

           \def\mkivflush     #1{\directlua\zerocount{context._flush_f_(#1)}} % obsolete

           \def\cldff         #1{\directlua\zerocount{cldff(#1)}} % global
           \def\cldfn         #1{\directlua\zerocount{cldfn(#1)}} % global

\protect \endinput