aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2010-10-08 12:26:17 -0400
committerRalph Amissah <ralph@amissah.com>2010-10-08 12:26:17 -0400
commitb65795fbab7b4145fe09e22779394e039ac1a034 (patch)
tree80f5813e2148f09bdf49eaae6dbd9c7a4314d3dc
parentdebian/changelog 2.7.3-1 (diff)
parentupdate version (2.7.4) (diff)
Merge branch 'upstream' into debian/sid
-rw-r--r--CHANGELOG_v227
-rw-r--r--data/doc/sisu/v2/CHANGELOG27
-rw-r--r--data/sisu/v2/v/version.yml6
-rw-r--r--lib/sisu/v2/epub_tune.rb4
-rw-r--r--lib/sisu/v2/html_tune.rb4
-rw-r--r--lib/sisu/v2/odf.rb5
-rw-r--r--lib/sisu/v2/texpdf_format.rb4
7 files changed, 60 insertions, 17 deletions
diff --git a/CHANGELOG_v2 b/CHANGELOG_v2
index 0171699e..130973c5 100644
--- a/CHANGELOG_v2
+++ b/CHANGELOG_v2
@@ -12,11 +12,31 @@ Reverse Chronological:
%% Development branch UNSTABLE
+%% 2.7.4.orig.tar.gz (2010-10-08:40/5)
+http://www.jus.uio.no/sisu/pkg/src/sisu_2.7.4.orig.tar.gz
+ sisu_2.7.4.orig.tar.gz
+ sisu_2.7.4-1.dsc
+ sisu_2.7.4-1.diff.gz
+
+ [debian freeze, fix]
+
+ * texpdf, scaling of images (below the set maximum size), fix
+ (requested fix)
+
+ * odf:odt, incorporation and scaling of images, fix
+ (requested fix)
+
+ * html (html_tune) scaling of images, fix
+ (requested fix)
+
+ * epub (epub_tune) scaling of images, fix
+ (requested fix)
+
%% 2.7.3.orig.tar.gz (2010-10-06:40/3)
http://www.jus.uio.no/sisu/pkg/src/sisu_2.7.3.orig.tar.gz
- sisu_2.7.3.orig.tar.gz
- sisu_2.7.3-1.dsc
- sisu_2.7.3-1.diff.gz
+ 01da42186d8b7381356739ef612221b55e93c9a4f94c431744f8bdb123fd8f15 2744721 sisu_2.7.3.orig.tar.gz
+ 8c258e23ca20c57a39023a9a7cff228f3ba0581bc27bfa39d61706d6517aadc1 1196 sisu_2.7.3-1.dsc
+ 3a914afade9b9057ed47f65731809031896687dbc1c63e519ba460761a20fb15 288337 sisu_2.7.3-1.diff.gz
[debian freeze, fix]
@@ -27,6 +47,7 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_2.7.3.orig.tar.gz
* dal_images, where image dimensions are set in an object, use those, (rather
than those determined by imagemagick or graphicsmagick). [note: all must be
set in an object, or none]
+ (requested fix)
* options, a few aliases added (long options)
diff --git a/data/doc/sisu/v2/CHANGELOG b/data/doc/sisu/v2/CHANGELOG
index 0fcd3be4..ce051c23 100644
--- a/data/doc/sisu/v2/CHANGELOG
+++ b/data/doc/sisu/v2/CHANGELOG
@@ -12,11 +12,31 @@ Reverse Chronological:
%% Development branch UNSTABLE
+%% 2.7.4.orig.tar.gz (2010-10-08:40/5)
+http://www.jus.uio.no/sisu/pkg/src/sisu_2.7.4.orig.tar.gz
+ sisu_2.7.4.orig.tar.gz
+ sisu_2.7.4-1.dsc
+ sisu_2.7.4-1.diff.gz
+
+ [debian freeze, fix]
+
+ * texpdf, scaling of images (below the set maximum size), fix
+ (requested fix)
+
+ * odf:odt, incorporation and scaling of images, fix
+ (requested fix)
+
+ * html (html_tune) scaling of images, fix
+ (requested fix)
+
+ * epub (epub_tune) scaling of images, fix
+ (requested fix)
+
%% 2.7.3.orig.tar.gz (2010-10-06:40/3)
http://www.jus.uio.no/sisu/pkg/src/sisu_2.7.3.orig.tar.gz
- sisu_2.7.3.orig.tar.gz
- sisu_2.7.3-1.dsc
- sisu_2.7.3-1.diff.gz
+ 01da42186d8b7381356739ef612221b55e93c9a4f94c431744f8bdb123fd8f15 2744721 sisu_2.7.3.orig.tar.gz
+ 8c258e23ca20c57a39023a9a7cff228f3ba0581bc27bfa39d61706d6517aadc1 1196 sisu_2.7.3-1.dsc
+ 3a914afade9b9057ed47f65731809031896687dbc1c63e519ba460761a20fb15 288337 sisu_2.7.3-1.diff.gz
[debian freeze, fix]
@@ -27,6 +47,7 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_2.7.3.orig.tar.gz
* dal_images, where image dimensions are set in an object, use those, (rather
than those determined by imagemagick or graphicsmagick). [note: all must be
set in an object, or none]
+ (requested fix)
* options, a few aliases added (long options)
diff --git a/data/sisu/v2/v/version.yml b/data/sisu/v2/v/version.yml
index 6ad9e890..adbdc2b4 100644
--- a/data/sisu/v2/v/version.yml
+++ b/data/sisu/v2/v/version.yml
@@ -1,5 +1,5 @@
---
-:version: 2.7.3
-:date_stamp: 2010w40/3
-:date: "2010-10-06"
+:version: 2.7.4
+:date_stamp: 2010w40/5
+:date: "2010-10-08"
:project: SiSU
diff --git a/lib/sisu/v2/epub_tune.rb b/lib/sisu/v2/epub_tune.rb
index 83e718aa..e0c1e029 100644
--- a/lib/sisu/v2/epub_tune.rb
+++ b/lib/sisu/v2/epub_tune.rb
@@ -269,8 +269,8 @@ module SiSU_EPUB_Tune
m,u=/#{Mx[:lnk_o]}(.+?)#{Mx[:lnk_c]}(image)/.match(word).captures
end
case m
- when /\.png|\.jpg|\.gif|c=|\d+x\d+/
- w,h=/(\d+)x(\d+)/.match(m).captures if m =~/\d+x\d+/
+ when /\.png|\.jpg|\.gif|c=|\s\d+x\d+/
+ w,h=/\s(\d+)x(\d+)/.match(m).captures if m =~/\s\d+x\d+/
w=%{width="#{w}"} if w
h=%{height="#{h}"} if h
c=m[/"(.+?)"/m,1]
diff --git a/lib/sisu/v2/html_tune.rb b/lib/sisu/v2/html_tune.rb
index d5f3f35e..f4ad532f 100644
--- a/lib/sisu/v2/html_tune.rb
+++ b/lib/sisu/v2/html_tune.rb
@@ -267,8 +267,8 @@ module SiSU_HTML_Tune
m,u=/#{Mx[:lnk_o]}(.+?)#{Mx[:lnk_c]}(image)/.match(word).captures
end
case m
- when /\.png|\.jpg|\.gif|c=|\d+x\d+/
- w,h=/(\d+)x(\d+)/.match(m).captures if m =~/\d+x\d+/
+ when /\.png|\.jpg|\.gif|c=|\s\d+x\d+/
+ w,h=/\s(\d+)x(\d+)/.match(m).captures if m =~/\s\d+x\d+/
w=%{width="#{w}"} if w
h=%{height="#{h}"} if h
c=m[/"(.+?)"/m,1]
diff --git a/lib/sisu/v2/odf.rb b/lib/sisu/v2/odf.rb
index bb071683..41229249 100644
--- a/lib/sisu/v2/odf.rb
+++ b/lib/sisu/v2/odf.rb
@@ -197,7 +197,7 @@ module SiSU_ODF
m,u=img[1],img[2]
i=/^(\S+?\.(?:png|jpg|gif))/.match(m).captures.join if m =~/^(\S+?\.(?:png|jpg|gif))/
c=/^\S+?\.(?:png|jpg|gif)\s+.+?"(.*?)"/.match(m).captures.join if m =~/^\S+?\.(?:png|jpg|gif)\s+.+?"(.*?)"/
- w,h=/(\d+)x(\d+)/.match(m).captures if m =~/\d+x\d+/
+ w,h=/\s(\d+)x(\d+)/.match(m).captures if m =~/\s\d+x\d+/
w=(w.to_i/37.79485).to_s
h=(h.to_i/37.79485).to_s
h=/([0-9]+\.\d{0,3})/.match(h).captures.join
@@ -225,7 +225,8 @@ module SiSU_ODF
cont.gsub!(/([)(\]\[])/,"\\\\\\1")
cont.gsub!(/([+?])/,"\\\\\\1") # incorrect handling of +
url.gsub!(/([+?])/,"\\\\\\1")
- dob.obj.sub!(/#{Mx[:lnk_o]}[ ]*#{cont}[ ]*#{Mx[:lnk_c]}#{Mx[:url_o]}#{url}#{Mx[:url_c]}/m,image_odf(i)) #watch
+ dob.obj.sub!(/#{Mx[:lnk_o]}[ ]*#{cont}[ ]*#{Mx[:lnk_c]}image/m,image_odf(i))
+ dob.obj.sub!(/#{Mx[:lnk_o]}[ ]*#{cont}[ ]*#{Mx[:lnk_c]}#{Mx[:url_o]}#{url}#{Mx[:url_c]}/m,image_odf(i))
dob.obj.gsub!(/\\([)(\]\[?])/,'\1') #clumsy fix
end
m=nil
diff --git a/lib/sisu/v2/texpdf_format.rb b/lib/sisu/v2/texpdf_format.rb
index 8eff07b9..36366c9b 100644
--- a/lib/sisu/v2/texpdf_format.rb
+++ b/lib/sisu/v2/texpdf_format.rb
@@ -339,7 +339,7 @@ module SiSU_TeX_Pdf
image=z[/(\S+?\.(?:png|jpg|gif)\b)/m]
image.gsub!(/\\/,'')
width=if z =~ /\d+x\d*/
- w=(z[/(\d+)x\d*/,1]).to_i
+ w=(z[/\s(\d+)x\d*/,1]).to_i
w*0.8
else '100' #revisit, is bug for small images/icons
end
@@ -498,7 +498,7 @@ module SiSU_TeX_Pdf
and images_hash[ps]=~/\s+\d+x\d+(\s+|\s*#{Mx[:lnk_c]})/m
image,x,y=z.scan(/\S+/)
image.gsub!(/\\/,'')
- w=((z =~/(\d+)x\d*/) ? z[/(\d+)x\d*/,1] : 200)
+ w=((z =~/\s(\d+)x\d*/) ? z[/\s(\d+)x\d*/,1] : 200)
width={}
width['a4'] = ((w.to_i > @dm['a4']) ? @dm['a4'] : w)
width['letter'] = ((w.to_i > @dm['letter']) ? @dm['letter'] : w)