summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/typo-rep.mkxl
blob: aa70c5564996a2c229acf2844e1bb93447fc1a22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
%D \module
%D   [       file=typo-rep,
%D        version=2010.05.23,
%D          title=\CONTEXT\ Typesetting Macros,
%D       subtitle=Stripping,
%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.

\writestatus{loading}{ConTeXt Typesetting Macros / Stripping}

%D Here we implement an experimental stripper. I might cook up a few more
%D variants when there is real demand. It might even go away.
%D
%D \starttyping
%D \definefontfeature[default][default][mode=node,formatters=strip]
%D
%D \setcharacterstripping[1]
%D \stoptyping

\unprotect

\registerctxluafile{typo-rep}{autosuffix}

\definesystemattribute[stripping][public]

% \permanent\protected\def\setcharacterstripping[#1]% defined at the lua end
%   {\clf_setcharacterstripping{#1}}

\permanent\protected\def\resetcharacterstripping
  {\c_attr_stripping\attributeunsetvalue}

% maybe .. this might disappear, but is handy for testing

\permanent\protected\def\forcecharacterstripping % secret command
  {\ctxlua{fonts.handlers.otf.features.register("formatters",true)}}

\protect \endinput