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 25%D The suspicious spacing will be colored in the text. There can be false 26%D positives but this features is mostly used when proofreading. So, we 27%D don't worry too much about interference (and efficiency). 28%D 29%D \protected\def\showsample#1% 30%D {\NC \type{#1}% 31%D \NC \enabletrackers[typesetters.suspects]#1\disabletrackers[typesetters.spacing]% 32%D \NC \NR} 33%D 34%D \starttabulate[|||][before=,after=] 35%D \showsample{foo$x$} 36%D \showsample{$x$bar} 37%D \showsample{foo$x$bar} 38%D \showsample{$f+o+o$:} 39%D \showsample{;$f+o+o$} 40%D \showsample{; bar} 41%D \showsample{foo:bar} 42%D \showsample{\quote{ foo }} 43%D \showsample{\quote{bar }} 44%D \showsample{\quote{ bar}} 45%D \showsample{(foo )} 46%D \showsample{\{foo \}} 47%D \showsample{foo{\bf gnu}bar} 48%D \showsample{foo$x^2$bar} 49%D \showsample{foo\nobreakspace bar} 50%D \stoptabulate 51 52\protect \endinput 53 54 |