/tsimapiak/parse.py |
---|
46,6 → 46,9 |
lenited = False |
splitword = word["infix"].split(u" ") |
foundins = [u"", u"", u""] |
tempin1 = [] |
tempin2 = [] |
tempin3 = [] |
if len(wordin) < len(splitword): |
foundit = False |
next |
59,8 → 62,17 |
post = [] |
if u"<1>" in splitword[wor]: |
for in1 in infixes1: |
for in2 in infixes2: |
for in3 in infixes3: |
if in1 in wordin[wor]: |
tempin1.append(in1) |
for in2 in infixes2: |
if in2 in wordin[wor]: |
tempin2.append(in2) |
for in3 in infixes3: |
if in3 in wordin[wor]: |
tempin3.append(in3) |
for in1 in tempin1: |
for in2 in tempin2: |
for in3 in tempin3: |
if splitword[wor].replace(u"<1><2>",in1+in2).replace(u"<3>",in3) in wordin[wor]: |
center = splitword[wor].replace(u"<1><2>",in1+in2).replace(u"<3>",in3) |
foundins = [in1, in2, in3] |
/webapp/templates/index.html |
---|
26,6 → 26,6 |
--> |
<a href="/number"><b>Number translator</b></a> - this webapp allows you to translate written-out Na'vi numbers into decimal and octal.<br /> |
<a href="/parse"><b>Parser</b></a> - this webapp can parse Na'vi sentences into the base words, prefixes, infixes and suffixes. It does not translate the words. |
<a href="/parse"><b>Parser</b></a> - this webapp can parse Na'vi sentences into the base words, prefixes, infixes and suffixes. It does not translate the words.<br /> |
<a href="/translate"><b>Translator</b></a> - this webapp translates full Na'vi sentences into human languages, as well as any affixes into the technical abbreviations. |
{% end %} |