add more audio, no repeating kana
This commit is contained in:
parent
011e77055c
commit
db1a06ce90
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -3,6 +3,13 @@ body {
|
|||
background-color:#eef5ed;
|
||||
}
|
||||
|
||||
a {
|
||||
color:#4d99b7;
|
||||
font-weight:bold;
|
||||
cursor:pointer;
|
||||
text-decoration:none;
|
||||
}
|
||||
|
||||
h1 {
|
||||
text-align: center;
|
||||
color: #8e6264;
|
||||
|
|
|
@ -253,6 +253,12 @@ function show_kana() {
|
|||
shuffled = shuffle(active);
|
||||
}
|
||||
|
||||
if(cur_kana) {
|
||||
if(shuffled[0][0] == cur_kana) {
|
||||
shuffled.shift();
|
||||
}
|
||||
}
|
||||
|
||||
cur_kana = shuffled[0][0];
|
||||
cur_reading = shuffled[0][1];
|
||||
|
||||
|
@ -268,9 +274,9 @@ function show_kana() {
|
|||
document.getElementById('answer').innerHTML = cur_reading;
|
||||
|
||||
if(show_tools.indexOf(cur_kana) == -1) {
|
||||
document.getElementById('tools').style.visibility = 'hidden';
|
||||
document.getElementById('tool_stroke').style.visibility = 'hidden';
|
||||
} else {
|
||||
document.getElementById('tools').style.visibility = 'visible';
|
||||
document.getElementById('tool_stroke').style.visibility = 'visible';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -331,6 +337,11 @@ function play_sound() {
|
|||
document.getElementById('input_box').focus();
|
||||
}
|
||||
|
||||
function play_other(file) {
|
||||
var audio = new Audio('audio/' + file + '.mp3');
|
||||
audio.play();
|
||||
}
|
||||
|
||||
function stroke_order() {
|
||||
document.getElementById('kana').innerHTML = '<img src="stroke/' + cur_kana + '.gif" id="stroke" />';
|
||||
document.getElementById('input_box').focus();
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>DJT Kana</title>
|
||||
<link rel="stylesheet" href="djtkana.css?3" />
|
||||
<link rel="stylesheet" href="djtkana.css?5" />
|
||||
</head>
|
||||
<body>
|
||||
<script src="djtkana.js?3"></script>
|
||||
<script src="djtkana.js?5"></script>
|
||||
|
||||
<h1>DJT Kana</h1>
|
||||
|
||||
|
@ -429,17 +429,18 @@
|
|||
<div id="explanation">
|
||||
<p>Grind a row of kana until you stop making mistakes, then add another row. Press the <code>Play sound</code> link to make sure you are pronouncing the kana correctly. If you wish to write, the <code>Stroke order</code> link will show you the proper form.</p>
|
||||
|
||||
<p>The two little dots (<a href="https://en.wikipedia.org/wiki/Dakuten">dakuten</a>) next to certain kana indicate that the first consonant is "muddied" (voiced). For example, か (ka) becomes が (ga). The first letter of the romaji for these kana transforms as follows:
|
||||
<p>The two dots (<a href="https://en.wikipedia.org/wiki/Dakuten">dakuten</a>) next to certain kana indicate that the first consonant is "muddied" (voiced). For example, か (ka) becomes が (ga). The consonant of such kana transforms as follows:
|
||||
<ul>
|
||||
<li>k -> g</li>
|
||||
<li>s -> z</li>
|
||||
<li>t -> d</li>
|
||||
<li>h -> b</li>
|
||||
<li>s/ts -> z</li>
|
||||
<li>ち (chi) -> ぢ (ji); し (shi) -> じ (ji)</li>
|
||||
</ul>
|
||||
|
||||
<p>A few kana add a small circle to indicate a "p" consonant transformation. For example, ほ (ho) becomes ぽ (po).</p>
|
||||
|
||||
<p>The smaller kana ゅ, ょ, and ゃ are used to combine kana sounds. For example, in <span style="white-space:nowrap">ぎゃ</span> (gya) the consonant of ぎ (gi) combines with the sound from や (ya). The small っ (distinct from つ/tsu) is not itself pronounced, but lengthens the consonant that follows, as in にっぽん (nippon). Read <a href="http://www.guidetojapanese.org/learn/grammar/hiragana">Tae Kim</a> for more information about kana.</p>
|
||||
<p>The smaller kana ゅ, ょ, and ゃ are used to combine kana sounds. For example, in <span style="white-space:nowrap">ぎゃ</span> (gya) the consonant of ぎ (gi) combines with the sound from や (ya). The small っ (distinct from つ/tsu) is not itself pronounced, but lengthens the consonant that follows, as in <a onclick="play_other('nippon')"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABK0lEQVQ4T5WTsUsCYRjGPdGxNtFWW2pWCAz3PIIabCmIQAeHBI1Cm9ptqYY0C5qDWrSh/yFM9+qPyK2G9PfAHRzx3Rd38OO7+573ffi+h/ecmP1ZR/6B17Ayx9JfQ+vCDPLwZqoNM6hS3Adf3+H90TNIs+7Dub5NBsfsd/5oQQMXbQhNuJLBEhQhCdtQNhzVNyigjeAIzmBFBp+QtWQhSQZP8A4v0IAPXUsGCum/xz/BAYW33qlbrG5UgwWapmoEhXkT1WCRpi8oQQZ6UQ0qNGk2FPwpbMhAYSxHCPGZ2hNQ+A8y0F00sgnYgl2DmR/iGtoY2h6rpkGqI15CUAsO0ibaAA7hOmyUNar3EPdOEzRIsbcHF9JsP5MCu4NfyMHElJPNQPW683dYswrm3U87Ae88g4wAAAAASUVORK5CYII=" style="opacity:.8;" /> にっぽん</a> (nippon); the effect generally resembles a small pause. <a href="http://www.guidetojapanese.org/learn/grammar/hiragana">Tae Kim</a> has more information, and is the source of our audio.</p>
|
||||
<p></p>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue