hikiutils 0.2.3.12 → 0.2.3.13
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/hikiutils_bob/Rakefile +3 -2
- data/hikiutils_yamane/Rakefile +148 -30
- data/hikiutils_yamane/Rakefile~ +477 -0
- data/hikiutils_yamane/command.hiki +13 -13
- data/hikiutils_yamane/compare.hiki +96 -5
- data/hikiutils_yamane/figs/hikiutils_yamane.001.jpg +0 -0
- data/hikiutils_yamane/figs/hikiutils_yamane.002.jpg +0 -0
- data/hikiutils_yamane/figs/hikiutils_yamane.003.jpg +0 -0
- data/hikiutils_yamane/figs/hikiutils_yamane.004.jpg +0 -0
- data/hikiutils_yamane/figs/hikiutils_yamane.005.jpg +0 -0
- data/hikiutils_yamane/figs/hikiutils_yamane.006.jpg +0 -0
- data/hikiutils_yamane/figs/hikiutils_yamane.007.jpg +0 -0
- data/hikiutils_yamane/hikiutils_yamane/hikiutils_yamane.001.jpeg +0 -0
- data/hikiutils_yamane/hikiutils_yamane/hikiutils_yamane.002.jpeg +0 -0
- data/hikiutils_yamane/hikiutils_yamane/hikiutils_yamane.003.jpeg +0 -0
- data/hikiutils_yamane/hikiutils_yamane/hikiutils_yamane.004.jpeg +0 -0
- data/hikiutils_yamane/hikiutils_yamane/hikiutils_yamane.005.jpeg +0 -0
- data/hikiutils_yamane/hikiutils_yamane/hikiutils_yamane.006.jpeg +0 -0
- data/hikiutils_yamane/hikiutils_yamane/hikiutils_yamane.007.jpeg +0 -0
- data/hikiutils_yamane/hikiutils_yamane.hiki +6 -10
- data/hikiutils_yamane/introduction.hiki +5 -5
- data/hikiutils_yamane/latex_dir/%CA%FD/313/241.aux +21 -0
- data/hikiutils_yamane/latex_dir/abstract.aux +2 -2
- data/hikiutils_yamane/latex_dir/command.aux +15 -14
- data/hikiutils_yamane/latex_dir/command.log +0 -0
- data/hikiutils_yamane/latex_dir/command.tex +15 -14
- data/hikiutils_yamane/latex_dir/compare.aux +11 -5
- data/hikiutils_yamane/latex_dir/compare.tex +97 -5
- data/hikiutils_yamane/latex_dir/hikiutils_yamane.aux +6 -3
- data/hikiutils_yamane/latex_dir/hikiutils_yamane.log +113 -162
- data/hikiutils_yamane/latex_dir/hikiutils_yamane.pdf +0 -0
- data/hikiutils_yamane/latex_dir/hikiutils_yamane.synctex.gz +0 -0
- data/hikiutils_yamane/latex_dir/hikiutils_yamane.tex +15 -18
- data/hikiutils_yamane/latex_dir/hikiutils_yamane.toc +31 -26
- data/hikiutils_yamane/latex_dir/introduction.aux +6 -4
- data/hikiutils_yamane/latex_dir/introduction.tex +5 -4
- data/hikiutils_yamane/latex_dir/jlisting.sty +216 -0
- data/hikiutils_yamane/latex_dir/optparse.aux +11 -9
- data/hikiutils_yamane/latex_dir/optparse.tex +11 -8
- data/hikiutils_yamane/latex_dir/pre.tex +36 -0
- data/hikiutils_yamane/latex_dir/thor.aux +13 -13
- data/hikiutils_yamane/latex_dir/thor.tex +9 -11
- data/hikiutils_yamane/optparse.hiki +7 -6
- data/hikiutils_yamane/test.rb +10 -0
- data/hikiutils_yamane/thor.hiki +4 -5
- data/lib/hikiutils/version.rb +1 -1
- data/lib/hikiutils_thor.rb +39 -39
- data/lib/hikiutils_thor.rb~ +3 -4
- data/lib/templates/Rakefile_hiki_sync +3 -2
- metadata +15 -9
- data/hikiutils_yamane/hikiutils_yamane/hikiutils_yamane.001.jpg +0 -0
- data/hikiutils_yamane/hikiutils_yamane/hikiutils_yamane.002.jpg +0 -0
- data/hikiutils_yamane/hikiutils_yamane/hikiutils_yamane.003.jpg +0 -0
- data/hikiutils_yamane/hikiutils_yamane/hikiutils_yamane.004.jpg +0 -0
- data/hikiutils_yamane/hikiutils_yamane/hikiutils_yamane.005.jpg +0 -0
- data/hikiutils_yamane/hikiutils_yamane/hikiutils_yamane.006.jpg +0 -0
- data/hikiutils_yamane/hikiutils_yamane/hikiutils_yamane.007.jpg +0 -0
data/lib/hikiutils_thor.rb
CHANGED
@@ -50,9 +50,9 @@ HTML_TEMPLATE = <<EOS
|
|
50
50
|
</html>
|
51
51
|
EOS
|
52
52
|
|
53
|
-
desc '
|
54
|
-
map "--show" => "show"
|
55
|
-
def
|
53
|
+
desc 'pwd', 'show nick_names'
|
54
|
+
# map "--show" => "show"
|
55
|
+
def pwd
|
56
56
|
printf("target_no:%i\n",@src[:target])
|
57
57
|
printf("editor_command:%s\n",@src[:editor_command])
|
58
58
|
@i_size,@n_size,@l_size,@g_size=3,5,30,15 #i,g_size are fixed
|
@@ -78,16 +78,16 @@ EOS
|
|
78
78
|
}
|
79
79
|
end
|
80
80
|
|
81
|
-
desc '
|
82
|
-
map "--version" => "version"
|
81
|
+
desc '-v', 'show program version'
|
82
|
+
# map "--version" => "version"
|
83
83
|
map "-v" => "version"
|
84
84
|
def version
|
85
85
|
puts HikiUtils::VERSION
|
86
86
|
end
|
87
87
|
|
88
|
-
desc 'add
|
89
|
-
map "--add" => "add"
|
90
|
-
option :add
|
88
|
+
desc 'add', 'add sources info'
|
89
|
+
# map "--add" => "add"
|
90
|
+
# option :add
|
91
91
|
def add
|
92
92
|
cont = {}
|
93
93
|
@data_name.each{|name|
|
@@ -99,16 +99,16 @@ EOS
|
|
99
99
|
show
|
100
100
|
end
|
101
101
|
|
102
|
-
desc '
|
103
|
-
map "--target" => "target"
|
104
|
-
def
|
102
|
+
desc 'cd VAL', 'set target id'
|
103
|
+
# map "--target" => "target"
|
104
|
+
def cd(val)
|
105
105
|
@src[:target] = val.to_i
|
106
106
|
show
|
107
107
|
end
|
108
108
|
|
109
|
-
desc '
|
110
|
-
map "--edit" => "edit"
|
111
|
-
def
|
109
|
+
desc 'open', 'open file'
|
110
|
+
# map "--edit" => "edit"
|
111
|
+
def open(file)
|
112
112
|
t_file=File.join(@l_dir,'text',file)
|
113
113
|
if !File.exist?(t_file) then
|
114
114
|
file=File.open(t_file,'w')
|
@@ -119,18 +119,18 @@ EOS
|
|
119
119
|
system command
|
120
120
|
end
|
121
121
|
|
122
|
-
desc '
|
123
|
-
map "--list" => "list"
|
124
|
-
def
|
122
|
+
desc 'ls [FILE]', 'list files'
|
123
|
+
# map "--list" => "list"
|
124
|
+
def ls(file)
|
125
125
|
file ='' if file==nil
|
126
126
|
t_file=File.join(@l_dir,'text')
|
127
127
|
print "target_dir : "+t_file+"\n"
|
128
128
|
print `cd #{t_file} ; ls -lt #{file}*`
|
129
129
|
end
|
130
130
|
|
131
|
-
desc '
|
132
|
-
map "--update" => "update"
|
133
|
-
def
|
131
|
+
desc 'touch', 'update file'
|
132
|
+
# map "--update" => "update"
|
133
|
+
def touch(file0)
|
134
134
|
file = (file0==nil) ? 'FrontPage' : file0
|
135
135
|
t_file=File.join(@l_dir,'cache/parser',file)
|
136
136
|
FileUtils.rm(t_file,:verbose=>true)
|
@@ -143,9 +143,9 @@ EOS
|
|
143
143
|
p "If you get 整形式になっていません, try login as a valid user."
|
144
144
|
end
|
145
145
|
|
146
|
-
desc 'rsync
|
147
|
-
map "--rsync" => "rsync"
|
148
|
-
option :rsync
|
146
|
+
desc 'rsync', 'rsync files'
|
147
|
+
# map "--rsync" => "rsync"
|
148
|
+
# option :rsync
|
149
149
|
def rsync
|
150
150
|
p local = @l_dir
|
151
151
|
p global = @src[:srcs][@target][:global_dir]
|
@@ -153,16 +153,16 @@ EOS
|
|
153
153
|
system command
|
154
154
|
end
|
155
155
|
|
156
|
-
desc '
|
157
|
-
map "--database" => "database"
|
158
|
-
def
|
156
|
+
desc 'db FILE', 'read datebase file'
|
157
|
+
# map "--database" => "database"
|
158
|
+
def db(file_name)
|
159
159
|
info=InfoDB.new(@l_dir)
|
160
160
|
p info.show(file_name)
|
161
161
|
end
|
162
162
|
|
163
|
-
desc '
|
164
|
-
map "--display" => "display"
|
165
|
-
def
|
163
|
+
desc 'show FILE', 'display converted hikifile'
|
164
|
+
# map "--display" => "display"
|
165
|
+
def show(file)
|
166
166
|
body = HikiDoc.to_html(File.read(file))
|
167
167
|
source = HTML_TEMPLATE
|
168
168
|
title = File.basename(file)
|
@@ -173,16 +173,16 @@ EOS
|
|
173
173
|
system "open #{t.path}"
|
174
174
|
end
|
175
175
|
|
176
|
-
desc 'checkdb
|
177
|
-
map "--checkdb" => "checkdb"
|
176
|
+
desc 'checkdb', 'check database file'
|
177
|
+
# map "--checkdb" => "checkdb"
|
178
178
|
def checkdb
|
179
179
|
result= InfoDB.new(@l_dir).show_inconsist
|
180
180
|
print (result=='') ? "db agrees with text dir.\n" : result
|
181
181
|
end
|
182
182
|
|
183
|
-
desc '
|
184
|
-
map "--remove" => "remove"
|
185
|
-
def
|
183
|
+
desc 'rm [FILE]', 'remove files'
|
184
|
+
# map "--remove" => "remove"
|
185
|
+
def rm(file_name)
|
186
186
|
p text_path = File.join(@l_dir,'text',file_name)
|
187
187
|
p attach_path = File.join(@l_dir,'cache/attach',file_name)
|
188
188
|
begin
|
@@ -203,9 +203,9 @@ EOS
|
|
203
203
|
info.dump
|
204
204
|
end
|
205
205
|
|
206
|
-
desc '
|
207
|
-
map "--move" => "move"
|
208
|
-
def
|
206
|
+
desc 'mv [FILE]', 'move file'
|
207
|
+
# map "--move" => "move"
|
208
|
+
def mv(files)
|
209
209
|
begin
|
210
210
|
p file1_path = File.join(@l_dir,'text',files[0])
|
211
211
|
p file2_path = File.join(@l_dir,'text',files[1])
|
@@ -266,8 +266,8 @@ EOS
|
|
266
266
|
info.dump
|
267
267
|
end
|
268
268
|
|
269
|
-
desc 'euc FILE
|
270
|
-
map "--euc" => "euc"
|
269
|
+
desc 'euc FILE', 'translate file to euc'
|
270
|
+
# map "--euc" => "euc"
|
271
271
|
def euc(file)
|
272
272
|
p file_path = File.join(@l_dir,'text',file)
|
273
273
|
cont = File.readlines(file_path)
|
data/lib/hikiutils_thor.rb~
CHANGED
@@ -16,7 +16,6 @@ module Hikithor
|
|
16
16
|
DATA_FILE=File.join(ENV['HOME'],'.hikirc')
|
17
17
|
attr_accessor :src, :target, :editor_command, :browser, :data_name, :l_dir
|
18
18
|
|
19
|
-
|
20
19
|
class CLI < Thor
|
21
20
|
def initialize(*args)
|
22
21
|
super
|
@@ -51,9 +50,9 @@ HTML_TEMPLATE = <<EOS
|
|
51
50
|
</html>
|
52
51
|
EOS
|
53
52
|
|
54
|
-
desc '
|
55
|
-
map "--show" => "show"
|
56
|
-
def
|
53
|
+
desc 'pwd', 'show nick_names'
|
54
|
+
# map "--show" => "show"
|
55
|
+
def pwd
|
57
56
|
printf("target_no:%i\n",@src[:target])
|
58
57
|
printf("editor_command:%s\n",@src[:editor_command])
|
59
58
|
@i_size,@n_size,@l_size,@g_size=3,5,30,15 #i,g_size are fixed
|
@@ -36,7 +36,7 @@ task :reset_hiki do
|
|
36
36
|
}
|
37
37
|
r_files = files.reverse[0..-4]
|
38
38
|
r_files.each{|file|
|
39
|
-
print "remove #{file}[ynqlA]
|
39
|
+
print "remove #{file}? [ynqlA] ".red
|
40
40
|
input=STDIN.gets.chomp
|
41
41
|
case input
|
42
42
|
when 'y'
|
@@ -49,7 +49,7 @@ task :reset_hiki do
|
|
49
49
|
when 'q'
|
50
50
|
exit
|
51
51
|
when 'A'
|
52
|
-
print "\nAre you sure[Yn]
|
52
|
+
print "\nAre you sure? [Yn] ".magenta
|
53
53
|
input2 = STDIN.gets.chomp
|
54
54
|
case input2
|
55
55
|
when 'Y'
|
@@ -189,6 +189,7 @@ end
|
|
189
189
|
|
190
190
|
desc "すべてのhikiファイルをlatex変換"
|
191
191
|
task :latex_all do
|
192
|
+
check_bounding_box
|
192
193
|
p entries=Dir.entries('.')
|
193
194
|
main_file = latex_loop(entries,opts={:main=>true})
|
194
195
|
latex_loop(entries)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hikiutils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.3.
|
4
|
+
version: 0.2.3.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shigeto R. Nishitani
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -363,6 +363,7 @@ files:
|
|
363
363
|
- hikiutils_bob/toc.hiki
|
364
364
|
- hikiutils_yamane/.gitignore
|
365
365
|
- hikiutils_yamane/Rakefile
|
366
|
+
- hikiutils_yamane/Rakefile~
|
366
367
|
- hikiutils_yamane/abstract.hiki
|
367
368
|
- hikiutils_yamane/backup/hikiutils%28optparse%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3%29
|
368
369
|
- hikiutils_yamane/backup/hikiutils%28thor%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3%29
|
@@ -419,17 +420,19 @@ files:
|
|
419
420
|
- hikiutils_yamane/hikiutils_yamane.key/preview-micro.jpg
|
420
421
|
- hikiutils_yamane/hikiutils_yamane.key/preview-web.jpg
|
421
422
|
- hikiutils_yamane/hikiutils_yamane.key/preview.jpg
|
422
|
-
- hikiutils_yamane/hikiutils_yamane/hikiutils_yamane.001.
|
423
|
-
- hikiutils_yamane/hikiutils_yamane/hikiutils_yamane.002.
|
424
|
-
- hikiutils_yamane/hikiutils_yamane/hikiutils_yamane.003.
|
425
|
-
- hikiutils_yamane/hikiutils_yamane/hikiutils_yamane.004.
|
426
|
-
- hikiutils_yamane/hikiutils_yamane/hikiutils_yamane.005.
|
427
|
-
- hikiutils_yamane/hikiutils_yamane/hikiutils_yamane.006.
|
428
|
-
- hikiutils_yamane/hikiutils_yamane/hikiutils_yamane.007.
|
423
|
+
- hikiutils_yamane/hikiutils_yamane/hikiutils_yamane.001.jpeg
|
424
|
+
- hikiutils_yamane/hikiutils_yamane/hikiutils_yamane.002.jpeg
|
425
|
+
- hikiutils_yamane/hikiutils_yamane/hikiutils_yamane.003.jpeg
|
426
|
+
- hikiutils_yamane/hikiutils_yamane/hikiutils_yamane.004.jpeg
|
427
|
+
- hikiutils_yamane/hikiutils_yamane/hikiutils_yamane.005.jpeg
|
428
|
+
- hikiutils_yamane/hikiutils_yamane/hikiutils_yamane.006.jpeg
|
429
|
+
- hikiutils_yamane/hikiutils_yamane/hikiutils_yamane.007.jpeg
|
429
430
|
- hikiutils_yamane/introduction.hiki
|
431
|
+
- hikiutils_yamane/latex_dir/%CA%FDˡ.aux
|
430
432
|
- hikiutils_yamane/latex_dir/abstract.aux
|
431
433
|
- hikiutils_yamane/latex_dir/abstract.tex
|
432
434
|
- hikiutils_yamane/latex_dir/command.aux
|
435
|
+
- hikiutils_yamane/latex_dir/command.log
|
433
436
|
- hikiutils_yamane/latex_dir/command.tex
|
434
437
|
- hikiutils_yamane/latex_dir/compare.aux
|
435
438
|
- hikiutils_yamane/latex_dir/compare.tex
|
@@ -442,11 +445,14 @@ files:
|
|
442
445
|
- hikiutils_yamane/latex_dir/hikiutils_yamane.toc
|
443
446
|
- hikiutils_yamane/latex_dir/introduction.aux
|
444
447
|
- hikiutils_yamane/latex_dir/introduction.tex
|
448
|
+
- hikiutils_yamane/latex_dir/jlisting.sty
|
445
449
|
- hikiutils_yamane/latex_dir/optparse.aux
|
446
450
|
- hikiutils_yamane/latex_dir/optparse.tex
|
451
|
+
- hikiutils_yamane/latex_dir/pre.tex
|
447
452
|
- hikiutils_yamane/latex_dir/thor.aux
|
448
453
|
- hikiutils_yamane/latex_dir/thor.tex
|
449
454
|
- hikiutils_yamane/optparse.hiki
|
455
|
+
- hikiutils_yamane/test.rb
|
450
456
|
- hikiutils_yamane/thor.hiki
|
451
457
|
- hikiutils_yamane/toc.hiki
|
452
458
|
- lib/hikiutils.rb
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|