| 1 |
\ProvidesFile{mdoccorr.cfg}[2012/11/13 |
| 2 |
`makedoc' local typographical corrections] |
| 3 |
%% ... also demonstrates 'niceverb.sty'---see the typeset |
| 4 |
%% documentation of the present file in `makedoc.pdf'. |
| 5 |
%% |
| 6 |
%% |\SetPatternCodes{<commands>}| redefines |
| 7 |
%% `\PatternCodes' to be used in parsing and replacing |
| 8 |
%% (some ``sanitizing"). %% improved line breaks 2010/03/29 |
| 9 |
\SetPatternCodes{\MakeOther\\\MakeOther\ } |
| 10 |
%% |\StartPrependingChain| initializes setup of a replacement |
| 11 |
%% chain: |
| 12 |
\StartPrependingChain |
| 13 |
%% |\PrependExpandableAllReplacer*{<find>}{<subst>}|: |
| 14 |
\PrependExpandableAllReplacer*{etc. }{etc.\ } |
| 15 |
%% ... you can keep inter-sentence space after `etc.' |
| 16 |
%% by a code line break.---Now we use |\do| as a shorthand: |
| 17 |
\renewcommand*{\do}{\PrependExpandableAllReplacer*} |
| 18 |
\do{Cf. }{Cf.\ } %% 2011/01/12 |
| 19 |
\do{cf. }{cf.\ } %% corr. 2010/03/23 |
| 20 |
%% ... but think of `cf.~'. Don't leave `cf.' at code line end! |
| 21 |
\do{->}{$\to$} %% 2010/11/06 |
| 22 |
\do{<-}{$\gets$} %% 2010/11/06 |
| 23 |
% \PrependExpandableAllReplacer{...}{...}{$\dots$} |
| 24 |
%% Allow extra space at line end (bug fix `{}' 2011/12/03): |
| 25 |
\do{...}{\textellipsis\unkern{}} |
| 26 |
%% 2011/10/13: original `\dots' correct before punctuation: |
| 27 |
% \PrependExpandableAllReplacer{dots,}{...,}{\dots,} |
| 28 |
\do{...)}{\dots)} %% 2011/10/25 |
| 29 |
\do{...:}{\dots:} %% 2012/11/07 |
| 30 |
\do{... }{\textellipsis\unkern\ } |
| 31 |
\do{TODO}{\TODO{}} |
| 32 |
%% ... chain starts here, and here |\MakeDocCorrectHook| |
| 33 |
%% (silently) enters through a default variant |
| 34 |
%% |\SetCorrectHookJobLast| of |\SetCorrectHookJob{<id>}|: |
| 35 |
\SetCorrectHookJobLast |
| 36 |
%% |\ResetPatternCodes| resets `\PatternCodes' to their default |
| 37 |
%% value (which is `\fdPatternCodes'): |
| 38 |
\ResetPatternCodes |
| 39 |
%% ... restores 'fifinddo' default. |
| 40 |
\endinput |
| 41 |
|
| 42 |
HISTORY |
| 43 |
2009/04/05 with makedoc v0.2 |
| 44 |
2010/03/11 broke some too long code lines |
| 45 |
2010/03/16 rendered `mdoccorr.cfg' |
| 46 |
2010/03/22 try \Prepend... |
| 47 |
2010/03/23 corrected `cf' |
| 48 |
2010/03/29 use \SetPatternCodes etc. |
| 49 |
2010/11/06 <- and -> |
| 50 |
2010/11/24 `...' ``symmetric variant" of `\textellipsis'; |
| 51 |
\StartPrependingChain, no more |
| 52 |
\MakeExpandableAllreplacer |
| 53 |
2011/01/27 blue "TODO" |
| 54 |
2011/09/13 \providecommand for dialogues |
| 55 |
2011/10/13 \MDtwodots, without \PXAR, `...,' `...:' |
| 56 |
2011/10/25 \textellipsis\unkern from csquotes instead, `...)' |
| 57 |
2011/11/13 \PrependExpandableAllReplacer* |
| 58 |
2011/12/03 bug fix for 2011/10/25 at line ends |
| 59 |
2012/11/07 TODO -> \TODO{} |
| 60 |
2012/11/12 using \do |
| 61 |
2012/11/13 shorter code lines |