kita 0.5.1 → 0.5.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cc52ea1433292c7a3c9146792e73117217f6d1ab6c640524489c0f22a30158a6
4
- data.tar.gz: 32f74e1b6261250a6c36a9124f5ac4c5f651f9866c6665c7f949b2b43b50e6f3
3
+ metadata.gz: 65792a880b15d5034614c329d66ffd741f76af6cec3d8b70079675296b911170
4
+ data.tar.gz: facfc0980b75a217513991ae019cba86a21185389f832b52e7f78ea37a1f1b98
5
5
  SHA512:
6
- metadata.gz: 79062cb37ecc657c208445d7a074d8fb3a8bacb32d84b1d5b94f8edbed3423e37e0d56b7cf6ad1563e7fe8daeb764d9838c8214f4d80c10cf66ee2cd70785372
7
- data.tar.gz: e59ae6841712228838da590cf17eb093a18746f1b0073308d5b0160fa52d6dfd5659e2c649a8e753cf30158dc71f73424d72607d2925f7ff3cb7376b1863d3b7
6
+ metadata.gz: 711858ba735bf5c14e7ef006598d3957205cf04752138edd487af4a8432f2f843532b1de83d78c358769ce3e0aa6623b03a7d1405359890d44084f01ff8514ef
7
+ data.tar.gz: 95a46563053e6e80955b92b61f095e11bd5d7e1197000c2455ba62264170370a673d61381279f3d900a9b5c161b0ac31fe72049951027d9a6d7c69fa70005d86
data/.gitignore CHANGED
@@ -1,12 +1,14 @@
1
1
  vendor
2
2
  *~
3
3
  *.gem
4
+ *.snap
4
5
  /.bundle/
5
6
  /.yardoc
6
7
  /_yardoc/
7
8
  /coverage/
8
9
  /doc/
9
10
  /pkg/
11
+ /prime/
10
12
  /spec/reports/
11
13
  /tmp/
12
14
 
@@ -6,10 +6,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
7
  ## [Unreleased]
8
8
  ### Added
9
- - Marketing banner to prompt users to upgrade to a free account
10
9
 
11
10
  ### Changed
12
11
 
12
+ ## 2020-05-25
13
+ ### Changed
14
+ - Improved sounds, neither へ nor は are pronounced in their particle form (e and wa).
15
+
13
16
  ## 2020-05-24
14
17
  ### Added
15
18
  - First release
@@ -1,3 +1,14 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ kita (0.5.5)
5
+ config (~> 2.2)
6
+ gir_ffi (~> 0.15.2)
7
+ gstreamer (~> 3.4)
8
+ gtk3 (~> 3.4)
9
+ mojinizer (~> 0.2.2)
10
+ pango (~> 3.4)
11
+
1
12
  GEM
2
13
  remote: https://rubygems.org/
3
14
  specs:
@@ -107,12 +118,7 @@ PLATFORMS
107
118
  ruby
108
119
 
109
120
  DEPENDENCIES
110
- config (~> 2.2)
111
- gir_ffi (~> 0.15.2)
112
- gstreamer (~> 3.4)
113
- gtk3 (~> 3.4)
114
- mojinizer (~> 0.2.2)
115
- pango (~> 3.4)
121
+ kita!
116
122
  rake (~> 13.0)
117
123
  rspec (~> 3.9)
118
124
 
data/bin/kita CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- application_root_path = File.expand_path(__dir__)
5
- require File.join(application_root_path, '../lib/kita.rb')
4
+ RootPath = File.expand_path('../', __dir__)
5
+ require File.join(RootPath, '/lib/kita.rb')
6
6
 
7
7
  app = Kita::Application.new
8
8
 
@@ -7,6 +7,7 @@ Gem::Specification.new do |spec|
7
7
  spec.version = Kita::VERSION
8
8
  spec.authors = ['Dan Bishop']
9
9
  spec.email = ['d@nbishop.uk']
10
+ spec.license = 'GPLv3+'
10
11
 
11
12
  spec.summary = 'A Japanese kana learning tool.'
12
13
  spec.description = 'A simple tool to help Japanese language learners with hiragana and katakana.'
@@ -26,10 +27,10 @@ Gem::Specification.new do |spec|
26
27
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
27
28
  spec.require_paths = ['lib']
28
29
 
29
- spec.add_dependency 'config', '~> 2.2'
30
- spec.add_dependency 'gir_ffi', '~> 0.15.2'
31
- spec.add_dependency 'gstreamer', '~> 3.4'
32
- spec.add_dependency 'gtk3', '~> 3.4'
33
- spec.add_dependency 'mojinizer', '~> 0.2.2'
34
- spec.add_dependency 'pango', '~> 3.4'
30
+ spec.add_runtime_dependency 'config', '~> 2.2'
31
+ spec.add_runtime_dependency 'gir_ffi', '~> 0.15.2'
32
+ spec.add_runtime_dependency 'gstreamer', '~> 3.4'
33
+ spec.add_runtime_dependency 'gtk3', '~> 3.4'
34
+ spec.add_runtime_dependency 'mojinizer', '~> 0.2.2'
35
+ spec.add_runtime_dependency 'pango', '~> 3.4'
35
36
  end
@@ -37,6 +37,7 @@ module Kita
37
37
 
38
38
  def setup_about_box
39
39
  about_box = @builder.get_object('about_box')
40
+ about_box.version = VERSION
40
41
  about_button = @builder.get_object('menu_about')
41
42
  about_button.signal_connect('clicked') do
42
43
  about_box.run
@@ -22,7 +22,7 @@ class Audio
22
22
 
23
23
  def play(uri)
24
24
  @playbin.stop
25
- @playbin.uri = Gst.filename_to_uri("./sounds/#{uri}.ogg")
25
+ @playbin.uri = Gst.filename_to_uri("#{RootPath}/sounds/#{uri}.ogg")
26
26
  @playbin.play
27
27
  end
28
28
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kita
4
- VERSION = '0.5.1'
4
+ VERSION = '0.5.6'
5
5
  end
@@ -0,0 +1,10 @@
1
+ [Desktop Entry]
2
+ Name=Kita
3
+ GenericName=Kita
4
+ X-GNOME-FullName=Kita
5
+ Comment=Learn the Japanese kana
6
+ Keywords=Japanese;kana;hiragana;katakana;learn;
7
+ Exec=kita
8
+ Terminal=false
9
+ Type=Application
10
+ Icon=${SNAP}/meta/gui/kita.svg
@@ -0,0 +1,137 @@
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.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="0.7"
76
+ inkscape:cx="337.63766"
77
+ inkscape:cy="-256.1795"
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></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:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:markers fill stroke"
121
+ id="path3017"
122
+ cx="50.905403"
123
+ cy="130.02036"
124
+ r="25" />
125
+ <text
126
+ xml:space="preserve"
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>
136
+ </g>
137
+ </svg>
@@ -0,0 +1,63 @@
1
+ name: kita
2
+ version: '0.5.5'
3
+ summary: Japanese learning tool
4
+ description: |
5
+ A simple tool to help Japanese language learners.
6
+
7
+ confinement: strict
8
+ base: core18
9
+ grade: stable
10
+ license: GPL-3.0+
11
+
12
+ parts:
13
+ kita:
14
+ source: .
15
+ plugin: ruby
16
+ gems:
17
+ - kita
18
+ ruby-version: 2.7.0
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
+ - libgstreamer1.0-0
30
+ - libglib2.0-0
31
+ - libgirepository-1.0-1
32
+ - gir1.2-gstreamer-1.0
33
+ - gstreamer1.0-plugins-base
34
+ # Just trying these to see if it makes sound work
35
+ - libpulse0
36
+ - libpulse-mainloop-glib0
37
+ - libslang2
38
+ - libgpm2
39
+ - libasound2
40
+
41
+ apps:
42
+ kita:
43
+ command: bin/kita
44
+ extensions: [gnome-3-28]
45
+ environment:
46
+ LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio
47
+ plugs:
48
+ - desktop
49
+ - desktop-legacy
50
+ - gsettings
51
+ - wayland
52
+ - x11
53
+ - audio-playback
54
+ - home
55
+ slots:
56
+ - dbus-daemon
57
+ common-id: uk.danbishop.kita
58
+
59
+ slots:
60
+ dbus-daemon:
61
+ interface: dbus
62
+ bus: session
63
+ name: uk.danbishop.kita
Binary file
Binary file
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <!-- Generated with glade 3.22.2
2
+ <!-- Generated with glade 3.22.2
3
3
 
4
4
  Copyright (C)
5
5
 
@@ -30,7 +30,7 @@ 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">0.5</property>
33
+ <property name="version"></property>
34
34
  <property name="copyright" translatable="yes">© 2020 Dan Bishop</property>
35
35
  <property name="comments" translatable="yes">A simple tool to help Japanese language learners.</property>
36
36
  <property name="website">danbishop.uk</property>
@@ -256,7 +256,7 @@ Author: Dan Bishop
256
256
  <object class="GtkImage">
257
257
  <property name="visible">True</property>
258
258
  <property name="can_focus">False</property>
259
- <property name="icon_name">audio-volume-high</property>
259
+ <property name="icon_name">audio-volume-high-symbolic</property>
260
260
  </object>
261
261
  </child>
262
262
  </object>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kita
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Bishop
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-24 00:00:00.000000000 Z
11
+ date: 2020-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: config
@@ -119,10 +119,9 @@ files:
119
119
  - lib/kita/hiragana.rb
120
120
  - lib/kita/katakana.rb
121
121
  - lib/kita/version.rb
122
- - snapcraft.yaml
123
- - sounds/he.ogg
124
- - sounds/he2.ogg
125
- - sounds/tofix.txt
122
+ - snap/gui/kita.desktop
123
+ - snap/gui/kita.svg
124
+ - snap/snapcraft.yaml
126
125
  - sounds/あ.ogg
127
126
  - sounds/あ2.ogg
128
127
  - sounds/い.ogg
@@ -270,7 +269,8 @@ files:
270
269
  - ui/builder.ui
271
270
  - ui/kita.svg
272
271
  homepage: https://www.danbishop.org
273
- licenses: []
272
+ licenses:
273
+ - GPLv3+
274
274
  metadata:
275
275
  homepage_uri: https://www.danbishop.org
276
276
  source_code_uri: https://github.com/danbishop/kita
@@ -1,18 +0,0 @@
1
- name: kita
2
- version: "0.5.0"
3
- summary: Japanese learning tool
4
- description: |
5
- A simple tool to help Japanese language learners.
6
-
7
- confinement: devmode
8
- base: core18
9
-
10
- parts:
11
- kita:
12
- source: .
13
- plugin: ruby
14
- gems:
15
- - kita
16
- apps:
17
- kita:
18
- command: bin/kita
Binary file
Binary file
@@ -1,2 +0,0 @@
1
- su
2
- he - pronounced as particle (e)