sogoumap2pdf 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +1 -1
- data/bin/sogoumap2disk +1 -0
- data/bin/sogoumap2pdf +1 -0
- data/bin/sogoumap2pdf_from_disk +1 -1
- data/lib/sogoumap2pdf/sogou_map_image.rb +13 -5
- data/lib/sogoumap2pdf/version.rb +1 -1
- metadata +2 -2
data/History.txt
CHANGED
data/bin/sogoumap2disk
CHANGED
data/bin/sogoumap2pdf
CHANGED
data/bin/sogoumap2pdf_from_disk
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
114
|
-
|
|
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
|
data/lib/sogoumap2pdf/version.rb
CHANGED
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.
|
|
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
|
|
12
|
+
date: 2008-09-09 00:00:00 +08:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|