-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
182 lines (182 loc) · 8.12 KB
/
index.html
File metadata and controls
182 lines (182 loc) · 8.12 KB
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
<!doctype html>
<html>
<head>
<title>Japanese Assistant</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Albert+Sans:wght@300;400;600&display=swap" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/css/bootstrap.min.css"
integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor"
rel="stylesheet" crossorigin="anonymous">
<link rel="stylesheet" href="css/default.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<header class="pt-5 d-flex flex-column justify-content-center flex-grow-1">
<div class="fs-2 mb-3 text-center">
<span class="p-2 bg-white rounded-5">🔰</span>
</div>
<span class="fs-1 fw-bold text-center">
<ruby>日本語<rt>Japanese</rt></ruby> Assistant
</span>
<nav class="mx-auto py-3 fs-6">
<ul class="nav justify-content-center">
<li class="nav-item">
<a class="nav-link" href="#ime">IME</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#conjugator">Conjugator</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#deconjugator">Deconjugator</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#converter">Converter</a>
</li>
</ul>
</nav>
</header>
<section id="ime" class="container-fluid py-4">
<div class="container">
<div class="fw-bold">⌨️ Input Method Editor (IME)</div>
<div class="fw-light">Type in lowercase for Hiragana or uppercase for Katakana, you may also paste texts to convert it to kana.</div>
<div class="mt-2 textarea-container">
<textarea class="wanakana form-control" placeholder="Type here"></textarea>
<button class="btn btn-primary btn-copy" data-copy="wanakana">Copy</button>
</div>
</div>
</section>
<section id="conjugator" class="container-fluid py-4">
<div class="container">
<div class="fw-bold">🔗 Verb Conjugator</div>
<div class="fw-light">Type in the verb you want to conjugate and check the target conjugation (and auxilaries.)</div>
<div class="small">(Currently cannot detect Godan or Ichidan verbs automatically, and not every combination is possible.)</div>
<form autocomplete="off">
<div class="mt-2 mb-2 input-group">
<input class="wanakana form-control" placeholder="Type here" name="conjugate" required>
<button class="btn btn-primary" type="submit">Conjugate</button>
</div>
<ul id="conjugator-results" class="d-none my-2 list-group list-group-horizontal fw-bold"></ul>
<div id="conjugator-settings" class="mt-1 row">
<div class="col-12 mb-1">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="ichidan" name="ichidan">
<label class="form-check-label" for="ichidan">Is Ichidan verb</label>
</div>
</div>
<div class="col-12 col-sm-4 col-md-3">
<div class="fw-bold">Conjugations</div>
</div>
<div class="col-12 col-sm-8 col-md-9">
<div class="fw-bold">Auxilaries</div>
<div id="conjugator-template" class="d-none form-check form-check-inline">
<label class="form-check-label small"></label>
<input class="form-check-input" type="checkbox" required>
</div>
</div>
</div>
</form>
</div>
</section>
<section id="deconjugator" class="container-fluid py-4">
<div class="container">
<div class="fw-bold">🖇️ Verb Deconjugator</div>
<div class="fw-light">Type in the verb you want to deconjugate.</div>
<div class="small">(This tool is experimental and you should have knowledge on how Japanese verb works.)</div>
<form class="mt-2 mb-3 input-group" autocomplete="off">
<input class="wanakana form-control" placeholder="Type here" name="deconjugate">
<button class="btn btn-primary" type="submit">Deconjugate</button>
</form>
</div>
<div id="deconjugator-list" class="row justify-content-center g-2 px-2 px-md-3 px-lg-5 mx-0 mx-md-3 mx-lg-5">
<div id="deconjugator-template" class="d-none col-6 col-sm-4 col-lg-3">
<div class="card p-0 border-0 bg-transparent text-center">
<a class="card-header h5 fw-semibold bg-info" href="" target="_blank" title="Open in Jisho.org"></a>
<div class="card-body bg-light rounded-bottom p-2 flex-grow-0">
<div class="card-text">
<ul class="list-group small"></ul>
</div>
</div>
</div>
</div>
</section>
<section id="converter" class="container-fluid py-4">
<div class="container">
<div class="fw-bold">🔤 Kanji to Kana and Romanization</div>
<div class="fw-light">
This tool converts Japanese text to hiragana, katakana, or romaji. Includes other romanization systems and supports
<u class="link-secondary" data-bs-toggle="popover" data-bs-trigger="hover" data-bs-custom-class="bg-white small" title="送(oku)り仮名(gana)">okurigana</u>
and
<u class="link-secondary" data-bs-toggle="popover" data-bs-trigger="hover" data-bs-custom-class="bg-white pt-2 fs-6" data-bs-html="true" title="<ruby>振<rt>fu</rt>り仮名<rt>gana</rt></ruby>">furigana</u>
mode.
</div>
<div class="small">(Due to limitations, only basic readings are used and may not be 100% accurate.)</div>
<div class="textarea-container">
<textarea class="form-control mt-2" placeholder="Type here" disabled></textarea>
<button class="btn btn-primary">Initialize</button>
</div>
<div id="converter-settings" class="mt-2">
<div class="hstack gap-2 mb-2">
<select class="form-select form-select-sm" name="to" disabled>
<option selected>Hiragana</option>
<option>Katakana</option>
<option>Romaji</option>
</select>
<select class="form-select form-select-sm" name="mode" disabled>
<option selected>Normal</option>
<option>Spaced</option>
<option>Okurigana</option>
<option>Furigana</option>
</select>
<select class="form-select form-select-sm" name="romajiSystem" disabled>
<option selected>Hepburn</option>
<option>Nippon</option>
<option>Passport</option>
</select>
</div>
<div class="hstack gap-2">
<div>
<label class="small">Font Size</label>
<input type="range" class="form-range" value="16" min="16" max="32" name="" disabled>
</div>
<div>
<label class="small">Furigana Size</label>
<input type="range" class="form-range" value="11" min="11" max="25" name="rt" disabled>
</div>
</div>
</div>
</div>
<div id="converter-result" class="container mt-2 text-break">
<span>You have initialize the language processor before using this!</span>
</div>
</section>
<footer class="py-4 small-sm">
<div class="container-sm d-flex justify-content-between">
<div class="d-flex flex-column w-50">
<span>Maintained by <a href="https://github.com/sglkc">sglkc</a></span>
<span>Licensed under <a href="https://github.com/sglkc/jp-assistant/blob/master/LICENSE">MIT License</a></span>
<span class="mt-1">
<a href="https://github.com/sglkc/jp-assistant">
<img src="https://icons.getbootstrap.com/assets/icons/github.svg" alt="GitHub" width="32">
</a>
</span>
</div>
<div class="d-flex flex-column text-end w-50">
<span>Report bugs or request features</span>
<span>
<a href="https://github.com/sglkc/jp-assistant/issues">Open a new issue on GitHub</a>
</span>
</div>
</div>
</footer>
<script src="https://code.jquery.com/jquery-3.6.0.min.js" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/js/bootstrap.bundle.min.js"
integrity="sha384-pprn3073KE6tl6bjs2QrFaJGz5/SUsLqktiwsUTF55Jfv3qYSDhgCecCxMW52nD2"
crossorigin="anonymous"></script>
<script src="dist/bundle.js"></script>
<script src="js/script.js" type="module"></script>
</body>
</html>