diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/amspell/spell.bat |
Initial commit
Diffstat (limited to 'support/amspell/spell.bat')
-rw-r--r-- | support/amspell/spell.bat | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/support/amspell/spell.bat b/support/amspell/spell.bat new file mode 100644 index 0000000000..efef9cb39a --- /dev/null +++ b/support/amspell/spell.bat @@ -0,0 +1,24 @@ +@echo off
+ if .%1==. goto syntax
+ if exist wrong.spl del wrong.spl > nul
+ amspell.exe %1 wrong.spl alldicts.us @options.spl
+ if not exist learnspl.spl goto nothinglearned
+ copy learnspl.spl+correct.us > nul
+ amspell.exe learnspl.spl correct.us @sort.opt
+ del learnspl.spl > nul
+:nothinglearned
+ if not exist wrong.spl goto nowrongspl
+ copy %1 backup.spl
+ copy wrong.spl %1 > nul
+ del wrong.spl > nul
+ cls
+ echo the backup of %1 is called BACKUP.SPL
+ goto end
+:nowrongspl
+ cls
+ goto end
+:syntax
+ echo Syntax: SPELL [filename]
+ echo example: SPELL myfile.tex
+:end
+
|