regi-ini.mkiv / last modification: 2020-01-30 14:16
%D \module
%D   [       file=regi-ini,
%D        version=2005.04.25,
%D          title=\CONTEXT\ Regime Macros,
%D       subtitle=Regime Support,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

\registerctxluafile{regi-ini}{}

\unprotect

%D \macros
%D   {enableregime,disableregime,
%D    startregime,stopregime,
%D    currentregime}
%D
%D Beware, the enable and disable commands are global switches, so
%D best use the start|/|stop commands.

\let\currentregime\empty

\unexpanded\def\enableregime[#1]{\clf_enableregime{#1}}
\unexpanded\def\disableregime   {\clf_disableregime}
\unexpanded\def\startregime [#1]{\clf_startregime{#1}}
\unexpanded\def\stopregime      {\clf_stopregime}

% only for diagnostics:

% \def\codepagename#1{\cldcontext{os.tocodepage("#1")}}

\protect \endinput