Subversion Repositories navi

Compare Revisions

Ignore whitespace Rev 83 → Rev 87

/tsimapiak/parse2.py
67,10 → 67,10
if foundit == True:
foundword = word
break
ret["pref"] = foundprefs
ret["post"] = foundposts
ret["inf"] = foundins
if foundit == True:
ret["pref"] = foundprefs
ret["post"] = foundposts
ret["inf"] = foundins
ret["word"] = foundword
return ret
 
/webapp/templates/parse2.html
8,29 → 8,30
<input id="word" name="word" type="text" value="{{last}}" style="width: 100%;" />
<input name="btn" type="submit" value="Parse!" />
</form>
{{ out }}
{% if out %}
<table border="1">
<tr>
<th>Words>/th>
<th>Words</th>
<th>Parts</th>
<th>Data</th>
</tr>
{% for wor in out %}
<tr>
<td>{{ wor["word"]["navi"] }} rowspan="3</td>
<td rowspan="3">{{ wor["word"]["navi"] }}</td>
<td>Infixes:</td>
<td>u", ".join(wor["inf"])</td>
<td>{{ u", ".join(wor["inf"]) }}</td>
</tr>
<tr>
<td>Prefixes:</td>
<td>u"; ".join(u", ".join(x) for x in wor["pref"])</td>
<td>{{ u"; ".join(u", ".join(x) for x in wor["pref"]) }}</td>
</tr>
<tr>
<td>Postfixes:</td>
<td>u"; ".join(u", ".join(x) for x in wor["post"])</td>
<td>{{ u"; ".join(u", ".join(x) for x in wor["post"]) }}</td>
</tr>
{% end %}
</table>
{% end %}
<script type="text/javascript">
document.getElementById("word").focus();
</script>