|
From: <fri...@us...> - 2008-12-23 17:40:25
|
Revision: 9631
http://zaf.svn.sourceforge.net/zaf/?rev=9631&view=rev
Author: friedelwolff
Date: 2008-12-23 17:40:17 +0000 (Tue, 23 Dec 2008)
Log Message:
-----------
Output REP replacement rules before the affix rules. This makes diffing with the old implementation easier
Modified Paths:
--------------
trunk/dict/zu/hunspell/hunspell_format.py
Modified: trunk/dict/zu/hunspell/hunspell_format.py
===================================================================
--- trunk/dict/zu/hunspell/hunspell_format.py 2008-12-23 17:38:51 UTC (rev 9630)
+++ trunk/dict/zu/hunspell/hunspell_format.py 2008-12-23 17:40:17 UTC (rev 9631)
@@ -69,13 +69,15 @@
output.append("COMPLEXPREFIXES")
output.append("")
+ output.append("REP %d" % len(self.replace_list))
+ for rep in self.replace_list:
+ output.append("REP %s %s" % (rep[0], rep[1].replace(' ', '_')))
+ output.append("")
+
for group in self.groups:
output.append(group.hunspell(self))
output.append("")
- output.append("REP %d" % len(self.replace_list))
- for rep in self.replace_list:
- output.append("REP %s %s" % (rep[0], rep[1].replace(' ', '_')))
return "\n".join(output)
def add_group(self, **kwargs):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|