sogoumap2pdf 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -19,6 +19,6 @@
19
19
  * 1 minor enhancement:
20
20
  * add command sogoumap2disk
21
21
 
22
- == 0.0.10 2008-09-09
22
+ == 0.0.11 2008-09-09
23
23
  * 1 minor enhancement:
24
24
  * add command sogoumap2pdf_from_disk
data/bin/sogoumap2disk CHANGED
@@ -54,6 +54,7 @@ g=SogouMapImage.new(link, option)
54
54
  gmpdf=ImageToPdf.new(".JPG",x,y)
55
55
  xres, yres = gmpdf.perfect_fit(x.to_i,y.to_i,r.to_i,c.to_i)
56
56
  g.fill_map(xres,yres)
57
+ g.fill_map2
57
58
  #gmpdf.front_page(g)
58
59
  #gmpdf.create_pages(g)
59
60
  #gmpdf.save(ARGV[3])
data/bin/sogoumap2pdf CHANGED
@@ -54,6 +54,7 @@ g=SogouMapImage.new(link, option)
54
54
  gmpdf=ImageToPdf.new(".JPG",x,y)
55
55
  xres, yres = gmpdf.perfect_fit(x.to_i,y.to_i,r.to_i,c.to_i)
56
56
  g.fill_map(xres,yres)
57
+ g.fill_map2
57
58
  gmpdf.front_page(g)
58
59
  gmpdf.create_pages(g)
59
60
  gmpdf.save(ARGV[3])
@@ -53,7 +53,7 @@ r,c=ARGV[2].split("x")
53
53
  g=SogouMapImage.new(link, option)
54
54
  gmpdf=ImageToPdf.new(".JPG",x,y)
55
55
  xres, yres = gmpdf.perfect_fit(x.to_i,y.to_i,r.to_i,c.to_i)
56
- # g.fill_map(xres,yres)
56
+ g.fill_map(xres,yres)
57
57
  gmpdf.front_page(g)
58
58
  gmpdf.create_pages(g)
59
59
  gmpdf.save(ARGV[3])
@@ -107,13 +107,21 @@ module Sogoumap2pdf
107
107
  @area_height=npy*@patch_size_y
108
108
  @area_width=npx*@patch_size_x
109
109
  # end patch
110
- epx=npx+spx-1
111
- epy=npy+spy-1
112
- for i in 0...npx
113
- for j in 0...npy
114
- self.only_save_image(i+spx,j+spy)
110
+ # epx=npx+spx-1
111
+ # epy=npy+spy-1
112
+ # for i in 0...npx
113
+ # for j in 0...npy
114
+ # self.only_save_image(i+spx,j+spy)
115
+ # end
116
+ # end
117
+ end
118
+ def fill_map2
119
+ for i in 0...@npx
120
+ for j in 0...@npy
121
+ self.only_save_image(i+@spx,j+@spy)
115
122
  end
116
123
  end
117
124
  end
125
+
118
126
  end
119
127
  end
@@ -2,7 +2,7 @@ module Sogoumap2pdf
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 10
5
+ TINY = 11
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sogoumap2pdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Ruan
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-09-09 00:00:00 -05:00
12
+ date: 2008-09-09 00:00:00 +08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency