Subversion Repositories navi

Rev

Rev 57 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
58 szabot 1
{% extends "base.html" %}
2
 
62 szabot 3
{% block title %}Word parser{% end %}
58 szabot 4
 
5
{% block body %}
6
<b>Na'vi word:</b><br />
59 szabot 7
<form action="/parse2" method="post">
58 szabot 8
<input id="word" name="word" type="text" value="{{last}}" style="width: 100%;" />
9
<input name="btn" type="submit" value="Parse!" />
10
</form>
65 szabot 11
{{ out }}
83 szabot 12
<table border="1">
13
<tr>
14
    <th>Words>/th>
15
    <th>Parts</th>
16
    <th>Data</th>
17
</tr>
18
{% for wor in out %}
19
<tr>
20
    <td>{{ wor["word"]["navi"] }} rowspan="3</td>
21
    <td>Infixes:</td>
22
    <td>u", ".join(wor["inf"])</td>
23
</tr>
24
<tr>
25
    <td>Prefixes:</td>
26
    <td>u"; ".join(u", ".join(x) for x in wor["pref"])</td>
27
</tr>
28
<tr>
29
    <td>Postfixes:</td>
30
    <td>u"; ".join(u", ".join(x) for x in wor["post"])</td>
31
</tr>
32
{% end %}
33
</table>
58 szabot 34
<script type="text/javascript">
35
document.getElementById("word").focus();
36
</script>
37
{% end %}