blob: f532ed4c5451b9a8e8efb016714ecbdd5cbce5e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
\ProvidesFile{copyfile.tex}[2011/09/13 copy*ing/converting (UL)]
\RequirePackage{fddial0g}
\MakeSet{codes-f}{\TextCodesFile}
\let\TextCodes\relax %% avoid errmessage
\TryDialogueCFG{copyfile}{%
\InputFile{lines.txt}
\TextCodesFile{atari.fdf}
\ResultFile{lns.txt}}
\Announce{ * copyfile.tex * compressing blank lines/converting^^J}
\newcommand*{\VarShowSettings}{%
\ShowSet{in-f}\LBrk
\ShowSet{codes-f}\LBrk
\ShowSet{out-f}}
\newcommand*{\VarRunSettings}{%
\typeout{`copyfile.tex' generating `\UseSet{out-f}'}
\UseResultFile{\UseSet{out-f}}
\IfEmptySet{codes-f}{}{\input{\UseSet{codes-f}}}
\CopyFile*[\TextCodes]{\UseSet{in-f}}%
}
\DialogueLoop
\stop
|