aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2014-10-12 10:18:59 -0400
committerRalph Amissah <ralph@amissah.com>2014-10-12 10:18:59 -0400
commitff3eb782e658d3096874854504781da9bc6f3aa9 (patch)
treefb0195cfbf15c903f46d83a0ed86d5d2b391de4c /lib
parentv5 v6: qrcode, sha call, fix (diff)
v5 v6: epub tune, --maintenance, fix
Diffstat (limited to 'lib')
-rw-r--r--lib/sisu/v5/se_file_op.rb4
-rw-r--r--lib/sisu/v5/xhtml_epub2_tune.rb5
-rw-r--r--lib/sisu/v6/se_file_op.rb4
-rw-r--r--lib/sisu/v6/xhtml_epub2_tune.rb5
4 files changed, 12 insertions, 6 deletions
diff --git a/lib/sisu/v5/se_file_op.rb b/lib/sisu/v5/se_file_op.rb
index dfd2aadf..826c01ab 100644
--- a/lib/sisu/v5/se_file_op.rb
+++ b/lib/sisu/v5/se_file_op.rb
@@ -145,6 +145,10 @@ module SiSU_Info_File
@env.processing_path.tune + '/' \
+ @fns + '.marshal_tune'
end
+ def xhtml_tune
+ @env.processing_path.tune + '/' \
+ + @fns + '.marshal_tune'
+ end
self
end
def write_file_processing
diff --git a/lib/sisu/v5/xhtml_epub2_tune.rb b/lib/sisu/v5/xhtml_epub2_tune.rb
index afeff30e..7376212a 100644
--- a/lib/sisu/v5/xhtml_epub2_tune.rb
+++ b/lib/sisu/v5/xhtml_epub2_tune.rb
@@ -77,7 +77,7 @@ module SiSU_XHTML_EPUB2_Tune
class Output
def initialize(data,md)
@data,@md=data,md
- @file=SiSU_Env::FileOp.new(@md)
+ @file=SiSU_Env::InfoFile.new(@md.fns)
@cX=SiSU_Screen::Ansi.new(@md.opt.act[:color_state][:set]).cX
end
def hard_output
@@ -89,7 +89,7 @@ module SiSU_XHTML_EPUB2_Tune
end
end
def marshal
- File.open(@file.marshal.html_tune,'w') {|f| Marshal.dump(@data.to_a,f)}
+ File.open(@file.marshal.xhtml_tune,'w') {|f| Marshal.dump(@data.to_a,f)}
end
end
class CleanXHTML
@@ -112,7 +112,6 @@ module SiSU_XHTML_EPUB2_Tune
def initialize(data,md)
@data,@md=data,md
@vz=SiSU_Viz::Defaults.new
- @env=SiSU_Env::InfoEnv.new(@md.fns)
@sys=SiSU_Env::SystemCall.new
@env=SiSU_Env::InfoEnv.new(@md.fns)
@brace_url=SiSU_Viz::Defaults.new.url_decoration
diff --git a/lib/sisu/v6/se_file_op.rb b/lib/sisu/v6/se_file_op.rb
index 941b7b7a..ff9aa65a 100644
--- a/lib/sisu/v6/se_file_op.rb
+++ b/lib/sisu/v6/se_file_op.rb
@@ -145,6 +145,10 @@ module SiSU_Info_File
@env.processing_path.tune + '/' \
+ @fns + '.marshal_tune'
end
+ def xhtml_tune
+ @env.processing_path.tune + '/' \
+ + @fns + '.marshal_tune'
+ end
self
end
def write_file_processing
diff --git a/lib/sisu/v6/xhtml_epub2_tune.rb b/lib/sisu/v6/xhtml_epub2_tune.rb
index 4188ae24..07337309 100644
--- a/lib/sisu/v6/xhtml_epub2_tune.rb
+++ b/lib/sisu/v6/xhtml_epub2_tune.rb
@@ -77,7 +77,7 @@ module SiSU_XHTML_EPUB2_Tune
class Output
def initialize(data,md)
@data,@md=data,md
- @file=SiSU_Env::FileOp.new(@md)
+ @file=SiSU_Env::InfoFile.new(@md.fns)
@cX=SiSU_Screen::Ansi.new(@md.opt.act[:color_state][:set]).cX
end
def hard_output
@@ -89,7 +89,7 @@ module SiSU_XHTML_EPUB2_Tune
end
end
def marshal
- File.open(@file.marshal.html_tune,'w') {|f| Marshal.dump(@data.to_a,f)}
+ File.open(@file.marshal.xhtml_tune,'w') {|f| Marshal.dump(@data.to_a,f)}
end
end
class CleanXHTML
@@ -112,7 +112,6 @@ module SiSU_XHTML_EPUB2_Tune
def initialize(data,md)
@data,@md=data,md
@vz=SiSU_Viz::Defaults.new
- @env=SiSU_Env::InfoEnv.new(@md.fns)
@sys=SiSU_Env::SystemCall.new
@env=SiSU_Env::InfoEnv.new(@md.fns)
@brace_url=SiSU_Viz::Defaults.new.url_decoration