aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/xhtml_epub2.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2022-03-17 11:49:22 -0400
committerRalph Amissah <ralph@amissah.com>2022-04-06 16:12:40 -0400
commite481fdd4b3403d621380c43047484aeb3a3a46d2 (patch)
tree2d800ad8ea33c685bb280be521881c469dea0613 /lib/sisu/xhtml_epub2.rb
parentorg-tangle files with new headers (diff)
ruby variable passing breakage, make constant?
Diffstat (limited to 'lib/sisu/xhtml_epub2.rb')
-rw-r--r--lib/sisu/xhtml_epub2.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/sisu/xhtml_epub2.rb b/lib/sisu/xhtml_epub2.rb
index 63ac620f..8f6ef05a 100644
--- a/lib/sisu/xhtml_epub2.rb
+++ b/lib/sisu/xhtml_epub2.rb
@@ -786,6 +786,11 @@ module SiSU_XHTML_EPUB2
end
end
def images
+#puts @md.env.path.image_source_include
+#puts @md.env.processing_path.epub
+#puts @md.env.path.image_source_include_local
+puts @md.file.output_path.epub.rel_image
+ #img_pth=$sisu_base_data + '/image'
img_pth=@md.env.path.image_source_include
img_src_pth=unless @md.opt.f_pth[:pth] =~/\/\S+?\/sisupod\/\S+?\/sisupod\/doc/
@md.file.output_path.epub.rel_image
@@ -797,6 +802,9 @@ module SiSU_XHTML_EPUB2
if FileTest.directory?("#{@md.env.processing_path.epub}/#{Ep[:d_oebps]}/image") \
&& FileTest.file?("#{img_src_pth}/#{x}")
FileUtils::cp("#{img_src_pth}/#{x}","#{@md.env.processing_path.epub}/#{Ep[:d_oebps]}/image")
+ #elsif FileTest.directory?("#{$sisu_base_data}/image") \
+ #&& FileTest.file?("#{img_pth}/#{x}")
+ # FileUtils::cp("#{img_pth}/#{x}","#{@md.env.processing_path.epub}/#{Ep[:d_oebps]}/image")
elsif FileTest.directory?("#{@md.env.processing_path.epub}/#{Ep[:d_oebps]}/image") \
&& FileTest.file?("#{img_pth}/#{x}")
FileUtils::cp("#{img_pth}/#{x}","#{@md.env.processing_path.epub}/#{Ep[:d_oebps]}/image")