aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/sysenv.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2011-09-13 19:20:25 -0400
committerRalph Amissah <ralph@amissah.com>2011-09-13 19:20:25 -0400
commitc2163c564756a6998fa9d82ae33c92724ab7f8fc (patch)
tree99c7f51a11db67b559e955a0a21144f3915ecd70 /lib/sisu/v3/sysenv.rb
parentv3: dal_images, disabled imagemagick configuration permission check (diff)
v3: image (relative) paths for different sisu output structures
* (re: by_language, by_filetype, by_filename) * sysenv, set path * html seg, scroll, manifest (qrcodes), xmls
Diffstat (limited to 'lib/sisu/v3/sysenv.rb')
-rw-r--r--lib/sisu/v3/sysenv.rb36
1 files changed, 36 insertions, 0 deletions
diff --git a/lib/sisu/v3/sysenv.rb b/lib/sisu/v3/sysenv.rb
index f052e2a5..7463cb4b 100644
--- a/lib/sisu/v3/sysenv.rb
+++ b/lib/sisu/v3/sysenv.rb
@@ -4175,6 +4175,15 @@ WOK
def rel_sm
set_path(ft).rel_sm.ab
end
+ def rel_image
+ if @env.output_dir_structure.by_language_code?
+ '../../_sisu/image'
+ elsif @env.output_dir_structure.by_filetype?
+ '../_sisu/image'
+ else
+ '../_sisu/image'
+ end
+ end
self
end
def html_seg
@@ -4196,6 +4205,15 @@ WOK
def rel_sm
set_path(ft).rel_sm.ab
end
+ def rel_image
+ if @env.output_dir_structure.by_language_code?
+ '../../../_sisu/image'
+ elsif @env.output_dir_structure.by_filetype?
+ '../../_sisu/image'
+ else
+ '../_sisu/image'
+ end
+ end
self
end
def html_concordance
@@ -4221,6 +4239,15 @@ WOK
def rel_sm
set_path(ft).rel_sm.ab
end
+ def rel_image
+ if @env.output_dir_structure.by_language_code?
+ '../../_sisu/image'
+ elsif @env.output_dir_structure.by_filetype?
+ '../_sisu/image'
+ else
+ '../_sisu/image'
+ end
+ end
self
end
def xhtml
@@ -4242,6 +4269,9 @@ WOK
def rel_sm
set_path(ft).rel_sm.ab
end
+ def rel_image
+ '../../_sisu/image'
+ end
self
end
def epub
@@ -4263,6 +4293,9 @@ WOK
def rel_sm
set_path(ft).rel_sm.ab
end
+ def rel_image
+ './image'
+ end
self
end
def odt
@@ -4305,6 +4338,9 @@ WOK
def rel_sm
set_path(ft).rel_sm.ab
end
+ def rel_image
+ '../../_sisu/image'
+ end
self
end
def xml_sax