language_cards 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/README.md +7 -7
- data/cards/japanese-hiragana.yml +145 -145
- data/cards/japanese-katakana.yml +361 -362
- data/lib/language_cards/controllers/game.rb +4 -4
- data/lib/language_cards/grapheme_builder.rb +1 -1
- data/lib/language_cards/models/grapheme.rb +1 -1
- data/lib/language_cards/modes/game.rb +1 -0
- data/lib/language_cards/modes/translate.rb +1 -1
- data/lib/language_cards/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70409b30502a716a2fb4ab829f6011b9f9a0cc2fbc56ccb608e14ce3b8a54da7
|
4
|
+
data.tar.gz: c83ba36d7157de02a4cc67b65eef49a0743fa777c0a42939ccd8dc7d73ff1fe5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: affeaf6f6ecfffc3ff5cf5f3b6b63219961d636349cdc25abf31fd0e985dc1a34758b1739cbbc1541412eee67d541b9312c4cb1e349234fc10b4829485b25a56
|
7
|
+
data.tar.gz: 5328c5eebdec336a264f5303dadad4b29d99bed2c9e830ba158e72778f7d2637d1b8a2da77848d4271a2a55f993bd81d123cd5d0d9e7106c24eab0040c009146
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -39,19 +39,19 @@ After installing the gem you can run the executable `language_cards`. If you cl
|
|
39
39
|
The cards are stored in YAML format. You can look in the `cards` directory for existing examples to follow.
|
40
40
|
The first entry is a language name and it's okay if that already exists in another file. The entries below that
|
41
41
|
must be unique for that language (eg: you can't have two Hiragana sub entries on Japanese). The next step in
|
42
|
-
will have a mapping hash on how the language is being mapped in the form of key to value (eg "
|
42
|
+
will have a mapping hash on how the language is being mapped in the form of key to value (eg "Hiragana" => "Romaji").
|
43
43
|
Just follow the below outline for a working example.
|
44
44
|
|
45
45
|
```yaml
|
46
46
|
---
|
47
47
|
Japanese:
|
48
48
|
Hiragana:
|
49
|
-
mapping: {
|
50
|
-
a
|
51
|
-
i
|
52
|
-
u
|
53
|
-
e
|
54
|
-
o
|
49
|
+
mapping: { Hiragana: Romaji }
|
50
|
+
あ: a
|
51
|
+
い: i
|
52
|
+
う: u
|
53
|
+
え: e
|
54
|
+
お: o
|
55
55
|
```
|
56
56
|
|
57
57
|
## Development
|
data/cards/japanese-hiragana.yml
CHANGED
@@ -1,149 +1,149 @@
|
|
1
1
|
--- # https://en.wikibooks.org/wiki/Japanese/Kana_chart
|
2
2
|
Japanese:
|
3
3
|
Hiragana:
|
4
|
-
mapping: {
|
5
|
-
a
|
6
|
-
i
|
7
|
-
u
|
8
|
-
e
|
9
|
-
o
|
10
|
-
ka
|
11
|
-
ki
|
12
|
-
ku
|
13
|
-
ke
|
14
|
-
ko
|
15
|
-
ga
|
16
|
-
gi
|
17
|
-
gu
|
18
|
-
ge
|
19
|
-
go
|
20
|
-
sa
|
21
|
-
su
|
22
|
-
se
|
23
|
-
so
|
24
|
-
za
|
25
|
-
zu
|
26
|
-
ze
|
27
|
-
zo
|
28
|
-
ja
|
29
|
-
ju
|
30
|
-
jo
|
31
|
-
ta
|
32
|
-
te
|
33
|
-
to
|
34
|
-
da
|
35
|
-
de
|
36
|
-
do
|
37
|
-
na
|
38
|
-
ni
|
39
|
-
nu
|
40
|
-
ne
|
41
|
-
'no'
|
42
|
-
ha
|
43
|
-
hi
|
44
|
-
he
|
45
|
-
ho
|
46
|
-
ba
|
47
|
-
bi
|
48
|
-
bu
|
49
|
-
be
|
50
|
-
bo
|
51
|
-
pa
|
52
|
-
pi
|
53
|
-
pu
|
54
|
-
pe
|
55
|
-
po
|
56
|
-
fu
|
57
|
-
ma
|
58
|
-
mi
|
59
|
-
mu
|
60
|
-
me
|
61
|
-
mo
|
62
|
-
ya
|
63
|
-
yu
|
64
|
-
yo
|
65
|
-
ra
|
66
|
-
ri
|
67
|
-
ru
|
68
|
-
re
|
69
|
-
ro
|
70
|
-
wa
|
71
|
-
wo
|
72
|
-
n
|
73
|
-
tsu
|
74
|
-
kya
|
75
|
-
kyu
|
76
|
-
kyo
|
77
|
-
gya
|
78
|
-
gyu
|
79
|
-
gyo
|
80
|
-
sha
|
81
|
-
shi
|
82
|
-
shu
|
83
|
-
sho
|
84
|
-
cha
|
85
|
-
chi
|
86
|
-
chu
|
87
|
-
cho
|
88
|
-
nya
|
89
|
-
nyu
|
90
|
-
nyo
|
91
|
-
hya
|
92
|
-
hyu
|
93
|
-
hyo
|
94
|
-
bya
|
95
|
-
byu
|
96
|
-
byo
|
97
|
-
pya
|
98
|
-
pyu
|
99
|
-
pyo
|
100
|
-
mya
|
101
|
-
myu
|
102
|
-
myo
|
103
|
-
rya
|
104
|
-
ryu
|
105
|
-
ryo
|
4
|
+
mapping: { Hiragana: Romaji }
|
5
|
+
あ: a
|
6
|
+
い: i
|
7
|
+
う: u
|
8
|
+
え: e
|
9
|
+
お: o
|
10
|
+
か: ka
|
11
|
+
き: ki
|
12
|
+
く: ku
|
13
|
+
け: ke
|
14
|
+
こ: ko
|
15
|
+
が: ga
|
16
|
+
ぎ: gi
|
17
|
+
ぐ: gu
|
18
|
+
げ: ge
|
19
|
+
ご: go
|
20
|
+
さ: sa
|
21
|
+
す: su
|
22
|
+
せ: se
|
23
|
+
そ: so
|
24
|
+
ざ: za
|
25
|
+
ず: zu
|
26
|
+
ぜ: ze
|
27
|
+
ぞ: zo
|
28
|
+
じゃ: ja
|
29
|
+
じゅ: ju
|
30
|
+
じょ: [jo, jyo]
|
31
|
+
た: ta
|
32
|
+
て: te
|
33
|
+
と: to
|
34
|
+
だ: da
|
35
|
+
で: de
|
36
|
+
ど: do
|
37
|
+
な: na
|
38
|
+
に: ni
|
39
|
+
ぬ: nu
|
40
|
+
ね: ne
|
41
|
+
の: 'no'
|
42
|
+
は: ha
|
43
|
+
ひ: hi
|
44
|
+
へ: he
|
45
|
+
ほ: ho
|
46
|
+
ば: ba
|
47
|
+
び: bi
|
48
|
+
ぶ: bu
|
49
|
+
べ: be
|
50
|
+
ぼ: bo
|
51
|
+
ぱ: pa
|
52
|
+
ぴ: pi
|
53
|
+
ぷ: pu
|
54
|
+
ぺ: pe
|
55
|
+
ぽ: po
|
56
|
+
ふ: fu
|
57
|
+
ま: ma
|
58
|
+
み: mi
|
59
|
+
む: mu
|
60
|
+
め: me
|
61
|
+
も: mo
|
62
|
+
や: ya
|
63
|
+
ゆ: yu
|
64
|
+
よ: yo
|
65
|
+
ら: ra
|
66
|
+
り: ri
|
67
|
+
る: ru
|
68
|
+
れ: re
|
69
|
+
ろ: ro
|
70
|
+
わ: wa
|
71
|
+
を: wo
|
72
|
+
ん: n
|
73
|
+
つ: tsu
|
74
|
+
きゃ: kya
|
75
|
+
きゅ: kyu
|
76
|
+
きょ: kyo
|
77
|
+
ぎゃ: gya
|
78
|
+
ぎゅ: gyu
|
79
|
+
ぎょ: gyo
|
80
|
+
しゃ: sha
|
81
|
+
し: shi
|
82
|
+
しゅ: shu
|
83
|
+
しょ: sho
|
84
|
+
ちゃ: cha
|
85
|
+
ち: chi
|
86
|
+
ちゅ: chu
|
87
|
+
ちょ: cho
|
88
|
+
にゃ: nya
|
89
|
+
にゅ: nyu
|
90
|
+
にょ: nyo
|
91
|
+
ひゃ: hya
|
92
|
+
ひゅ: hyu
|
93
|
+
ひょ: hyo
|
94
|
+
びゃ: bya
|
95
|
+
びゅ: byu
|
96
|
+
びょ: byo
|
97
|
+
ぴゃ: pya
|
98
|
+
ぴゅ: pyu
|
99
|
+
ぴょ: pyo
|
100
|
+
みゃ: mya
|
101
|
+
みゅ: myu
|
102
|
+
みょ: myo
|
103
|
+
りゃ: rya
|
104
|
+
りゅ: ryu
|
105
|
+
りょ: ryo
|
106
106
|
Hiragana Diacritics: # https://en.wikipedia.org/wiki/Hiragana
|
107
|
-
mapping: {
|
108
|
-
ga
|
109
|
-
gi
|
110
|
-
gu
|
111
|
-
ge
|
112
|
-
go
|
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
|
-
|
107
|
+
mapping: { Hiragana: Romaji }
|
108
|
+
が: ga
|
109
|
+
ぎ: gi
|
110
|
+
ぐ: gu
|
111
|
+
げ: ge
|
112
|
+
ご: go
|
113
|
+
ざ: za
|
114
|
+
じ: ji
|
115
|
+
ず: zu
|
116
|
+
ぜ: ze
|
117
|
+
ぞ: zo
|
118
|
+
だ: da
|
119
|
+
ぢ: ji
|
120
|
+
づ: zu
|
121
|
+
で: de
|
122
|
+
ど: do
|
123
|
+
ば: ba
|
124
|
+
び: bi
|
125
|
+
ぶ: bu
|
126
|
+
べ: be
|
127
|
+
ぼ: bo
|
128
|
+
ぱ: pa
|
129
|
+
ぴ: pi
|
130
|
+
ぷ: pu
|
131
|
+
ぺ: pe
|
132
|
+
ぽ: po
|
133
|
+
ゔ: vu # https://en.wiktionary.org/wiki/%E3%82%94
|
134
|
+
ぎゃ: gya
|
135
|
+
ぎゅ: gyu
|
136
|
+
ぎょ: gyo
|
137
|
+
じゃ: ja
|
138
|
+
じゅ: ju
|
139
|
+
じょ: jo
|
140
|
+
ぢゃ: ja
|
141
|
+
ぢゅ: ju
|
142
|
+
ぢょ: jo
|
143
|
+
びゃ: bya
|
144
|
+
びゅ: byu
|
145
|
+
びょ: byo
|
146
|
+
ぴゃ: pya
|
147
|
+
ぴゅ: pyu
|
148
|
+
ぴょ: pyo
|
149
|
+
|
data/cards/japanese-katakana.yml
CHANGED
@@ -1,367 +1,366 @@
|
|
1
1
|
--- # https://en.wikibooks.org/wiki/Japanese/Kana_chart
|
2
2
|
Japanese:
|
3
3
|
Katakana:
|
4
|
-
mapping: {
|
5
|
-
a
|
6
|
-
i
|
7
|
-
u
|
8
|
-
e
|
9
|
-
o
|
10
|
-
|
11
|
-
ka
|
12
|
-
ki
|
13
|
-
ku
|
14
|
-
ke
|
15
|
-
ko
|
16
|
-
ga
|
17
|
-
gi
|
18
|
-
gu
|
19
|
-
ge
|
20
|
-
go
|
21
|
-
sa
|
22
|
-
su
|
23
|
-
se
|
24
|
-
so
|
25
|
-
za
|
26
|
-
zu
|
27
|
-
ze
|
28
|
-
zo
|
29
|
-
ja
|
30
|
-
ji
|
31
|
-
ju
|
32
|
-
jo
|
33
|
-
ta
|
34
|
-
te
|
35
|
-
to
|
36
|
-
da
|
37
|
-
de
|
38
|
-
do
|
39
|
-
na
|
40
|
-
ni
|
41
|
-
nu
|
42
|
-
ne
|
43
|
-
'no'
|
44
|
-
ha
|
45
|
-
hi
|
46
|
-
he
|
47
|
-
ho
|
48
|
-
ba
|
49
|
-
bi
|
50
|
-
bu
|
51
|
-
be
|
52
|
-
bo
|
53
|
-
pa
|
54
|
-
pi
|
55
|
-
pu
|
56
|
-
pe
|
57
|
-
po
|
58
|
-
fu
|
59
|
-
ma
|
60
|
-
mi
|
61
|
-
mu
|
62
|
-
me
|
63
|
-
mo
|
64
|
-
ya
|
65
|
-
yu
|
66
|
-
yo
|
67
|
-
ra
|
68
|
-
ri
|
69
|
-
ru
|
70
|
-
re
|
71
|
-
ro
|
72
|
-
wa
|
73
|
-
wo
|
74
|
-
n
|
75
|
-
tsu
|
76
|
-
kya
|
77
|
-
kyu
|
78
|
-
kyo
|
79
|
-
gya
|
80
|
-
gyu
|
81
|
-
gyo
|
82
|
-
sha
|
83
|
-
shi
|
84
|
-
shu
|
85
|
-
sho
|
86
|
-
cha
|
87
|
-
chi
|
88
|
-
chu
|
89
|
-
cho
|
90
|
-
nya
|
91
|
-
nyu
|
92
|
-
nyo
|
93
|
-
bya
|
94
|
-
byu
|
95
|
-
byo
|
96
|
-
pya
|
97
|
-
pyu
|
98
|
-
pyo
|
99
|
-
mya
|
100
|
-
myu
|
101
|
-
myo
|
102
|
-
rya
|
103
|
-
ryu
|
104
|
-
ryo
|
4
|
+
mapping: { Katakana: Romaji }
|
5
|
+
ア: a
|
6
|
+
イ: i
|
7
|
+
ウ: u
|
8
|
+
エ: e
|
9
|
+
オ: o
|
10
|
+
ー: '-'
|
11
|
+
カ: ka
|
12
|
+
キ: ki
|
13
|
+
ク: ku
|
14
|
+
ケ: ke
|
15
|
+
コ: ko
|
16
|
+
ガ: ga
|
17
|
+
ギ: gi
|
18
|
+
グ: gu
|
19
|
+
ゲ: ge
|
20
|
+
ゴ: go
|
21
|
+
サ: sa
|
22
|
+
ス: su
|
23
|
+
セ: se
|
24
|
+
ソ: so
|
25
|
+
ザ: za
|
26
|
+
ズ: zu
|
27
|
+
ゼ: ze
|
28
|
+
ゾ: zo
|
29
|
+
ジャ: ja
|
30
|
+
ジ: ji
|
31
|
+
ジュ: ju
|
32
|
+
ジョ: jo
|
33
|
+
タ: ta
|
34
|
+
テ: te
|
35
|
+
ト: to
|
36
|
+
ダ: da
|
37
|
+
デ: de
|
38
|
+
ド: do
|
39
|
+
ナ: na
|
40
|
+
ニ: ni
|
41
|
+
ヌ: nu
|
42
|
+
ネ: ne
|
43
|
+
ノ: 'no'
|
44
|
+
ハ: ha
|
45
|
+
ヒ: hi
|
46
|
+
ヘ: he
|
47
|
+
ホ: ho
|
48
|
+
バ: ba
|
49
|
+
ビ: bi
|
50
|
+
ブ: bu
|
51
|
+
ベ: be
|
52
|
+
ボ: bo
|
53
|
+
パ: pa
|
54
|
+
ピ: pi
|
55
|
+
プ: pu
|
56
|
+
ペ: pe
|
57
|
+
ポ: po
|
58
|
+
フ: fu
|
59
|
+
マ: ma
|
60
|
+
ミ: mi
|
61
|
+
ム: mu
|
62
|
+
メ: me
|
63
|
+
モ: mo
|
64
|
+
ヤ: ya
|
65
|
+
ユ: yu
|
66
|
+
ヨ: yo
|
67
|
+
ラ: ra
|
68
|
+
リ: ri
|
69
|
+
ル: ru
|
70
|
+
レ: re
|
71
|
+
ロ: ro
|
72
|
+
ワ: wa
|
73
|
+
ヲ: wo
|
74
|
+
ン: n
|
75
|
+
ツ: tsu
|
76
|
+
キャ: kya
|
77
|
+
キュ: kyu
|
78
|
+
キョ: kyo
|
79
|
+
ギャ: gya
|
80
|
+
ギュ: gyu
|
81
|
+
ギョ: gyo
|
82
|
+
シャ: sha
|
83
|
+
シ: shi
|
84
|
+
シュ: shu
|
85
|
+
ショ: sho
|
86
|
+
チャ: cha
|
87
|
+
チ: chi
|
88
|
+
チュ: chu
|
89
|
+
チョ: cho
|
90
|
+
ニャ: nya
|
91
|
+
ニュ: nyu
|
92
|
+
ニョ: nyo
|
93
|
+
ビャ: bya
|
94
|
+
ビュ: byu
|
95
|
+
ビョ: byo
|
96
|
+
ピャ: pya
|
97
|
+
ピュ: pyu
|
98
|
+
ピョ: pyo
|
99
|
+
ミャ: mya
|
100
|
+
ミュ: myu
|
101
|
+
ミョ: myo
|
102
|
+
リャ: rya
|
103
|
+
リュ: ryu
|
104
|
+
リョ: ryo
|
105
105
|
Katakana Diacritics: # https://en.wikipedia.org/wiki/Katakana
|
106
|
-
mapping: {
|
107
|
-
ga
|
108
|
-
gi
|
109
|
-
gu
|
110
|
-
ge
|
111
|
-
go
|
112
|
-
gya
|
113
|
-
gyu
|
114
|
-
gyo
|
115
|
-
za
|
116
|
-
ji
|
117
|
-
zu
|
118
|
-
ze
|
119
|
-
zo
|
120
|
-
ja
|
121
|
-
ju
|
122
|
-
jo
|
123
|
-
da
|
124
|
-
ji
|
125
|
-
zu
|
126
|
-
de
|
127
|
-
do
|
128
|
-
ja
|
129
|
-
ju
|
130
|
-
jo
|
131
|
-
ba
|
132
|
-
bi
|
133
|
-
bu
|
134
|
-
be
|
135
|
-
bo
|
136
|
-
bya
|
137
|
-
byu
|
138
|
-
byo
|
139
|
-
pa
|
140
|
-
pi
|
141
|
-
pu
|
142
|
-
pe
|
143
|
-
po
|
144
|
-
pya
|
145
|
-
pyu
|
146
|
-
pyo
|
106
|
+
mapping: { Katakana: Romaji }
|
107
|
+
ガ: ga
|
108
|
+
ギ: gi
|
109
|
+
グ: gu
|
110
|
+
ゲ: ge
|
111
|
+
ゴ: go
|
112
|
+
ギャ: gya
|
113
|
+
ギュ: gyu
|
114
|
+
ギョ: gyo
|
115
|
+
ザ: za
|
116
|
+
ジ: ji
|
117
|
+
ズ: zu
|
118
|
+
ゼ: ze
|
119
|
+
ゾ: zo
|
120
|
+
ジャ: ja
|
121
|
+
ジュ: ju
|
122
|
+
ジョ: jo
|
123
|
+
ダ: da
|
124
|
+
ヂ: ji
|
125
|
+
ヅ: zu
|
126
|
+
デ: de
|
127
|
+
ド: do
|
128
|
+
ヂャ: ja
|
129
|
+
ヂュ: ju
|
130
|
+
ヂョ: jo
|
131
|
+
バ: ba
|
132
|
+
ビ: bi
|
133
|
+
ブ: bu
|
134
|
+
ベ: be
|
135
|
+
ボ: bo
|
136
|
+
ビャ: bya
|
137
|
+
ビュ: byu
|
138
|
+
ビョ: byo
|
139
|
+
パ: pa
|
140
|
+
ピ: pi
|
141
|
+
プ: pu
|
142
|
+
ペ: pe
|
143
|
+
ポ: po
|
144
|
+
ピャ: pya
|
145
|
+
ピュ: pyu
|
146
|
+
ピョ: pyo
|
147
147
|
Katakana Keyboard Mappings:
|
148
|
-
mapping: {
|
149
|
-
a
|
150
|
-
i
|
151
|
-
u
|
152
|
-
e
|
153
|
-
o
|
154
|
-
|
155
|
-
xa
|
156
|
-
xi
|
157
|
-
xu
|
158
|
-
xe
|
159
|
-
xo
|
160
|
-
ka
|
161
|
-
ki
|
162
|
-
ku
|
163
|
-
ke
|
164
|
-
ko
|
165
|
-
ca
|
166
|
-
cu
|
167
|
-
co
|
168
|
-
ga
|
169
|
-
gi
|
170
|
-
gu
|
171
|
-
ge
|
172
|
-
go
|
173
|
-
sa
|
174
|
-
si
|
175
|
-
su
|
176
|
-
se
|
177
|
-
so
|
178
|
-
za
|
179
|
-
zi
|
180
|
-
zu
|
181
|
-
ze
|
182
|
-
zo
|
183
|
-
ja
|
184
|
-
ji
|
185
|
-
ju
|
186
|
-
je
|
187
|
-
jo
|
188
|
-
ta
|
189
|
-
ti
|
190
|
-
tu
|
191
|
-
te
|
192
|
-
to
|
193
|
-
da
|
194
|
-
di
|
195
|
-
du
|
196
|
-
de
|
197
|
-
do
|
198
|
-
na
|
199
|
-
ni
|
200
|
-
nu
|
201
|
-
ne
|
202
|
-
'no'
|
203
|
-
ha
|
204
|
-
hi
|
205
|
-
hu
|
206
|
-
he
|
207
|
-
ho
|
208
|
-
ba
|
209
|
-
bi
|
210
|
-
bu
|
211
|
-
be
|
212
|
-
bo
|
213
|
-
pa
|
214
|
-
pi
|
215
|
-
pu
|
216
|
-
pe
|
217
|
-
po
|
218
|
-
va
|
219
|
-
vi
|
220
|
-
vu
|
221
|
-
ve
|
222
|
-
vo
|
223
|
-
fa
|
224
|
-
fi
|
225
|
-
fu
|
226
|
-
fe
|
227
|
-
fo
|
228
|
-
ma
|
229
|
-
mi
|
230
|
-
mu
|
231
|
-
me
|
232
|
-
mo
|
233
|
-
ya
|
234
|
-
yi
|
235
|
-
yu
|
236
|
-
ye
|
237
|
-
yo
|
238
|
-
ra
|
239
|
-
ri
|
240
|
-
ru
|
241
|
-
re
|
242
|
-
ro
|
243
|
-
la
|
244
|
-
li
|
245
|
-
lu
|
246
|
-
le
|
247
|
-
lo
|
248
|
-
wa
|
249
|
-
wi
|
250
|
-
wu
|
251
|
-
we
|
252
|
-
wo
|
253
|
-
nn
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
lyo: リョ
|
148
|
+
mapping: { Katakana: Romaji }
|
149
|
+
ア: a
|
150
|
+
イ: i
|
151
|
+
ウ: u
|
152
|
+
エ: e
|
153
|
+
オ: o
|
154
|
+
ー: '-'
|
155
|
+
ァ: xa
|
156
|
+
ィ: xi
|
157
|
+
ゥ: xu
|
158
|
+
ェ: xe
|
159
|
+
ォ: xo
|
160
|
+
カ: ka
|
161
|
+
キ: ki
|
162
|
+
ク: ku
|
163
|
+
ケ: ke
|
164
|
+
コ: ko
|
165
|
+
カ: ca
|
166
|
+
ク: cu
|
167
|
+
コ: co
|
168
|
+
ガ: ga
|
169
|
+
ギ: gi
|
170
|
+
グ: gu
|
171
|
+
ゲ: ge
|
172
|
+
ゴ: go
|
173
|
+
サ: sa
|
174
|
+
シ: si
|
175
|
+
ス: su
|
176
|
+
セ: se
|
177
|
+
ソ: so
|
178
|
+
ザ: za
|
179
|
+
ジ: zi
|
180
|
+
ズ: zu
|
181
|
+
ゼ: ze
|
182
|
+
ゾ: zo
|
183
|
+
ジャ: ja
|
184
|
+
ジ: ji
|
185
|
+
ジュ: ju
|
186
|
+
ジェ: je
|
187
|
+
ジョ: jo
|
188
|
+
タ: ta
|
189
|
+
チ: ti
|
190
|
+
ツ: tu
|
191
|
+
テ: te
|
192
|
+
ト: to
|
193
|
+
ダ: da
|
194
|
+
ヂ: di
|
195
|
+
ヅ: du
|
196
|
+
デ: de
|
197
|
+
ド: do
|
198
|
+
ナ: na
|
199
|
+
ニ: ni
|
200
|
+
ヌ: nu
|
201
|
+
ネ: ne
|
202
|
+
ノ: 'no'
|
203
|
+
ハ: ha
|
204
|
+
ヒ: hi
|
205
|
+
フ: hu
|
206
|
+
ヘ: he
|
207
|
+
ホ: ho
|
208
|
+
バ: ba
|
209
|
+
ビ: bi
|
210
|
+
ブ: bu
|
211
|
+
ベ: be
|
212
|
+
ボ: bo
|
213
|
+
パ: pa
|
214
|
+
ピ: pi
|
215
|
+
プ: pu
|
216
|
+
ペ: pe
|
217
|
+
ポ: po
|
218
|
+
ヴァ: va
|
219
|
+
ヴィ: vi
|
220
|
+
ヴ: vu
|
221
|
+
ヴェ: ve
|
222
|
+
ヴォ: vo
|
223
|
+
ファ: fa
|
224
|
+
フィ: fi
|
225
|
+
フ: fu
|
226
|
+
フェ: fe
|
227
|
+
フォ: fo
|
228
|
+
マ: ma
|
229
|
+
ミ: mi
|
230
|
+
ム: mu
|
231
|
+
メ: me
|
232
|
+
モ: mo
|
233
|
+
ヤ: ya
|
234
|
+
イ: yi
|
235
|
+
ユ: yu
|
236
|
+
イェ: ye
|
237
|
+
ヨ: yo
|
238
|
+
ラ: ra
|
239
|
+
リ: ri
|
240
|
+
ル: ru
|
241
|
+
レ: re
|
242
|
+
ロ: ro
|
243
|
+
ラ: la
|
244
|
+
リ: li
|
245
|
+
ル: lu
|
246
|
+
レ: le
|
247
|
+
ロ: lo
|
248
|
+
ワ: wa
|
249
|
+
ウィ: wi
|
250
|
+
ウ: wu
|
251
|
+
ウェ: we
|
252
|
+
ヲ: wo
|
253
|
+
ン: [nn, n]
|
254
|
+
ツ: tsu
|
255
|
+
ヵ: xka
|
256
|
+
ヶ: xke
|
257
|
+
ヮ: xwa
|
258
|
+
ッ: xtsu
|
259
|
+
ャ: xya
|
260
|
+
ュ: xyu
|
261
|
+
ョ: xyo
|
262
|
+
キャ: kya
|
263
|
+
キィ: kyi
|
264
|
+
キュ: kyu
|
265
|
+
キェ: kye
|
266
|
+
キョ: kyo
|
267
|
+
ギャ: gya
|
268
|
+
ギィ: gyi
|
269
|
+
ギュ: gyu
|
270
|
+
ギェ: gye
|
271
|
+
ギョ: gyo
|
272
|
+
シャ: sya
|
273
|
+
シィ: syi
|
274
|
+
シュ: syu
|
275
|
+
シェ: sye
|
276
|
+
ショ: syo
|
277
|
+
シャ: sha
|
278
|
+
シ: shi
|
279
|
+
シュ: shu
|
280
|
+
シェ: she
|
281
|
+
ショ: sho
|
282
|
+
ジャ: zya
|
283
|
+
ジィ: zyi
|
284
|
+
ジュ: zyu
|
285
|
+
ジェ: zye
|
286
|
+
ジョ: zyo
|
287
|
+
ジャ: jya
|
288
|
+
ジィ: jyi
|
289
|
+
ジュ: jyu
|
290
|
+
ジェ: jye
|
291
|
+
ジョ: jyo
|
292
|
+
チャ: tya
|
293
|
+
チィ: tyi
|
294
|
+
チュ: tyu
|
295
|
+
チェ: tye
|
296
|
+
チョ: tyo
|
297
|
+
トァ: twa
|
298
|
+
トィ: twi
|
299
|
+
トゥ: twu
|
300
|
+
トェ: twe
|
301
|
+
トォ: two
|
302
|
+
ドァ: dwa
|
303
|
+
ドィ: dwi
|
304
|
+
ドゥ: dwu
|
305
|
+
ドェ: dwe
|
306
|
+
ドォ: dwo
|
307
|
+
チャ: cya
|
308
|
+
チィ: cyi
|
309
|
+
チュ: cyu
|
310
|
+
チェ: cye
|
311
|
+
チョ: cyo
|
312
|
+
チャ: cha
|
313
|
+
チ: chi
|
314
|
+
チュ: chu
|
315
|
+
チェ: che
|
316
|
+
チョ: cho
|
317
|
+
テャ: tha
|
318
|
+
ティ: thi
|
319
|
+
テュ: thu
|
320
|
+
テェ: the
|
321
|
+
テョ: tho
|
322
|
+
ヂャ: dya
|
323
|
+
ヂィ: dyi
|
324
|
+
ヂュ: dyu
|
325
|
+
ヂェ: dye
|
326
|
+
ヂョ: dyo
|
327
|
+
デャ: dha
|
328
|
+
ディ: dhi
|
329
|
+
デュ: dhu
|
330
|
+
デェ: dhe
|
331
|
+
デョ: dho
|
332
|
+
ニャ: nya
|
333
|
+
ニィ: nyi
|
334
|
+
ニュ: nyu
|
335
|
+
ニェ: nye
|
336
|
+
ニョ: nyo
|
337
|
+
ヒャ: hya
|
338
|
+
ヒィ: hyi
|
339
|
+
ヒュ: hyu
|
340
|
+
ヒェ: hye
|
341
|
+
ヒョ: hyo
|
342
|
+
ビャ: bya
|
343
|
+
ビィ: byi
|
344
|
+
ビュ: byu
|
345
|
+
ビェ: bye
|
346
|
+
ビョ: byo
|
347
|
+
ピャ: pya
|
348
|
+
ピィ: pyi
|
349
|
+
ピュ: pyu
|
350
|
+
ピェ: pye
|
351
|
+
ピョ: pyo
|
352
|
+
ミャ: mya
|
353
|
+
ミィ: myi
|
354
|
+
ミュ: myu
|
355
|
+
ミェ: mye
|
356
|
+
ミョ: myo
|
357
|
+
リャ: rya
|
358
|
+
リィ: ryi
|
359
|
+
リュ: ryu
|
360
|
+
リェ: rye
|
361
|
+
リョ: ryo
|
362
|
+
リャ: lya
|
363
|
+
リィ: lyi
|
364
|
+
リュ: lyu
|
365
|
+
リェ: lye
|
366
|
+
リョ: lyo
|
@@ -26,7 +26,7 @@ module LanguageCards
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def struct_data
|
29
|
-
Struct.new(:
|
29
|
+
Struct.new(:card_set, :mode) do
|
30
30
|
def input
|
31
31
|
@input
|
32
32
|
end
|
@@ -36,7 +36,7 @@ module LanguageCards
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def card
|
39
|
-
@card ||=
|
39
|
+
@card ||= card_set.sample.current
|
40
40
|
end
|
41
41
|
|
42
42
|
def display
|
@@ -60,12 +60,12 @@ module LanguageCards
|
|
60
60
|
|
61
61
|
def incorrect_msg
|
62
62
|
output = "#{I18n.t('Game.Incorrect')} #{input} != #{display}"
|
63
|
-
output << " #{I18n.t('Game.Its')} #{expected}" if mode == :translate
|
63
|
+
output << " #{I18n.t('Game.Its')} #{expected.join(', ')}" if mode == :translate
|
64
64
|
output
|
65
65
|
end
|
66
66
|
|
67
67
|
def valid?
|
68
|
-
|
68
|
+
card_set.match? input
|
69
69
|
end
|
70
70
|
end
|
71
71
|
end
|