blob-ini.mkiv / last modification: 2020-01-30 14:16
%D \module
%D   [       file=blob-ini,
%D        version=2010.04.06,
%D          title=\CONTEXT\ \LUA\ Typesetting,
%D       subtitle=Initialization,
%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.

\writestatus{loading}{ConTeXt Lua Typesetting / Initialization}

%D This is a prelude to typesetting at the \LUA\ end. The code
%D is already quite old but will only get nice when we are further
%D down the road (close to version 1.00 of \LUATEX). Typesetting in
%D pure \LUA\ sometimes makes sense.

\registerctxluafile{node-typ}{} % experimental

%D For the moment here:


% this one takes simple (utf) strings


\def\widthofstring         {\the\wdofstring}
\def\heightofstring        {\the\htofstring}
\def\depthofstring         {\the\dpofstring}

\let\htdpofstring           \hdofstring

\let\hd\htdp % if yes then move this

% this one takes anything that can be typeset


\protect \endinput

% \starttext
% \startluacode
%     local b =
%     blobs.append(b,"Hello    world.\n Here we are.\n\n And Again!")
%     blobs.pack(b)
%     blobs.write(b)
% \stopluacode
% \stoptext