context.mkii / last modification: 2020-01-30 14:15
    %D \module
%D   [       file=context,
%D        version=2008.28.10, % 1995.10.10,
%D          title=\CONTEXT,
%D       subtitle=\CONTEXT\ Format Generation,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

\catcode`\{=1 \catcode`\}=2 \catcode`\#=6

%D From the next string (which is set by the script that assembles the
%D distribution) later on we will calculate a number that can be used
%D by use modules to identify the feature level. Starting with version
%D 2004.8.30 the low level interface is english. Watch out and adapt
%D your styles an modules.

\edef\contextformat {\jobname}
\edef\contextversion{2020.01.30 14:13}

%D For those who want to use this:

\let\fmtname   \contextformat

%D Loading:

\edef\mksuffix   {mkii}

\ifx\normalinput\undefined \let\normalinput\input \fi


%D First we load the system modules. These implement a lot of
%D manipulation macros. The first one loads \PLAIN\ \TEX, as
%D minimal as possible.


%D Some checking (more primitives are now defined):

\ifdefined\defaultinterface   \else \def\defaultinterface  {english}         \fi
%ifdefined\messageinterface   \else \let\messageinterface  \defaultinterface \fi
\ifdefined\defaultlanguagetag \else \def\defaultlanguagetag{en}              \fi

%D More core code.




\loadmarkfile{thrd-trg}  % based on: David Carlisle



%D To enable selective loading, we say:

\newif\ifCONTEXT \CONTEXTtrue % will disappear

%D In order to conveniently load files, we need a few
%D support modules.


%D This is for mkii bibtex users who expect \LATEX\ commands.


%D After this we're ready for the multi||lingual interface
%D modules.


%D Now we're ready for some general support modules. These
%D modules implement some basic typesetting functionality.



%D Verbatim typesetting is implemented in a separate class of
%D modules. The pretty typesetting modules are loaded at run
%D time.


%D The following modules are not sequentially dependent,
%D i.e. they have ugly dependencies, which will be cleaned
%D up by adding more overloading.

%D When loading the font, color and special modules, we need a
%D bit more advanced file handling as well as some general
%D variables, and features, so next we load:


%D We already need some synonyms (patterns).


%D \CONTEXT\ does not implement its own table handling. We
%D just go for the best there is and load \TABLE. Just to be
%D sure we do it here, before we redefine \type{|}.

\loadmarkfile{thrd-tab} % based on: Michael Wichura's TaBlE

%D Here comes the last support modules. They take care of
%D some language specific things.


%D The next few modules do what their names state. They
%D load additional definition modules when needed.







%D For the moment we load a lot of languages. In the future
%D we'll have to be more space conservative.




%D All kind of symbols are handled in:


%D Sorting:


%D Next we load some core macro's. These implement the
%D macros' that are seen by the users. The order of loading
%D is important, due to dependancies.




\loadmarkfile{strc-mat} % should come after math-pln etc


\loadmarkfile{core-job} % why so late?

% so far



%D A few more languages, that have specifics using core
%D functionality:

%loadmarkfile{lang-ara} % undefined

%D How about fill||in fields and related stuff?


%D Registers can depend on fields, so we load that now.


%D Of course we do need fonts. There are no \TFM\ files
%D loaded yet, so the format file is independant of their
%D content. Here we also redefine \type{\it} as {\it italic}
%D instead of italian.






%D Properties. Don't ask.


%D Like languages, fonts, encodings and symbols, \METAPOST\
%D support is also organized in its own class of modules.



%D Special page handling (maybe even later)


%D Anchoring graphics:


%D Math.


%D Now we're ready for more core modules.






%D Language specific spacing.


%D Bibliographies:


%D Only the basic XML parser and remapper are part of the core.
%D These macros are loaded last since they overload and|/|or
%D extend previously defined ones.


%D How about this:


%D \TEX\ related logo's are always typeset in a special way.
%D Here they come:


%D This one overloads af few things:


%D Defaults go here (more will be moved to this module
%D later):


%D Preloaded modules (some need xml support):

%usemodule[x][res-04] % xml resource libraries
%usemodule[x][res-08] % rlx runtime conversion
\usemodule[x][res-12] % rli external indentification

%D At run time, a few more files are loaded, like:
%D \startitemize[packed]
%D \item \type{cont-sys}: local (system dependant) defaults
%D \item \type{cont-old}: substitutes for old (obsolete) macros
%D \item \type{cont-new}: new macro implementations (for testing)
%D \item \type{cont-fil}: filename and module synonyms
%D \stopitemize





\errorstopmode \dump \endinput