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> |
||
86 | szabot | 11 | {% if out %} |
83 | szabot | 12 | <table border="1"> |
13 | <tr> |
||
85 | szabot | 14 | <th>Words</th> |
83 | szabot | 15 | <th>Parts</th> |
16 | <th>Data</th> |
||
17 | </tr> |
||
18 | {% for wor in out %} |
||
19 | <tr> |
||
99 | szabot | 20 | <td rowspan="4">{{ wor["word"]["navi"] }}</td> |
83 | szabot | 21 | <td>Infixes:</td> |
84 | szabot | 22 | <td>{{ u", ".join(wor["inf"]) }}</td> |
83 | szabot | 23 | </tr> |
24 | <tr> |
||
25 | <td>Prefixes:</td> |
||
84 | szabot | 26 | <td>{{ u"; ".join(u", ".join(x) for x in wor["pref"]) }}</td> |
83 | szabot | 27 | </tr> |
28 | <tr> |
||
29 | <td>Postfixes:</td> |
||
84 | szabot | 30 | <td>{{ u"; ".join(u", ".join(x) for x in wor["post"]) }}</td> |
83 | szabot | 31 | </tr> |
99 | szabot | 32 | <tr> |
33 | <td>Lenited:</td> |
||
34 | <td>{{ str(wor["len"]) }}</td> |
||
35 | </tr> |
||
83 | szabot | 36 | {% end %} |
37 | </table> |
||
86 | szabot | 38 | {% end %} |
58 | szabot | 39 | <script type="text/javascript"> |
40 | document.getElementById("word").focus(); |
||
41 | </script> |
||
114 | muzer | 42 | <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> |
113 | muzer | 43 | {% end %} |