mk_semi_lattice 0.4.1 → 0.4.2
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/README.org +6 -10
- data/lib/Rakefile +32 -0
- data/lib/abbrev_checker/abbrev_check.rb +92 -0
- data/lib/abbrev_checker/abbrev_sample.tgz +0 -0
- data/lib/abbrev_checker/abbrev_yamls/command_tree.yaml +19 -0
- data/lib/abbrev_checker/abbrev_yamls/initialism_tree.yaml +13 -0
- data/lib/abbrev_checker/check_log.yaml +13 -0
- data/lib/abbrev_checker/docs/abbrev_checker/abbrev_checker.001.png +0 -0
- data/lib/abbrev_checker/docs/abbrev_checker/abbrev_checker.002.png +0 -0
- data/lib/abbrev_checker/docs/abbrev_checker/abbrev_checker.003.png +0 -0
- data/lib/abbrev_checker/docs/abbrev_checker.key +0 -0
- data/lib/abbrev_checker/docs/readme.html +141 -0
- data/lib/abbrev_checker/docs/readme.org +46 -0
- data/lib/abbrev_checker/word_log.yaml +18 -0
- data/lib/hc.rb +21 -2
- data/lib/mk_semi_lattice/version.rb +1 -1
- data/lib/mk_stack/docs/mk_stack/mk_stack.001.png +0 -0
- data/lib/mk_stack/docs/mk_stack.key +0 -0
- data/lib/mk_stack/docs/readme.html +14 -11
- data/lib/mk_stack/docs/readme.org +3 -0
- data/lib/mk_stack/mk_stack.rb +16 -2
- data/lib/voca_buil/.vscode/settings.json +4 -0
- data/lib/voca_buil/docs/readme.html +59 -37
- data/lib/voca_buil/docs/readme.org +22 -8
- data/lib/voca_buil/docs/voca_buil/voca_buil.001.png +0 -0
- data/lib/voca_buil/docs/voca_buil/voca_buil.002.png +0 -0
- data/lib/voca_buil/docs/voca_buil/voca_buil.003.png +0 -0
- data/lib/voca_buil/docs/voca_buil/voca_buil.004.png +0 -0
- data/lib/voca_buil/docs/voca_buil/voca_buil.005.png +0 -0
- data/lib/voca_buil/docs/voca_buil/voca_buil.006.png +0 -0
- data/lib/voca_buil/docs/voca_buil/voca_buil.007.png +0 -0
- data/lib/voca_buil/docs/voca_buil/voca_buil.008.png +0 -0
- data/lib/voca_buil/docs/voca_buil/voca_buil.009.png +0 -0
- data/lib/voca_buil/docs/voca_buil/voca_buil.010.png +0 -0
- data/lib/voca_buil/docs/voca_buil/voca_buil.011.png +0 -0
- data/lib/voca_buil/docs/voca_buil/voca_buil.012.png +0 -0
- data/lib/voca_buil/docs/voca_buil/voca_buil.013.png +0 -0
- data/lib/voca_buil/docs/voca_buil/voca_buil.014.png +0 -0
- data/lib/voca_buil/docs/voca_buil/voca_buil.015.png +0 -0
- data/lib/voca_buil/docs/voca_buil/voca_buil.016.png +0 -0
- data/lib/voca_buil/docs/voca_buil/voca_buil.017.png +0 -0
- data/lib/voca_buil/docs/voca_buil/voca_buil.018.png +0 -0
- data/lib/voca_buil/docs/voca_buil.key +0 -0
- data/lib/voca_buil/etymological_builder_check_sample.tgz +0 -0
- data/lib/voca_buil/multi_check.rb +48 -14
- data/lib/voca_buil/project.code-workspace +5 -0
- data/readme.html +143 -0
- metadata +36 -31
- data/lib/voca_buil/check_log.yaml +0 -37
- data/lib/voca_buil/word_log.yaml +0 -14
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
4
4
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="jp" xml:lang="jp">
|
|
5
5
|
<head>
|
|
6
|
-
<!-- 2026-01-
|
|
6
|
+
<!-- 2026-01-12 Mon 12:26 -->
|
|
7
7
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
|
8
8
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
9
9
|
<title>hc checkの使い方</title>
|
|
@@ -27,23 +27,24 @@
|
|
|
27
27
|
<h2>Table of Contents</h2>
|
|
28
28
|
<div id="text-table-of-contents" role="doc-toc">
|
|
29
29
|
<ul>
|
|
30
|
-
<li><a href="#
|
|
31
|
-
<li><a href="#
|
|
32
|
-
<li><a href="#
|
|
30
|
+
<li><a href="#org40120f3">1. name</a></li>
|
|
31
|
+
<li><a href="#org72c4a13">2. install</a></li>
|
|
32
|
+
<li><a href="#org1a28326">3. usage</a>
|
|
33
33
|
<ul>
|
|
34
|
-
<li><a href="#
|
|
35
|
-
<li><a href="#
|
|
36
|
-
<li><a href="#
|
|
37
|
-
<li><a href="#
|
|
34
|
+
<li><a href="#orgbd07c35">3.1. hc check</a></li>
|
|
35
|
+
<li><a href="#org354b522">3.2. tree構造</a></li>
|
|
36
|
+
<li><a href="#orgf49d271">3.3. iterative check(#1)</a></li>
|
|
37
|
+
<li><a href="#org6c0955a">3.4. single check(#2)</a></li>
|
|
38
38
|
</ul>
|
|
39
39
|
</li>
|
|
40
|
-
<li><a href="#
|
|
41
|
-
<li><a href="#
|
|
40
|
+
<li><a href="#orgc5dcf4b">4. dir_tree.yaml編集</a></li>
|
|
41
|
+
<li><a href="#orga7b4e7c">5. </a></li>
|
|
42
|
+
<li><a href="#orgdc57de9">6. references</a></li>
|
|
42
43
|
</ul>
|
|
43
44
|
</div>
|
|
44
45
|
</div>
|
|
45
|
-
<div id="outline-container-
|
|
46
|
-
<h2 id="
|
|
46
|
+
<div id="outline-container-org40120f3" class="outline-2">
|
|
47
|
+
<h2 id="org40120f3"><span class="section-number-2">1.</span> name</h2>
|
|
47
48
|
<div class="outline-text-2" id="text-1">
|
|
48
49
|
<ul class="org-ul">
|
|
49
50
|
<li>hc checkは英単語のetymological(語源に基づく) buildingを行うclaです.</li>
|
|
@@ -53,22 +54,19 @@
|
|
|
53
54
|
</ul>
|
|
54
55
|
</div>
|
|
55
56
|
</div>
|
|
56
|
-
<div id="outline-container-
|
|
57
|
-
<h2 id="
|
|
57
|
+
<div id="outline-container-org72c4a13" class="outline-2">
|
|
58
|
+
<h2 id="org72c4a13"><span class="section-number-2">2.</span> install</h2>
|
|
58
59
|
<div class="outline-text-2" id="text-2">
|
|
59
60
|
<div class="org-src-container">
|
|
60
|
-
<pre class="src src-bash">>
|
|
61
|
-
>
|
|
62
|
-
> cd ~
|
|
63
|
-
> tar xvf etymological_builder_check_260105.tgz
|
|
64
|
-
> sudo gem install mk_semi_lattice
|
|
61
|
+
<pre class="src src-bash">> sudo gem install mk_semi_lattice <span style="color: #7f7f7f;"># </span><span style="color: #7f7f7f;">install mk_sl and hc</span>
|
|
62
|
+
> hc check --install <span style="color: #7f7f7f;"># </span><span style="color: #7f7f7f;">install etymological builder yamls</span>
|
|
65
63
|
> cd _stack_init_check_dirs
|
|
66
64
|
</pre>
|
|
67
65
|
</div>
|
|
68
66
|
</div>
|
|
69
67
|
</div>
|
|
70
|
-
<div id="outline-container-
|
|
71
|
-
<h2 id="
|
|
68
|
+
<div id="outline-container-org1a28326" class="outline-2">
|
|
69
|
+
<h2 id="org1a28326"><span class="section-number-2">3.</span> usage</h2>
|
|
72
70
|
<div class="outline-text-2" id="text-3">
|
|
73
71
|
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
|
74
72
|
|
|
@@ -78,7 +76,7 @@
|
|
|
78
76
|
</colgroup>
|
|
79
77
|
<tbody>
|
|
80
78
|
<tr>
|
|
81
|
-
<td class="org-left"
|
|
79
|
+
<td class="org-left">[[<img src="./voca_buil/voca_buil.017.png" alt="voca_buil.017.png" /></td>
|
|
82
80
|
</tr>
|
|
83
81
|
|
|
84
82
|
<tr>
|
|
@@ -87,8 +85,8 @@
|
|
|
87
85
|
</tbody>
|
|
88
86
|
</table>
|
|
89
87
|
</div>
|
|
90
|
-
<div id="outline-container-
|
|
91
|
-
<h3 id="
|
|
88
|
+
<div id="outline-container-orgbd07c35" class="outline-3">
|
|
89
|
+
<h3 id="orgbd07c35"><span class="section-number-3">3.1.</span> hc check</h3>
|
|
92
90
|
<div class="outline-text-3" id="text-3-1">
|
|
93
91
|
<p>
|
|
94
92
|
mk_semi_latticeをgemでinstallすると,
|
|
@@ -105,19 +103,19 @@ hc(hyper cardの略)も同時にinstallされます.
|
|
|
105
103
|
</p>
|
|
106
104
|
</div>
|
|
107
105
|
</div>
|
|
108
|
-
<div id="outline-container-
|
|
109
|
-
<h3 id="
|
|
106
|
+
<div id="outline-container-org354b522" class="outline-3">
|
|
107
|
+
<h3 id="org354b522"><span class="section-number-3">3.2.</span> tree構造</h3>
|
|
110
108
|
<div class="outline-text-3" id="text-3-2">
|
|
111
109
|
<p>
|
|
112
110
|
展開された_stack_init_check_dirsはtreeで確認できます.
|
|
113
111
|
</p>
|
|
114
112
|
</div>
|
|
115
113
|
</div>
|
|
116
|
-
<div id="outline-container-
|
|
117
|
-
<h3 id="
|
|
114
|
+
<div id="outline-container-orgf49d271" class="outline-3">
|
|
115
|
+
<h3 id="orgf49d271"><span class="section-number-3">3.3.</span> iterative check(#1)</h3>
|
|
118
116
|
<div class="outline-text-3" id="text-3-3">
|
|
119
117
|
<p>
|
|
120
|
-
|
|
118
|
+
_stack_init_check_dirs上で
|
|
121
119
|
</p>
|
|
122
120
|
<pre class="example">
|
|
123
121
|
> hc check -i 5 -a 8 -q 5
|
|
@@ -129,8 +127,8 @@ pwd上で
|
|
|
129
127
|
</p>
|
|
130
128
|
</div>
|
|
131
129
|
</div>
|
|
132
|
-
<div id="outline-container-
|
|
133
|
-
<h3 id="
|
|
130
|
+
<div id="outline-container-org6c0955a" class="outline-3">
|
|
131
|
+
<h3 id="org6c0955a"><span class="section-number-3">3.4.</span> single check(#2)</h3>
|
|
134
132
|
<div class="outline-text-3" id="text-3-4">
|
|
135
133
|
<p>
|
|
136
134
|
間違いの多かったdirに移動(cd)してチェックを
|
|
@@ -147,9 +145,29 @@ pwd上で
|
|
|
147
145
|
</div>
|
|
148
146
|
</div>
|
|
149
147
|
</div>
|
|
150
|
-
<div id="outline-container-
|
|
151
|
-
<h2 id="
|
|
148
|
+
<div id="outline-container-orgc5dcf4b" class="outline-2">
|
|
149
|
+
<h2 id="orgc5dcf4b"><span class="section-number-2">4.</span> dir_tree.yaml編集</h2>
|
|
152
150
|
<div class="outline-text-2" id="text-4">
|
|
151
|
+
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
<colgroup>
|
|
155
|
+
<col class="org-left" />
|
|
156
|
+
</colgroup>
|
|
157
|
+
<tbody>
|
|
158
|
+
<tr>
|
|
159
|
+
<td class="org-left"><img src="./voca_buil/voca_buil.018.png" alt="voca_buil.018.png" /></td>
|
|
160
|
+
</tr>
|
|
161
|
+
|
|
162
|
+
<tr>
|
|
163
|
+
<td class="org-left">Fig.2 dir_tree.yamlのフォーマット.</td>
|
|
164
|
+
</tr>
|
|
165
|
+
</tbody>
|
|
166
|
+
</table>
|
|
167
|
+
<p>
|
|
168
|
+
Answers-Quizはdir_tree.yamlから取り出しています.
|
|
169
|
+
</p>
|
|
170
|
+
|
|
153
171
|
<pre class="example">
|
|
154
172
|
> hc stack
|
|
155
173
|
</pre>
|
|
@@ -160,9 +178,13 @@ pwd上で
|
|
|
160
178
|
</p>
|
|
161
179
|
</div>
|
|
162
180
|
</div>
|
|
163
|
-
<div id="outline-container-
|
|
164
|
-
<h2 id="
|
|
165
|
-
|
|
181
|
+
<div id="outline-container-orga7b4e7c" class="outline-2">
|
|
182
|
+
<h2 id="orga7b4e7c"><span class="section-number-2">5.</span> </h2>
|
|
183
|
+
</div>
|
|
184
|
+
|
|
185
|
+
<div id="outline-container-orgdc57de9" class="outline-2">
|
|
186
|
+
<h2 id="orgdc57de9"><span class="section-number-2">6.</span> references</h2>
|
|
187
|
+
<div class="outline-text-2" id="text-6">
|
|
166
188
|
<p>
|
|
167
189
|
「由来とつながりがわかる英単語語源マップ」, 臼井俊雄著, (ベレ出版, 2017).
|
|
168
190
|
</p>
|
|
@@ -171,7 +193,7 @@ pwd上で
|
|
|
171
193
|
</div>
|
|
172
194
|
<div id="postamble" class="status">
|
|
173
195
|
<p class="author">Author: Shigeto R. Nishitani</p>
|
|
174
|
-
<p class="date">Created: 2026-01-
|
|
196
|
+
<p class="date">Created: 2026-01-12 Mon 12:26</p>
|
|
175
197
|
<p class="validation"><a href="https://validator.w3.org/check?uri=referer">Validate</a></p>
|
|
176
198
|
</div>
|
|
177
199
|
</body>
|
|
@@ -15,15 +15,12 @@
|
|
|
15
15
|
|
|
16
16
|
* install
|
|
17
17
|
#+begin_src bash
|
|
18
|
-
>
|
|
19
|
-
>
|
|
20
|
-
> cd ~
|
|
21
|
-
> tar xvf etymological_builder_check_260105.tgz
|
|
22
|
-
> sudo gem install mk_semi_lattice
|
|
18
|
+
> sudo gem install mk_semi_lattice # install mk_sl and hc
|
|
19
|
+
> hc check --install # install etymological builder yamls
|
|
23
20
|
> cd _stack_init_check_dirs
|
|
24
21
|
#+end_src
|
|
25
22
|
* usage
|
|
26
|
-
| [[file:./voca_buil.png]]
|
|
23
|
+
| [[file:./voca_buil/voca_buil.017.png]]
|
|
27
24
|
| Fig.1 hc checkの動作の概略図.
|
|
28
25
|
** hc check
|
|
29
26
|
mk_semi_latticeをgemでinstallすると,
|
|
@@ -37,7 +34,7 @@ hc(hyper cardの略)も同時にinstallされます.
|
|
|
37
34
|
展開された_stack_init_check_dirsはtreeで確認できます.
|
|
38
35
|
|
|
39
36
|
** iterative check(#1)
|
|
40
|
-
|
|
37
|
+
_stack_init_check_dirs上で
|
|
41
38
|
: > hc check -i 5 -a 8 -q 5
|
|
42
39
|
とすると iteration=5, answer=8, quiz=5で
|
|
43
40
|
繰り返し(iterative) checkが走ります.
|
|
@@ -48,11 +45,28 @@ pwd上で
|
|
|
48
45
|
: > hc check
|
|
49
46
|
走らせると,r1_sta/dir_tree.yamlを参照して
|
|
50
47
|
単一(single)のcheckが走ります.
|
|
51
|
-
|
|
48
|
+
* help
|
|
49
|
+
#+begin_src zsh
|
|
50
|
+
> hc abbrev -h
|
|
51
|
+
Usage: hc check [options]
|
|
52
|
+
-f, --file FILE YAML file to use
|
|
53
|
+
-a, --answer NUM # not implemented
|
|
54
|
+
-q, --quiz NUM Number of quiz(def 5)
|
|
55
|
+
-i, --iterative [NUM] Test iteratively (num=2)
|
|
56
|
+
--install Install sample abbrev data
|
|
57
|
+
#+end_src
|
|
52
58
|
* dir_tree.yaml編集
|
|
59
|
+
| [[file:../../voca_guil/docs/voca_buil/voca_buil.018.png]]
|
|
60
|
+
| Fig.2 dir_tree.yamlのフォーマット.
|
|
61
|
+
Answers-Quizはdir_tree.yamlから取り出しています.
|
|
62
|
+
自分の進捗に合わせて編集していってください.
|
|
63
|
+
消してしまわずに'#'でコメントアウトするのが正しいやり方.
|
|
64
|
+
|
|
65
|
+
さらに,
|
|
53
66
|
: > hc stack
|
|
54
67
|
でバックアップをとって変えていくのがコツです.
|
|
55
68
|
[[../../mk_stack/docs/readme.org][stackの解説]]を参照ください.
|
|
56
69
|
|
|
70
|
+
|
|
57
71
|
* references
|
|
58
72
|
「由来とつながりがわかる英単語語源マップ」, 臼井俊雄著, (ベレ出版, 2017).
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -7,10 +7,12 @@ require 'date'
|
|
|
7
7
|
|
|
8
8
|
module VocaBuil
|
|
9
9
|
class OptionParserWrapper
|
|
10
|
-
OPTIONS_DEFAULT = { file: 'dir_tree.yaml', w_num: 5, a_num: 5, iter: nil }
|
|
10
|
+
OPTIONS_DEFAULT = { file: 'dir_tree.yaml', w_num: 5, a_num: 5, iter: nil, install: false }
|
|
11
11
|
|
|
12
12
|
def self.parse(args = ARGV)
|
|
13
13
|
options = OPTIONS_DEFAULT.dup
|
|
14
|
+
|
|
15
|
+
options[:cmd_line] = args.join(' ') # 追加: 残ったargsを記録
|
|
14
16
|
opt = ::OptionParser.new
|
|
15
17
|
opt.banner = "Usage: hc check [options]"
|
|
16
18
|
opt.on('-f FILE', '--file FILE', 'YAML file to use') do |v|
|
|
@@ -25,6 +27,9 @@ module VocaBuil
|
|
|
25
27
|
opt.on('-i [NUM]', '--iterative [NUM]', Integer, 'Test iteratively (num=2)') do |v|
|
|
26
28
|
options[:iter] = v.nil? ? 2 : v
|
|
27
29
|
end
|
|
30
|
+
opt.on('--install', 'Install sample check data') do
|
|
31
|
+
options[:install] = true
|
|
32
|
+
end
|
|
28
33
|
opt.parse!(args)
|
|
29
34
|
p options
|
|
30
35
|
options
|
|
@@ -99,20 +104,28 @@ module VocaBuil
|
|
|
99
104
|
end
|
|
100
105
|
|
|
101
106
|
def update_logs(results)
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
107
|
+
cmd_opts = @options[:cmd_line] || ""
|
|
108
|
+
correct = results.values.count('t')
|
|
109
|
+
total = results.size
|
|
110
|
+
log_line = [
|
|
111
|
+
Time.now.strftime('%Y-%m-%d %H:%M:%S'),
|
|
112
|
+
cmd_opts,
|
|
113
|
+
"#{correct}/#{total}"
|
|
114
|
+
]
|
|
115
|
+
|
|
116
|
+
# check_log.yamlの更新
|
|
117
|
+
log_file = @check_log_file
|
|
118
|
+
logs = File.exist?(log_file) ? YAML.load_file(log_file) : []
|
|
119
|
+
logs << log_line
|
|
120
|
+
File.write(log_file, YAML.dump(logs))
|
|
121
|
+
|
|
122
|
+
# word_log.yamlの更新
|
|
123
|
+
word_log = File.exist?(@word_log_file) ? YAML.load_file(@word_log_file) : {}
|
|
124
|
+
results.each do |word, tf|
|
|
125
|
+
word_log[word] ||= ""
|
|
126
|
+
word_log[word] += tf
|
|
112
127
|
end
|
|
113
|
-
|
|
114
|
-
File.write(@check_log_file, YAML.dump(check_log))
|
|
115
|
-
File.write(@word_log_file, YAML.dump(learning_log))
|
|
128
|
+
File.write(@word_log_file, YAML.dump(word_log))
|
|
116
129
|
end
|
|
117
130
|
|
|
118
131
|
def select_least_correct_words(whole_words)
|
|
@@ -199,6 +212,7 @@ module VocaBuil
|
|
|
199
212
|
def parse_word_lines(lines)
|
|
200
213
|
words = []
|
|
201
214
|
lines[1..-1].each do |line|
|
|
215
|
+
line = line.split('#', 2)[0]
|
|
202
216
|
next if line.strip == ''
|
|
203
217
|
line_strip = if line.strip[0] == ':'
|
|
204
218
|
line.strip[1..-2]
|
|
@@ -296,10 +310,30 @@ module VocaBuil
|
|
|
296
310
|
end
|
|
297
311
|
end
|
|
298
312
|
end
|
|
313
|
+
|
|
314
|
+
class InstallCheckSample
|
|
315
|
+
def initialize(tgz_file = 'etymological_builder_check_sample.tgz')
|
|
316
|
+
@tgz_file = File.join(__dir__, tgz_file)
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
def run
|
|
320
|
+
unless File.exist?(@tgz_file)
|
|
321
|
+
puts "#{@tgz_file} not found.".red
|
|
322
|
+
return
|
|
323
|
+
end
|
|
324
|
+
puts "Extracting #{@tgz_file} to current directory...".green
|
|
325
|
+
system("tar", "xzf", @tgz_file)
|
|
326
|
+
puts "Extraction complete.".green
|
|
327
|
+
end
|
|
328
|
+
end
|
|
299
329
|
end
|
|
300
330
|
|
|
301
331
|
if __FILE__ == $0
|
|
302
332
|
options = VocaBuil::OptionParserWrapper.parse
|
|
333
|
+
if options[:install]
|
|
334
|
+
VocaBuil::InstallCheckSample.new.run
|
|
335
|
+
exit
|
|
336
|
+
end
|
|
303
337
|
if options[:iter]
|
|
304
338
|
VocaBuil::IterativeCheck.new(options, options[:iter]).run
|
|
305
339
|
else
|
data/readme.html
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" lang="jp" xml:lang="jp">
|
|
5
|
+
<head>
|
|
6
|
+
<!-- 2026-01-12 Mon 15:34 -->
|
|
7
|
+
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
|
8
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
9
|
+
<title>mk_semi_lattice, hc</title>
|
|
10
|
+
<meta name="author" content="Shigeto R. Nishitani" />
|
|
11
|
+
<meta name="generator" content="Org Mode" />
|
|
12
|
+
<link rel="stylesheet" type="text/css" href="https://fniessen.github.io/org-html-themes/src/readtheorg_theme/css/htmlize.css"/>
|
|
13
|
+
<link rel="stylesheet" type="text/css" href="https://fniessen.github.io/org-html-themes/src/readtheorg_theme/css/readtheorg.css"/>
|
|
14
|
+
<link rel="stylesheet" type="text/css" href="https://fniessen.github.io/org-html-themes/src/readtheorg_theme/css/code-copy.css"/>
|
|
15
|
+
<link rel="stylesheet" type="text/css" href="src/readtheorg_theme/css/search.css"/>
|
|
16
|
+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
|
|
17
|
+
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
|
|
18
|
+
<script type="text/javascript" src="https://fniessen.github.io/org-html-themes/src/lib/js/jquery.stickytableheaders.min.js"></script>
|
|
19
|
+
<script type="text/javascript" src="https://fniessen.github.io/org-html-themes/src/readtheorg_theme/js/search.js"></script>
|
|
20
|
+
<script type="text/javascript" src="https://fniessen.github.io/org-html-themes/src/readtheorg_theme/js/readtheorg.js"></script>
|
|
21
|
+
<script type="text/javascript" src="https://fniessen.github.io/org-html-themes/src/readtheorg_theme/js/code-copy.js"></script>
|
|
22
|
+
</head>
|
|
23
|
+
<body>
|
|
24
|
+
<div id="content" class="content">
|
|
25
|
+
<h1 class="title">mk_semi_lattice, hc</h1>
|
|
26
|
+
<div id="table-of-contents" role="doc-toc">
|
|
27
|
+
<h2>Table of Contents</h2>
|
|
28
|
+
<div id="text-table-of-contents" role="doc-toc">
|
|
29
|
+
<ul>
|
|
30
|
+
<li><a href="#org01d32c1">1. Name</a></li>
|
|
31
|
+
<li><a href="#org24a221e">2. Installation</a></li>
|
|
32
|
+
<li><a href="#orga072f8d">3. Usage</a></li>
|
|
33
|
+
<li><a href="#org72aed05">4. Development</a></li>
|
|
34
|
+
<li><a href="#org189070f">5. Contributing</a></li>
|
|
35
|
+
<li><a href="#org239f0a3">6. License</a></li>
|
|
36
|
+
<li><a href="#org868d9a9">7. Code of Conduct</a></li>
|
|
37
|
+
</ul>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
<div id="outline-container-org01d32c1" class="outline-2">
|
|
41
|
+
<h2 id="org01d32c1"><span class="section-number-2">1.</span> Name</h2>
|
|
42
|
+
<div class="outline-text-2" id="text-1">
|
|
43
|
+
<p>
|
|
44
|
+
セミラティス(semi lattice)構造を表示するmk_slコマンドと,
|
|
45
|
+
英単語の習得を目指したhcコマンドです.
|
|
46
|
+
</p>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
<div id="outline-container-org24a221e" class="outline-2">
|
|
50
|
+
<h2 id="org24a221e"><span class="section-number-2">2.</span> Installation</h2>
|
|
51
|
+
<div class="outline-text-2" id="text-2">
|
|
52
|
+
<p>
|
|
53
|
+
'mk_semi_lattice' depends on 'ruby2d'.
|
|
54
|
+
See the installation manual on <a href="https://www.ruby2d.com/learn/linux/#install-packages">https://www.ruby2d.com</a>.
|
|
55
|
+
</p>
|
|
56
|
+
|
|
57
|
+
<p>
|
|
58
|
+
Install the gem and add to the application's Gemfile by executing:
|
|
59
|
+
</p>
|
|
60
|
+
|
|
61
|
+
<div class="org-src-container">
|
|
62
|
+
<pre class="src src-sh">bundle add mk_semi_lattice
|
|
63
|
+
</pre>
|
|
64
|
+
</div>
|
|
65
|
+
|
|
66
|
+
<p>
|
|
67
|
+
If bundler is not being used to manage dependencies, install the gem by
|
|
68
|
+
executing:
|
|
69
|
+
</p>
|
|
70
|
+
|
|
71
|
+
<div class="org-src-container">
|
|
72
|
+
<pre class="src src-sh">gem install mk_semi_lattice
|
|
73
|
+
</pre>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
<div id="outline-container-orga072f8d" class="outline-2">
|
|
78
|
+
<h2 id="orga072f8d"><span class="section-number-2">3.</span> Usage</h2>
|
|
79
|
+
<div class="outline-text-2" id="text-3">
|
|
80
|
+
<div class="org-src-container">
|
|
81
|
+
<pre class="src src-bash">> hc -h
|
|
82
|
+
Commands:
|
|
83
|
+
</pre>
|
|
84
|
+
</div>
|
|
85
|
+
<ul class="org-ul">
|
|
86
|
+
<li><a href="./lib/abbrev_checker/docs/readme.html">hc abbrev</a> # check abbreviations</li>
|
|
87
|
+
<li><a href="./lib/voca_buil/docs/readme.html">hc check</a> # check word for vocabulary builder</li>
|
|
88
|
+
<li>hc help [COMMAND] # Describe available commands or one specific command</li>
|
|
89
|
+
<li><a href="./lib/split_pdf/docs/readme.html">hc split_pdf</a> # split PDF files</li>
|
|
90
|
+
<li><a href="./lib/mk_stack/docs/readme.html">hc stack</a> # make stacks</li>
|
|
91
|
+
<li><a href="./lib/mk_semi_lattice/docs/readme.html">hc view</a> # View Semi Lattice Graph</li>
|
|
92
|
+
</ul>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
<div id="outline-container-org72aed05" class="outline-2">
|
|
96
|
+
<h2 id="org72aed05"><span class="section-number-2">4.</span> Development</h2>
|
|
97
|
+
<div class="outline-text-2" id="text-4">
|
|
98
|
+
<p>
|
|
99
|
+
To install this gem onto your local machine, run
|
|
100
|
+
<code>bundle exec rake install</code>. To release a new version, update the version
|
|
101
|
+
number in <code>version.rb</code>, and then run <code>bundle exec rake release</code>, which
|
|
102
|
+
will create a git tag for the version, push git commits and the created
|
|
103
|
+
tag, and push the <code>.gem</code> file to <a href="https://rubygems.org">rubygems.org</a>.
|
|
104
|
+
</p>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
<div id="outline-container-org189070f" class="outline-2">
|
|
108
|
+
<h2 id="org189070f"><span class="section-number-2">5.</span> Contributing</h2>
|
|
109
|
+
<div class="outline-text-2" id="text-5">
|
|
110
|
+
<p>
|
|
111
|
+
Bug reports and pull requests are welcome on GitHub at
|
|
112
|
+
<a href="https://github.com/daddygongon/mk_semi_lattice">https://github.com/daddygongon/mk_semi_lattice</a>. This project is intended
|
|
113
|
+
to be a safe, welcoming space for collaboration, and contributors are
|
|
114
|
+
expected to adhere to the <a href="https://github.com/%5BUSERNAME%5D/mk_semi_lattice/blob/main/CODE_OF_CONDUCT.md">code of conduct</a>.
|
|
115
|
+
</p>
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
<div id="outline-container-org239f0a3" class="outline-2">
|
|
119
|
+
<h2 id="org239f0a3"><span class="section-number-2">6.</span> License</h2>
|
|
120
|
+
<div class="outline-text-2" id="text-6">
|
|
121
|
+
<p>
|
|
122
|
+
The gem is available as open source under the terms of the <a href="https://opensource.org/licenses/MIT">MIT License</a>.
|
|
123
|
+
</p>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
<div id="outline-container-org868d9a9" class="outline-2">
|
|
127
|
+
<h2 id="org868d9a9"><span class="section-number-2">7.</span> Code of Conduct</h2>
|
|
128
|
+
<div class="outline-text-2" id="text-7">
|
|
129
|
+
<p>
|
|
130
|
+
Everyone interacting in the MkSemiLattice project's codebases, issue
|
|
131
|
+
trackers, chat rooms and mailing lists is expected to follow the
|
|
132
|
+
<a href="https://github.com/%5BUSERNAME%5D/mk_semi_lattice/blob/main/CODE_OF_CONDUCT.md">code of conduct</a>.
|
|
133
|
+
</p>
|
|
134
|
+
</div>
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
<div id="postamble" class="status">
|
|
138
|
+
<p class="author">Author: Shigeto R. Nishitani</p>
|
|
139
|
+
<p class="date">Created: 2026-01-12 Mon 15:34</p>
|
|
140
|
+
<p class="validation"><a href="https://validator.w3.org/check?uri=referer">Validate</a></p>
|
|
141
|
+
</div>
|
|
142
|
+
</body>
|
|
143
|
+
</html>
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mk_semi_lattice
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Shigeto R. Nishitani
|
|
@@ -37,34 +37,6 @@ dependencies:
|
|
|
37
37
|
- - ">="
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
39
|
version: '0'
|
|
40
|
-
- !ruby/object:Gem::Dependency
|
|
41
|
-
name: ruby2d
|
|
42
|
-
requirement: !ruby/object:Gem::Requirement
|
|
43
|
-
requirements:
|
|
44
|
-
- - ">="
|
|
45
|
-
- !ruby/object:Gem::Version
|
|
46
|
-
version: '0'
|
|
47
|
-
type: :runtime
|
|
48
|
-
prerelease: false
|
|
49
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
-
requirements:
|
|
51
|
-
- - ">="
|
|
52
|
-
- !ruby/object:Gem::Version
|
|
53
|
-
version: '0'
|
|
54
|
-
- !ruby/object:Gem::Dependency
|
|
55
|
-
name: minitest-reporters
|
|
56
|
-
requirement: !ruby/object:Gem::Requirement
|
|
57
|
-
requirements:
|
|
58
|
-
- - ">="
|
|
59
|
-
- !ruby/object:Gem::Version
|
|
60
|
-
version: '0'
|
|
61
|
-
type: :runtime
|
|
62
|
-
prerelease: false
|
|
63
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
64
|
-
requirements:
|
|
65
|
-
- - ">="
|
|
66
|
-
- !ruby/object:Gem::Version
|
|
67
|
-
version: '0'
|
|
68
40
|
description: make semi lattice graph from directory structure
|
|
69
41
|
email:
|
|
70
42
|
- shigeto_nishitani@me.com
|
|
@@ -111,6 +83,19 @@ files:
|
|
|
111
83
|
- exe/mk_sl
|
|
112
84
|
- lib/.semi_lattice/icons/document.png
|
|
113
85
|
- lib/.semi_lattice/icons/folder.png
|
|
86
|
+
- lib/Rakefile
|
|
87
|
+
- lib/abbrev_checker/abbrev_check.rb
|
|
88
|
+
- lib/abbrev_checker/abbrev_sample.tgz
|
|
89
|
+
- lib/abbrev_checker/abbrev_yamls/command_tree.yaml
|
|
90
|
+
- lib/abbrev_checker/abbrev_yamls/initialism_tree.yaml
|
|
91
|
+
- lib/abbrev_checker/check_log.yaml
|
|
92
|
+
- lib/abbrev_checker/docs/abbrev_checker.key
|
|
93
|
+
- lib/abbrev_checker/docs/abbrev_checker/abbrev_checker.001.png
|
|
94
|
+
- lib/abbrev_checker/docs/abbrev_checker/abbrev_checker.002.png
|
|
95
|
+
- lib/abbrev_checker/docs/abbrev_checker/abbrev_checker.003.png
|
|
96
|
+
- lib/abbrev_checker/docs/readme.html
|
|
97
|
+
- lib/abbrev_checker/docs/readme.org
|
|
98
|
+
- lib/abbrev_checker/word_log.yaml
|
|
114
99
|
- lib/hc.rb
|
|
115
100
|
- lib/mk_semi_lattice.rb
|
|
116
101
|
- lib/mk_semi_lattice/.semi_lattice/dir_node_edge.yaml
|
|
@@ -145,14 +130,34 @@ files:
|
|
|
145
130
|
- lib/split_pdf/docs/readme.org
|
|
146
131
|
- lib/split_pdf/docs/split_pdf.key
|
|
147
132
|
- lib/split_pdf/split_pdf.rb
|
|
148
|
-
- lib/voca_buil/
|
|
133
|
+
- lib/voca_buil/.vscode/settings.json
|
|
149
134
|
- lib/voca_buil/docs/readme.html
|
|
150
135
|
- lib/voca_buil/docs/readme.org
|
|
151
136
|
- lib/voca_buil/docs/voca_buil.key
|
|
152
137
|
- lib/voca_buil/docs/voca_buil.pdf
|
|
153
138
|
- lib/voca_buil/docs/voca_buil.png
|
|
139
|
+
- lib/voca_buil/docs/voca_buil/voca_buil.001.png
|
|
140
|
+
- lib/voca_buil/docs/voca_buil/voca_buil.002.png
|
|
141
|
+
- lib/voca_buil/docs/voca_buil/voca_buil.003.png
|
|
142
|
+
- lib/voca_buil/docs/voca_buil/voca_buil.004.png
|
|
143
|
+
- lib/voca_buil/docs/voca_buil/voca_buil.005.png
|
|
144
|
+
- lib/voca_buil/docs/voca_buil/voca_buil.006.png
|
|
145
|
+
- lib/voca_buil/docs/voca_buil/voca_buil.007.png
|
|
146
|
+
- lib/voca_buil/docs/voca_buil/voca_buil.008.png
|
|
147
|
+
- lib/voca_buil/docs/voca_buil/voca_buil.009.png
|
|
148
|
+
- lib/voca_buil/docs/voca_buil/voca_buil.010.png
|
|
149
|
+
- lib/voca_buil/docs/voca_buil/voca_buil.011.png
|
|
150
|
+
- lib/voca_buil/docs/voca_buil/voca_buil.012.png
|
|
151
|
+
- lib/voca_buil/docs/voca_buil/voca_buil.013.png
|
|
152
|
+
- lib/voca_buil/docs/voca_buil/voca_buil.014.png
|
|
153
|
+
- lib/voca_buil/docs/voca_buil/voca_buil.015.png
|
|
154
|
+
- lib/voca_buil/docs/voca_buil/voca_buil.016.png
|
|
155
|
+
- lib/voca_buil/docs/voca_buil/voca_buil.017.png
|
|
156
|
+
- lib/voca_buil/docs/voca_buil/voca_buil.018.png
|
|
157
|
+
- lib/voca_buil/etymological_builder_check_sample.tgz
|
|
154
158
|
- lib/voca_buil/multi_check.rb
|
|
155
|
-
- lib/voca_buil/
|
|
159
|
+
- lib/voca_buil/project.code-workspace
|
|
160
|
+
- readme.html
|
|
156
161
|
- sig/mk_semi_lattice.rbs
|
|
157
162
|
homepage: https://github.com/daddygongon/mk_semi_lattice
|
|
158
163
|
licenses:
|