aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/xhtml.org
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 /org/xhtml.org
parentorg-tangle files with new headers (diff)
ruby variable passing breakage, make constant?
Diffstat (limited to 'org/xhtml.org')
-rw-r--r--org/xhtml.org8
1 files changed, 8 insertions, 0 deletions
diff --git a/org/xhtml.org b/org/xhtml.org
index c24a5411..5c0a5cf0 100644
--- a/org/xhtml.org
+++ b/org/xhtml.org
@@ -1180,6 +1180,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
@@ -1191,6 +1196,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")