diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/nicetext/run/copyfile.tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/nicetext/run/copyfile.tex | 41 |
1 files changed, 18 insertions, 23 deletions
diff --git a/Master/texmf-dist/tex/latex/nicetext/run/copyfile.tex b/Master/texmf-dist/tex/latex/nicetext/run/copyfile.tex index 3c8ae98da3e..f532ed4c545 100644 --- a/Master/texmf-dist/tex/latex/nicetext/run/copyfile.tex +++ b/Master/texmf-dist/tex/latex/nicetext/run/copyfile.tex @@ -1,28 +1,23 @@ -\ProvidesFile{copyfile.tex}[{2011/08/22 copy*ing/converting (UL)}] +\ProvidesFile{copyfile.tex}[2011/09/13 copy*ing/converting (UL)] \RequirePackage{fddial0g} -\newcommand*{\TextCodesFile}{\def\text_codes_file_name} -\TextCodesFile{} \let\TextCodes\relax -\input{copyfile.cfg} - -\Announce{ * copyfile.tex * compressing blank lines/converting - ^^J} - {copyfile.cfg} -\newcommand*{\Dialogue}{% - \FD_dialogue_screen{% - \string\InputFile {\input_file_name}^^J% - \string\TextCodesFile{\text_codes_file_name}^^J% - \string\ResultFile{\result_file_dialogue}% - }% -} -\newcommand*{\RunWithSettings}{% - \run_with_settings_gen{% - \ifx\text_codes_file_name\empty\else - \input{\text_codes_file_name}% - \fi - \CopyFile*[\TextCodes]{\input_file_name}% - }% +\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}}% } -\Dialogue +\DialogueLoop \stop |