This commit is contained in:
Zack Dibe 2018-04-23 19:11:14 +00:00 committed by GitHub
commit 8dacdb23f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
50 changed files with 223 additions and 0 deletions

View file

@ -0,0 +1,46 @@
あ a.mp3
い i.mp3
う u.mp3
え e.mp3
お o.mp3
か ka.mp3
き ki.mp3
く ku.mp3
け ke.mp3
こ ko.mp3
さ sa.mp3
し shi.mp3
す su.mp3
せ se.mp3
そ so.mp3
た ta.mp3
ち chi.mp3
つ tsu.mp3
て te.mp3
と to.mp3
な na.mp3
に ni.mp3
ぬ nu.mp3
ね ne.mp3
の no.mp3
は ha.mp3
ひ hi.mp3
ふ fu.mp3
へ he.mp3
ほ ho.mp3
ま ma.mp3
み mi.mp3
む mu.mp3
め me.mp3
も mo.mp3
や ya.mp3
ゆ yu.mp3
よ yo.mp3
ら ra.mp3
り ri.mp3
る ru.mp3
れ re.mp3
ろ ro.mp3
わ wa.mp3
を o.mp3
ん n.mp3

View file

@ -0,0 +1,46 @@
ア a.mp3
イ i.mp3
ウ u.mp3
エ e.mp3
オ o.mp3
カ ka.mp3
キ ki.mp3
ク ku.mp3
ケ ke.mp3
コ ko.mp3
サ sa.mp3
シ shi.mp3
ス su.mp3
セ se.mp3
ソ so.mp3
タ ta.mp3
チ chi.mp3
ツ tsu.mp3
テ te.mp3
ト to.mp3
ナ na.mp3
ニ ni.mp3
ヌ nu.mp3
ネ ne.mp3
no.mp3
ハ ha.mp3
ヒ hi.mp3
フ fu.mp3
ヘ he.mp3
ホ ho.mp3
マ ma.mp3
ミ mi.mp3
ム mu.mp3
メ me.mp3
モ mo.mp3
ヤ ya.mp3
ユ yu.mp3
ヨ yo.mp3
ラ ra.mp3
リ ri.mp3
ル ru.mp3
レ re.mp3
ロ ro.mp3
ワ wa.mp3
ヲ o.mp3
ン n.mp3

View file

@ -0,0 +1,41 @@
p="$ZSH/plugins/hirakata/"
fh=$(cat $p"files/hira.txt")
fk=$(cat $p"files/kata.txt")
function hirakata() {
random_symbol=$(echo "$fh\n$fk" | shuf -n1)
romaji=0
mute=0
for arg in "$@"
do
case "$arg" in
"romaji")
romaji=1
;;
"hiragana")
random_symbol=$(echo "$fh" | shuf -n1)
;;
"katakana")
random_symbol=$(echo "$fk" | shuf -n1)
;;
"mute")
mute=1
;;
esac
done
symbol=$(echo $random_symbol | cut -d ' ' -f1)
sound=$(echo $random_symbol | cut -d ' ' -f2)
echo -n $symbol
if [ $romaji -eq 1 ]; then
romaji=$(echo $sound | cut -d '.' -f1)
echo -n " ($romaji)"
fi
if [ $mute -eq 0 ]; then
(mpg321 -q $p/sounds/$sound & ) > /dev/null 2>&1
fi
}

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.