|
From: <fri...@us...> - 2008-12-22 16:50:41
|
Revision: 9621
http://zaf.svn.sourceforge.net/zaf/?rev=9621&view=rev
Author: friedelwolff
Date: 2008-12-22 16:50:18 +0000 (Mon, 22 Dec 2008)
Log Message:
-----------
Some extra comments and layout changes
Modified Paths:
--------------
trunk/dict/zu/myspell/zu_aff.py
Modified: trunk/dict/zu/myspell/zu_aff.py
===================================================================
--- trunk/dict/zu/myspell/zu_aff.py 2008-12-19 09:28:30 UTC (rev 9620)
+++ trunk/dict/zu/myspell/zu_aff.py 2008-12-22 16:50:18 UTC (rev 9621)
@@ -147,21 +147,20 @@
#now for the complicated part: verbs starting on vowels. (e.g. yakha)
if prefix[-1] == 'u':
- #the 'u' always needs to be removed, we need a 'w'
+ #the 'u' always needs to be removed, we probably need a 'w'
prefix = prefix[0:-1]
#if the original prefix ended on 'wu', we don't want to add
#another 'w' as this will result in 'ww'
- if len(prefix)>0 and prefix[-1] == 'w':
+ if len(prefix) > 0 and prefix[-1] == 'w':
changed.append(["y", prefix, "y[ae]"])
else:
changed.append(["y", prefix + 'w', "y[ae]"])
- if len(prefix) == 0:
+ if len(prefix) == 0:
#if prefix == 'u' before 'o' we change to 'w' as above
changed.append(["y", 'w', "yo"])
else:
- #(if len(prefix) > 0:)
- #for a prefix ending on 'u' before 'o' we simply
- #remove the 'u' without adding 'w'
+ #for a prefix ending on 'u' before 'o' we simply remove the 'u'
+ #without adding 'w', e.g. lu + osa -> losa
changed.append(["y", prefix, "yo"])
return changed
if prefix[-1] == 'i':
@@ -189,6 +188,11 @@
#TODO: verify if 'zo' and 'yo' are only used before consonants
return changed
+ if prefix[-1] == "e":
+ #TODO: situative e- and be- should be handled (entirely thrown away?).
+ #We can probably just generate them, and duplicate handling should take
+ #care of them.
+ pass
return changed
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|