aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v4/hub.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2013-02-03 22:16:52 -0500
committerRalph Amissah <ralph@amissah.com>2013-02-04 00:09:39 -0500
commit9f278652ce86604c11d8c2b51c7ed255e7e1d1f6 (patch)
treef6b5fb00291f1ecca0262192af65308ec9b93f14 /lib/sisu/v4/hub.rb
parentv4 (v3): css (html & epub) line spacing reduced, paragraph spacing increased (diff)
v4: html (urls), scroll & seg optionally discrete, individually callable
* --html (both), --html-scroll, --html-seg * [possibly of interest where only one form of html of interest for use &/or to cut generation time (roughly to 63% for --html-scroll only)]
Diffstat (limited to 'lib/sisu/v4/hub.rb')
-rw-r--r--lib/sisu/v4/hub.rb45
1 files changed, 41 insertions, 4 deletions
diff --git a/lib/sisu/v4/hub.rb b/lib/sisu/v4/hub.rb
index a7b1a05a..2cfcee57 100644
--- a/lib/sisu/v4/hub.rb
+++ b/lib/sisu/v4/hub.rb
@@ -303,6 +303,15 @@ p "#{__LINE__}:#{__FILE__}" if @opt.act[:maintenance][:set] ==:on
if @opt.act[:html][:set]==:on #% --html, -h
require_relative 'html' # -h -H html.rb
SiSU_HTML::Source.new(@opt).read
+ else
+ if @opt.act[:html_seg][:set]==:on #% --html-seg
+ require_relative 'html' # -h -H html.rb
+ SiSU_HTML::Source.new(@opt).read
+ end
+ if @opt.act[:html_scroll][:set]==:on #% --html-scroll
+ require_relative 'html' # -h -H html.rb
+ SiSU_HTML::Source.new(@opt).read
+ end
end
if @opt.act[:concordance][:set]==:on #% --concordance, -w
require_relative 'concordance' # -w concordance.rb
@@ -628,10 +637,38 @@ p "#{__LINE__}:#{__FILE__}" if @opt.act[:maintenance][:set] ==:on
SiSU_Harvest::Source.new(@opt).read # -h -H html.rb
elsif @opt.mod.inspect =~/--convert|--to|--from/
require_relative 'sst_convert_markup' # sst_convert_markup.rb
- elsif @opt.cmd =~/([abCcDdeFGgHhIjikLMmNnoPpQqRrSsTtUuVvWwXxYyZ_0-9])/ \
- and @opt.cmd =~/^-/ \
- and @opt.mod.inspect !~/--(?:sitemaps|query|identify)/ \
- or @opt.mod.inspect =~/--(?:(?:sq)?lite|pg(?:sql)?)/
+ elsif @opt.act[:dal][:set]==:on \
+ or @opt.act[:manpage][:set]==:on \
+ or @opt.act[:texinfo][:set]==:on \
+ or @opt.act[:txt][:set]==:on \
+ or @opt.act[:html][:set]==:on \
+ or @opt.act[:html_scroll][:set]==:on \
+ or @opt.act[:html_seg][:set]==:on \
+ or @opt.act[:concordance][:set]==:on \
+ or @opt.act[:xhtml][:set]==:on \
+ or @opt.act[:epub][:set]==:on \
+ or @opt.act[:odt][:set]==:on \
+ or @opt.act[:xml_sax][:set]==:on \
+ or @opt.act[:xml_dom][:set]==:on \
+ or @opt.act[:pdf][:set]==:on \
+ or @opt.act[:psql][:set]==:on \
+ or @opt.act[:sqlite][:set]==:on \
+ or @opt.act[:sqlite_discreet][:set]==:on \
+ or @opt.act[:share_source][:set]==:on \
+ or @opt.act[:sisupod][:set]==:on \
+ or @opt.act[:qrcode][:set]==:on \
+ or @opt.act[:hash_digests][:set]==:on \
+ or @opt.act[:manifest][:set]==:on \
+ or @opt.act[:rsync][:set]==:on \
+ or @opt.act[:scp][:set]==:on \
+ or @opt.act[:webrick][:set]==:on \
+ or @opt.act[:zap][:set]==:on \
+ or (
+ @opt.cmd =~/^-/ \
+ and @opt.cmd =~/([abCcDdeFGgHhIjikLMmNnoPpQqRrSsTtUuVvWwXxYyZ_0-9])/ \
+ and @opt.mod.inspect !~/--(?:sitemaps|query|identify)/ \
+ or @opt.mod.inspect =~/--(?:(?:sq)?lite|pg(?:sql)?)/ \
+ )
do_initialization
do_loops
@msg,@msgs="\tsisu -W [to start ruby web-server on output directory]\n",nil unless @opt.act[:quiet][:set] ==:on