mk_semi_lattice 0.3.1 → 0.4.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.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/.semi_lattice/icons/document.png +0 -0
  3. data/.semi_lattice/icons/folder.png +0 -0
  4. data/README.org +30 -33
  5. data/exe/hc +3 -0
  6. data/lib/.semi_lattice/icons/document.png +0 -0
  7. data/lib/.semi_lattice/icons/folder.png +0 -0
  8. data/lib/hc.rb +34 -0
  9. data/lib/mk_semi_lattice/.semi_lattice/icons/document.png +0 -0
  10. data/lib/mk_semi_lattice/.semi_lattice/icons/folder.png +0 -0
  11. data/lib/mk_semi_lattice/docs/images/mk_semi_lattice.001.png +0 -0
  12. data/lib/mk_semi_lattice/docs/images/mk_semi_lattice.002.png +0 -0
  13. data/lib/mk_semi_lattice/docs/images/mk_semi_lattice.003.png +0 -0
  14. data/lib/mk_semi_lattice/docs/images/mk_semi_lattice.key +0 -0
  15. data/lib/mk_semi_lattice/docs/readme.html +143 -0
  16. data/lib/mk_semi_lattice/docs/readme.org +50 -0
  17. data/lib/mk_semi_lattice/option_manager.rb +9 -8
  18. data/lib/mk_semi_lattice/version.rb +1 -1
  19. data/lib/mk_semi_lattice.rb +8 -3
  20. data/lib/mk_stack/.semi_lattice/icons/document.png +0 -0
  21. data/lib/mk_stack/.semi_lattice/icons/folder.png +0 -0
  22. data/lib/mk_stack/.vscode/settings.json +4 -0
  23. data/lib/mk_stack/docs/mk_stack/mk_stack.001.png +0 -0
  24. data/lib/mk_stack/docs/mk_stack.key +0 -0
  25. data/lib/mk_stack/docs/readme.html +142 -0
  26. data/lib/mk_stack/docs/readme.org +55 -0
  27. data/lib/mk_stack/mk_stack.rb +126 -0
  28. data/lib/mk_stack/project.code-workspace +5 -0
  29. data/lib/split_pdf/docs/images/split_pdf.001.png +0 -0
  30. data/lib/split_pdf/docs/readme.html +153 -0
  31. data/lib/split_pdf/docs/readme.org +68 -0
  32. data/lib/split_pdf/docs/split_pdf.key +0 -0
  33. data/lib/split_pdf/split_pdf.rb +118 -0
  34. data/lib/voca_buil/check_log.yaml +37 -0
  35. data/lib/voca_buil/docs/readme.html +178 -0
  36. data/lib/voca_buil/docs/readme.org +58 -0
  37. data/lib/voca_buil/docs/voca_buil.key +0 -0
  38. data/lib/voca_buil/docs/voca_buil.pdf +0 -0
  39. data/lib/voca_buil/docs/voca_buil.png +0 -0
  40. data/lib/voca_buil/multi_check.rb +308 -0
  41. data/lib/voca_buil/word_log.yaml +14 -0
  42. metadata +38 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0d344bc5e5985d443acbd280d0c567b0e01be8635971e5155339d5b3b21e1b76
4
- data.tar.gz: 3782664243e07f23a4e800505d08daf299963afb0df5923a489602ead09d84ad
3
+ metadata.gz: 638f66acbf8ab6be179d1ca6f40d5b4d945e645e4527340d8765fac9a323da50
4
+ data.tar.gz: 824274573342a78826f017f973b0e90a68b1e5e469f454ec1a9094c6a13c63d0
5
5
  SHA512:
6
- metadata.gz: 9c9d8bd624f964fe520ba5b55dbad67cdac44a0791b1693f6d3d177e5c9555675cc88a853e764cbd99eea209c7c120a0d2b1e420911a128f34c68aa8148d7105
7
- data.tar.gz: f3990badd3f2fbd9d7a0c1b4a99322c8203a018d9d0e80e30018da3d8736980599a37b9bfca0a77480b71f8a01bde7edbce8097584d5d26a5480295327f02134
6
+ metadata.gz: a709a137ac25b90a0a2e2d09ae0f2d262f73c2feec0e5a027213801bcd09fcaeb767104e7d34482a1fde9006b26e465b9d8c801f76fff2398c9df1e3088cbf1d
7
+ data.tar.gz: 0eaffd4bfa10e806642b6df13b275245c597aadb98a72a60fbeddb6b5b47e6df0e5022b8688b209f2a07d8185a92a169896dc334ebd54197a852c805c4c15101
Binary file
Binary file
data/README.org CHANGED
@@ -1,9 +1,19 @@
1
- * MkSemiLattice
2
- Making semi-lattice graph from directory or other yaml files.
1
+ #+OPTIONS: ^:{}
2
+ #+STARTUP: indent nolineimages overview num
3
+ #+TITLE: mk_semi_lattice, hc
4
+ #+AUTHOR: Shigeto R. Nishitani
5
+ #+EMAIL: (concat "shigeto_nishitani@mac.com")
6
+ #+LANGUAGE: jp
7
+ #+OPTIONS: H:4 toc:t num:2
8
+ #+SETUPFILE: https://fniessen.github.io/org-html-themes/org/theme-readtheorg.setup
3
9
 
4
- ** Installation
10
+ * Name
11
+ セミラティス(semi lattice)構造を表示するmk_slコマンドと,
12
+ 英単語の習得を目指したhcコマンドです.
13
+
14
+ * Installation
5
15
  'mk_semi_lattice' depends on 'ruby2d'.
6
- See the installation manual on https://www.ruby2d.com.
16
+ See the installation manual on [[https://www.ruby2d.com/learn/linux/#install-packages][https://www.ruby2d.com]].
7
17
 
8
18
  Install the gem and add to the application's Gemfile by executing:
9
19
 
@@ -18,52 +28,39 @@ executing:
18
28
  gem install mk_semi_lattice
19
29
  #+end_src
20
30
 
21
- ** Usage
31
+ * Usage
22
32
  #+begin_src bash
23
- mk_semi_lattice is running...
24
- Usage: mk_semi_lattice PATH [options]
25
- Default PATH = '.'
26
-
27
- When using -I, always use '=' or quote the pattern, e.g.:
28
- -I='_stack_*|*.yaml' -a
29
- --ignore='_stack_*|*.yaml' -a
30
- Multiple patterns can be separated by '|'.
31
- Wildcards '*' and '?' are supported (like the 'tree' command).
32
- Do not use -ad; use -a -d for combined flags.
33
-
34
- -L N Layer depth (default: 2)
35
- -n, --node=FILE using File from node-edge
36
- -t, --tree=FILE using File from tree
37
- -i, --index Display node ids
38
- -l, --log [BOOL] Enable/disable logging (true/false), and save to config
39
- -v, --version show version
40
- -d Show directories only
41
- -a Show all (files and directories)
42
- -Y YAML exclude mode
43
- -I, --ignore=PATTERN Ignore files/dirs matching PATTERN (e.g. '_stack_*|*.yaml')
33
+ > hc -h
34
+ Commands:
35
+ hc check # check word for vocabulary builder
36
+ hc help [COMMAND] # Describe available commands or one specific command
37
+ hc split_pdf # split PDF files
38
+ hc stack # make stacks
39
+ hc view # View Semi Lattice Graph
44
40
  #+end_src
45
41
 
46
- ** Development
47
- After checking out the repo, run =bin/setup= to install dependencies.
48
- Then, run =rake test= to run the tests. You can also run =bin/console=
49
- for an interactive prompt that will allow you to experiment.
42
+ - [[./lib/mk_semi_lattice/docs/readme.org][hc view]]
43
+ - [[./lib/mk_stack/docs/readme.org][hc stack]]
44
+ - [[./lib/voca_buil/docs/readme.org][hc check]]
45
+ - [[./lib/split_pdf/docs/readme.org][hc split_pdf]]
50
46
 
47
+ * Development
51
48
  To install this gem onto your local machine, run
52
49
  =bundle exec rake install=. To release a new version, update the version
53
50
  number in =version.rb=, and then run =bundle exec rake release=, which
54
51
  will create a git tag for the version, push git commits and the created
55
52
  tag, and push the =.gem= file to [[https://rubygems.org][rubygems.org]].
56
53
 
57
- ** Contributing
54
+ * Contributing
58
55
  Bug reports and pull requests are welcome on GitHub at
59
56
  https://github.com/daddygongon/mk_semi_lattice. This project is intended
60
57
  to be a safe, welcoming space for collaboration, and contributors are
61
58
  expected to adhere to the [[https://github.com/%5BUSERNAME%5D/mk_semi_lattice/blob/main/CODE_OF_CONDUCT.md][code of conduct]].
62
59
 
63
- ** License
60
+ * License
64
61
  The gem is available as open source under the terms of the [[https://opensource.org/licenses/MIT][MIT License]].
65
62
 
66
- ** Code of Conduct
63
+ * Code of Conduct
67
64
  Everyone interacting in the MkSemiLattice project's codebases, issue
68
65
  trackers, chat rooms and mailing lists is expected to follow the
69
66
  [[https://github.com/%5BUSERNAME%5D/mk_semi_lattice/blob/main/CODE_OF_CONDUCT.md][code of conduct]].
data/exe/hc ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "hc"
Binary file
data/lib/hc.rb ADDED
@@ -0,0 +1,34 @@
1
+ require 'thor'
2
+ require_relative "mk_semi_lattice/version"
3
+ require_relative "mk_stack/mk_stack"
4
+ require_relative "voca_buil/multi_check"
5
+ require_relative "split_pdf/split_pdf"
6
+
7
+
8
+ class CLI < Thor
9
+ desc "view", "View Semi Lattice Graph"
10
+ def view(*argv)
11
+ system "mk_semi_lattice", *argv
12
+ end
13
+
14
+ desc 'stack', 'make stacks'
15
+ def stack(*argv)
16
+ MkStack.new(argv).run
17
+ end
18
+
19
+ desc 'split_pdf', 'split PDF files'
20
+ def split_pdf(*argv)
21
+ SplitPDF.new(argv).run
22
+ end
23
+ desc 'check_word', 'check word for vocabulary builder'
24
+ def check_word(*argv)
25
+ options = VocaBuil::OptionParserWrapper.parse
26
+ if options[:iter]
27
+ VocaBuil::IterativeCheck.new(options, options[:iter]).run
28
+ else
29
+ VocaBuil::BaseCheck.new(options).run
30
+ end
31
+ end
32
+ end
33
+
34
+ CLI.start(ARGV)
@@ -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-06 Tue 16:20 -->
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_sl, hc view</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_sl, hc view</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="#orga30be58">1. Name</a></li>
31
+ <li><a href="#orgaf6ac97">2. Help</a></li>
32
+ <li><a href="#org47216ee">3. Usage</a>
33
+ <ul>
34
+ <li><a href="#org4773506">3.1. simple (with option Layer 3)</a></li>
35
+ <li><a href="#org6bae69b">3.2. use option from tree</a></li>
36
+ <li><a href="#org90a2f71">3.3. use option for dirs only</a></li>
37
+ </ul>
38
+ </li>
39
+ </ul>
40
+ </div>
41
+ </div>
42
+ <div id="outline-container-orga30be58" class="outline-2">
43
+ <h2 id="orga30be58"><span class="section-number-2">1.</span> Name</h2>
44
+ <div class="outline-text-2" id="text-1">
45
+ <p>
46
+ Making semi-lattice graph from directory or other yaml files.
47
+ </p>
48
+ </div>
49
+ </div>
50
+ <div id="outline-container-orgaf6ac97" class="outline-2">
51
+ <h2 id="orgaf6ac97"><span class="section-number-2">2.</span> Help</h2>
52
+ <div class="outline-text-2" id="text-2">
53
+ <div class="org-src-container">
54
+ <pre class="src src-bash">&#57520; hc view -h
55
+ mk_semi_lattice is running...
56
+ Usage: mk_semi_lattice PATH [options]
57
+ or: hc view PATH [options]
58
+ Default PATH = <span style="color: #8b7355;">'.'</span>
59
+ -L N Layer depth (default: 2)
60
+ -n, --node=FILE using File from node-edge
61
+ -t, --tree=FILE using File from tree
62
+ -i, --index Display node ids
63
+ -l, --log [BOOL] Enable/disable logging (true/false), and save to config
64
+ -v, --version show version
65
+ -d Show directories only
66
+ -a Show all (files and directories)
67
+ -Y YAML exclude mode
68
+ -I, --ignore=PATTERN Ignore files/dirs matching PATTERN (e.g. <span style="color: #8b7355;">'_stack_*|*.yaml'</span>)
69
+
70
+ When using -I, always use <span style="color: #8b7355;">'='</span> or quote the pattern, e.g.:
71
+ -I=<span style="color: #8b7355;">'_stack_*|*.yaml'</span> -a
72
+ --ignore=<span style="color: #8b7355;">'_stack_*|*.yaml'</span> -a
73
+ Multiple patterns can be separated by <span style="color: #8b7355;">'|'</span>.
74
+ Wildcards <span style="color: #8b7355;">'*'</span> and <span style="color: #8b7355;">'?'</span> are supported (like the <span style="color: #8b7355;">'tree'</span> command).
75
+ Do not use -ad; use -a -d for combined flags.
76
+ </pre>
77
+ </div>
78
+ </div>
79
+ </div>
80
+ <div id="outline-container-org47216ee" class="outline-2">
81
+ <h2 id="org47216ee"><span class="section-number-2">3.</span> Usage</h2>
82
+ <div class="outline-text-2" id="text-3">
83
+ </div>
84
+ <div id="outline-container-org4773506" class="outline-3">
85
+ <h3 id="org4773506"><span class="section-number-3">3.1.</span> simple (with option Layer 3)</h3>
86
+ <div class="outline-text-3" id="text-3-1">
87
+ <table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
88
+
89
+
90
+ <colgroup>
91
+ <col class="org-left" />
92
+ </colgroup>
93
+ <tbody>
94
+ <tr>
95
+ <td class="org-left"><img src="./images/mk_semi_lattice.001.png" alt="mk_semi_lattice.001.png" /></td>
96
+ </tr>
97
+ </tbody>
98
+ </table>
99
+ </div>
100
+ </div>
101
+ <div id="outline-container-org6bae69b" class="outline-3">
102
+ <h3 id="org6bae69b"><span class="section-number-3">3.2.</span> use option from tree</h3>
103
+ <div class="outline-text-3" id="text-3-2">
104
+ <table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
105
+
106
+
107
+ <colgroup>
108
+ <col class="org-left" />
109
+ </colgroup>
110
+ <tbody>
111
+ <tr>
112
+ <td class="org-left"><img src="./images/mk_semi_lattice.002.png" alt="mk_semi_lattice.002.png" /></td>
113
+ </tr>
114
+ </tbody>
115
+ </table>
116
+ </div>
117
+ </div>
118
+ <div id="outline-container-org90a2f71" class="outline-3">
119
+ <h3 id="org90a2f71"><span class="section-number-3">3.3.</span> use option for dirs only</h3>
120
+ <div class="outline-text-3" id="text-3-3">
121
+ <table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
122
+
123
+
124
+ <colgroup>
125
+ <col class="org-left" />
126
+ </colgroup>
127
+ <tbody>
128
+ <tr>
129
+ <td class="org-left"><img src="./images/mk_semi_lattice.003.png" alt="mk_semi_lattice.003.png" /></td>
130
+ </tr>
131
+ </tbody>
132
+ </table>
133
+ </div>
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-06 Tue 16:20</p>
140
+ <p class="validation"><a href="https://validator.w3.org/check?uri=referer">Validate</a></p>
141
+ </div>
142
+ </body>
143
+ </html>
@@ -0,0 +1,50 @@
1
+ #+OPTIONS: ^:{}
2
+ #+STARTUP: indent nolineimages overview num
3
+ #+TITLE: mk_sl, hc view
4
+ #+AUTHOR: Shigeto R. Nishitani
5
+ #+EMAIL: (concat "shigeto_nishitani@mac.com")
6
+ #+LANGUAGE: jp
7
+ #+OPTIONS: H:4 toc:t num:2
8
+ #+SETUPFILE: https://fniessen.github.io/org-html-themes/org/theme-readtheorg.setup
9
+
10
+
11
+ * Name
12
+ Making semi-lattice graph from directory or other yaml files.
13
+
14
+ * Help
15
+ #+begin_src bash
16
+  hc view -h
17
+ mk_semi_lattice is running...
18
+ Usage: mk_semi_lattice PATH [options]
19
+ or: hc view PATH [options]
20
+ Default PATH = '.'
21
+ -L N Layer depth (default: 2)
22
+ -n, --node=FILE using File from node-edge
23
+ -t, --tree=FILE using File from tree
24
+ -i, --index Display node ids
25
+ -l, --log [BOOL] Enable/disable logging (true/false), and save to config
26
+ -v, --version show version
27
+ -d Show directories only
28
+ -a Show all (files and directories)
29
+ -Y YAML exclude mode
30
+ -I, --ignore=PATTERN Ignore files/dirs matching PATTERN (e.g. '_stack_*|*.yaml')
31
+
32
+ When using -I, always use '=' or quote the pattern, e.g.:
33
+ -I='_stack_*|*.yaml' -a
34
+ --ignore='_stack_*|*.yaml' -a
35
+ Multiple patterns can be separated by '|'.
36
+ Wildcards '*' and '?' are supported (like the 'tree' command).
37
+ Do not use -ad; use -a -d for combined flags.
38
+ #+end_src
39
+
40
+ * Usage
41
+ ** simple (with option Layer 3)
42
+ | [[./images/mk_semi_lattice.001.png]]
43
+
44
+ ** use option from tree
45
+ | [[./images/mk_semi_lattice.002.png]]
46
+
47
+ ** use option for dirs only
48
+ | [[./images/mk_semi_lattice.003.png]]
49
+
50
+
@@ -15,15 +15,8 @@ class OptionManager
15
15
  OptionParser.new do |opts|
16
16
  opts.banner = <<~BANNER
17
17
  Usage: mk_semi_lattice PATH [options]
18
+ or: hc view PATH [options]
18
19
  Default PATH = '.'
19
-
20
- When using -I, always use '=' or quote the pattern, e.g.:
21
- -I='_stack_*|*.yaml' -a
22
- --ignore='_stack_*|*.yaml' -a
23
- Multiple patterns can be separated by '|'.
24
- Wildcards '*' and '?' are supported (like the 'tree' command).
25
- Do not use -ad; use -a -d for combined flags.
26
-
27
20
  BANNER
28
21
 
29
22
  opts.on("-L N", Integer, "Layer depth (default: 2)") do |v|
@@ -94,6 +87,14 @@ class OptionManager
94
87
  @options[:ignore] = pattern
95
88
  end
96
89
 
90
+ opts.separator "
91
+ When using -I, always use '=' or quote the pattern, e.g.:
92
+ -I='_stack_*|*.yaml' -a
93
+ --ignore='_stack_*|*.yaml' -a
94
+ Multiple patterns can be separated by '|'.
95
+ Wildcards '*' and '?' are supported (like the 'tree' command).
96
+ Do not use -ad; use -a -d for combined flags.
97
+ "
97
98
  end.parse!
98
99
 
99
100
  if a_flag && d_flag
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MkSemiLattice
4
- VERSION = "0.3.1"
4
+ VERSION = "0.4.1"
5
5
  end
@@ -5,8 +5,14 @@ require 'yaml'
5
5
  require 'colorize'
6
6
  require 'rbconfig'
7
7
  require 'fileutils'
8
+ require 'thor'
8
9
 
9
10
  require_relative "mk_semi_lattice/version"
11
+ #require_relative "mk_semi_lattice/ruby2d_run"
12
+
13
+
14
+ class Error < StandardError; end
15
+
10
16
  require_relative "mk_semi_lattice/ruby2d_action"
11
17
  require_relative "mk_semi_lattice/init_env"
12
18
  require_relative "mk_semi_lattice/option_manager"
@@ -14,9 +20,6 @@ require_relative "mk_semi_lattice/manage_yaml/mk_node_edge_yaml"
14
20
  require_relative "mk_semi_lattice/manage_yaml/mk_semi_lattice_yaml"
15
21
  require_relative "mk_semi_lattice/sl_components"
16
22
 
17
- class Error < StandardError; end
18
-
19
-
20
23
  def init
21
24
  puts "mk_semi_lattice is running..."
22
25
 
@@ -92,3 +95,5 @@ if defined?(RSpec) || defined?(Minitest)
92
95
  else
93
96
  ruby2d_run(*init())
94
97
  end
98
+
99
+
@@ -0,0 +1,4 @@
1
+ {
2
+ "chat.agent.enabled": false,
3
+ "github.copilot.chat.codesearch.enabled": true,
4
+ }
Binary file
@@ -0,0 +1,142 @@
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-06 Tue 16:19 -->
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>hc stack</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">hc stack</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="#org77f9c3b">1. Name</a></li>
31
+ <li><a href="#org71c4689">2. Help</a></li>
32
+ <li><a href="#org26b5647">3. What does 'stack' do?</a></li>
33
+ </ul>
34
+ </div>
35
+ </div>
36
+ <div id="outline-container-org77f9c3b" class="outline-2">
37
+ <h2 id="org77f9c3b"><span class="section-number-2">1.</span> Name</h2>
38
+ <div class="outline-text-2" id="text-1">
39
+ <p>
40
+ make stack structures.
41
+ </p>
42
+
43
+ <ul class="org-ul">
44
+ <li>gitのrepositoryのように,
45
+ <ul class="org-ul">
46
+ <li>新しい作業を始める前に,</li>
47
+ <li>バックアップの'stack'構造を作成するコマンドです.</li>
48
+ </ul></li>
49
+ <li>安心してcodeやdocsの改変に取り組むことが可能です.
50
+ <ul class="org-ul">
51
+ <li>gitに慣れると手戻り(rewind)ができるようになりますが,</li>
52
+ <li>初心者が,いつでも過去のファイルを直接参照できるので,</li>
53
+ <li>安心です.</li>
54
+ </ul></li>
55
+ </ul>
56
+ </div>
57
+ </div>
58
+ <div id="outline-container-org71c4689" class="outline-2">
59
+ <h2 id="org71c4689"><span class="section-number-2">2.</span> Help</h2>
60
+ <div class="outline-text-2" id="text-2">
61
+ <div class="org-src-container">
62
+ <pre class="src src-bash">&gt; hc stack -h
63
+ Usage: hc stack [options]
64
+ -n, --number=NUMBER Add ordinal number
65
+ -d, --dryrun Dry run (<span style="color: #1c86ee;">do</span> not move or create anything)
66
+ </pre>
67
+ </div>
68
+ </div>
69
+ </div>
70
+ <div id="outline-container-org26b5647" class="outline-2">
71
+ <h2 id="org26b5647"><span class="section-number-2">3.</span> What does 'stack' do?</h2>
72
+ <div class="outline-text-2" id="text-3">
73
+ <table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
74
+
75
+
76
+ <colgroup>
77
+ <col class="org-left" />
78
+ </colgroup>
79
+ <tbody>
80
+ <tr>
81
+ <td class="org-left"><img src="./mk_stack/mk_stack.001.png" alt="mk_stack.001.png" /></td>
82
+ </tr>
83
+
84
+ <tr>
85
+ <td class="org-left">stack動作のポンチ絵.</td>
86
+ </tr>
87
+ </tbody>
88
+ </table>
89
+
90
+ <p>
91
+ stackという動作名称は,昔のHyperCardシステムからの借用です.
92
+ </p>
93
+
94
+ <p>
95
+ やってることは,current directoryで新しい_stack_ordinal_yymmdd という
96
+ 名前のdirectoryを作成し,そこに全てのファイル,directoryを
97
+ 移すという操作です.
98
+ </p>
99
+
100
+ <p>
101
+ この後,
102
+ </p>
103
+ <ul class="org-ul">
104
+ <li>directory名の修正</li>
105
+ <li>必要なファイルの移動,copy</li>
106
+ </ul>
107
+ <p>
108
+ を行い,新しく作業を上書きしていくことになります.
109
+ 昔のファイルを参照することが多い作業者には,便利なはずです.
110
+ </p>
111
+
112
+ <p>
113
+ 特に,mdでChatGPTとの会話を記録する必要がある作業者は,
114
+ その場でmdを保存すると,
115
+ </p>
116
+ <ul class="org-ul">
117
+ <li>treeコマンドで過去の履歴が一望,</li>
118
+ <li>そこへcdすれば,その時の環境ですぐに検証可能,</li>
119
+ <li>_stack_ordinal_yymmdd -&gt; .stack_ordinal_yymmdd</li>
120
+ <li>などとhiddenにすることも容易
121
+ <ul class="org-ul">
122
+ <li>不要なmd, code fileなどを隠す</li>
123
+ </ul></li>
124
+ </ul>
125
+ <p>
126
+ ができます.
127
+ </p>
128
+
129
+ <p>
130
+ 整理の基本となる,chunking, tight bindingを
131
+ 強制するシステムコマンドです.ご活用ください.
132
+ </p>
133
+ </div>
134
+ </div>
135
+ </div>
136
+ <div id="postamble" class="status">
137
+ <p class="author">Author: Shigeto R. Nishitani</p>
138
+ <p class="date">Created: 2026-01-06 Tue 16:19</p>
139
+ <p class="validation"><a href="https://validator.w3.org/check?uri=referer">Validate</a></p>
140
+ </div>
141
+ </body>
142
+ </html>
@@ -0,0 +1,55 @@
1
+ #+OPTIONS: ^:{}
2
+ #+STARTUP: indent nolineimages overview num
3
+ #+TITLE: hc stack
4
+ #+AUTHOR: Shigeto R. Nishitani
5
+ #+EMAIL: (concat "shigeto_nishitani@mac.com")
6
+ #+LANGUAGE: jp
7
+ #+OPTIONS: H:4 toc:t num:2
8
+ #+SETUPFILE: https://fniessen.github.io/org-html-themes/org/theme-readtheorg.setup
9
+
10
+ * Name
11
+ make stack structures.
12
+
13
+ - gitのrepositoryのように,
14
+ - 新しい作業を始める前に,
15
+ - バックアップの'stack'構造を作成するコマンドです.
16
+ - 安心してcodeやdocsの改変に取り組むことが可能です.
17
+ - gitに慣れると手戻り(rewind)ができるようになりますが,
18
+ - 初心者が,いつでも過去のファイルを直接参照できるので,
19
+ - 安心です.
20
+
21
+ * Help
22
+ #+begin_src bash
23
+ > hc stack -h
24
+ Usage: hc stack [options]
25
+ -n, --number=NUMBER Add ordinal number
26
+ -d, --dryrun Dry run (do not move or create anything)
27
+ #+end_src
28
+
29
+ * What does 'stack' do?
30
+ | [[./mk_stack/mk_stack.001.png]]
31
+ | stack動作のポンチ絵.
32
+
33
+ stackという動作名称は,昔のHyperCardシステムからの借用です.
34
+
35
+ やってることは,current directoryで新しい_stack_ordinal_yymmdd という
36
+ 名前のdirectoryを作成し,そこに全てのファイル,directoryを
37
+ 移すという操作です.
38
+
39
+ この後,
40
+ - directory名の修正
41
+ - 必要なファイルの移動,copy
42
+ を行い,新しく作業を上書きしていくことになります.
43
+ 昔のファイルを参照することが多い作業者には,便利なはずです.
44
+
45
+ 特に,mdでChatGPTとの会話を記録する必要がある作業者は,
46
+ その場でmdを保存すると,
47
+ - treeコマンドで過去の履歴が一望,
48
+ - そこへcdすれば,その時の環境ですぐに検証可能,
49
+ - _stack_ordinal_yymmdd -> .stack_ordinal_yymmdd
50
+ - などとhiddenにすることも容易
51
+ - 不要なmd, code fileなどを隠す
52
+ ができます.
53
+
54
+ 整理の基本となる,chunking, tight bindingを
55
+ 強制するシステムコマンドです.ご活用ください.