Subversion Repositories navi

Compare Revisions

Ignore whitespace Rev 161 → Rev 162

/tsimapiak/translate.py
19,23 → 19,21
if word["inf"][0] != u"":
for fix in infixes1:
if fix[0] == word["inf"][0]:
word["translated"] += fix[1]
word["translated"] += '-' + fix[1]
if word["inf"][1] != u"":
for fix in infixes2:
if fix[0] == word["inf"][1]:
word["translated"] += fix[1]
word["translated"] += '-' + fix[1]
if word["inf"][2] != u"":
for fix in infixes3:
if fix[0] == word["inf"][2]:
word["translated"] += fix[1]
if word["pref"] != None:
for origfix in word["pref"]:
for fix in prefixes:
if fix[0] == origfix:
word["translated"] += fix[1]
if word["post"] != None:
for origfix in word["post"]:
for fix in postfixes:
if fix[0] == origfix:
word["translated"] += fix[1]
word["translated"] += '-' + fix[1]
for origfix in word["pref"]:
for fix in prefixes:
if fix[0] == origfix:
word["translated"] += '-' + fix[1]
for origfix in word["post"]:
for fix in postfixes:
if fix[0] == origfix:
word["translated"] += '-' + fix[1]
return sent