sisu 7.1.8 → 7.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/sisugem +1 -0
- data/data/sisu/version.yml +3 -3
- data/lib/sisu/css.rb +1 -1
- metadata +5 -5
- data/bin/sisugem +0 -370
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0253b5f092afce995ffb164e92c8dcdef64849d
|
4
|
+
data.tar.gz: 5ee7d08eaca5f1eeea111af46040dff0f31b74c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9adb53b3db827b0cb33e6ac97d8a9342ed5a7610f321cfd29be66fc43ae67eb0ce1018873d6ff3e8d78c0c7a9af8157015df941f7aac76dcafd8d1fc4a16da89
|
7
|
+
data.tar.gz: d87dc546fd5f5824bbaac28c079cadab3227d5f2351d5f94e334739212f016e9a23614fd273e098f6a736b6dc75835aa64c93b1df93642e0b9b2f271ca39ff3d
|
data/bin/sisugem
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
sisu
|
data/data/sisu/version.yml
CHANGED
data/lib/sisu/css.rb
CHANGED
@@ -1309,6 +1309,7 @@ WOK
|
|
1309
1309
|
h1.center, h2.center, h3.center, h4.center, h5.center, h6.center, h7.center {
|
1310
1310
|
text-align: center;
|
1311
1311
|
}
|
1312
|
+
h0 { font-size: 125%; }
|
1312
1313
|
h1 { font-size: 120%; }
|
1313
1314
|
h2 { font-size: 115%; }
|
1314
1315
|
h3 { font-size: 110%; }
|
@@ -1316,7 +1317,6 @@ WOK
|
|
1316
1317
|
h5 { font-size: 100%; }
|
1317
1318
|
h6 { font-size: 100%; }
|
1318
1319
|
h7 { font-size: 100%; }
|
1319
|
-
h0 { font-size: 80%; }
|
1320
1320
|
|
1321
1321
|
h1.i {margin-left: 2em;}
|
1322
1322
|
h2.i {margin-left: 3em;}
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sisu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.1.
|
4
|
+
version: 7.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ralph Amissah
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: documents - structuring, publishing in multiple formats & search [7.1.
|
14
|
-
|
13
|
+
description: documents - structuring, publishing in multiple formats & search [7.1.9]
|
14
|
+
(linux calls & without external dependencies)
|
15
15
|
email: ralph.amissah@gmail.com
|
16
16
|
executables:
|
17
17
|
- sisugem
|
@@ -249,7 +249,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
249
249
|
version: '0'
|
250
250
|
requirements: []
|
251
251
|
rubyforge_project:
|
252
|
-
rubygems_version: 2.
|
252
|
+
rubygems_version: 2.5.1
|
253
253
|
signing_key:
|
254
254
|
specification_version: 4
|
255
255
|
summary: documents - structuring, publishing in multiple formats & search (linux calls)
|
data/bin/sisugem
DELETED
@@ -1,370 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# encoding: utf-8
|
3
|
-
#SiSU: copyright (C) 1997 - 2015 Ralph Amissah; License GPL 3, see appended program information
|
4
|
-
class Orient
|
5
|
-
require 'singleton'
|
6
|
-
include Singleton
|
7
|
-
def initialize #(called_as_,argv)
|
8
|
-
super()
|
9
|
-
@called_as,@argv=$0,$*
|
10
|
-
end
|
11
|
-
def version_major
|
12
|
-
'7'
|
13
|
-
end
|
14
|
-
def sisu_called_from_directory
|
15
|
-
@@sisu_called_from_directory ||= Dir.pwd
|
16
|
-
end
|
17
|
-
def sisu_run_from?
|
18
|
-
if processing.called_as == processing.sisu_runtime_path \
|
19
|
-
and File.dirname(processing.sisu_runtime_path) != RbConfig::CONFIG['bindir']
|
20
|
-
:full_path_to_sisu_bin_in_sisu_dir_tree
|
21
|
-
elsif processing.sisu_runtime_path =~/\/gems\// \
|
22
|
-
and processing.sisu_runtime_path \
|
23
|
-
=~ /\/#{processing.gem_regex}\//
|
24
|
-
:gem_install
|
25
|
-
else
|
26
|
-
:system_install
|
27
|
-
end
|
28
|
-
end
|
29
|
-
def processing
|
30
|
-
def called_as
|
31
|
-
@called_as
|
32
|
-
end
|
33
|
-
def argv
|
34
|
-
@argv
|
35
|
-
end
|
36
|
-
def argv_str
|
37
|
-
argv.inspect
|
38
|
-
end
|
39
|
-
def sisu_runtime_path
|
40
|
-
__FILE__
|
41
|
-
end
|
42
|
-
def bin_file_regex
|
43
|
-
%r{\bsisu$}
|
44
|
-
end
|
45
|
-
def gem_regex
|
46
|
-
%r{sisu-[0-9]+\.[0-9]+\.[0-9]+(?:\.r[0-9]+\.g[0-9a-f]{7})?}
|
47
|
-
end
|
48
|
-
self
|
49
|
-
end
|
50
|
-
def sisu_lib
|
51
|
-
'sisu'
|
52
|
-
end
|
53
|
-
def sisu_version_info_path
|
54
|
-
"#{sisu_path_base_system_data}/version.yml"
|
55
|
-
end
|
56
|
-
def paths_set
|
57
|
-
if sisu_run_from? == :system_install \
|
58
|
-
and processing.called_as \
|
59
|
-
=~ /^#{RbConfig::CONFIG['bindir']}\/sisu$/
|
60
|
-
:set_path_system
|
61
|
-
elsif sisu_run_from? == :full_path_to_sisu_bin_in_sisu_dir_tree \
|
62
|
-
and processing.called_as \
|
63
|
-
!~ /^#{RbConfig::CONFIG['bindir']}\/sisu$/ \
|
64
|
-
&& File.expand_path(processing.called_as) \
|
65
|
-
=~ /bin\/sisu$/ \
|
66
|
-
&& FileTest.file?(processing.called_as)
|
67
|
-
:set_dir_tree_full_path
|
68
|
-
elsif sisu_run_from? ==:gem_install
|
69
|
-
:set_path_gem
|
70
|
-
else nil
|
71
|
-
end
|
72
|
-
end
|
73
|
-
def git_version
|
74
|
-
if sisu_run_from? == :full_path_to_sisu_bin_in_sisu_dir_tree \
|
75
|
-
&& FileTest.file?('/usr/bin/git') \
|
76
|
-
&& FileTest.directory?(processing.sisu_runtime_path.gsub(/\/bin\/sisu\S*/,'/.git'))
|
77
|
-
bin_base=processing.sisu_runtime_path.gsub(/\/bin\/sisu\S*/,'')
|
78
|
-
pwd=Dir.pwd
|
79
|
-
Dir.chdir(bin_base)
|
80
|
-
x=`git describe --long --tags 2>&1`.strip.
|
81
|
-
gsub(/^[a-z_-]*([0-9.]+)/,'\1').
|
82
|
-
gsub(/([^-]*-g)/,'r\1').
|
83
|
-
gsub(/-/,'.')
|
84
|
-
x=(x=~/^[0-9]+\.[0-9]+\.[0-9]+\.r[0-9]+\.g[0-9a-f]{7}/) \
|
85
|
-
? x
|
86
|
-
: nil
|
87
|
-
Dir.chdir(pwd)
|
88
|
-
x
|
89
|
-
else nil
|
90
|
-
end
|
91
|
-
end
|
92
|
-
def sisu_path_base
|
93
|
-
case paths_set
|
94
|
-
when :set_path_system
|
95
|
-
RbConfig::CONFIG['datadir'] + '/sisu'
|
96
|
-
when :set_dir_tree_full_path
|
97
|
-
File.expand_path(processing.called_as).
|
98
|
-
sub(/\/bin\/sisu$/,'')
|
99
|
-
when :set_path_gem
|
100
|
-
Gem::Specification.find_by_name("sisu").gem_dir
|
101
|
-
else nil
|
102
|
-
end
|
103
|
-
end
|
104
|
-
def sisu_path_base_system_data
|
105
|
-
case paths_set
|
106
|
-
when :set_path_system
|
107
|
-
RbConfig::CONFIG['datadir'] + '/sisu'
|
108
|
-
when :set_dir_tree_full_path
|
109
|
-
File.expand_path(processing.called_as).
|
110
|
-
sub(/\/bin\/sisu$/,'/data/sisu')
|
111
|
-
when :set_path_gem
|
112
|
-
Gem::Specification.find_by_name("sisu").gem_dir \
|
113
|
-
+ '/data/sisu'
|
114
|
-
else nil
|
115
|
-
end
|
116
|
-
end
|
117
|
-
def sisu_this_lib
|
118
|
-
if Gem::Specification.any? \
|
119
|
-
and processing.sisu_runtime_path =~/\/gems\// \
|
120
|
-
and processing.sisu_runtime_path \
|
121
|
-
=~ /\/#{processing.gem_regex}\//
|
122
|
-
# gem sought
|
123
|
-
processing.sisu_runtime_path.
|
124
|
-
gsub(/\/bin\/sisu[a-z0-9._-]*$/,
|
125
|
-
'/lib/sisu')
|
126
|
-
elsif (processing.called_as \
|
127
|
-
!~ /^#{RbConfig::CONFIG['bindir']}\/sisu$/)
|
128
|
-
# called off file system, project directory tree
|
129
|
-
File.expand_path(processing.called_as).
|
130
|
-
sub(/bin\/sisu\S*/,'lib/sisu')
|
131
|
-
else
|
132
|
-
# distro installation
|
133
|
-
sisulib={
|
134
|
-
vendorlib: RbConfig::CONFIG['vendorlibdir'] + '/sisu',
|
135
|
-
sitelib: RbConfig::CONFIG['sitelibdir'] + '/sisu',
|
136
|
-
}
|
137
|
-
if FileTest.directory?(sisulib[:sitelib]) # local install
|
138
|
-
sisulib[:sitelib]
|
139
|
-
elsif FileTest.directory?(sisulib[:vendorlib]) # system install
|
140
|
-
sisulib[:vendorlib]
|
141
|
-
else 'sisu' # assume lib paths work
|
142
|
-
end
|
143
|
-
end
|
144
|
-
end
|
145
|
-
def sisu_this_lib_
|
146
|
-
if (processing.called_as \
|
147
|
-
!~ /^#{RbConfig::CONFIG['bindir']}\/sisu$/)
|
148
|
-
File.expand_path(processing.called_as).
|
149
|
-
sub(/bin\/sisu\S*/,'lib/sisu')
|
150
|
-
else 'sisu'
|
151
|
-
end
|
152
|
-
end
|
153
|
-
def language_list
|
154
|
-
def codes
|
155
|
-
%w[am bg bn br ca cs cy da de el en eo es et eu fi fr ga gl he hi hr hy ia is it ja ko la lo lt lv ml mr nl nn no oc pl pt pt_BR ro ru sa se sk sl sq sr sv ta te th tk tr uk ur us vi zh]
|
156
|
-
end
|
157
|
-
def regex
|
158
|
-
codes.join('|')
|
159
|
-
end
|
160
|
-
self
|
161
|
-
end
|
162
|
-
def sisu_is
|
163
|
-
def version_major?
|
164
|
-
version_major
|
165
|
-
end
|
166
|
-
def runtime_path?
|
167
|
-
processing.sisu_runtime_path
|
168
|
-
end
|
169
|
-
def runtime_type?
|
170
|
-
sisu_run_from?
|
171
|
-
end
|
172
|
-
def called_from?
|
173
|
-
sisu_called_from_directory
|
174
|
-
end
|
175
|
-
def path_base?
|
176
|
-
sisu_path_base
|
177
|
-
end
|
178
|
-
def path_base_system_data?
|
179
|
-
sisu_path_base_system_data
|
180
|
-
end
|
181
|
-
def version_info_path?
|
182
|
-
sisu_version_info_path
|
183
|
-
end
|
184
|
-
def language_list?
|
185
|
-
language_list.codes
|
186
|
-
end
|
187
|
-
def language_list_regex?
|
188
|
-
language_list.regex
|
189
|
-
end
|
190
|
-
def git_version_info?
|
191
|
-
git_version
|
192
|
-
end
|
193
|
-
def runtime?
|
194
|
-
{
|
195
|
-
call_path: called_from?,
|
196
|
-
runtime_path: runtime_path?,
|
197
|
-
runtime_type: runtime_type?,
|
198
|
-
}
|
199
|
-
end
|
200
|
-
self
|
201
|
-
end
|
202
|
-
def get_processing_info
|
203
|
-
def sortout
|
204
|
-
unless @clm_pf
|
205
|
-
processing_files={}
|
206
|
-
command_line_modifiers=[]
|
207
|
-
processing.argv.each do |x|
|
208
|
-
if x =~/^-+/
|
209
|
-
command_line_modifiers << x
|
210
|
-
elsif x =~/\.ss[tm]/
|
211
|
-
if x =~/\//
|
212
|
-
markup_path,markup_file =
|
213
|
-
(/(\S+\/)((?:#{language_list.regex})?[^\/]+)/).
|
214
|
-
match(x)[1,2]
|
215
|
-
if not processing_files[markup_path]
|
216
|
-
processing_files[markup_path]=[]
|
217
|
-
end
|
218
|
-
processing_files[markup_path] << markup_file
|
219
|
-
else
|
220
|
-
if not processing_files['./']
|
221
|
-
processing_files['./']=[]
|
222
|
-
end
|
223
|
-
processing_files['./'] << x
|
224
|
-
end
|
225
|
-
end
|
226
|
-
end
|
227
|
-
end
|
228
|
-
@clm_pf ||={
|
229
|
-
command_line_modifiers: command_line_modifiers,
|
230
|
-
processing_files: processing_files,
|
231
|
-
}
|
232
|
-
end
|
233
|
-
def command_line_modifiers
|
234
|
-
sortout[:command_line_modifiers]
|
235
|
-
end
|
236
|
-
def processing_files
|
237
|
-
sortout[:processing_files]
|
238
|
-
end
|
239
|
-
self
|
240
|
-
end
|
241
|
-
def control
|
242
|
-
require sisu_this_lib
|
243
|
-
sisu_called_from_directory
|
244
|
-
begin
|
245
|
-
if get_processing_info.processing_files.length > 0
|
246
|
-
get_processing_info.processing_files.each_pair do |markup_dir,markup_file|
|
247
|
-
begin
|
248
|
-
$sisu_document_markup_directory=markup_dir.gsub(/\/$/,'')
|
249
|
-
argv_sub=get_processing_info.command_line_modifiers + markup_file
|
250
|
-
if FileTest.directory?(markup_dir)
|
251
|
-
system("cd #{markup_dir}")
|
252
|
-
Dir.chdir(markup_dir)
|
253
|
-
$sisu_document_markup_directory_base_fixed_path=
|
254
|
-
Dir.pwd.gsub(/\/(?:#{language_list.regex})$/,'')
|
255
|
-
SiSU_libs::CallHubMaster.new(argv_sub,sisu_is.runtime?)
|
256
|
-
elsif markup_dir =~/https?:/
|
257
|
-
markup_file.each do |mf|
|
258
|
-
(FileTest.file?(mf)) \
|
259
|
-
? (puts 'requested remote file already exists in current directory ' \
|
260
|
-
+ Dir.pwd + ' using ' + mf)
|
261
|
-
: (system("wget #{markup_dir}/#{mf}"))
|
262
|
-
end
|
263
|
-
$sisu_document_markup_directory_base_fixed_path=
|
264
|
-
Dir.pwd.gsub(/\/(?:#{language_list.regex})$/,'')
|
265
|
-
argv_sub=command_line_modifiers + markup_file
|
266
|
-
SiSU_libs::CallHubMaster.new(argv_sub,sisu_is.runtime?)
|
267
|
-
else p "Error directory specified #{markup_dir} not found"
|
268
|
-
end
|
269
|
-
ensure
|
270
|
-
Dir.chdir(sisu_called_from_directory)
|
271
|
-
system("cd #{sisu_called_from_directory}")
|
272
|
-
end
|
273
|
-
end
|
274
|
-
else
|
275
|
-
$sisu_document_markup_directory=Dir.pwd.gsub(/\/$/,'')
|
276
|
-
$sisu_document_markup_directory_base_fixed_path=
|
277
|
-
Dir.pwd.gsub(/(^|\/)(?:#{language_list.regex})$/,'')
|
278
|
-
SiSU_libs::CallHubMaster.new(processing.argv,sisu_is.runtime?)
|
279
|
-
end
|
280
|
-
rescue
|
281
|
-
ensure
|
282
|
-
SiSU_libs::HubClose.new(@argv,sisu_called_from_directory)
|
283
|
-
Dir.chdir(sisu_called_from_directory)
|
284
|
-
system("cd #{sisu_called_from_directory}")
|
285
|
-
end
|
286
|
-
end
|
287
|
-
end
|
288
|
-
#% sisu select source & branch, begin
|
289
|
-
$VERBOSE=nil
|
290
|
-
require 'rbconfig'
|
291
|
-
begin
|
292
|
-
require 'singleton'
|
293
|
-
s=Orient.instance
|
294
|
-
SiSU_is=s.sisu_is
|
295
|
-
s.control
|
296
|
-
rescue #% -
|
297
|
-
STDERR.puts 'ERROR'
|
298
|
-
STDERR.puts $!
|
299
|
-
STDERR.puts $@
|
300
|
-
puts %{
|
301
|
-
#{%x{ruby -v}.strip.to_s}
|
302
|
-
#{RUBY_VERSION}
|
303
|
-
ruby version: #{RbConfig::CONFIG['RUBY_PROGRAM_VERSION']}p#{RbConfig::CONFIG['PATCHLEVEL']}
|
304
|
-
ruby named: #{RbConfig::CONFIG['ruby_version']}
|
305
|
-
rubylib: #{RbConfig::CONFIG['rubylibdir']}
|
306
|
-
vendor lib #{RbConfig::CONFIG['vendordir']}
|
307
|
-
site lib local: #{RbConfig::CONFIG['sitelibdir']}
|
308
|
-
gem dir: #{Gem.dir}
|
309
|
-
gem path: #{Gem.path}
|
310
|
-
}
|
311
|
-
system(%{echo "
|
312
|
-
system RUBYPATH: ${RUBYPATH}
|
313
|
-
system RUBYLIB: ${RUBYLIB}
|
314
|
-
"})
|
315
|
-
end
|
316
|
-
__END__
|
317
|
-
|
318
|
-
* Name: SiSU
|
319
|
-
|
320
|
-
** Description: documents, structuring, processing, publishing, search
|
321
|
-
|
322
|
-
** Author: Ralph Amissah
|
323
|
-
<ralph@amissah.com>
|
324
|
-
<ralph.amissah@gmail.com>
|
325
|
-
|
326
|
-
** Copyright: (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
|
327
|
-
2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Ralph Amissah,
|
328
|
-
All Rights Reserved.
|
329
|
-
|
330
|
-
** License: GPL 3 or later:
|
331
|
-
|
332
|
-
SiSU, a framework for document structuring, publishing and search
|
333
|
-
|
334
|
-
Copyright (C) Ralph Amissah
|
335
|
-
|
336
|
-
This program is free software: you can redistribute it and/or modify it
|
337
|
-
under the terms of the GNU General Public License as published by the Free
|
338
|
-
Software Foundation, either version 3 of the License, or (at your option)
|
339
|
-
any later version.
|
340
|
-
|
341
|
-
This program is distributed in the hope that it will be useful, but WITHOUT
|
342
|
-
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
343
|
-
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
344
|
-
more details.
|
345
|
-
|
346
|
-
You should have received a copy of the GNU General Public License along with
|
347
|
-
this program. If not, see <http://www.gnu.org/licenses/>.
|
348
|
-
|
349
|
-
If you have Internet connection, the latest version of the GPL should be
|
350
|
-
available at these locations:
|
351
|
-
<http://www.fsf.org/licensing/licenses/gpl.html>
|
352
|
-
<http://www.gnu.org/licenses/gpl.html>
|
353
|
-
|
354
|
-
<http://www.sisudoc.org/sisu/en/manifest/gpl.fsf.html>
|
355
|
-
|
356
|
-
** SiSU uses:
|
357
|
-
* Standard SiSU markup syntax,
|
358
|
-
* Standard SiSU meta-markup syntax, and the
|
359
|
-
* Standard SiSU object citation numbering and system
|
360
|
-
|
361
|
-
** Hompages:
|
362
|
-
<http://www.jus.uio.no/sisu>
|
363
|
-
<http://www.sisudoc.org>
|
364
|
-
|
365
|
-
** Download:
|
366
|
-
<http://www.sisudoc.org/sisu/en/SiSU/download.html>
|
367
|
-
|
368
|
-
** Git
|
369
|
-
<http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=summary>
|
370
|
-
<http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=blob;f=bin/sisu;hb=HEAD>
|