typo-fln.mkiv / last modification: 2020-01-30 14:16
%D \module
%D   [       file=typo-fln,
%D        version=2013.08.22, % comes from the few years older m-newstuff
%D          title=\CONTEXT\ Typesetting Macros,
%D       subtitle=First Lines,
%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 Typesetting Macros / First Lines}

%D I had this code laying around for a while \unknown\ probably as a side effect
%D of cleaning up the supp-fun modules. There is probably room for improvement
%D and more features.

% \setupbodyfont[pagella]
% \starttext
%     \setupindenting[medium,yes]
%     \definefirstline
%       [smallcaps]
%       [alternative=line,
%        color=darkred,
%        style=\setfontfeature{smallcaps}]
%     \setfirstline[smallcaps] \input tufte  \par
%     \setfirstline[smallcaps] \input ward   \par
%     \setfirstline[smallcaps] \input knuth  \par
%     \setfirstline[smallcaps] \input bryson \par
%     \definefirstline
%       [smallcaps]
%       [alternative=word,
%        color=darkblue,
%        style=bold,
%        n=2]
%     \setfirstline[smallcaps] \input tufte  \par
%     \setfirstline[smallcaps] \input ward   \par
%     \setfirstline[smallcaps] \input knuth  \par
%     \setfirstline[smallcaps] \input bryson \par
% \stoptext




\to \everyforgetall

\installcorenamespace {firstline}

\installcommandhandler \??firstline {firstline} \??firstline




        alternative {\firstlineparameter\c!alternative}%
        ma          \attribute\colormodelattribute
        ca          \attribute\colorattribute
        ta          \attribute\transparencyattribute
        n           \numexpr\firstlineparameter\c!n\relax
        font        \fontid\font
        dynamic     \font_dynamic_value
%    \kern\zeropoint % we need a node
%    \hskip\zeropoint\s!plus\emwidth\relax % can be an option


% goodie, question on list
% \defineframed[ChapterFramed][location=low,background=color,backgroundcolor=red,frame=off]
% \setuphead[chapter][deeptextcommand=\applytofirstcharacter\ChapterFramed]


\protect \endinput