-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
134 lines (110 loc) · 4.5 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
<!doctype html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>MeCab on the Web</title>
<style>
#progress {
height: 20px;
width: 30px;
}
textarea {
width: 50em;
background: rgb(33,33,33);
color: white;
font-size: 1.2em;
}
#input-area, #mecab-printouts, .mecab-output-block{
background: rgb(230, 230, 230);
padding: 0em 0.25em;
display: inline-block;
}
#input-area h1, .mecab-output-block h1 {
font-size: 1.0em;
margin-bottom: 0pt;
}
#input-area h1 {
font-size: 1em;
}
.mecab-output-block p, #input-area p {
margin-bottom: 0;
margin-top: 0;
}
.mecab-output-block, .mecab-output {
margin-top: 1em;
}
.mecab-output-block {
margin-bottom:1em;
}
#status {
background: darkred;
color: white;
font-size: 2em;
font-weight: bolder;
}
body {
font-family: Helvetica, "Helvetica Neue", Arial, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Osaka, "メイリオ", Meiryo, "MS Pゴシック", "MS PGothic", "小塚明朝 Pro L", serif;
}
button {
font-size: 1.0em;
margin-top: 1em;
padding: 0.25em 0.5em;
}
#footer {
margin-top: 1em;
font-size: 75%;
}
</style>
<script src="//cdnjs.cloudflare.com/ajax/libs/d3/3.4.11/d3.js" charset="utf-8"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-54933816-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<h1>
MeCab on the Web!
</h1>
<div class="spinner" id='spinner'></div>
<div class="emscripten" id="status">Downloading data, please wait.</div>
<div class="emscripten">
<progress value="0" max="100" id="progress" hidden=1></progress>
</div>
<div id="input-area">
<h1>Text to parse</h1>
<textarea rows="5" id="mecab-input" name="mecab-input">おはようございます。
私は日本語を習っています。</textarea>
<h1>
Configuration flags
</h1>
<textarea rows="1" id="mecab-args"></textarea>
<p id="examples-toggle">Examples...</p>
<dl id="example-arguments" hidden>
<dt><tt>-O yomi</tt></dt>
<dd>Convert to onyomi</dd>
<dt><tt>-O wakati</tt></dt>
<dd>Put spaces between words</dd>
<dt><tt>-O chasen</tt></dt>
<dd>See full decomposition</dd>
<dt><tt>--node-format=%m[%f[7]] --eos-format=\n --unk-format=%m[]</tt></dt>
<dd><a href="https://ankiweb.net/shared/info/3918629684">Anki Japanese Support</a> formatting</dd>
<dt>Note to experienced users</dt>
<dd><tt>-r mecabrc -d ipadic/</tt> flags will be automatically added. The results are based on the IPADIC dictionary.
</dd>
</dl>
<button id="mecab-submit-button">Submit</button>
</div>
<div id="mecab-output"></div>
<a href="https://github.com/fasiha/mecab-emscripten"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a>
<div id="footer">
MeCab © Taku Kudo and NTT, released under the BSD license. IPADIC © Nara Institute of Science and Technology, released under a BSD-like license. MeCab on the Web released under the BSD license, by <a href="https://github.com/fasiha">Ahmed Fasih</a>. See background documentation at <a href="https://github.com/fasiha/mecab-emscripten#mecab-on-the-web">GitHub</a>. Please file bug reports, feature requests, and enhancements at <a href="https://github.com/fasiha/mecab-emscripten/issues">GitHub Issues</a>.
</div>
<script type='text/javascript' src="index.js"></script>
<script async type="text/javascript" src="mecab.js"></script>
</body>
</html>