|
From: <fri...@us...> - 2009-05-27 16:33:30
|
Revision: 9789
http://zaf.svn.sourceforge.net/zaf/?rev=9789&view=rev
Author: friedelwolff
Date: 2009-05-27 16:32:56 +0000 (Wed, 27 May 2009)
Log Message:
-----------
Some initial rules for building hunspell with rules specific to Zulu. This probably doesn't work due to influences of the Makefile.language, but this is mostly what is needed.
Modified Paths:
--------------
trunk/dict/zu/Makefile
Modified: trunk/dict/zu/Makefile
===================================================================
--- trunk/dict/zu/Makefile 2009-05-27 16:28:50 UTC (rev 9788)
+++ trunk/dict/zu/Makefile 2009-05-27 16:32:56 UTC (rev 9789)
@@ -55,6 +55,41 @@
# Hunspell rules
+###############################################################################
+# We want to generate the .dic file:
+# we combine classified, and non-classified lists
+# we just cat non-classified (wordlist.bla) into wordlist
+# classified -> munched (tagged) -> combined
+
+
+hunspell/$(LANG)_$(REGION).aff: hunspell/zu_aff.py
+ $^ > $@
+
+LOCAL_TARGETS_HUNSPELL= hunspell/munchedlist.in hunspell/munchedlist.$(CHARSET)
+
+CLASSIFIED_IN=$(shell ls wordlists/classified.*.in)
+MUNCHED_LIST=$(patsubst %.in, %.munched, $(CLASSIFIED_IN))
+
+clean-hunspell:
+ rm -rf $(TARGETS_HUNSPELL)
+ rm -rf $(LOCAL_TARGETS_HUNSPELL)
+ rm -rf $(MUNCHED_LIST)
+
+FLAGMUNCH=../utils/flagmunch
+%.munched: %.in
+ $(FLAGMUNCH) $< > $@
+
+hunspell/munchedlist.in: $(MUNCHED_LIST)
+ sort --unique $^ > $@
+
+hunspell/$(LANG)_$(REGION).dic: hunspell/wordlist.$(CHARSET) hunspell/munchedlist.$(CHARSET)
+ #XXX: note carefully where we create (>) or append (>>)
+ #echo "#Dic file generated from Translate.org.za build system" > $@
+ cat $^ | wc -l > $@
+ cat $^ >> $@
+
+###############################################################################
+
# Autocorrect rules
# this is just a standard pattern used for overriding Makefiles:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|