language_cards 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/cards/japanese-hiragana.yml +126 -81
- data/cards/japanese-katakana.yml +161 -1
- data/lib/language_cards/user_interface.rb +5 -0
- data/lib/language_cards/version.rb +1 -1
- data/locales/en.yml +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 63589a48bd2f0c2326af779dcf874f2ccef9f1a7
|
4
|
+
data.tar.gz: 5cc7ad11580b6c00b5419479d140f04dd9ad9e46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecad707c3a93bca4f1185838436ee397d7118dc86d876d4ba539dc46c3074c1891c8a3442944c2f91d8eaa675120369b5f32896f6faaa73964acd4ffed258f86
|
7
|
+
data.tar.gz: c847ce04ab37c5f9a5888288aa0526c845c7d8b76683bc9312ca54c53e5214fd8bef451e75ae3c2c5ca14806dfa7e013e990fae0fcb567a4ace0cf33e04b2468
|
data/cards/japanese-hiragana.yml
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
---
|
1
|
+
--- # https://en.wikibooks.org/wiki/Japanese/Kana_chart
|
2
2
|
Japanese:
|
3
3
|
Hiragana:
|
4
4
|
mapping:
|
@@ -10,111 +10,156 @@ Japanese:
|
|
10
10
|
index:
|
11
11
|
- :v
|
12
12
|
- :v
|
13
|
-
a: あ
|
14
|
-
i: い
|
15
|
-
u: う
|
16
|
-
e: え
|
17
|
-
o: お
|
18
|
-
ka: か
|
19
|
-
ki: き
|
20
|
-
ku: く
|
21
|
-
ke: け
|
22
|
-
ko: こ
|
13
|
+
a: あ # ✓
|
14
|
+
i: い # ✓
|
15
|
+
u: う # ✓
|
16
|
+
e: え # ✓
|
17
|
+
o: お # ✓
|
18
|
+
ka: か # ✓
|
19
|
+
ki: き # ✓
|
20
|
+
ku: く # ✓
|
21
|
+
ke: け # ✓
|
22
|
+
ko: こ # ✓
|
23
|
+
ga: が # ✓
|
24
|
+
gi: ぎ # ✓
|
25
|
+
gu: ぐ # ✓
|
26
|
+
ge: げ # ✓
|
27
|
+
go: ご # ✓
|
28
|
+
sa: さ # ✓
|
29
|
+
su: す # ✓
|
30
|
+
se: せ # ✓
|
31
|
+
so: そ # ✓
|
32
|
+
za: ざ # ✓
|
33
|
+
zu: ず # ✓
|
34
|
+
ze: ぜ # ✓
|
35
|
+
zo: ぞ # ✓
|
36
|
+
ja: じゃ # ✓
|
37
|
+
ju: じゅ # ✓
|
38
|
+
jo: じょ # ✓
|
39
|
+
ta: た # ✓
|
40
|
+
te: て # ✓
|
41
|
+
to: と # ✓
|
42
|
+
da: だ # ✓
|
43
|
+
de: で # ✓
|
44
|
+
do: ど # ✓
|
45
|
+
na: な # ✓
|
46
|
+
ni: に # ✓
|
47
|
+
nu: ぬ # ✓
|
48
|
+
ne: ね # ✓
|
49
|
+
'no': の # ✓
|
50
|
+
ha: は # ✓
|
51
|
+
hi: ひ # ✓
|
52
|
+
he: へ # ✓
|
53
|
+
ho: ほ # ✓
|
54
|
+
ba: ば # ✓
|
55
|
+
bi: び # ✓
|
56
|
+
bu: ぶ # ✓
|
57
|
+
be: べ # ✓
|
58
|
+
bo: ぼ # ✓
|
59
|
+
pa: ぱ # ✓
|
60
|
+
pi: ぴ # ✓
|
61
|
+
pu: ぷ # ✓
|
62
|
+
pe: ぺ # ✓
|
63
|
+
po: ぽ # ✓
|
64
|
+
fu: ふ # ✓
|
65
|
+
ma: ま # ✓
|
66
|
+
mi: み # ✓
|
67
|
+
mu: む # ✓
|
68
|
+
me: め # ✓
|
69
|
+
mo: も # ✓
|
70
|
+
ya: や # ✓
|
71
|
+
yu: ゆ # ✓
|
72
|
+
yo: よ # ✓
|
73
|
+
ra: ら # ✓
|
74
|
+
ri: り # ✓
|
75
|
+
ru: る # ✓
|
76
|
+
re: れ # ✓
|
77
|
+
ro: ろ # ✓
|
78
|
+
wa: わ # ✓
|
79
|
+
wo: を # ✓
|
80
|
+
n: ん # ✓
|
81
|
+
tsu: つ # ✓
|
82
|
+
kya: きゃ # ✓
|
83
|
+
kyu: きゅ # ✓
|
84
|
+
kyo: きょ # ✓
|
85
|
+
gya: ぎゃ # ✓
|
86
|
+
gyu: ぎゅ # ✓
|
87
|
+
gyo: ぎょ # ✓
|
88
|
+
sha: しゃ # ✓
|
89
|
+
shi: し # ✓
|
90
|
+
shu: しゅ # ✓
|
91
|
+
sho: しょ # ✓
|
92
|
+
cha: ちゃ # ✓
|
93
|
+
chi: ち # ✓
|
94
|
+
chu: ちゅ # ✓
|
95
|
+
cho: ちょ # ✓
|
96
|
+
nya: にゃ # ✓
|
97
|
+
nyu: にゅ # ✓
|
98
|
+
nyo: にょ # ✓
|
99
|
+
hya: ひゃ # ✓
|
100
|
+
hyu: ひゅ # ✓
|
101
|
+
hyo: ひょ # ✓
|
102
|
+
bya: びゃ # ✓
|
103
|
+
byu: びゅ # ✓
|
104
|
+
byo: びょ # ✓
|
105
|
+
pya: ぴゃ # ✓
|
106
|
+
pyu: ぴゅ # ✓
|
107
|
+
pyo: ぴょ # ✓
|
108
|
+
mya: みゃ # ✓
|
109
|
+
myu: みゅ # ✓
|
110
|
+
myo: みょ # ✓
|
111
|
+
rya: りゃ # ✓
|
112
|
+
ryu: りゅ # ✓
|
113
|
+
ryo: りょ # ✓
|
114
|
+
Hiragana Diacritics: # https://en.wikipedia.org/wiki/Hiragana
|
115
|
+
mapping:
|
116
|
+
- Romaji: Hiragana
|
117
|
+
index:
|
118
|
+
- :k
|
119
|
+
- :v
|
120
|
+
- Hiragana: Hiragana
|
121
|
+
index:
|
122
|
+
- :v
|
123
|
+
- :v
|
23
124
|
ga: が
|
24
125
|
gi: ぎ
|
25
126
|
gu: ぐ
|
26
127
|
ge: げ
|
27
128
|
go: ご
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
so: そ
|
129
|
+
gya: ぎゃ
|
130
|
+
gyu: ぎゅ
|
131
|
+
gyo: ぎょ
|
32
132
|
za: ざ
|
133
|
+
ji: じ
|
33
134
|
zu: ず
|
34
135
|
ze: ぜ
|
35
136
|
zo: ぞ
|
36
137
|
ja: じゃ
|
37
|
-
ji: じ
|
38
138
|
ju: じゅ
|
39
139
|
jo: じょ
|
40
|
-
ta: た
|
41
|
-
te: て
|
42
|
-
to: と
|
43
140
|
da: だ
|
44
|
-
|
45
|
-
|
141
|
+
ji: ぢ
|
142
|
+
zu: づ
|
46
143
|
de: で
|
47
144
|
do: ど
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
ne: ね
|
52
|
-
'no': の
|
53
|
-
ha: は
|
54
|
-
hi: ひ
|
55
|
-
he: へ
|
56
|
-
ho: ほ
|
145
|
+
ja: ぢゃ
|
146
|
+
ju: ぢゅ
|
147
|
+
jo: ぢょ
|
57
148
|
ba: ば
|
58
149
|
bi: び
|
59
150
|
bu: ぶ
|
60
151
|
be: べ
|
61
152
|
bo: ぼ
|
153
|
+
bya: びゃ
|
154
|
+
byu: びゅ
|
155
|
+
byo: びょ
|
62
156
|
pa: ぱ
|
63
157
|
pi: ぴ
|
64
158
|
pu: ぷ
|
65
159
|
pe: ぺ
|
66
160
|
po: ぽ
|
67
|
-
fu: ふ
|
68
|
-
ma: ま
|
69
|
-
mi: み
|
70
|
-
mu: む
|
71
|
-
me: め
|
72
|
-
mo: も
|
73
|
-
ya: や
|
74
|
-
yu: ゆ
|
75
|
-
yo: よ
|
76
|
-
ra: ら
|
77
|
-
ri: り
|
78
|
-
ru: る
|
79
|
-
re: れ
|
80
|
-
ro: ろ
|
81
|
-
wa: わ
|
82
|
-
wo: を
|
83
|
-
n: ん
|
84
|
-
vu: ゔ
|
85
|
-
tsu: つ
|
86
|
-
kya: きゃ
|
87
|
-
kyu: きゅ
|
88
|
-
kyo: きょ
|
89
|
-
gya: ぎゃ
|
90
|
-
gyu: ぎゅ
|
91
|
-
gyo: ぎょ
|
92
|
-
sha: しゃ
|
93
|
-
shi: し
|
94
|
-
shu: しゅ
|
95
|
-
sho: しょ
|
96
|
-
cha: ちゃ
|
97
|
-
chi: ち
|
98
|
-
chu: ちゅ
|
99
|
-
cho: ちょ
|
100
|
-
dya: ぢゃ
|
101
|
-
dyi: ぢゅ
|
102
|
-
dyu: ぢょ
|
103
|
-
nya: にゃ
|
104
|
-
nyu: にゅ
|
105
|
-
nyo: にょ
|
106
|
-
hya: ひゃ
|
107
|
-
hyu: ひゅ
|
108
|
-
hyo: ひょ
|
109
|
-
bya: びゃ
|
110
|
-
byu: びゅ
|
111
|
-
byo: びょ
|
112
161
|
pya: ぴゃ
|
113
162
|
pyu: ぴゅ
|
114
163
|
pyo: ぴょ
|
115
|
-
|
116
|
-
|
117
|
-
myo: みょ
|
118
|
-
rya: りゃ
|
119
|
-
ryu: りゅ
|
120
|
-
ryo: りょ
|
164
|
+
vu: ゔ
|
165
|
+
u: ゔ
|
data/cards/japanese-katakana.yml
CHANGED
@@ -1,6 +1,166 @@
|
|
1
|
-
---
|
1
|
+
--- # https://en.wikibooks.org/wiki/Japanese/Kana_chart
|
2
2
|
Japanese:
|
3
3
|
Katakana:
|
4
|
+
mapping:
|
5
|
+
- Romaji: Katakana
|
6
|
+
index:
|
7
|
+
- :k
|
8
|
+
- :v
|
9
|
+
- Katakana: Katakana
|
10
|
+
index:
|
11
|
+
- :v
|
12
|
+
- :v
|
13
|
+
a: ア # ✓
|
14
|
+
i: イ # ✓
|
15
|
+
u: ウ # ✓
|
16
|
+
e: エ # ✓
|
17
|
+
o: オ # ✓
|
18
|
+
"-": ー # ✓
|
19
|
+
ka: カ # ✓
|
20
|
+
ki: キ # ✓
|
21
|
+
ku: ク # ✓
|
22
|
+
ke: ケ # ✓
|
23
|
+
ko: コ # ✓
|
24
|
+
ga: ガ # ✓
|
25
|
+
gi: ギ # ✓
|
26
|
+
gu: グ # ✓
|
27
|
+
ge: ゲ # ✓
|
28
|
+
go: ゴ # ✓
|
29
|
+
sa: サ # ✓
|
30
|
+
su: ス # ✓
|
31
|
+
se: セ # ✓
|
32
|
+
so: ソ # ✓
|
33
|
+
za: ザ # ✓
|
34
|
+
zu: ズ # ✓
|
35
|
+
ze: ゼ # ✓
|
36
|
+
zo: ゾ # ✓
|
37
|
+
ja: ジャ # ✓
|
38
|
+
ji: ジ # ✓
|
39
|
+
ju: ジュ # ✓
|
40
|
+
jo: ジョ # ✓
|
41
|
+
ta: タ # ✓
|
42
|
+
te: テ # ✓
|
43
|
+
to: ト # ✓
|
44
|
+
da: ダ # ✓
|
45
|
+
de: デ # ✓
|
46
|
+
do: ド # ✓
|
47
|
+
na: ナ # ✓
|
48
|
+
ni: ニ # ✓
|
49
|
+
nu: ヌ # ✓
|
50
|
+
ne: ネ # ✓
|
51
|
+
'no': ノ # ✓
|
52
|
+
ha: ハ # ✓
|
53
|
+
hi: ヒ # ✓
|
54
|
+
he: ヘ # ✓
|
55
|
+
ho: ホ # ✓
|
56
|
+
ba: バ # ✓
|
57
|
+
bi: ビ # ✓
|
58
|
+
bu: ブ # ✓
|
59
|
+
be: ベ # ✓
|
60
|
+
bo: ボ # ✓
|
61
|
+
pa: パ # ✓
|
62
|
+
pi: ピ # ✓
|
63
|
+
pu: プ # ✓
|
64
|
+
pe: ペ # ✓
|
65
|
+
po: ポ # ✓
|
66
|
+
fu: フ # ✓
|
67
|
+
ma: マ # ✓
|
68
|
+
mi: ミ # ✓
|
69
|
+
mu: ム # ✓
|
70
|
+
me: メ # ✓
|
71
|
+
mo: モ # ✓
|
72
|
+
ya: ヤ # ✓
|
73
|
+
yu: ユ # ✓
|
74
|
+
yo: ヨ # ✓
|
75
|
+
ra: ラ # ✓
|
76
|
+
ri: リ # ✓
|
77
|
+
ru: ル # ✓
|
78
|
+
re: レ # ✓
|
79
|
+
ro: ロ # ✓
|
80
|
+
wa: ワ # ✓
|
81
|
+
wo: ヲ # ✓
|
82
|
+
n: ン # ✓
|
83
|
+
tsu: ツ # ✓
|
84
|
+
kya: キャ # ✓
|
85
|
+
kyu: キュ # ✓
|
86
|
+
kyo: キョ # ✓
|
87
|
+
gya: ギャ # ✓
|
88
|
+
gyu: ギュ # ✓
|
89
|
+
gyo: ギョ # ✓
|
90
|
+
sha: シャ # ✓
|
91
|
+
shi: シ # ✓
|
92
|
+
shu: シュ # ✓
|
93
|
+
sho: ショ # ✓
|
94
|
+
cha: チャ # ✓
|
95
|
+
chi: チ # ✓
|
96
|
+
chu: チュ # ✓
|
97
|
+
cho: チョ # ✓
|
98
|
+
nya: ニャ # ✓
|
99
|
+
nyu: ニュ # ✓
|
100
|
+
nyo: ニョ # ✓
|
101
|
+
bya: ビャ # ✓
|
102
|
+
byu: ビュ # ✓
|
103
|
+
byo: ビョ # ✓
|
104
|
+
pya: ピャ # ✓
|
105
|
+
pyu: ピュ # ✓
|
106
|
+
pyo: ピョ # ✓
|
107
|
+
mya: ミャ # ✓
|
108
|
+
myu: ミュ # ✓
|
109
|
+
myo: ミョ # ✓
|
110
|
+
rya: リャ # ✓
|
111
|
+
ryu: リュ # ✓
|
112
|
+
ryo: リョ # ✓
|
113
|
+
Katakana Diacritics: # https://en.wikipedia.org/wiki/Katakana
|
114
|
+
mapping:
|
115
|
+
- Romaji: Katakana
|
116
|
+
index:
|
117
|
+
- :k
|
118
|
+
- :v
|
119
|
+
- Katakana: Katakana
|
120
|
+
index:
|
121
|
+
- :v
|
122
|
+
- :v
|
123
|
+
ga: ガ
|
124
|
+
gi: ギ
|
125
|
+
gu: グ
|
126
|
+
ge: ゲ
|
127
|
+
go: ゴ
|
128
|
+
gya: ギャ
|
129
|
+
gyu: ギュ
|
130
|
+
gyo: ギョ
|
131
|
+
za: ザ
|
132
|
+
ji: ジ
|
133
|
+
zu: ズ
|
134
|
+
ze: ゼ
|
135
|
+
zo: ゾ
|
136
|
+
ja: ジャ
|
137
|
+
ju: ジュ
|
138
|
+
jo: ジョ
|
139
|
+
da: ダ
|
140
|
+
ji: ヂ
|
141
|
+
zu: ヅ
|
142
|
+
de: デ
|
143
|
+
do: ド
|
144
|
+
ja: ヂャ
|
145
|
+
ju: ヂュ
|
146
|
+
jo: ヂョ
|
147
|
+
ba: バ
|
148
|
+
bi: ビ
|
149
|
+
bu: ブ
|
150
|
+
be: ベ
|
151
|
+
bo: ボ
|
152
|
+
bya: ビャ
|
153
|
+
byu: ビュ
|
154
|
+
byo: ビョ
|
155
|
+
pa: パ
|
156
|
+
pi: ピ
|
157
|
+
pu: プ
|
158
|
+
pe: ペ
|
159
|
+
po: ポ
|
160
|
+
pya: ピャ
|
161
|
+
pyu: ピュ
|
162
|
+
pyo: ピョ
|
163
|
+
Katakana Keyboard Mappings:
|
4
164
|
mapping:
|
5
165
|
- Romaji: Katakana
|
6
166
|
index:
|
@@ -5,6 +5,7 @@ module LanguageCards
|
|
5
5
|
def initialize
|
6
6
|
@last = nil
|
7
7
|
@mode = [:translate, :typing].cycle
|
8
|
+
@title = ""
|
8
9
|
end
|
9
10
|
|
10
11
|
def main_menu(courses:)
|
@@ -33,8 +34,11 @@ MAINMENU
|
|
33
34
|
score = "#{I18n.t 'Game.ScoreMenu.Score'}: #{correct.to_i} #{I18n.t 'Game.ScoreMenu.OutOf'} #{correct.to_i + incorrect.to_i}"
|
34
35
|
timer = @timer.time? ? (I18n.t('Timer.Timer') + ": " + @timer.ha) : ""
|
35
36
|
timer = timer + @timer.h.rjust(SUBMENUWIDTH - timer.length)
|
37
|
+
title = @title.to_s
|
36
38
|
<<-SCOREMENU
|
37
39
|
#{'~' * SUBMENUWIDTH}
|
40
|
+
#{title.rjust(SUBMENUWIDTH/2+title.length/2)}
|
41
|
+
#{'~' * SUBMENUWIDTH}
|
38
42
|
#{timer}
|
39
43
|
#{'~' * SUBMENUWIDTH}
|
40
44
|
#{score + I18n.t('Menu.Exit').rjust(SUBMENUWIDTH - score.length)}
|
@@ -65,6 +69,7 @@ SCOREMENU
|
|
65
69
|
@last = nil
|
66
70
|
if (0..courses.length-1).include? value
|
67
71
|
collection = cards.select_collection(courses(value))
|
72
|
+
@title = collection.name
|
68
73
|
@timer = Timer.new
|
69
74
|
begin
|
70
75
|
loop do
|
data/locales/en.yml
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: language_cards
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel P. Clark
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: highline
|