Rev 133 | Rev 176 | 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 | |||
133 | szabot | 3 | {% block title %}Sentence parser{% end %} |
58 | szabot | 4 | |
5 | {% block body %} |
||
133 | szabot | 6 | <b>Na'vi sentence:</b><br /> |
117 | szabot | 7 | <form action="/parse" 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> |
136 | muzer | 15 | <th>English</th> |
83 | szabot | 16 | <th>Parts</th> |
17 | <th>Data</th> |
||
18 | </tr> |
||
19 | {% for wor in out %} |
||
20 | <tr> |
||
99 | szabot | 21 | <td rowspan="4">{{ wor["word"]["navi"] }}</td> |
136 | muzer | 22 | <td rowspan="4">{{ wor["translated"] }}</td> |
83 | szabot | 23 | <td>Infixes:</td> |
84 | szabot | 24 | <td>{{ u", ".join(wor["inf"]) }}</td> |
83 | szabot | 25 | </tr> |
26 | <tr> |
||
27 | <td>Prefixes:</td> |
||
84 | szabot | 28 | <td>{{ u"; ".join(u", ".join(x) for x in wor["pref"]) }}</td> |
83 | szabot | 29 | </tr> |
30 | <tr> |
||
31 | <td>Postfixes:</td> |
||
84 | szabot | 32 | <td>{{ u"; ".join(u", ".join(x) for x in wor["post"]) }}</td> |
83 | szabot | 33 | </tr> |
99 | szabot | 34 | <tr> |
35 | <td>Lenited:</td> |
||
36 | <td>{{ str(wor["len"]) }}</td> |
||
37 | </tr> |
||
83 | szabot | 38 | {% end %} |
39 | </table> |
||
86 | szabot | 40 | {% end %} |
133 | szabot | 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> |
58 | szabot | 42 | <script type="text/javascript"> |
43 | document.getElementById("word").focus(); |
||
44 | </script> |
||
113 | muzer | 45 | {% end %} |