Rev 148 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
146 | szabot | 1 | {% extends "base.html" %} |
2 | |||
3 | {% block title %}Translator{% end %} |
||
4 | |||
5 | {% block body %} |
||
6 | <b>Na'vi sentence:</b><br /> |
||
7 | <form action="/parse" method="post"> |
||
8 | <input id="word" name="word" type="text" value="{{last}}" style="width: 100%;" /> |
||
9 | <input name="btn" type="submit" value="Parse!" /> |
||
10 | </form> |
||
11 | {% if out %} |
||
12 | <table border="1"> |
||
13 | <tr> |
||
14 | <th>Words</th> |
||
15 | <th>English</th> |
||
16 | <th>Parts</th> |
||
17 | <th>Data</th> |
||
18 | </tr> |
||
19 | {% for wor in out %} |
||
20 | <tr> |
||
21 | <td rowspan="4">{{ wor["word"]["navi"] }}</td> |
||
22 | <td rowspan="4">{{ wor["translated"] }}</td> |
||
23 | <td>Infixes:</td> |
||
24 | <td>{{ u", ".join(wor["inf"]) }}</td> |
||
25 | </tr> |
||
26 | <tr> |
||
27 | <td>Prefixes:</td> |
||
28 | <td>{{ u"; ".join(u", ".join(x) for x in wor["pref"]) }}</td> |
||
29 | </tr> |
||
30 | <tr> |
||
31 | <td>Postfixes:</td> |
||
32 | <td>{{ u"; ".join(u", ".join(x) for x in wor["post"]) }}</td> |
||
33 | </tr> |
||
34 | <tr> |
||
35 | <td>Lenited:</td> |
||
36 | <td>{{ str(wor["len"]) }}</td> |
||
37 | </tr> |
||
38 | {% end %} |
||
39 | </table> |
||
40 | {% end %} |
||
41 | <p>This program uses Eana Eltu for the list of words and infix positions (but nothing else), created by Tuiq and Taronyu. Thanks also go to the rest of the Learn Na'vi community!</p> |
||
42 | <script type="text/javascript"> |
||
43 | document.getElementById("word").focus(); |
||
44 | </script> |
||
45 | {% end %} |