Subversion Repositories navi

Compare Revisions

Regard whitespace Rev 206 → Rev 208

/tsimapiak/translate.py
55,12 → 55,12
for fix in infixes3:
if fix[0] == word["inf"][2]:
word["translated"] += '-' + fix[1]
for temp in word["pref"]: # double array? WTF? EDIT: I get it now
for temp in word["pref"]:
for navf in temp:
for fix in prefixes:
if fix[0] == navf:
word["translated"] += '-' + fix[1]
for temp in word["post"]: # double array? WTF? EDIT: I get it now
for temp in word["post"]:
for navf in temp:
for fix in postfixes:
if fix[0] == navf:
/tsimapiak/parse.py
93,7 → 93,7
else:
if splitword[wor] in wordin[wor]:
center = splitword[wor]
if center == u"":
if center == u"" and (wordin[wor] == u"paya" or splitword[wor] != u"pxay"): # XXX - maybe fixable without hardcoding?
for i in lenit:
temp = u""
if splitword[wor].startswith(i[0]):
/webapp/main.py
58,14 → 58,6
def get(self):
os.system("/usr/bin/restartnavi")
 
 
class TestDB(tornado.web.RequestHandler):
def get(self):
lis = dbconnector.getnavilist()
text = u"id | navi | infix | partofspeech<br />"
text += u"<br />".join(u" | ".join(unicode(y) for y in x) for x in lis)
self.write(text)
 
class Parse(tornado.web.RequestHandler):
def get(self):
self.render("templates/parse.html", last="", out=None)
99,7 → 91,6
("/", Index),
("/number", Number),
("/restart", Restart),
("/testdb", TestDB),
("/parse", Parse),
("/translate", Translate)
], **settings)