kita 0.5.5 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/CHANGELOG.md +13 -0
  4. data/Gemfile.lock +5 -1
  5. data/README.md +3 -1
  6. data/kita.gemspec +7 -3
  7. data/lib/kita.rb +31 -74
  8. data/lib/kita/config.rb +22 -4
  9. data/lib/kita/hiragana.rb +1 -0
  10. data/lib/kita/katakana.rb +1 -0
  11. data/lib/kita/question.rb +23 -0
  12. data/lib/kita/version.rb +1 -1
  13. data/snap/gui/kita.desktop +10 -0
  14. data/snap/gui/kita.svg +137 -0
  15. data/snap/snapcraft.yaml +12 -17
  16. data/sounds//343/201/{202.ogg → 2021.ogg} +0 -0
  17. data/sounds//343/201/{204.ogg → 2041.ogg} +0 -0
  18. data/sounds//343/201/{206.ogg → 2061.ogg} +0 -0
  19. data/sounds//343/201/{210.ogg → 2101.ogg} +0 -0
  20. data/sounds//343/201/{212.ogg → 2121.ogg} +0 -0
  21. data/sounds//343/201/{213.ogg → 2131.ogg} +0 -0
  22. data/sounds//343/201/{214.ogg → 2141.ogg} +0 -0
  23. data/sounds//343/201/{215.ogg → 2151.ogg} +0 -0
  24. data/sounds//343/201/{216.ogg → 2161.ogg} +0 -0
  25. data/sounds//343/201/{217.ogg → 2171.ogg} +0 -0
  26. data/sounds//343/201/{220.ogg → 2201.ogg} +0 -0
  27. data/sounds//343/201/{221.ogg → 2211.ogg} +0 -0
  28. data/sounds//343/201/{222.ogg → 2221.ogg} +0 -0
  29. data/sounds//343/201/{223.ogg → 2231.ogg} +0 -0
  30. data/sounds//343/201/{224.ogg → 2241.ogg} +0 -0
  31. data/sounds//343/201/{225.ogg → 2251.ogg} +0 -0
  32. data/sounds//343/201/{226.ogg → 2261.ogg} +0 -0
  33. data/sounds//343/201/{227.ogg → 2271.ogg} +0 -0
  34. data/sounds//343/201/{230.ogg → 2301.ogg} +0 -0
  35. data/sounds//343/201/{231.ogg → 2311.ogg} +0 -0
  36. data/sounds//343/201/{232.ogg → 2321.ogg} +0 -0
  37. data/sounds//343/201/{233.ogg → 2331.ogg} +0 -0
  38. data/sounds//343/201/{234.ogg → 2341.ogg} +0 -0
  39. data/sounds//343/201/{235.ogg → 2351.ogg} +0 -0
  40. data/sounds//343/201/{236.ogg → 2361.ogg} +0 -0
  41. data/sounds//343/201/{237.ogg → 2371.ogg} +0 -0
  42. data/sounds//343/201/{240.ogg → 2401.ogg} +0 -0
  43. data/sounds//343/201/{241.ogg → 2411.ogg} +0 -0
  44. data/sounds//343/201/{242.ogg → 2421.ogg} +0 -0
  45. data/sounds//343/201/{244.ogg → 2441.ogg} +0 -0
  46. data/sounds//343/201/{245.ogg → 2451.ogg} +0 -0
  47. data/sounds//343/201/{246.ogg → 2461.ogg} +0 -0
  48. data/sounds//343/201/{247.ogg → 2471.ogg} +0 -0
  49. data/sounds//343/201/{250.ogg → 2501.ogg} +0 -0
  50. data/sounds//343/201/{251.ogg → 2511.ogg} +0 -0
  51. data/sounds//343/201/{252.ogg → 2521.ogg} +0 -0
  52. data/sounds//343/201/{253.ogg → 2531.ogg} +0 -0
  53. data/sounds//343/201/{254.ogg → 2541.ogg} +0 -0
  54. data/sounds//343/201/{255.ogg → 2551.ogg} +0 -0
  55. data/sounds//343/201/{256.ogg → 2561.ogg} +0 -0
  56. data/sounds//343/201/2571.ogg +0 -0
  57. data/sounds//343/201/2572.ogg +0 -0
  58. data/sounds//343/201/{260.ogg → 2601.ogg} +0 -0
  59. data/sounds//343/201/{261.ogg → 2611.ogg} +0 -0
  60. data/sounds//343/201/{262.ogg → 2621.ogg} +0 -0
  61. data/sounds//343/201/{263.ogg → 2631.ogg} +0 -0
  62. data/sounds//343/201/{264.ogg → 2641.ogg} +0 -0
  63. data/sounds//343/201/{265.ogg → 2651.ogg} +0 -0
  64. data/sounds//343/201/{266.ogg → 2661.ogg} +0 -0
  65. data/sounds//343/201/{267.ogg → 2671.ogg} +0 -0
  66. data/sounds//343/201/2701.ogg +0 -0
  67. data/sounds//343/201/2702.ogg +0 -0
  68. data/sounds//343/201/{271.ogg → 2711.ogg} +0 -0
  69. data/sounds//343/201/{272.ogg → 2721.ogg} +0 -0
  70. data/sounds//343/201/{273.ogg → 2731.ogg} +0 -0
  71. data/sounds//343/201/{274.ogg → 2741.ogg} +0 -0
  72. data/sounds//343/201/{275.ogg → 2751.ogg} +0 -0
  73. data/sounds//343/201/{276.ogg → 2761.ogg} +0 -0
  74. data/sounds//343/201/{277.ogg → 2771.ogg} +0 -0
  75. data/sounds//343/202/{200.ogg → 2001.ogg} +0 -0
  76. data/sounds//343/202/{201.ogg → 2011.ogg} +0 -0
  77. data/sounds//343/202/{202.ogg → 2021.ogg} +0 -0
  78. data/sounds//343/202/{204.ogg → 2041.ogg} +0 -0
  79. data/sounds//343/202/{206.ogg → 2061.ogg} +0 -0
  80. data/sounds//343/202/{210.ogg → 2101.ogg} +0 -0
  81. data/sounds//343/202/{211.ogg → 2111.ogg} +0 -0
  82. data/sounds//343/202/{212.ogg → 2121.ogg} +0 -0
  83. data/sounds//343/202/{213.ogg → 2131.ogg} +0 -0
  84. data/sounds//343/202/{214.ogg → 2141.ogg} +0 -0
  85. data/sounds//343/202/{215.ogg → 2151.ogg} +0 -0
  86. data/sounds//343/202/{217.ogg → 2171.ogg} +0 -0
  87. data/sounds//343/202/{222.ogg → 2221.ogg} +0 -0
  88. data/sounds//343/202/{223.ogg → 2231.ogg} +0 -0
  89. data/ui/builder.ui +6 -1
  90. data/ui/kita-bordered.svg +141 -0
  91. data/ui/kita.svg +12 -14
  92. metadata +82 -79
  93. data/sounds/he.ogg +0 -0
  94. data/sounds/he2.ogg +0 -0
  95. data/sounds/tofix.txt +0 -2
  96. data/sounds//343/201/257.ogg +0 -0
  97. data/sounds//343/201/270.ogg +0 -0
@@ -1,10 +1,10 @@
1
1
  name: kita
2
- version: '0.5.5'
2
+ version: '0.6.1'
3
3
  summary: Japanese learning tool
4
4
  description: |
5
5
  A simple tool to help Japanese language learners.
6
6
 
7
- confinement: devmode
7
+ confinement: strict
8
8
  base: core18
9
9
  grade: stable
10
10
  license: GPL-3.0+
@@ -15,30 +15,25 @@ parts:
15
15
  plugin: ruby
16
16
  gems:
17
17
  - kita
18
- ruby-version: 2.7.0
18
+ ruby-version: 2.7.1
19
19
  stage-packages:
20
- - gobject-introspection
21
- - gir1.2-atk-1.0
22
- - gir1.2-atspi-2.0
23
- - gir1.2-freedesktop
24
- - gir1.2-gdkpixbuf-2.0
25
- - gir1.2-glib-2.0
26
- - gir1.2-gtk-3.0
27
- - gir1.2-pango-1.0
28
- - libcanberra-gtk3-0
29
20
  - libgstreamer1.0-0
30
- - libglib2.0-0
21
+ - gstreamer1.0-plugins-base
31
22
  - libgirepository-1.0-1
32
23
  - gir1.2-gstreamer-1.0
33
- - gstreamer1.0-plugins-base
34
24
 
35
25
  apps:
36
26
  kita:
37
27
  command: bin/kita
38
28
  extensions: [gnome-3-28]
39
29
  plugs:
40
- - desktop
41
- - wayland
42
30
  - audio-playback
43
- # - pulseaudio
31
+ slots:
32
+ - dbus-daemon
44
33
  common-id: uk.danbishop.kita
34
+
35
+ slots:
36
+ dbus-daemon:
37
+ interface: dbus
38
+ bus: session
39
+ name: uk.danbishop.kita
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
Binary file
Binary file
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
Binary file
Binary file
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -30,7 +30,6 @@ Author: Dan Bishop
30
30
  <property name="can_focus">False</property>
31
31
  <property name="type_hint">dialog</property>
32
32
  <property name="program_name">Kita</property>
33
- <property name="version"></property>
34
33
  <property name="copyright" translatable="yes">© 2020 Dan Bishop</property>
35
34
  <property name="comments" translatable="yes">A simple tool to help Japanese language learners.</property>
36
35
  <property name="website">danbishop.uk</property>
@@ -39,6 +38,7 @@ Author: Dan Bishop
39
38
  <property name="artists">Dan Bishop &lt;d@nbishop.uk&gt;</property>
40
39
  <property name="logo">kita.svg</property>
41
40
  <property name="license_type">gpl-3-0</property>
41
+ <signal name="show" handler="ee" swapped="no"/>
42
42
  <child type="titlebar">
43
43
  <placeholder/>
44
44
  </child>
@@ -99,6 +99,7 @@ Author: Dan Bishop
99
99
  <property name="margin_top">5</property>
100
100
  <property name="margin_bottom">5</property>
101
101
  <property name="active">True</property>
102
+ <signal name="notify::active" handler="toggle_hiragana" swapped="no"/>
102
103
  </object>
103
104
  <packing>
104
105
  <property name="expand">False</property>
@@ -142,6 +143,7 @@ Author: Dan Bishop
142
143
  <property name="margin_left">10</property>
143
144
  <property name="margin_top">5</property>
144
145
  <property name="margin_bottom">5</property>
146
+ <signal name="notify::active" handler="toggle_katakana" swapped="no"/>
145
147
  </object>
146
148
  <packing>
147
149
  <property name="expand">False</property>
@@ -186,6 +188,7 @@ Author: Dan Bishop
186
188
  <property name="margin_top">5</property>
187
189
  <property name="margin_bottom">5</property>
188
190
  <property name="active">True</property>
191
+ <signal name="notify::active" handler="toggle_sound" swapped="no"/>
189
192
  </object>
190
193
  <packing>
191
194
  <property name="expand">False</property>
@@ -245,6 +248,7 @@ Author: Dan Bishop
245
248
  <property name="can_focus">True</property>
246
249
  <property name="receives_default">True</property>
247
250
  <property name="always_show_image">True</property>
251
+ <signal name="clicked" handler="new_question" swapped="no"/>
248
252
  </object>
249
253
  </child>
250
254
  <child>
@@ -252,6 +256,7 @@ Author: Dan Bishop
252
256
  <property name="visible">True</property>
253
257
  <property name="can_focus">True</property>
254
258
  <property name="receives_default">True</property>
259
+ <signal name="clicked" handler="repeat_button_click" swapped="no"/>
255
260
  <child>
256
261
  <object class="GtkImage">
257
262
  <property name="visible">True</property>
@@ -0,0 +1,141 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <!-- Created with Inkscape (http://www.inkscape.org/) -->
3
+
4
+ <svg
5
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
6
+ xmlns:cc="http://creativecommons.org/ns#"
7
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8
+ xmlns:svg="http://www.w3.org/2000/svg"
9
+ xmlns="http://www.w3.org/2000/svg"
10
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
12
+ width="50mm"
13
+ height="50mm"
14
+ viewBox="0 0 50 50"
15
+ version="1.1"
16
+ id="svg8"
17
+ inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)"
18
+ sodipodi:docname="kita-bordered.svg">
19
+ <defs
20
+ id="defs2">
21
+ <filter
22
+ style="color-interpolation-filters:sRGB"
23
+ id="filter987"
24
+ inkscape:label="filter0" />
25
+ <filter
26
+ style="color-interpolation-filters:sRGB"
27
+ inkscape:label="Noise Fill"
28
+ id="filter1667">
29
+ <feTurbulence
30
+ type="fractalNoise"
31
+ baseFrequency="0.02 0.04"
32
+ numOctaves="5"
33
+ seed="1"
34
+ result="turbulence"
35
+ id="feTurbulence1651" />
36
+ <feComposite
37
+ in="SourceGraphic"
38
+ in2="turbulence"
39
+ operator="in"
40
+ result="composite1"
41
+ id="feComposite1653" />
42
+ <feColorMatrix
43
+ values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 3 -1 "
44
+ result="color"
45
+ id="feColorMatrix1655" />
46
+ <feFlood
47
+ flood-opacity="1"
48
+ flood-color="rgb(21,40,57)"
49
+ result="flood"
50
+ id="feFlood1657" />
51
+ <feMerge
52
+ result="merge"
53
+ id="feMerge1663">
54
+ <feMergeNode
55
+ in="flood"
56
+ id="feMergeNode1659" />
57
+ <feMergeNode
58
+ in="color"
59
+ id="feMergeNode1661" />
60
+ </feMerge>
61
+ <feComposite
62
+ in2="SourceGraphic"
63
+ operator="in"
64
+ result="composite2"
65
+ id="feComposite1665" />
66
+ </filter>
67
+ </defs>
68
+ <sodipodi:namedview
69
+ id="base"
70
+ pagecolor="#000000"
71
+ bordercolor="#666666"
72
+ borderopacity="1.0"
73
+ inkscape:pageopacity="0"
74
+ inkscape:pageshadow="2"
75
+ inkscape:zoom="3.959798"
76
+ inkscape:cx="167.12072"
77
+ inkscape:cy="67.639258"
78
+ inkscape:document-units="mm"
79
+ inkscape:current-layer="layer1"
80
+ showgrid="false"
81
+ inkscape:window-width="3368"
82
+ inkscape:window-height="1376"
83
+ inkscape:window-x="72"
84
+ inkscape:window-y="27"
85
+ inkscape:window-maximized="1"
86
+ fit-margin-top="0"
87
+ fit-margin-left="0"
88
+ fit-margin-right="0"
89
+ fit-margin-bottom="0"
90
+ inkscape:pagecheckerboard="true" />
91
+ <metadata
92
+ id="metadata5">
93
+ <rdf:RDF>
94
+ <cc:Work
95
+ rdf:about="">
96
+ <dc:format>image/svg+xml</dc:format>
97
+ <dc:type
98
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
99
+ <dc:title />
100
+ </cc:Work>
101
+ </rdf:RDF>
102
+ </metadata>
103
+ <g
104
+ inkscape:label="Layer 1"
105
+ inkscape:groupmode="layer"
106
+ id="layer1"
107
+ transform="translate(-25.905403,-105.02035)">
108
+ <text
109
+ xml:space="preserve"
110
+ style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10.58333302px;line-height:1.25;font-family:Ubuntu;-inkscape-font-specification:Ubuntu;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
111
+ x="46.869045"
112
+ y="115.57143"
113
+ id="text817"><tspan
114
+ sodipodi:role="line"
115
+ id="tspan815"
116
+ x="46.869045"
117
+ y="125.4403"
118
+ style="stroke-width:0.26458332" /></text>
119
+ <circle
120
+ style="opacity:1;fill:#808080;fill-opacity:1;stroke:none;stroke-width:0.5;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:stroke markers fill"
121
+ id="path3017"
122
+ cx="50.905403"
123
+ cy="130.02036"
124
+ r="25" />
125
+ <circle
126
+ cy="130.02036"
127
+ cx="50.905403"
128
+ id="circle827"
129
+ style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.49000001;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:stroke markers fill"
130
+ r="24.5" />
131
+ <g
132
+ aria-label="北"
133
+ style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:38.4786377px;line-height:1.25;font-family:Ubuntu;-inkscape-font-specification:Ubuntu;letter-spacing:0px;word-spacing:0px;fill:#d40000;fill-opacity:1;stroke:none;stroke-width:0.96196598"
134
+ id="text2913">
135
+ <path
136
+ d="m 42.82489,120.95864 h -9.080958 v 4.57896 h 9.080958 v 9.31183 c -3.886342,1.38523 -7.811163,2.73198 -10.427711,3.50155 l 2.039368,4.6944 c 2.501112,-1.03893 5.463967,-2.27024 8.388343,-3.54004 v 7.88812 h 4.80983 v -34.90012 h -4.80983 z m 16.007114,21.58651 c -1.385231,0 -1.616103,-0.26935 -1.616103,-2.42415 v -11.23576 c 3.770906,-1.96241 7.811163,-4.23265 11.197283,-6.54137 l -3.309163,-4.11722 c -2.116325,1.8085 -4.963744,3.9633 -7.88812,5.84876 v -11.54359 h -4.732873 v 27.51222 c 0,5.42549 1.269795,7.04159 5.65636,7.04159 h 5.156138 c 4.309607,0 5.425487,-2.84742 5.887231,-10.19684 -1.269795,-0.26935 -3.270684,-1.19283 -4.386565,-2.07784 -0.26935,6.19506 -0.500222,7.7342 -1.96241,7.7342 z"
137
+ style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Ubuntu;-inkscape-font-specification:'Ubuntu Bold';fill:#d40000;stroke-width:0.96196598"
138
+ id="path827" />
139
+ </g>
140
+ </g>
141
+ </svg>
@@ -73,10 +73,10 @@
73
73
  inkscape:pageopacity="0"
74
74
  inkscape:pageshadow="2"
75
75
  inkscape:zoom="0.7"
76
- inkscape:cx="337.63766"
77
- inkscape:cy="-256.1795"
76
+ inkscape:cx="72.63766"
77
+ inkscape:cy="-261.89379"
78
78
  inkscape:document-units="mm"
79
- inkscape:current-layer="layer1"
79
+ inkscape:current-layer="text2913"
80
80
  showgrid="false"
81
81
  inkscape:window-width="3368"
82
82
  inkscape:window-height="1376"
@@ -96,7 +96,7 @@
96
96
  <dc:format>image/svg+xml</dc:format>
97
97
  <dc:type
98
98
  rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
99
- <dc:title></dc:title>
99
+ <dc:title />
100
100
  </cc:Work>
101
101
  </rdf:RDF>
102
102
  </metadata>
@@ -122,16 +122,14 @@
122
122
  cx="50.905403"
123
123
  cy="130.02036"
124
124
  r="25" />
125
- <text
126
- xml:space="preserve"
125
+ <g
126
+ aria-label=""
127
127
  style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:38.4786377px;line-height:1.25;font-family:Ubuntu;-inkscape-font-specification:Ubuntu;letter-spacing:0px;word-spacing:0px;fill:#d40000;fill-opacity:1;stroke:none;stroke-width:0.96196598"
128
- x="31.512171"
129
- y="144.46909"
130
- id="text2913"><tspan
131
- sodipodi:role="line"
132
- id="tspan2911"
133
- x="31.512171"
134
- y="144.46909"
135
- style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Ubuntu;-inkscape-font-specification:'Ubuntu Bold';fill:#d40000;stroke-width:0.96196598">北</tspan></text>
128
+ id="text2913">
129
+ <path
130
+ d="m 42.82489,120.95864 h -9.080958 v 4.57896 h 9.080958 v 9.31183 c -3.886342,1.38523 -7.811163,2.73198 -10.427711,3.50155 l 2.039368,4.6944 c 2.501112,-1.03893 5.463967,-2.27024 8.388343,-3.54004 v 7.88812 h 4.80983 v -34.90012 h -4.80983 z m 16.007114,21.58651 c -1.385231,0 -1.616103,-0.26935 -1.616103,-2.42415 v -11.23576 c 3.770906,-1.96241 7.811163,-4.23265 11.197283,-6.54137 l -3.309163,-4.11722 c -2.116325,1.8085 -4.963744,3.9633 -7.88812,5.84876 v -11.54359 h -4.732873 v 27.51222 c 0,5.42549 1.269795,7.04159 5.65636,7.04159 h 5.156138 c 4.309607,0 5.425487,-2.84742 5.887231,-10.19684 -1.269795,-0.26935 -3.270684,-1.19283 -4.386565,-2.07784 -0.26935,6.19506 -0.500222,7.7342 -1.96241,7.7342 z"
131
+ style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Ubuntu;-inkscape-font-specification:'Ubuntu Bold';fill:#d40000;stroke-width:0.96196598"
132
+ id="path827" />
133
+ </g>
136
134
  </g>
137
135
  </svg>