X-Git-Url: http://gitweb.fperrin.net/?p=gen-quickdic.git;a=blobdiff_plain;f=Makefile;fp=Makefile;h=3fc8c53ea0bc371f03eca0cb5c813bfd675474c3;hp=0000000000000000000000000000000000000000;hb=5da87a9ec2370bb2f7ce11e107f07625e42f7171;hpb=5598132b30a07363a5b2d1b9966c761150614158 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3fc8c53 --- /dev/null +++ b/Makefile @@ -0,0 +1,41 @@ +OPTED_SOURCEDIR = OPTED/v003 + +OPTED_FILES = $(addprefix $(OPTED_SOURCEDIR)/wb1913_,$(addsuffix .html,$(shell bash -c 'echo {a..z} new'))) + +essai: + @echo $(FILES) + +all: OPTED.v006-from-tab_separated.quickdic + +# optedv003.hqx: +# wget 'http://www.mso.anu.edu.au/~ralph/OPTED/optedv003.hqx' + +$(OPTED_FILES): optedv003.hqx + hexbin -d $< + unar OPTED.sit.data + find OPTED -type f | xargs sed -i 's/\r/\n/g' + cd OPTED && patch -p1 < ../OPTED.patch + +OPTED.tab_separated: $(OPTED_FILES) + ./OPTED_to_tab_separated + +OPTED.v007-from-tab_separated.quickdic: OPTED.tab_separated + cd ../DictionaryPC && ./run.sh --dictInfo="Webster's Unabridged Dictionary, from the OPTED project" --input1=$(CURDIR)/$< --input1Charset=UTF8 --input1Format=tab_separated --input1Name="Webster-OPTED" --lang1=EN --lang1Stoplist=data/inputs/stoplists/en.txt --dictOut=$(CURDIR)/$@ --print=$(CURDIR)/$@.txt + +OPTED.v006-from-tab_separated.quickdic: OPTED.v007-from-tab_separated.quickdic + rm -f $@ + cd ../DictionaryPC && ./convert_to_v6.sh $(CURDIR)/$< $(CURDIR)/$@ + +OPTED.chemnitz: OPTED/v003/wb1913_a.html + ./OPTED_to_chemnitz + +OPTED.v007-from-chemnitz.quickdic: OPTED.chemnitz + cd ../DictionaryPC && ./run.sh --dictInfo="Webster's Unabridged Dictionary, from the OPTED project" --input1=$(CURDIR)/$< --input1Charset=UTF8 --input1Format=chemnitz --input1Name="Webster-OPTED" --lang1=EN --lang1Stoplist=data/inputs/stoplists/en.txt --dictOut=$(CURDIR)/$@ --print=$(CURDIR)/$@.txt + +OPTED.v006-from-chemnitz.quickdic: OPTED.v007-from-chemnitz.quickdic + rm -f $@ + cd ../DictionaryPC && ./convert_to_v6.sh $(CURDIR)/$< $(CURDIR)/$@ + +clean: + rm -f OPTED.*.quickdic OPTED.tab_separated OPTED.chemnitz + rm -fr OPTED/