Subversion Repositories navi

Compare Revisions

Ignore whitespace Rev 202 → Rev 206

/tsimapiak/translate.py
39,8 → 39,6
word["translated"] = dbconnector.translate(word["word"]["id"],lang)
else:
for brokenword in brokenwords:
print brokenword[0]
print word["word"]["navi"]
if brokenword[0] == word["word"]["navi"]:
word["translated"] = brokenword[1]
if word["translated"] == u"":
/tsimapiak/parsenum.py
65,7 → 65,7
def parse(numin):
if u"mm" in numin:
return None
if (numin[0] == u"a") and (numin[len(numin)-1] == u"a"):
if (numin == u"") or ((numin[0] == u"a") and (numin[len(numin)-1] == u"a")):
return None
prefs = []
posts = []
/tsimapiak/parse.py
45,9 → 45,9
for brokenword in brokenwords:
if wordin[0] == brokenword[0]:
for word in wordlist:
if wordin[0] == word["navi"]:
if brokenword[1] == word["navi"]:
tempid = word["id"]
temptype = word["partOfSpeech"]
temptype = word["type"]
return {"word": {"id": tempid, "navi": brokenword[1], "infix": u"", "type": temptype}, "pref": brokenword[5], "post": brokenword[6], "len": brokenword[7], "inf": (brokenword[2], brokenword[3], brokenword[4]) }
ret = {"word": {"id": 0, "navi": u"[" + wordin[0] + u"]", "infix": u"", "type": u""}}
for word in wordlist: