summaryrefslogtreecommitdiff
path: root/mnv/runtime/spell/am
diff options
context:
space:
mode:
Diffstat (limited to 'mnv/runtime/spell/am')
-rw-r--r--mnv/runtime/spell/am/am_ET.diff9
-rw-r--r--mnv/runtime/spell/am/main.aap63
2 files changed, 72 insertions, 0 deletions
diff --git a/mnv/runtime/spell/am/am_ET.diff b/mnv/runtime/spell/am/am_ET.diff
new file mode 100644
index 0000000000..cbac554b33
--- /dev/null
+++ b/mnv/runtime/spell/am/am_ET.diff
@@ -0,0 +1,9 @@
+*** am_ET.orig.aff Mon Aug 22 11:52:57 2005
+--- am_ET.aff Thu Sep 29 21:56:20 2005
+***************
+*** 24 ****
+--- 24,27 ----
+ SFX c 0 ዎች 
++
++ # Aspell has sound folding for Amharic, but it doesn't look right, it uses
++ # different characters than the dictionary. Therefore it was not included.
diff --git a/mnv/runtime/spell/am/main.aap b/mnv/runtime/spell/am/main.aap
new file mode 100644
index 0000000000..85bba9c060
--- /dev/null
+++ b/mnv/runtime/spell/am/main.aap
@@ -0,0 +1,63 @@
+# Aap recipe for Amharic MNV spell files.
+
+# Use a freshly compiled MNV if it exists.
+@if os.path.exists('../../../src/mnv'):
+ MNV = ../../../src/mnv
+@else:
+ :progsearch MNV mnv
+
+SPELLDIR = ..
+FILES = am_ET.aff am_ET.dic
+
+all: $SPELLDIR/am.utf-8.spl ../README_am.txt
+
+$SPELLDIR/am.utf-8.spl : $FILES
+ :sys env LANG=am_ET.UTF-8 $MNV -u NONE -e -c "mkspell! $SPELLDIR/am am_ET" -c q
+
+../README_am.txt: README_am.txt
+ :copy $source $target
+
+#
+# Fetching the files from Hunspell.
+#
+HTTPDIR = http://hunspell.sourceforge.net
+TARNAME = am-demo.tar.gz
+:attr {fetch = $HTTPDIR/%file%} $TARNAME
+
+# The files don't depend on the .zip file so that we can delete it.
+# Only download the zip file if the targets don't exist.
+# This is a bit tricky, since the file name includes the date.
+am_ET.aff am_ET.dic: {buildcheck=}
+ :assertpkg tar gzip
+ :fetch $TARNAME
+ :sys gzip -d -c $TARNAME | tar xf -
+ :move am/am.aff am_ET.aff
+ :move am/am.dic am_ET.dic
+ :move am/README README_am.txt
+ :delete {recursive} am
+ :delete $TARNAME
+ @if not os.path.exists('am_ET.orig.aff'):
+ :copy am_ET.aff am_ET.orig.aff
+ @if not os.path.exists('am_ET.orig.dic'):
+ :copy am_ET.dic am_ET.orig.dic
+ @if os.path.exists('am_ET.diff'):
+ :sys patch <am_ET.diff
+
+
+# Generate diff files, so that others can get the OpenOffice files and apply
+# the diffs to get the MNV versions.
+
+diff:
+ :assertpkg diff
+ :sys {force} diff -a -C 1 am_ET.orig.aff am_ET.aff >am_ET.diff
+ :sys {force} diff -a -C 1 am_ET.orig.dic am_ET.dic >>am_ET.diff
+
+
+# Check for updated spell files. When there are changes the
+# ".new.aff" and ".new.dic" files are left behind for manual inspection.
+
+check:
+ :print Sorry, not implemented yet.
+
+
+# mnv: set sts=4 sw=4 :