typo-rep.mkxl /size: 1258 b    last modification: 2023-12-21 09:44
1%D \module
2%D   [       file=typo-rep,
3%D        version=2010.05.23,
4%D          title=\CONTEXT\ Typesetting Macros,
5%D       subtitle=Stripping,
6%D         author=Hans Hagen,
7%D           date=\currentdate,
8%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
9%C
10%C This module is part of the \CONTEXT\ macro||package and is
11%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
12%C details.
13
14\writestatus{loading}{ConTeXt Typesetting Macros / Stripping}
15
16%D Here we implement an experimental stripper. I might cook up a few more
17%D variants when there is real demand. It might even go away.
18%D
19%D \starttyping
20%D \definefontfeature[default][default][mode=node,formatters=strip]
21%D
22%D \setcharacterstripping[1]
23%D \stoptyping
24
25\unprotect
26
27\registerctxluafile{typo-rep}{autosuffix}
28
29\definesystemattribute[stripping][public]
30
31% \permanent\protected\def\setcharacterstripping[#1]% defined at the lua end
32%   {\clf_setcharacterstripping{#1}}
33
34\permanent\protected\def\resetcharacterstripping
35  {\c_attr_stripping\attributeunsetvalue}
36
37% maybe .. this might disappear, but is handy for testing
38
39\permanent\protected\def\forcecharacterstripping % secret command
40  {\ctxlua{fonts.handlers.otf.features.register("formatters",true)}}
41
42\protect \endinput
43