Subversion Repositories navi

Rev

Rev 176 | Rev 283 | 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 %}
176 muzer 6
<!--
7
#    This file is part of Tsim Apiak.
8
#  
9
#    Tsim Apiak is free software: you can redistribute it and/or modify
10
#    it under the terms of the GNU General Public Licence as published by
11
#    the Free Software Foundation, either version 3 of the Licence, or
12
#    (at your option) any later version. 
13
#   
14
#    In addition to this, you must also comply with clause 4 of the
15
#    Apache Licence, version 2.0, concerning attribution. Where there
16
#    is a contradiction between the two licences, the GPL           
17
#    takes preference.
18
#  
186 szabot 19
#    Tsim Apiak is distributed in the hope that it will be useful,
176 muzer 20
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
21
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
#    GNU General Public License for more details.
23
#  
24
#    You should have received a copy of the GNU General Public License
25
#    along with Tsim Apiak.  If not, see <http://www.gnu.org/licenses/>.   
26
-->
27
 
133 szabot 28
<b>Na'vi sentence:</b><br />
117 szabot 29
<form action="/parse" method="post">
58 szabot 30
<input id="word" name="word" type="text" value="{{last}}" style="width: 100%;" />
31
<input name="btn" type="submit" value="Parse!" />
32
</form>
86 szabot 33
{% if out %}
83 szabot 34
<table border="1">
35
<tr>
85 szabot 36
    <th>Words</th>
83 szabot 37
    <th>Parts</th>
38
    <th>Data</th>
39
</tr>
40
{% for wor in out %}
41
<tr>
99 szabot 42
    <td rowspan="4">{{ wor["word"]["navi"] }}</td>
83 szabot 43
    <td>Infixes:</td>
84 szabot 44
    <td>{{ u", ".join(wor["inf"]) }}</td>
83 szabot 45
</tr>
46
<tr>
47
    <td>Prefixes:</td>
84 szabot 48
    <td>{{ u"; ".join(u", ".join(x) for x in wor["pref"]) }}</td>
83 szabot 49
</tr>
50
<tr>
51
    <td>Postfixes:</td>
84 szabot 52
    <td>{{ u"; ".join(u", ".join(x) for x in wor["post"]) }}</td>
83 szabot 53
</tr>
99 szabot 54
<tr>
55
    <td>Lenited:</td>
56
    <td>{{ str(wor["len"]) }}</td>
57
</tr>
83 szabot 58
{% end %}
59
</table>
86 szabot 60
{% end %}
133 szabot 61
<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 62
<script type="text/javascript">
63
document.getElementById("word").focus();
64
</script>
113 muzer 65
{% end %}