aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2011-04-19 21:32:12 -0400
committerRalph Amissah <ralph@amissah.com>2011-04-19 21:32:12 -0400
commitdcfbef65816211cc09bbf1fe3937207ec1bb9850 (patch)
tree46d824bd94145214f29fd5feb501c29b84d76f36 /lib
parentv3: odf:odt processing in separate subdirectories (diff)
v3: urls, minor fixes
* fix maintenance urls -M (where processing files are kept for examination) * odf maintenance added
Diffstat (limited to 'lib')
-rw-r--r--lib/sisu/v3/urls.rb31
1 files changed, 15 insertions, 16 deletions
diff --git a/lib/sisu/v3/urls.rb b/lib/sisu/v3/urls.rb
index 08bf0dae..77952d0b 100644
--- a/lib/sisu/v3/urls.rb
+++ b/lib/sisu/v3/urls.rb
@@ -68,7 +68,7 @@ module SiSU_urls
end
def read
begin
- SiSU_urls::Output_urls.new(@opt).songsheet if @opt.fnb #fnb[/.+?\.(?:[_-]?sst|ssm)$/]
+ SiSU_urls::Output_urls.new(@opt).songsheet if @opt.fnb
rescue; SiSU_Errors::Info_error.new($!,$@,@opt.cmd).error
ensure
end
@@ -174,7 +174,6 @@ module SiSU_urls
SiSU_Screen::Ansi.new(@opt.cmd,"-#{x}","#{@prog.pdf_viewer} #{@md.file.output_path.pdf}/#{@md.file.base_filename.pdf_p}pdf").result
end
def landscape(x)
- SiSU_Screen::Ansi.new(@opt.cmd,"-p (LaTeX)","#{@prog.text_editor} ~work/tex_rz/#{@fnb}.tex").result #if y=~/landscape/
SiSU_Screen::Ansi.new(@opt.cmd,"-#{x}","#{@prog.pdf_viewer} #{@md.file.output_path.pdf}/#{@md.file.base_filename.pdf_l}pdf").result
end
self
@@ -227,21 +226,20 @@ module SiSU_urls
if x=~/^([abcehHmNoptwxXy])/ \
and opt.cmd =~/[abcehHmNoptwxXy]/ \
and x=~/^[#{opt.cmd}]/ \
- and opt.cmd =~/M/
+ and opt.cmd =~/[MV]/
m=$1
f=y
tool=@prog.text_editor
if x =~/^m/ \
and @opt.cmd=~/m/ \
and x=~/^[#{opt.cmd}]/
- SiSU_Screen::Ansi.new(@opt.cmd,"-#{x}","#{@prog.text_editor} #{@env.processing_path.dal}/#{@opt.fns}.meta").maintenance if @opt.cmd =~/[MVv]/
+ SiSU_Screen::Ansi.new(@opt.cmd,"-#{x}","#{@prog.text_editor} #{@env.processing_path.dal}/#{@opt.fns}.meta").maintenance
end
- if x=~/^([hHw])/ \
- and @opt.cmd=~/[hHw]/ \
- and x=~/^[#{@opt.cmd}]/
- f=if x !~/segmented/; "#{y}.html"
- else "#{y}.index.html"
- end
+ if x=~/^([hw])/ \
+ and @opt.cmd=~/[hw]/ \
+ and x=~/^[#{@opt.cmd}]/ \
+ and x !~/segmented/; "#{y}.html"
+ SiSU_Screen::Ansi.new(@opt.cmd,"-#{x}","#{@prog.text_editor} #{@env.processing_path.tune}/#{@md.fns}.tune").maintenance
end
if x=~/^p/ \
and @opt.cmd=~/p/ \
@@ -249,11 +247,11 @@ module SiSU_urls
tool=@prog.pdf_viewer
fns=@opt.fns.gsub(/~/,'-')
unless @opt.cmd =~/q/
- tell=if y =~/landscape/
+ tell=if x =~/landscape/
SiSU_Screen::Ansi.new(@opt.cmd,"-#{x}","#{@prog.text_editor} #{@env.processing_path.tex}/#{fns}.landscape.tex")
else SiSU_Screen::Ansi.new(@opt.cmd,"-#{x}","#{@prog.text_editor} #{@env.processing_path.tex}/#{fns}.tex")
end
- tell.maintenance if @opt.cmd =~/[MVv]/
+ tell.maintenance
end
end
if x=~/^o/ \
@@ -264,12 +262,13 @@ module SiSU_urls
if x=~/^e/ \
and @opt.cmd=~/e/ \
and x=~/^[#{@opt.cmd}]/
- SiSU_Screen::Ansi.new(@opt.cmd,"-#{x}","#{@prog.text_editor} #{@env.processing_path.epub}/OPS/toc.xhtml").maintenance if @opt.cmd =~/[MVv]/
+ SiSU_Screen::Ansi.new(@opt.cmd,"-#{x}","#{@prog.text_editor} #{@env.processing_path.epub}/OPS/toc.xhtml").maintenance
end
- if x !~/^[me]/
- SiSU_Screen::Ansi.new(@opt.cmd,"-#{x}","#{tool} #{@env.path.output}/#{@fnb}/#{y}").maintenance if @opt.cmd =~/[MVv]/
+ if x=~/^o/ \
+ and @opt.cmd=~/o/ \
+ and x=~/^[#{@opt.cmd}]/
+ SiSU_Screen::Ansi.new(@opt.cmd,"-#{x}","#{@prog.text_editor} #{@env.processing_path.odf}/content.xml").maintenance #not implemented
end
- #@opt.cmd.gsub!(/#{m}/,'')
end
end
def urls_select