|
From: <fri...@us...> - 2009-02-27 09:52:19
|
Revision: 9680
http://zaf.svn.sourceforge.net/zaf/?rev=9680&view=rev
Author: friedelwolff
Date: 2009-02-27 09:52:16 +0000 (Fri, 27 Feb 2009)
Log Message:
-----------
Ensure that we avoid the illegal 'kwo-' and 'lwo-' combinations
Modified Paths:
--------------
trunk/dict/zu/hunspell/zu_aff.py
Modified: trunk/dict/zu/hunspell/zu_aff.py
===================================================================
--- trunk/dict/zu/hunspell/zu_aff.py 2009-02-27 09:19:59 UTC (rev 9679)
+++ trunk/dict/zu/hunspell/zu_aff.py 2009-02-27 09:52:16 UTC (rev 9680)
@@ -259,7 +259,11 @@
# amamanzi (a)amadoda
group.add_rule(affix=prefix, condition="a", **kwargs)
group.add_rule(affix=prefix+'e', condition="i", strip="i", **kwargs)
- group.add_rule(affix=prefix+'o', condition="u", strip="u", **kwargs)
+ if prefix[-1] == "w" and len(prefix) > 1:
+ # avoid kwo- and lwo- that is changed to ko- and lo-
+ group.add_rule(affix=prefix[:-1]+'o', condition="u", strip="u", **kwargs)
+ else:
+ group.add_rule(affix=prefix+'o', condition="u", strip="u", **kwargs)
return group.rules
if prefix[-1] == 'u':
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|