diff options
author | Ralph Amissah <ralph@amissah.com> | 2013-06-25 00:11:09 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2013-06-25 00:11:09 -0400 |
commit | b3006eb0268887ec481c4d46e4602a3a9a2275e8 (patch) | |
tree | 54d8b4fb9f0c2744aa6096b546fe6277c184d273 /lib/sisu/v4/qrcode.rb | |
parent | debian/changelog (4.1.5-1) (diff) | |
parent | v4: general code cleaning, sync with v5 (diff) |
Merge tag 'sisu_4.1.6' into debian/sid
SiSU 4.1.6
Diffstat (limited to 'lib/sisu/v4/qrcode.rb')
-rw-r--r-- | lib/sisu/v4/qrcode.rb | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/lib/sisu/v4/qrcode.rb b/lib/sisu/v4/qrcode.rb index 9193fe08..3b8cc404 100644 --- a/lib/sisu/v4/qrcode.rb +++ b/lib/sisu/v4/qrcode.rb @@ -121,7 +121,6 @@ module SiSU_QRcode fn=@f.base_filename.manifest_txt mn='' if @md.opt.cmd =~/M/ - pt=@f.output_path.manifest.dir fn=@f.base_filename.manifest_txt manifest=@f.write_file.manifest_txt end @@ -132,26 +131,16 @@ module SiSU_QRcode mn += x end manifest.close if @md.opt.cmd =~/M/ - #system(%{ - # cat #{pt}/#{fn} | qrencode -s 3 -o qrcm.autonomy_markup0.png - #}) cmd=SiSU_Env::SystemCall.new(mn,@f.place_file.qrcode_md.dir,@md.opt.cmd) cmd.qrencode - #system(%{ - # echo "#{mn}" | qrencode -s 3 -o #{@dest}/qrc_md.#{fn}.png - #}) end def output_metadata_short - fn=@f.base_filename.manifest_txt mn='' @manifest[:txt_title].each do |x| mn += x end cmd=SiSU_Env::SystemCall.new(mn,@f.place_file.qrcode_title.dir,@md.opt.cmd) cmd.qrencode - #system(%{ - # echo "#{mn}" | qrencode -s 3 -o #{@dest}/qrc_title.#{fn}.png - #}) end def summarize(id,file,pth='',rel='',url='',img='● ') size=(File.size("#{pth}/#{file}")/1024.00).to_s @@ -213,22 +202,14 @@ WOK @m << { mu: mu, l: lng } end end - #url=@f.output_path.base.url - #@en_manifest=if @env.output_dir_structure.by_language_code? - # "#{url}/en/manifest/#{@md.fnb}.html" - #elsif @env.output_dir_structure.by_filetype? - # "#{url}/manifest/#{@md.fnb}.#{lc}.html" - #else - # "#{url}/sisu_manifest.#{lc}.html" - #end - manifests + #manifests @m=@m.uniq @m end def languages(id,file) flv=published_manifests? flv.each do |l| - lang=SiSU_Translate::Source.new(@md,@language,l[:n]).language_list + SiSU_Translate::Source.new(@md,@language,l[:n]).language_list @manifest[:txt] << "#{l[:mu]} #{l[:l]}\n" end end @@ -446,7 +427,6 @@ WOK end def source_tests if @md.fns =~/\.ssm\.sst$/ #% decide whether to extract and include requested/required documents - req=@md.fns if FileTest.file?(@f.place_file.src.dir)==true pth=@f.output_path.src.dir rel=@f.output_path.src.rel @@ -709,8 +689,6 @@ WOK end def check_output(data) begin - id,file='','' - vz=SiSU_Viz::Defaults.new @f=SiSU_Env::FileOp.new(@md) #.base_filename url=@f.output_path.base.url @en_manifest=if @env.output_dir_structure.by_language_code? |