-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
189 lines (176 loc) · 7.98 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/>
<title>Kemuri</title>
<style type="text/css">
.ita { font-style:italic; }
.indented { padding-left: 25pt;padding-right: 25pt; }
</style>
</head>
<body>
<h2> ** Description **</h2>
<div>
== Japanese dictionary & flashcards like software for jailbroken
<br/> == iphone/ipad/ipod touch, android, *nix (including macos), windows.
<br/>
<br/>This software only works on plateforms with ruby, i.e. <span class="ita">jailbroken</span> igadgets,
<br/>& pretty much every decent computer around.
<br/>
<br/>It's based on the KANJIDIC and KRADFILE projects, more
<br/>specifically on their xml versions and includes a sql version of these
<br/>projects, feel free to reuse them.
<br/>See <a href="http://www.csse.monash.edu.au/~jwb/kradinf.html">Kradfile</a> and <a href="http://www.csse.monash.edu.au/~jwb/kanjidic_doc.html">Kanjidic</a>.
<br/>
<br/>It creates a web server on 127.0.0.1:8185 that you can access with
<br/>safari and query for skip codes, radicals, kanjis, prononciations
<br/>or translations of english words --or a mix thereof-- it also
<br/>features jlpt's lists, and your own if you spend some time building them.
<br/>
<br/>I provide sqlite3 ruby bindings binaries for iphone, if you don't have
<br/>the gcc toolchain, as a gzipped tarball of the build tree.
<br/>See <a href="https://sourceforge.net/projects/kemuri/">http://sourceforge.net/projects/kemuri/</a>.
<br/>It's a not so old, not so recent version, by all means
<br/>please use the lastest one you may find at sqlite-ruby's
<br/>project page (<a href="http://rubyforge.org/projects/sqlite-ruby">http://rubyforge.org/projects/sqlite-ruby)</a>).
</div>
<h2> ** Download **</h2>
<div><a href="https://sourceforge.net/projects/kemuri/files/1.3/kemuri-1.3.tar.gz/download">Version 1.3 Here.</a></div>
<h2> ** License **</h2>
<div>
<a href="http://www.gnu.org/licenses/agpl.html">AGPLv3</a>, as mentionned in the source files :
<pre>
# Copyright 2008, 2009, 2010 Boris ARZUR
#
# This file is part of Kemuri.
#
# Kemuri is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# Kemuri is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public
# License along with Kemuri. If not, see http://www.gnu.org/licenses.
</pre>
<br/>The dictionary files (iphone.db and its source iphone.sql) are on a
<br/>different Copyright regime :
<br/><p class='indented'>
<br/>KANJIDIC, KANJD212 and KANJIDIC2 can be freely used provided
<br/>satisfactory acknowledgement is made in any software product,
<br/>server, etc. that uses them. There are a few other conditions
<br/>relating to distributing copies of the files with or without
<br/>modification. Copyright is vested in the EDRG (Electronic Dictionary
<br/>Research Group, see http://www.edrdg.org/). You can see the specific
<br/>licence statement at the Group's site :
<br/>http://www.edrdg.org/edrdg/licence.html.
<br/>
<br/>The files are available from the Monash University ftp site
<br/>http://ftp.monash.edu.au/pub/nihongo/kanjidic.gz and
<br/>http://ftp.monash.edu.au/pub/nihongo/kanjd212.gz.
<br/>
<br/>The RADKFILE and KRADFILE files are copright and available under the
<br/>EDRDG Licence. The copyright of the RADKFILE2 and KRADFILE2 files is
<br/>held by Jim Rose.
</p>
</div>
<h2> ** Installation & Usage ** </h2>
<div>
Upload all directory 'as-is' to your igadget & run 'ruby kemuri.rb' in<br/>
it, it will need to stay running so it might be more convenient to<br/>
execute 'ruby kemuri.rb & disown' or 'exec ruby kemuri.rb' in a 'screen' instance.<br/>
<br/>
<edit date='2010/10/07'><br/>
You don't have to do that for versions >= 1.2, there is an .app folder<br/>
you can push in your /Applications, creating a SpringBoard icon, that<br/>
does the work for you.<br/>
<br/>
In your (or your friend's :)) idevice's safari, go to<br/>
http://127.0.0.1:8185/{amodule}/{whatever}?{options&}capture<br/>
(e.g. /yad/start?capture ) and touch '+', 'add on home screen', to<br/>
create a web-app.<br/>
<br/>
<span class="ita">This is still a BETA feature...</span><br/>
</edit><br/>
<br/>
<br/>
Direct your browser to one of the sub-module :
<ul>
<li>http://127.0.0.1:8185/yad for the dictionary;</li>
<li>http://127.0.0.1:8185/yav for the flashcards;</li>
<li>http://127.0.0.1:8185/kan for Kanji info;</li>
<li>http://127.0.0.1:8185/sk for skip codes, stroke count based searches;</li>
<li>http://127.0.0.1:8185/rad for radical based search.</li>
</ul>
<br/>
These modules are as RESTful as possible :
<ul>
<li>/yad/start looks for start in the dictionary;</li>
<li>/kan/漢 looks for 漢 in the database;</li>
<li>/sk/1-2-3 tries to match the skip 1-2-3.</li>
</ul>
<br/>
Basically each .sv.rb induced servlet is available through<br/>
http://127.0.0.1:8185/`basename ${file} .sv.rb`.<br/>
<br/>
On most modules, you will find a 'smart' input box, you can push<br/>
text (we call it $1 in what follows) in it, it will try to redirect you :
<ul>
<li>'rad' and 'his' go to the modules /rad & /his;</li>
<li>*-*-* (more specifically /^\d-\d+-\d+$/ ) and /^\d+$/ to /sk/$1;</li>
<li>/^\d-\d+-\d++\d-\d+-\d+$/ to /biskip/$1 (bruteforce a pair of<br/>
skip-codes, a bit slow);</li>
<li>/^\d-\d+-\d+-\d-\d+-\d+$/ to /sk/$1;</li>
<li>numbers and hyphen separated pairs of numbers go to /sk/$1;</li>
<li>single kanjis to /kan/$1 or /yad/$1 (you have to choose);</li>
<li>multiple kanjis or kana to /yad/$1;</li>
<li>expression containing & or + to /slook/$1, then to <br/>
/look/a_random_string, see the **Search** section.</li>
</ul>
<br/>
This is the prefered way of interacting with Kemuri.<br/>
<br/>
In some modules, you will find a blue button, try to drag it, it can be used<br/>
to navigate and will show in its center where it is going to send you.<br/>
For example, in /yav, it is used to answer : 'y' is 'yes, I know the kanji',<br/>
'n' is 'no', 'h' is 'hibernate' and 'yy' is 'double yes'. Different answers have<br/>
different effects on the learning algorithm, please refer to the code.<br/>
<br/>
Please note this software uses ruby, sqlite3 and sqlite3-ruby, you<br/>
might need to get that installed before you can use Kemuri.<br/>
</div>
<h2> ** Search ** </h2>
<div>
This program features a new way of searching for kanjis : combine radicals<br/>
from whatever kanji you know, with vague skip codes (such as "it's a two part<br/>
vertical kanji" or "there's 4 strokes on the top part") and stroke counts, glue<br/>
these descriptions together with '&', add the possibility to look for more than<br/>
one kanji at a time with '+' and you have the ultimate kanji searching application.<br/>
<br/>
Examples :
<ul>
<li>typing 帯&1-3-_+在 in voyage, when you are looking for 滞在;</li>
<li>特+残&1-_-_+医+病&小+研+究 for 特殊医療研究...</li>
</ul>
</div>
<h2> ** Author ** </h2>
<div>
Brought to you by boris |dοτ| arzur |ατ| our_google_overlords_operated_mail_service.
<br/>
<br/>
<br/>
<a href="http://sourceforge.net/projects/kemuri"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=342334&type=10" width="80" height="15" alt="Get Kemuri at SourceForge.net. Fast, secure and Free Open Source software downloads" /></a>
<p>
<a href="http://validator.w3.org/check?uri=referer"><img
src="http://www.w3.org/Icons/valid-xhtml10-blue"
alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a>
</p>
</div>
</body>
</html>