eiwa 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +35 -29
- data/eiwa.gemspec +1 -1
- data/lib/eiwa/jmdict/doc.rb +5 -9
- data/lib/eiwa/jmdict/entities.rb +3 -2
- data/lib/eiwa/version.rb +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 30b687188f6619274fd070b4e9e5474bd88d85e6d05585549ea43d9aed196997
|
|
4
|
+
data.tar.gz: b3bdd500a94577063547fa1ab3243ba22c161fc132ca62f7389340d34a76fe90
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ccf49f2a655c6d325c0ce8fc2dfa4e8532b29c6396d6d69d78778a5bb082e86a080e8ee4554fa7e2c8cf0f214728dd8f457cf4e3a14b9b8ddf5b919a61140893
|
|
7
|
+
data.tar.gz: ddff0da7bc6d784da2217663425b20763b9f10fbee1e121a6e65ef156ba6a6b4c4e3d0ff613ece3bc4e3f82631d4fdb79995e72a9c1bc3a910956778913663b1
|
data/CHANGELOG.md
ADDED
data/Gemfile.lock
CHANGED
|
@@ -1,64 +1,70 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
eiwa (0.
|
|
5
|
-
nokogiri (= 1.
|
|
4
|
+
eiwa (0.2.0)
|
|
5
|
+
nokogiri (= 1.17.0)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
10
|
ast (2.4.2)
|
|
11
|
-
json (2.
|
|
11
|
+
json (2.9.0)
|
|
12
12
|
language_server-protocol (3.17.0.3)
|
|
13
13
|
lint_roller (1.1.0)
|
|
14
14
|
m (1.6.2)
|
|
15
15
|
method_source (>= 0.6.7)
|
|
16
16
|
rake (>= 0.9.2.2)
|
|
17
|
-
method_source (1.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
nokogiri (1.14.5)
|
|
21
|
-
mini_portile2 (~> 2.8.0)
|
|
17
|
+
method_source (1.1.0)
|
|
18
|
+
minitest (5.25.4)
|
|
19
|
+
nokogiri (1.17.0-aarch64-linux)
|
|
22
20
|
racc (~> 1.4)
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
nokogiri (1.17.0-arm-linux)
|
|
22
|
+
racc (~> 1.4)
|
|
23
|
+
nokogiri (1.17.0-arm64-darwin)
|
|
24
|
+
racc (~> 1.4)
|
|
25
|
+
nokogiri (1.17.0-x86-linux)
|
|
26
|
+
racc (~> 1.4)
|
|
27
|
+
nokogiri (1.17.0-x86_64-darwin)
|
|
28
|
+
racc (~> 1.4)
|
|
29
|
+
nokogiri (1.17.0-x86_64-linux)
|
|
30
|
+
racc (~> 1.4)
|
|
31
|
+
parallel (1.26.3)
|
|
32
|
+
parser (3.3.6.0)
|
|
25
33
|
ast (~> 2.4.1)
|
|
26
34
|
racc
|
|
27
|
-
racc (1.
|
|
35
|
+
racc (1.8.1)
|
|
28
36
|
rainbow (3.1.1)
|
|
29
|
-
rake (13.1
|
|
30
|
-
regexp_parser (2.9.
|
|
31
|
-
|
|
32
|
-
rubocop (1.62.1)
|
|
37
|
+
rake (13.2.1)
|
|
38
|
+
regexp_parser (2.9.3)
|
|
39
|
+
rubocop (1.68.0)
|
|
33
40
|
json (~> 2.3)
|
|
34
41
|
language_server-protocol (>= 3.17.0)
|
|
35
42
|
parallel (~> 1.10)
|
|
36
43
|
parser (>= 3.3.0.2)
|
|
37
44
|
rainbow (>= 2.2.2, < 4.0)
|
|
38
|
-
regexp_parser (>=
|
|
39
|
-
|
|
40
|
-
rubocop-ast (>= 1.31.1, < 2.0)
|
|
45
|
+
regexp_parser (>= 2.4, < 3.0)
|
|
46
|
+
rubocop-ast (>= 1.32.2, < 2.0)
|
|
41
47
|
ruby-progressbar (~> 1.7)
|
|
42
48
|
unicode-display_width (>= 2.4.0, < 3.0)
|
|
43
|
-
rubocop-ast (1.
|
|
44
|
-
parser (>= 3.3.0
|
|
45
|
-
rubocop-performance (1.
|
|
49
|
+
rubocop-ast (1.36.2)
|
|
50
|
+
parser (>= 3.3.1.0)
|
|
51
|
+
rubocop-performance (1.22.1)
|
|
46
52
|
rubocop (>= 1.48.1, < 2.0)
|
|
47
|
-
rubocop-ast (>= 1.
|
|
53
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
|
48
54
|
ruby-progressbar (1.13.0)
|
|
49
|
-
standard (1.
|
|
55
|
+
standard (1.42.1)
|
|
50
56
|
language_server-protocol (~> 3.17.0.2)
|
|
51
57
|
lint_roller (~> 1.0)
|
|
52
|
-
rubocop (~> 1.
|
|
58
|
+
rubocop (~> 1.68.0)
|
|
53
59
|
standard-custom (~> 1.0.0)
|
|
54
|
-
standard-performance (~> 1.
|
|
60
|
+
standard-performance (~> 1.5)
|
|
55
61
|
standard-custom (1.0.2)
|
|
56
62
|
lint_roller (~> 1.0)
|
|
57
63
|
rubocop (~> 1.50)
|
|
58
|
-
standard-performance (1.
|
|
64
|
+
standard-performance (1.5.0)
|
|
59
65
|
lint_roller (~> 1.1)
|
|
60
|
-
rubocop-performance (~> 1.
|
|
61
|
-
unicode-display_width (2.
|
|
66
|
+
rubocop-performance (~> 1.22.0)
|
|
67
|
+
unicode-display_width (2.6.0)
|
|
62
68
|
|
|
63
69
|
PLATFORMS
|
|
64
70
|
aarch64-linux
|
|
@@ -76,4 +82,4 @@ DEPENDENCIES
|
|
|
76
82
|
standard
|
|
77
83
|
|
|
78
84
|
BUNDLED WITH
|
|
79
|
-
2.5.
|
|
85
|
+
2.5.23
|
data/eiwa.gemspec
CHANGED
data/lib/eiwa/jmdict/doc.rb
CHANGED
|
@@ -53,6 +53,10 @@ module Eiwa
|
|
|
53
53
|
@current.add_characters(s)
|
|
54
54
|
end
|
|
55
55
|
|
|
56
|
+
def reference(name, content)
|
|
57
|
+
@current.set_entity(name, content)
|
|
58
|
+
end
|
|
59
|
+
|
|
56
60
|
# def comment string
|
|
57
61
|
# puts "comment #{string}"
|
|
58
62
|
# end
|
|
@@ -62,15 +66,7 @@ module Eiwa
|
|
|
62
66
|
# end
|
|
63
67
|
|
|
64
68
|
def error(msg)
|
|
65
|
-
|
|
66
|
-
# See: http://github.com/sparklemotion/nokogiri/issues/1926
|
|
67
|
-
code = matches[1]
|
|
68
|
-
@current.set_entity(code, ENTITIES[code])
|
|
69
|
-
elsif msg == "Detected an entity reference loop\n"
|
|
70
|
-
# Do nothing and hope this does not matter.
|
|
71
|
-
else
|
|
72
|
-
raise Eiwa::Error.new("Parsing error: #{msg}")
|
|
73
|
-
end
|
|
69
|
+
raise Eiwa::Error.new("Parsing error: #{msg}")
|
|
74
70
|
end
|
|
75
71
|
|
|
76
72
|
# def cdata_block string
|
data/lib/eiwa/jmdict/entities.rb
CHANGED
|
@@ -13,7 +13,7 @@ module Eiwa
|
|
|
13
13
|
"adj-ku" => "`ku' adjective (archaic)",
|
|
14
14
|
"adj-na" => "adjectival nouns or quasi-adjectives (keiyodoshi)",
|
|
15
15
|
"adj-nari" => "archaic/formal form of na-adjective",
|
|
16
|
-
"adj-no" => "nouns which may take the genitive case particle
|
|
16
|
+
"adj-no" => "nouns which may take the genitive case particle 'no'",
|
|
17
17
|
"adj-pn" => "pre-noun adjectival (rentaishi)",
|
|
18
18
|
"adj-shiku" => "`shiku' adjective (archaic)",
|
|
19
19
|
"adj-t" => "`taru' adjective",
|
|
@@ -34,7 +34,7 @@ module Eiwa
|
|
|
34
34
|
"chem" => "chemistry term",
|
|
35
35
|
"chn" => "children's language",
|
|
36
36
|
"col" => "colloquialism",
|
|
37
|
-
"comp" => "
|
|
37
|
+
"comp" => "computing",
|
|
38
38
|
"conj" => "conjunction",
|
|
39
39
|
"cop" => "copula",
|
|
40
40
|
"cop-da" => "copula",
|
|
@@ -101,6 +101,7 @@ module Eiwa
|
|
|
101
101
|
"quote" => "quotation",
|
|
102
102
|
"rare" => "rare",
|
|
103
103
|
"rkb" => "Ryuukyuu-ben",
|
|
104
|
+
"rK" => "rarely used kanji form",
|
|
104
105
|
"sens" => "sensitive",
|
|
105
106
|
"shogi" => "shogi term",
|
|
106
107
|
"sl" => "slang",
|
data/lib/eiwa/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: eiwa
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Justin Searls
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-12-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - '='
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 1.
|
|
19
|
+
version: 1.17.0
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - '='
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 1.
|
|
26
|
+
version: 1.17.0
|
|
27
27
|
description:
|
|
28
28
|
email:
|
|
29
29
|
- searls@gmail.com
|
|
@@ -34,6 +34,7 @@ files:
|
|
|
34
34
|
- ".github/workflows/ruby.yml"
|
|
35
35
|
- ".gitignore"
|
|
36
36
|
- ".standard.yml"
|
|
37
|
+
- CHANGELOG.md
|
|
37
38
|
- Gemfile
|
|
38
39
|
- Gemfile.lock
|
|
39
40
|
- LICENSE.txt
|
|
@@ -84,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
84
85
|
- !ruby/object:Gem::Version
|
|
85
86
|
version: '0'
|
|
86
87
|
requirements: []
|
|
87
|
-
rubygems_version: 3.5.
|
|
88
|
+
rubygems_version: 3.5.11
|
|
88
89
|
signing_key:
|
|
89
90
|
specification_version: 4
|
|
90
91
|
summary: Parses the JMDict Japanese-English dictionary
|