eij 0.0.1
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 +7 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +7 -0
- data/Rakefile +2 -0
- data/data/kanjidicks.txt +58542 -0
- data/eij.gemspec +23 -0
- data/lib/eij.rb +47 -0
- data/lib/eij/string.rb +32 -0
- data/lib/eij/translator.rb +192 -0
- data/lib/eij/version.rb +3 -0
- data/lib/func.sh +61 -0
- data/notes/design +182 -0
- data/notes/features +706 -0
- data/notes/overview +57 -0
- metadata +86 -0
data/notes/overview
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
2
|
+
A)━━━━━━━━━━━━━━━━━━━━━━(Structure)━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
3
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
4
|
+
|
|
5
|
+
func -d damage
|
|
6
|
+
func -e jpn->eng
|
|
7
|
+
func -j eng->jpn
|
|
8
|
+
|
|
9
|
+
-loop opts
|
|
10
|
+
-original input keyword is required
|
|
11
|
+
-each option function uses the previous output as input
|
|
12
|
+
|
|
13
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
14
|
+
B)━━━━━━━━━━━━━━━━━━━━━━━━━(Dic)━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
15
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
16
|
+
|
|
17
|
+
$je mousou
|
|
18
|
+
>Found 1 items, similar to mousou.
|
|
19
|
+
>-->JE-EDICT_Kanji
|
|
20
|
+
>-->mouso
|
|
21
|
+
>1. 妄想 wild idea, delusion 2. 盲想 wild idea, delusion
|
|
22
|
+
|
|
23
|
+
-show only word match and translation line 1
|
|
24
|
+
-label first match as 'A'
|
|
25
|
+
-split translation lines by "#." onto newlines. keep #s
|
|
26
|
+
|
|
27
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
28
|
+
|
|
29
|
+
$je shine
|
|
30
|
+
>Found 10 items, similar to shine.
|
|
31
|
+
>-->JE-EDICT_Kanji
|
|
32
|
+
>-->seinen
|
|
33
|
+
>
|
|
34
|
+
>1. 成年 majority, adult age 2. 生年 the year of a person's
|
|
35
|
+
>birth, age 3. 青
|
|
36
|
+
>
|
|
37
|
+
>-->JE-EDICT_Kanji
|
|
38
|
+
>-->shien
|
|
39
|
+
>
|
|
40
|
+
>1. 支援 support (vs), backing, aid 2. 紫煙 purple smoke, tobacco smoke
|
|
41
|
+
>
|
|
42
|
+
>-->JE-EDICT_Kanji
|
|
43
|
+
>-->shigen
|
|
44
|
+
>
|
|
45
|
+
>1. 至言 wise saying 2. 資源 resources
|
|
46
|
+
|
|
47
|
+
-show only word matches and their lines.
|
|
48
|
+
-label matches a-z,aa-zz, ...
|
|
49
|
+
-split translation lines by "#." onto newlines. keep #s
|
|
50
|
+
-input is selected by "eij shine -e a,1,2"
|
|
51
|
+
e.g.
|
|
52
|
+
$eij shine -e a,1
|
|
53
|
+
>成年 majority, adult age
|
|
54
|
+
$eij shine -e a,1,2
|
|
55
|
+
>majority
|
|
56
|
+
$eij shine -e a,1,1
|
|
57
|
+
>成年
|
metadata
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: eij
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Kevin Vollmer
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2014-08-13 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: bundler
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '1.6'
|
|
20
|
+
type: :development
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '1.6'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: rake
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '10.0'
|
|
34
|
+
type: :development
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '10.0'
|
|
41
|
+
description: ''
|
|
42
|
+
email:
|
|
43
|
+
- works.kvollmer@gmail.com
|
|
44
|
+
executables: []
|
|
45
|
+
extensions: []
|
|
46
|
+
extra_rdoc_files: []
|
|
47
|
+
files:
|
|
48
|
+
- Gemfile
|
|
49
|
+
- LICENSE.txt
|
|
50
|
+
- README.md
|
|
51
|
+
- Rakefile
|
|
52
|
+
- data/kanjidicks.txt
|
|
53
|
+
- eij.gemspec
|
|
54
|
+
- lib/eij.rb
|
|
55
|
+
- lib/eij/string.rb
|
|
56
|
+
- lib/eij/translator.rb
|
|
57
|
+
- lib/eij/version.rb
|
|
58
|
+
- lib/func.sh
|
|
59
|
+
- notes/design
|
|
60
|
+
- notes/features
|
|
61
|
+
- notes/overview
|
|
62
|
+
homepage: ''
|
|
63
|
+
licenses:
|
|
64
|
+
- MIT
|
|
65
|
+
metadata: {}
|
|
66
|
+
post_install_message:
|
|
67
|
+
rdoc_options: []
|
|
68
|
+
require_paths:
|
|
69
|
+
- lib
|
|
70
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
71
|
+
requirements:
|
|
72
|
+
- - ">="
|
|
73
|
+
- !ruby/object:Gem::Version
|
|
74
|
+
version: '0'
|
|
75
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
|
+
requirements:
|
|
77
|
+
- - ">="
|
|
78
|
+
- !ruby/object:Gem::Version
|
|
79
|
+
version: '0'
|
|
80
|
+
requirements: []
|
|
81
|
+
rubyforge_project:
|
|
82
|
+
rubygems_version: 2.2.2
|
|
83
|
+
signing_key:
|
|
84
|
+
specification_version: 4
|
|
85
|
+
summary: Kanjidamage wrapper
|
|
86
|
+
test_files: []
|