Subversion Repositories navi

Rev

Rev 85 | Rev 113 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

{% extends "base.html" %}

{% block title %}Word parser{% end %}

{% block body %}
<b>Na'vi word:</b><br />
<form action="/parse2" method="post">
<input id="word" name="word" type="text" value="{{last}}" style="width: 100%;" />
<input name="btn" type="submit" value="Parse!" />
</form>
{% if out %}
<table border="1">
<tr>
    <th>Words</th>
    <th>Parts</th>
    <th>Data</th>
</tr>
{% for wor in out %}
<tr>
    <td rowspan="3">{{ wor["word"]["navi"] }}</td>
    <td>Infixes:</td>
    <td>{{ u", ".join(wor["inf"]) }}</td>
</tr>
<tr>
    <td>Prefixes:</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>
</tr>
{% end %}
</table>
{% end %}
<script type="text/javascript">
document.getElementById("word").focus();
</script>
{% end %}