workflows-suspects.tex /size: 1573 b    last modification: 2021-10-28 13:50
1% language=us runpath=texruns:manuals/workflows
2
3\environment workflows-style
4
5\startcomponent workflows-suspects
6
7\startchapter[title={Suspects}]
8
9When many authors and editors are involved there is the danger of inconsistent
10spacing being applied. We're not only talking of the (often invisible in editing
11programs) nobreak spaces, but also spacing inside or outside quotations and
12before and after punctuation or around math.
13
14In \CONTEXT\ we have a built||in suspects checker that you can enable with the
15following command:
16
17\starttyping
18\enabletrackers[typesetters.suspects]
19\stoptyping
20
21The next table shows some identified suspects.
22
23\starttexdefinition ShowSample #1
24    \NC \type{#1}
25    \NC \enabletrackers[typesetters.suspects]#1\disabletrackers[typesetters.spacing]
26    \NC \NR
27\stoptexdefinition
28
29\starttabulate[|||][before=,after=]
30    \ShowSample{foo$x$}
31    \ShowSample{$x$bar}
32    \ShowSample{foo$x$bar}
33    \ShowSample{$f+o+o$:}
34    \ShowSample{;$f+o+o$}
35    \ShowSample{; bar}
36    \ShowSample{foo:bar}
37    \ShowSample{\quote{ foo }}
38    \ShowSample{\quote{bar }}
39    \ShowSample{\quote{ bar}}
40    \ShowSample{(foo )}
41    \ShowSample{\{foo \}}
42    \ShowSample{foo{\bf gnu}bar}
43    \ShowSample{foo{\it gnu}bar}
44    \ShowSample{foo$x^2$bar}
45    \ShowSample{foo\nobreakspace bar}
46\stoptabulate
47
48Of course this analysis is not perfect but we use it in final checking of complex
49documents that are generated automatically from \XML. \footnote {Think of math
50school books where each book is assembled from over a thousands files.}
51
52\stopchapter
53
54\stopcomponent
55