typo-sus.mkxl /size: 1718 b    last modification: 2025-02-21 11:03
1%D \module
2%D   [       file=typo-sus,
3%D        version=2014.11.06,
4%D          title=\CONTEXT\ Typesetting Macros,
5%D       subtitle=Checking Suspects,
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 / Checking Suspects}
15
16%D This is a rather special module, mostly needed by ourselves for
17%D projects where copy||editing is not that precise.
18
19\registerctxluafile{typo-sus}{}
20
21\unprotect
22
23\permanent\protected\def\showsuspects  {\enabletrackers[typesetters.suspects]}
24\permanent\protected\def\showinvisibles{\enabletrackers[typesetters.invisibles]}
25
26%D The suspicious spacing will be colored in the text. There can be false
27%D positives but this features is mostly used when proofreading. So, we
28%D don't worry too much about interference (and efficiency).
29%D
30%D \protected\def\showsample#1%
31%D   {\NC \type{#1}%
32%D    \NC \enabletrackers[typesetters.suspects]#1\disabletrackers[typesetters.spacing]%
33%D    \NC \NR}
34%D
35%D \starttabulate[|||][before=,after=]
36%D     \showsample{foo$x$}
37%D     \showsample{$x$bar}
38%D     \showsample{foo$x$bar}
39%D     \showsample{$f+o+o$:}
40%D     \showsample{;$f+o+o$}
41%D     \showsample{; bar}
42%D     \showsample{foo:bar}
43%D     \showsample{\quote{ foo }}
44%D     \showsample{\quote{bar }}
45%D     \showsample{\quote{ bar}}
46%D     \showsample{(foo )}
47%D     \showsample{\{foo \}}
48%D     \showsample{foo{\bf gnu}bar}
49%D     \showsample{foo$x^2$bar}
50%D     \showsample{foo\nobreakspace bar}
51%D \stoptabulate
52
53\protect \endinput
54
55