vectory 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.adoc +6 -0
- data/lib/vectory/datauri.rb +1 -1
- data/lib/vectory/emf.rb +15 -0
- data/lib/vectory/eps.rb +9 -0
- data/lib/vectory/ps.rb +9 -0
- data/lib/vectory/svg.rb +11 -0
- data/lib/vectory/vector.rb +4 -0
- data/lib/vectory/version.rb +1 -1
- data/vectory.gemspec +5 -2
- metadata +4 -55
- data/bin/vectory +0 -9
- data/spec/examples/emf2eps/img.emf +0 -0
- data/spec/examples/emf2eps/img.emf.datauri +0 -1
- data/spec/examples/emf2eps/ref.eps +0 -88
- data/spec/examples/emf2ps/img.emf +0 -0
- data/spec/examples/emf2ps/ref.ps +0 -125
- data/spec/examples/emf2svg/img.emf +0 -0
- data/spec/examples/emf2svg/ref.svg +0 -9
- data/spec/examples/eps2emf/img.eps +0 -199
- data/spec/examples/eps2emf/img.eps.datauri +0 -1
- data/spec/examples/eps2emf/ref.emf +0 -0
- data/spec/examples/eps2ps/img.eps +0 -199
- data/spec/examples/eps2ps/ref.ps +0 -549
- data/spec/examples/eps2svg/img.eps +0 -199
- data/spec/examples/eps2svg/ref.svg +0 -173
- data/spec/examples/eps_but_svg_extension.svg +0 -199
- data/spec/examples/img.jpg +0 -0
- data/spec/examples/ps2emf/img.ps +0 -549
- data/spec/examples/ps2emf/img.ps.datauri +0 -1
- data/spec/examples/ps2emf/ref.emf +0 -0
- data/spec/examples/ps2eps/img.ps +0 -549
- data/spec/examples/ps2eps/ref.eps +0 -844
- data/spec/examples/ps2svg/img.ps +0 -549
- data/spec/examples/ps2svg/ref.svg +0 -476
- data/spec/examples/svg/action_schemaexpg1.svg +0 -124
- data/spec/examples/svg/action_schemaexpg2.svg +0 -124
- data/spec/examples/svg/doc-ref.xml +0 -109
- data/spec/examples/svg/doc.xml +0 -51
- data/spec/examples/svg/doc2-ref.xml +0 -59
- data/spec/examples/svg/doc2.xml +0 -28
- data/spec/examples/svg2emf/img.svg +0 -1
- data/spec/examples/svg2emf/img.svg.datauri +0 -1
- data/spec/examples/svg2emf/ref.emf +0 -0
- data/spec/examples/svg2eps/img.svg +0 -1
- data/spec/examples/svg2eps/ref.eps +0 -88
- data/spec/examples/svg2ps/img.svg +0 -1
- data/spec/examples/svg2ps/ref.ps +0 -125
- data/spec/spec_helper.rb +0 -22
- data/spec/support/matchers.rb +0 -51
- data/spec/support/text_matcher.rb +0 -63
- data/spec/support/vectory_helper.rb +0 -30
- data/spec/vectory/cli_spec.rb +0 -215
- data/spec/vectory/datauri_spec.rb +0 -181
- data/spec/vectory/emf_spec.rb +0 -62
- data/spec/vectory/eps_spec.rb +0 -67
- data/spec/vectory/file_magic_spec.rb +0 -24
- data/spec/vectory/inkscape_converter_spec.rb +0 -43
- data/spec/vectory/ps_spec.rb +0 -58
- data/spec/vectory/svg_mapping_spec.rb +0 -42
- data/spec/vectory/svg_spec.rb +0 -73
- data/spec/vectory/vector_spec.rb +0 -97
- data/spec/vectory_spec.rb +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcde8950a26370677a54de04ba44f5737eec9768a0c611fb3788c5169c729d9c
|
4
|
+
data.tar.gz: dcc826fc4ad94fbf07829d52b65625069c2581aa202a2d3016769ad70ac83881
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b2d225eb97cf8b367609be20123e2fd7776fe291ae11005c47fc61fd09be9808b40926991d302092e9c9b64f8d9868d52bfa6f6e3ea4104a51775295a470f85
|
7
|
+
data.tar.gz: 73016cfa8360d5914add0fbd07b7dd811097fe5f956a02ff9403a8b16a1e8c72082c722026db0af7d70ce762dc308df3ba8fc5f3cd80816a372c73ec209f5298
|
data/README.adoc
CHANGED
@@ -109,6 +109,12 @@ Each of them can be instantiated in several ways:
|
|
109
109
|
----
|
110
110
|
Vectory::Eps.from_path("images/img.eps")
|
111
111
|
Vectory::Eps.from_content("%!PS-Adobe-3.0...")
|
112
|
+
Vectory::Eps.from_datauri("data:image/svg+xml;base64,PHN2 ... 2Zz4=")
|
113
|
+
Vectory::Eps.from_node(Nokogiri::XML(
|
114
|
+
"<image mimetype="application/postscript" alt="3">
|
115
|
+
%!PS-Adobe-3.0 EPSF-3.0 ...
|
116
|
+
</image>"
|
117
|
+
).child)
|
112
118
|
----
|
113
119
|
|
114
120
|
Converting to other formats:
|
data/lib/vectory/datauri.rb
CHANGED
data/lib/vectory/emf.rb
CHANGED
@@ -8,10 +8,25 @@ module Vectory
|
|
8
8
|
"emf"
|
9
9
|
end
|
10
10
|
|
11
|
+
def self.all_mimetypes
|
12
|
+
[mimetype] + alternative_mimetypes
|
13
|
+
end
|
14
|
+
|
11
15
|
def self.mimetype
|
12
16
|
"image/emf"
|
13
17
|
end
|
14
18
|
|
19
|
+
def self.alternative_mimetypes
|
20
|
+
["application/x-msmetafile"]
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.from_node(node)
|
24
|
+
uri = node["src"]
|
25
|
+
return Vectory::Datauri.new(uri).to_vector if %r{^data:}.match?(uri)
|
26
|
+
|
27
|
+
from_path(uri)
|
28
|
+
end
|
29
|
+
|
15
30
|
def to_svg
|
16
31
|
with_file("emf") do |input_path|
|
17
32
|
content = Emf2svg.from_file(input_path).sub(/<\?[^>]+>/, "")
|
data/lib/vectory/eps.rb
CHANGED
@@ -10,6 +10,15 @@ module Vectory
|
|
10
10
|
"application/postscript"
|
11
11
|
end
|
12
12
|
|
13
|
+
def self.from_node(node)
|
14
|
+
return from_content(node.children.to_xml) unless node.text.strip.empty?
|
15
|
+
|
16
|
+
uri = node["src"]
|
17
|
+
return Vectory::Datauri.new(uri).to_vector if %r{^data:}.match?(uri)
|
18
|
+
|
19
|
+
from_path(uri)
|
20
|
+
end
|
21
|
+
|
13
22
|
def to_ps
|
14
23
|
convert_with_inkscape("--export-type=ps", Ps)
|
15
24
|
end
|
data/lib/vectory/ps.rb
CHANGED
@@ -10,6 +10,15 @@ module Vectory
|
|
10
10
|
"application/postscript"
|
11
11
|
end
|
12
12
|
|
13
|
+
def self.from_node(node)
|
14
|
+
return from_content(node.children.to_xml) unless node.text.strip.empty?
|
15
|
+
|
16
|
+
uri = node["src"]
|
17
|
+
return Vectory::Datauri.new(uri).to_vector if %r{^data:}.match?(uri)
|
18
|
+
|
19
|
+
from_path(uri)
|
20
|
+
end
|
21
|
+
|
13
22
|
def to_eps
|
14
23
|
convert_with_inkscape("--export-type=eps", Eps)
|
15
24
|
end
|
data/lib/vectory/svg.rb
CHANGED
@@ -14,6 +14,17 @@ module Vectory
|
|
14
14
|
"image/svg+xml"
|
15
15
|
end
|
16
16
|
|
17
|
+
def self.from_node(node)
|
18
|
+
if node.elements&.first&.name == "svg"
|
19
|
+
return from_content(node.children.to_xml)
|
20
|
+
end
|
21
|
+
|
22
|
+
uri = node["src"]
|
23
|
+
return Vectory::Datauri.new(uri).to_vector if %r{^data:}.match?(uri)
|
24
|
+
|
25
|
+
from_path(uri)
|
26
|
+
end
|
27
|
+
|
17
28
|
def content
|
18
29
|
@document&.to_xml || @content
|
19
30
|
end
|
data/lib/vectory/vector.rb
CHANGED
data/lib/vectory/version.rb
CHANGED
data/vectory.gemspec
CHANGED
@@ -18,9 +18,12 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.license = "BSD-2-Clause"
|
19
19
|
|
20
20
|
spec.bindir = "exe"
|
21
|
-
spec.executables =
|
21
|
+
spec.executables = ["vectory"]
|
22
22
|
spec.require_paths = ["lib"]
|
23
|
-
spec.files = `git ls-files`.split("\
|
23
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
24
|
+
f.match(%r{^(bin|spec)/})
|
25
|
+
end
|
26
|
+
spec.test_files = `git ls-files -- {spec}/*`.split("\n")
|
24
27
|
spec.required_ruby_version = ">= 2.5.0"
|
25
28
|
|
26
29
|
spec.add_runtime_dependency "emf2svg"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vectory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: emf2svg
|
@@ -57,7 +57,8 @@ description: |
|
|
57
57
|
vector image formats, such as SVG, EMF, EPS and PS.
|
58
58
|
email:
|
59
59
|
- open.source@ribose.com
|
60
|
-
executables:
|
60
|
+
executables:
|
61
|
+
- vectory
|
61
62
|
extensions: []
|
62
63
|
extra_rdoc_files: []
|
63
64
|
files:
|
@@ -70,7 +71,6 @@ files:
|
|
70
71
|
- Gemfile
|
71
72
|
- README.adoc
|
72
73
|
- Rakefile
|
73
|
-
- bin/vectory
|
74
74
|
- exe/vectory
|
75
75
|
- lib/vectory.rb
|
76
76
|
- lib/vectory/cli.rb
|
@@ -87,57 +87,6 @@ files:
|
|
87
87
|
- lib/vectory/utils.rb
|
88
88
|
- lib/vectory/vector.rb
|
89
89
|
- lib/vectory/version.rb
|
90
|
-
- spec/examples/emf2eps/img.emf
|
91
|
-
- spec/examples/emf2eps/img.emf.datauri
|
92
|
-
- spec/examples/emf2eps/ref.eps
|
93
|
-
- spec/examples/emf2ps/img.emf
|
94
|
-
- spec/examples/emf2ps/ref.ps
|
95
|
-
- spec/examples/emf2svg/img.emf
|
96
|
-
- spec/examples/emf2svg/ref.svg
|
97
|
-
- spec/examples/eps2emf/img.eps
|
98
|
-
- spec/examples/eps2emf/img.eps.datauri
|
99
|
-
- spec/examples/eps2emf/ref.emf
|
100
|
-
- spec/examples/eps2ps/img.eps
|
101
|
-
- spec/examples/eps2ps/ref.ps
|
102
|
-
- spec/examples/eps2svg/img.eps
|
103
|
-
- spec/examples/eps2svg/ref.svg
|
104
|
-
- spec/examples/eps_but_svg_extension.svg
|
105
|
-
- spec/examples/img.jpg
|
106
|
-
- spec/examples/ps2emf/img.ps
|
107
|
-
- spec/examples/ps2emf/img.ps.datauri
|
108
|
-
- spec/examples/ps2emf/ref.emf
|
109
|
-
- spec/examples/ps2eps/img.ps
|
110
|
-
- spec/examples/ps2eps/ref.eps
|
111
|
-
- spec/examples/ps2svg/img.ps
|
112
|
-
- spec/examples/ps2svg/ref.svg
|
113
|
-
- spec/examples/svg/action_schemaexpg1.svg
|
114
|
-
- spec/examples/svg/action_schemaexpg2.svg
|
115
|
-
- spec/examples/svg/doc-ref.xml
|
116
|
-
- spec/examples/svg/doc.xml
|
117
|
-
- spec/examples/svg/doc2-ref.xml
|
118
|
-
- spec/examples/svg/doc2.xml
|
119
|
-
- spec/examples/svg2emf/img.svg
|
120
|
-
- spec/examples/svg2emf/img.svg.datauri
|
121
|
-
- spec/examples/svg2emf/ref.emf
|
122
|
-
- spec/examples/svg2eps/img.svg
|
123
|
-
- spec/examples/svg2eps/ref.eps
|
124
|
-
- spec/examples/svg2ps/img.svg
|
125
|
-
- spec/examples/svg2ps/ref.ps
|
126
|
-
- spec/spec_helper.rb
|
127
|
-
- spec/support/matchers.rb
|
128
|
-
- spec/support/text_matcher.rb
|
129
|
-
- spec/support/vectory_helper.rb
|
130
|
-
- spec/vectory/cli_spec.rb
|
131
|
-
- spec/vectory/datauri_spec.rb
|
132
|
-
- spec/vectory/emf_spec.rb
|
133
|
-
- spec/vectory/eps_spec.rb
|
134
|
-
- spec/vectory/file_magic_spec.rb
|
135
|
-
- spec/vectory/inkscape_converter_spec.rb
|
136
|
-
- spec/vectory/ps_spec.rb
|
137
|
-
- spec/vectory/svg_mapping_spec.rb
|
138
|
-
- spec/vectory/svg_spec.rb
|
139
|
-
- spec/vectory/vector_spec.rb
|
140
|
-
- spec/vectory_spec.rb
|
141
90
|
- tmp/.keep
|
142
91
|
- vectory.gemspec
|
143
92
|
homepage: https://github.com/metanorma/vectory
|
data/bin/vectory
DELETED
Binary file
|
@@ -1 +0,0 @@
|
|
1
|
-
data:image/emf;base64,AQAAANQAAAAAAAAAAAAAAPsEAAD7BAAAAAAAAAAAAACLCgAAiwoAACBFTUYAAAEAMAQAACgAAAACAAAANAAAAGwAAAAAAAAA3ScAAH0zAADYAAAAFwEAAAAAAAAAAAAAAAAAAMBLAwDYQQQASQBuAGsAcwBjAGEAcABlACAAMQAuADMAIAAoADAAZQAxADUAMABlAGQALAAgADIAMAAyADMALQAwADcALQAyADEAKQAgAAAAZgBpAGwAZQAzAC4AcwB2AGcALgBlAG0AZgAAAAAAAAARAAAADAAAAAEAAAAkAAAAJAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAIAAABGAAAALAAAACAAAABTY3JlZW49MTAyMDV4MTMxODFweCwgMjE2eDI3OW1tAEYAAAAwAAAAIwAAAERyYXdpbmc9MTAwLjB4MTAwLjBweCwgMjYuNXgyNi41bW0AABIAAAAMAAAAAQAAABMAAAAMAAAAAgAAABYAAAAMAAAAGAAAABgAAAAMAAAAAAAAABQAAAAMAAAADQAAACcAAAAYAAAAAQAAAAAAAAAAAJkABgAAACUAAAAMAAAAAQAAADsAAAAIAAAAGwAAABAAAACkBAAAcQIAAAUAAAA0AAAAAAAAAAAAAAD//////////wMAAACkBAAAqAMAAKgDAACkBAAAcQIAAKQEAAAFAAAANAAAAAAAAAAAAAAA//////////8DAAAAOgEAAKQEAAA/AAAAqAMAAD8AAABxAgAABQAAADQAAAAAAAAAAAAAAP//////////AwAAAD8AAAA6AQAAOgEAAD8AAABxAgAAPwAAAAUAAAA0AAAAAAAAAAAAAAD//////////wMAAACoAwAAPwAAAKQEAAA6AQAApAQAAHECAAA9AAAACAAAADwAAAAIAAAAPgAAABgAAAAAAAAAAAAAAP//////////JQAAAAwAAAAFAACAKAAAAAwAAAABAAAAJwAAABgAAAABAAAAAAAAAP///wAGAAAAJQAAAAwAAAABAAAAOwAAAAgAAAAbAAAAEAAAAJ0BAABFAQAANgAAABAAAADPAwAARQEAAAUAAAA0AAAAAAAAAAAAAAD//////////wMAAABfBAAA7QEAAGQEAADjAgAA2wMAAJEDAAAFAAAANAAAAAAAAAAAAAAA//////////8DAAAAUgMAAD4EAABhAgAAcwQAAJ0BAAAOBAAANgAAABAAAACdAQAAyQIAADYAAAAQAAAA4gIAAMkCAAA2AAAAEAAAAOICAAAaAgAANgAAABAAAACdAQAAGgIAAD0AAAAIAAAAPAAAAAgAAAA+AAAAGAAAAAAAAAAAAAAA//////////8lAAAADAAAAAUAAIAoAAAADAAAAAEAAAAOAAAAFAAAAAAAAAAAAAAAMAQAAA==
|
@@ -1,88 +0,0 @@
|
|
1
|
-
%!PS-Adobe-3.0 EPSF-3.0
|
2
|
-
%%Creator: cairo 1.17.9 (https://cairographics.org)
|
3
|
-
%%CreationDate: Mon Oct 2 11:24:42 2023
|
4
|
-
%%Pages: 1
|
5
|
-
%%DocumentData: Clean7Bit
|
6
|
-
%%LanguageLevel: 2
|
7
|
-
%%BoundingBox: 3 5 72 74
|
8
|
-
%%EndComments
|
9
|
-
%%BeginProlog
|
10
|
-
50 dict begin
|
11
|
-
/q { gsave } bind def
|
12
|
-
/Q { grestore } bind def
|
13
|
-
/cm { 6 array astore concat } bind def
|
14
|
-
/w { setlinewidth } bind def
|
15
|
-
/J { setlinecap } bind def
|
16
|
-
/j { setlinejoin } bind def
|
17
|
-
/M { setmiterlimit } bind def
|
18
|
-
/d { setdash } bind def
|
19
|
-
/m { moveto } bind def
|
20
|
-
/l { lineto } bind def
|
21
|
-
/c { curveto } bind def
|
22
|
-
/h { closepath } bind def
|
23
|
-
/re { exch dup neg 3 1 roll 5 3 roll moveto 0 rlineto
|
24
|
-
0 exch rlineto 0 rlineto closepath } bind def
|
25
|
-
/S { stroke } bind def
|
26
|
-
/f { fill } bind def
|
27
|
-
/f* { eofill } bind def
|
28
|
-
/n { newpath } bind def
|
29
|
-
/W { clip } bind def
|
30
|
-
/W* { eoclip } bind def
|
31
|
-
/BT { } bind def
|
32
|
-
/ET { } bind def
|
33
|
-
/BDC { mark 3 1 roll /BDC pdfmark } bind def
|
34
|
-
/EMC { mark /EMC pdfmark } bind def
|
35
|
-
/cairo_store_point { /cairo_point_y exch def /cairo_point_x exch def } def
|
36
|
-
/Tj { show currentpoint cairo_store_point } bind def
|
37
|
-
/TJ {
|
38
|
-
{
|
39
|
-
dup
|
40
|
-
type /stringtype eq
|
41
|
-
{ show } { -0.001 mul 0 cairo_font_matrix dtransform rmoveto } ifelse
|
42
|
-
} forall
|
43
|
-
currentpoint cairo_store_point
|
44
|
-
} bind def
|
45
|
-
/cairo_selectfont { cairo_font_matrix aload pop pop pop 0 0 6 array astore
|
46
|
-
cairo_font exch selectfont cairo_point_x cairo_point_y moveto } bind def
|
47
|
-
/Tf { pop /cairo_font exch def /cairo_font_matrix where
|
48
|
-
{ pop cairo_selectfont } if } bind def
|
49
|
-
/Td { matrix translate cairo_font_matrix matrix concatmatrix dup
|
50
|
-
/cairo_font_matrix exch def dup 4 get exch 5 get cairo_store_point
|
51
|
-
/cairo_font where { pop cairo_selectfont } if } bind def
|
52
|
-
/Tm { 2 copy 8 2 roll 6 array astore /cairo_font_matrix exch def
|
53
|
-
cairo_store_point /cairo_font where { pop cairo_selectfont } if } bind def
|
54
|
-
/g { setgray } bind def
|
55
|
-
/rg { setrgbcolor } bind def
|
56
|
-
/d1 { setcachedevice } bind def
|
57
|
-
/cairo_data_source {
|
58
|
-
CairoDataIndex CairoData length lt
|
59
|
-
{ CairoData CairoDataIndex get /CairoDataIndex CairoDataIndex 1 add def }
|
60
|
-
{ () } ifelse
|
61
|
-
} def
|
62
|
-
/cairo_flush_ascii85_file { cairo_ascii85_file status { cairo_ascii85_file flushfile } if } def
|
63
|
-
/cairo_image { image cairo_flush_ascii85_file } def
|
64
|
-
/cairo_imagemask { imagemask cairo_flush_ascii85_file } def
|
65
|
-
%%EndProlog
|
66
|
-
%%BeginSetup
|
67
|
-
%%EndSetup
|
68
|
-
%%Page: 1 1
|
69
|
-
%%BeginPageSetup
|
70
|
-
%%PageBoundingBox: 3 5 72 74
|
71
|
-
%%EndPageSetup
|
72
|
-
q 3 5 69 69 rectclip
|
73
|
-
1 0 0 -1 0 77 cm q
|
74
|
-
0 0 0.6 rg
|
75
|
-
71.281 37.5 m 71.281 56.16 56.16 71.281 37.5 71.281 c 18.84 71.281 3.781
|
76
|
-
56.16 3.781 37.5 c 3.781 18.84 18.84 3.781 37.5 3.781 c 56.16 3.781 71.281
|
77
|
-
18.84 71.281 37.5 c h
|
78
|
-
71.281 37.5 m f
|
79
|
-
1 g
|
80
|
-
24.781 19.5 m 58.5 19.5 l 67.141 29.578 67.441 44.34 59.219 54.781 c 51
|
81
|
-
65.16 36.539 68.34 24.781 62.281 c 24.781 42.781 l 44.281 42.781 l 44.281
|
82
|
-
32.281 l 24.781 32.281 l h
|
83
|
-
24.781 19.5 m f
|
84
|
-
Q Q
|
85
|
-
showpage
|
86
|
-
%%Trailer
|
87
|
-
end
|
88
|
-
%%EOF
|
Binary file
|
data/spec/examples/emf2ps/ref.ps
DELETED
@@ -1,125 +0,0 @@
|
|
1
|
-
%!PS-Adobe-3.0
|
2
|
-
%%Creator: cairo 1.17.9 (https://cairographics.org)
|
3
|
-
%%CreationDate: Fri Oct 6 12:34:05 2023
|
4
|
-
%%Pages: 1
|
5
|
-
%%DocumentData: Clean7Bit
|
6
|
-
%%LanguageLevel: 2
|
7
|
-
%%DocumentMedia: 27x27mm 77 77 0 () ()
|
8
|
-
%%BoundingBox: 3 5 72 74
|
9
|
-
%%EndComments
|
10
|
-
%%BeginProlog
|
11
|
-
/languagelevel where
|
12
|
-
{ pop languagelevel } { 1 } ifelse
|
13
|
-
2 lt { /Helvetica findfont 12 scalefont setfont 50 500 moveto
|
14
|
-
(This print job requires a PostScript Language Level 2 printer.) show
|
15
|
-
showpage quit } if
|
16
|
-
/q { gsave } bind def
|
17
|
-
/Q { grestore } bind def
|
18
|
-
/cm { 6 array astore concat } bind def
|
19
|
-
/w { setlinewidth } bind def
|
20
|
-
/J { setlinecap } bind def
|
21
|
-
/j { setlinejoin } bind def
|
22
|
-
/M { setmiterlimit } bind def
|
23
|
-
/d { setdash } bind def
|
24
|
-
/m { moveto } bind def
|
25
|
-
/l { lineto } bind def
|
26
|
-
/c { curveto } bind def
|
27
|
-
/h { closepath } bind def
|
28
|
-
/re { exch dup neg 3 1 roll 5 3 roll moveto 0 rlineto
|
29
|
-
0 exch rlineto 0 rlineto closepath } bind def
|
30
|
-
/S { stroke } bind def
|
31
|
-
/f { fill } bind def
|
32
|
-
/f* { eofill } bind def
|
33
|
-
/n { newpath } bind def
|
34
|
-
/W { clip } bind def
|
35
|
-
/W* { eoclip } bind def
|
36
|
-
/BT { } bind def
|
37
|
-
/ET { } bind def
|
38
|
-
/BDC { mark 3 1 roll /BDC pdfmark } bind def
|
39
|
-
/EMC { mark /EMC pdfmark } bind def
|
40
|
-
/cairo_store_point { /cairo_point_y exch def /cairo_point_x exch def } def
|
41
|
-
/Tj { show currentpoint cairo_store_point } bind def
|
42
|
-
/TJ {
|
43
|
-
{
|
44
|
-
dup
|
45
|
-
type /stringtype eq
|
46
|
-
{ show } { -0.001 mul 0 cairo_font_matrix dtransform rmoveto } ifelse
|
47
|
-
} forall
|
48
|
-
currentpoint cairo_store_point
|
49
|
-
} bind def
|
50
|
-
/cairo_selectfont { cairo_font_matrix aload pop pop pop 0 0 6 array astore
|
51
|
-
cairo_font exch selectfont cairo_point_x cairo_point_y moveto } bind def
|
52
|
-
/Tf { pop /cairo_font exch def /cairo_font_matrix where
|
53
|
-
{ pop cairo_selectfont } if } bind def
|
54
|
-
/Td { matrix translate cairo_font_matrix matrix concatmatrix dup
|
55
|
-
/cairo_font_matrix exch def dup 4 get exch 5 get cairo_store_point
|
56
|
-
/cairo_font where { pop cairo_selectfont } if } bind def
|
57
|
-
/Tm { 2 copy 8 2 roll 6 array astore /cairo_font_matrix exch def
|
58
|
-
cairo_store_point /cairo_font where { pop cairo_selectfont } if } bind def
|
59
|
-
/g { setgray } bind def
|
60
|
-
/rg { setrgbcolor } bind def
|
61
|
-
/d1 { setcachedevice } bind def
|
62
|
-
/cairo_data_source {
|
63
|
-
CairoDataIndex CairoData length lt
|
64
|
-
{ CairoData CairoDataIndex get /CairoDataIndex CairoDataIndex 1 add def }
|
65
|
-
{ () } ifelse
|
66
|
-
} def
|
67
|
-
/cairo_flush_ascii85_file { cairo_ascii85_file status { cairo_ascii85_file flushfile } if } def
|
68
|
-
/cairo_image { image cairo_flush_ascii85_file } def
|
69
|
-
/cairo_imagemask { imagemask cairo_flush_ascii85_file } def
|
70
|
-
/cairo_set_page_size {
|
71
|
-
% Change paper size, but only if different from previous paper size otherwise
|
72
|
-
% duplex fails. PLRM specifies a tolerance of 5 pts when matching paper size
|
73
|
-
% so we use the same when checking if the size changes.
|
74
|
-
/setpagedevice where {
|
75
|
-
pop currentpagedevice
|
76
|
-
/PageSize known {
|
77
|
-
2 copy
|
78
|
-
currentpagedevice /PageSize get aload pop
|
79
|
-
exch 4 1 roll
|
80
|
-
sub abs 5 gt
|
81
|
-
3 1 roll
|
82
|
-
sub abs 5 gt
|
83
|
-
or
|
84
|
-
} {
|
85
|
-
true
|
86
|
-
} ifelse
|
87
|
-
{
|
88
|
-
2 array astore
|
89
|
-
2 dict begin
|
90
|
-
/PageSize exch def
|
91
|
-
/ImagingBBox null def
|
92
|
-
currentdict end
|
93
|
-
setpagedevice
|
94
|
-
} {
|
95
|
-
pop pop
|
96
|
-
} ifelse
|
97
|
-
} {
|
98
|
-
pop
|
99
|
-
} ifelse
|
100
|
-
} def
|
101
|
-
%%EndProlog
|
102
|
-
%%BeginSetup
|
103
|
-
%%EndSetup
|
104
|
-
%%Page: 1 1
|
105
|
-
%%BeginPageSetup
|
106
|
-
%%PageMedia: 27x27mm
|
107
|
-
%%PageBoundingBox: 3 5 72 74
|
108
|
-
77 77 cairo_set_page_size
|
109
|
-
%%EndPageSetup
|
110
|
-
q 3 5 69 69 rectclip
|
111
|
-
1 0 0 -1 0 77 cm q
|
112
|
-
0 0 0.6 rg
|
113
|
-
71.281 37.5 m 71.281 56.16 56.16 71.281 37.5 71.281 c 18.84 71.281 3.781
|
114
|
-
56.16 3.781 37.5 c 3.781 18.84 18.84 3.781 37.5 3.781 c 56.16 3.781 71.281
|
115
|
-
18.84 71.281 37.5 c h
|
116
|
-
71.281 37.5 m f
|
117
|
-
1 g
|
118
|
-
24.781 19.5 m 58.5 19.5 l 67.141 29.578 67.441 44.34 59.219 54.781 c 51
|
119
|
-
65.16 36.539 68.34 24.781 62.281 c 24.781 42.781 l 44.281 42.781 l 44.281
|
120
|
-
32.281 l 24.781 32.281 l h
|
121
|
-
24.781 19.5 m f
|
122
|
-
Q Q
|
123
|
-
showpage
|
124
|
-
%%Trailer
|
125
|
-
%%EOF
|
Binary file
|
@@ -1,9 +0,0 @@
|
|
1
|
-
|
2
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1275.0000" height="1275.0000">
|
3
|
-
<g transform="translate(-0.0000, -0.0000)">
|
4
|
-
<g transform="matrix(1.0000 0.0000 0.0000 1.0000 0.0000 0.0000)">
|
5
|
-
<path d="M 1188.0000,625.0000 C 1188.0000,936.0000 936.0000,1188.0000 625.0000,1188.0000 C 314.0000,1188.0000 63.0000,936.0000 63.0000,625.0000 C 63.0000,314.0000 314.0000,63.0000 625.0000,63.0000 C 936.0000,63.0000 1188.0000,314.0000 1188.0000,625.0000 Z " fill="#000099" stroke="none" />
|
6
|
-
<path d="M 413.0000,325.0000 L 975.0000,325.0000 C 1119.0000,493.0000 1124.0000,739.0000 987.0000,913.0000 C 850.0000,1086.0000 609.0000,1139.0000 413.0000,1038.0000 L 413.0000,713.0000 L 738.0000,713.0000 L 738.0000,538.0000 L 413.0000,538.0000 Z " fill="#FFFFFF" stroke="none" />
|
7
|
-
</g>
|
8
|
-
</g>
|
9
|
-
</svg>
|
@@ -1,199 +0,0 @@
|
|
1
|
-
%!PS-Adobe-3.0 EPSF-3.0
|
2
|
-
%%Document-Fonts: Times-Roman
|
3
|
-
%%Title: circle.eps
|
4
|
-
%%Creator: PS_Write.F
|
5
|
-
%%CreationDate: 02-Aug-99
|
6
|
-
%%Pages: 1
|
7
|
-
%%BoundingBox: 36 36 576 756
|
8
|
-
%%LanguageLevel: 1
|
9
|
-
%%EndComments
|
10
|
-
%%BeginProlog
|
11
|
-
%%EndProlog
|
12
|
-
/inch {72 mul} def
|
13
|
-
/Palatino-Roman findfont
|
14
|
-
1.00 inch scalefont
|
15
|
-
setfont
|
16
|
-
0.0000 0.0000 0.0000 setrgbcolor
|
17
|
-
%% Page: 1 1
|
18
|
-
save
|
19
|
-
63 153 moveto
|
20
|
-
newpath
|
21
|
-
63 153 moveto
|
22
|
-
549 153 lineto
|
23
|
-
stroke
|
24
|
-
newpath
|
25
|
-
549 153 moveto
|
26
|
-
549 639 lineto
|
27
|
-
stroke
|
28
|
-
newpath
|
29
|
-
549 639 moveto
|
30
|
-
63 639 lineto
|
31
|
-
stroke
|
32
|
-
newpath
|
33
|
-
63 639 moveto
|
34
|
-
63 153 lineto
|
35
|
-
stroke
|
36
|
-
newpath
|
37
|
-
360 261 108 0 360 arc
|
38
|
-
closepath stroke
|
39
|
-
newpath
|
40
|
-
361 357 moveto
|
41
|
-
358 358 lineto
|
42
|
-
353 356 lineto
|
43
|
-
348 353 lineto
|
44
|
-
342 347 lineto
|
45
|
-
336 340 lineto
|
46
|
-
329 331 lineto
|
47
|
-
322 321 lineto
|
48
|
-
315 309 lineto
|
49
|
-
307 296 lineto
|
50
|
-
300 283 lineto
|
51
|
-
292 268 lineto
|
52
|
-
285 253 lineto
|
53
|
-
278 237 lineto
|
54
|
-
271 222 lineto
|
55
|
-
266 206 lineto
|
56
|
-
260 191 lineto
|
57
|
-
256 177 lineto
|
58
|
-
252 164 lineto
|
59
|
-
249 152 lineto
|
60
|
-
247 141 lineto
|
61
|
-
246 131 lineto
|
62
|
-
246 123 lineto
|
63
|
-
247 117 lineto
|
64
|
-
248 113 lineto
|
65
|
-
251 111 lineto
|
66
|
-
254 110 lineto
|
67
|
-
259 112 lineto
|
68
|
-
264 115 lineto
|
69
|
-
270 121 lineto
|
70
|
-
276 128 lineto
|
71
|
-
283 137 lineto
|
72
|
-
290 147 lineto
|
73
|
-
297 159 lineto
|
74
|
-
305 172 lineto
|
75
|
-
312 185 lineto
|
76
|
-
320 200 lineto
|
77
|
-
327 215 lineto
|
78
|
-
334 231 lineto
|
79
|
-
341 246 lineto
|
80
|
-
346 262 lineto
|
81
|
-
352 277 lineto
|
82
|
-
356 291 lineto
|
83
|
-
360 304 lineto
|
84
|
-
363 316 lineto
|
85
|
-
365 327 lineto
|
86
|
-
366 337 lineto
|
87
|
-
366 345 lineto
|
88
|
-
365 351 lineto
|
89
|
-
364 355 lineto
|
90
|
-
361 357 lineto
|
91
|
-
stroke
|
92
|
-
newpath
|
93
|
-
171 261 moveto
|
94
|
-
171 531 lineto
|
95
|
-
stroke
|
96
|
-
newpath
|
97
|
-
198 261 moveto
|
98
|
-
198 531 lineto
|
99
|
-
stroke
|
100
|
-
newpath
|
101
|
-
225 261 moveto
|
102
|
-
225 531 lineto
|
103
|
-
stroke
|
104
|
-
newpath
|
105
|
-
252 261 moveto
|
106
|
-
252 531 lineto
|
107
|
-
stroke
|
108
|
-
newpath
|
109
|
-
279 261 moveto
|
110
|
-
279 531 lineto
|
111
|
-
stroke
|
112
|
-
newpath
|
113
|
-
306 261 moveto
|
114
|
-
306 531 lineto
|
115
|
-
stroke
|
116
|
-
newpath
|
117
|
-
333 261 moveto
|
118
|
-
333 531 lineto
|
119
|
-
stroke
|
120
|
-
newpath
|
121
|
-
360 261 moveto
|
122
|
-
360 531 lineto
|
123
|
-
stroke
|
124
|
-
newpath
|
125
|
-
387 261 moveto
|
126
|
-
387 531 lineto
|
127
|
-
stroke
|
128
|
-
newpath
|
129
|
-
414 261 moveto
|
130
|
-
414 531 lineto
|
131
|
-
stroke
|
132
|
-
newpath
|
133
|
-
441 261 moveto
|
134
|
-
441 531 lineto
|
135
|
-
stroke
|
136
|
-
newpath
|
137
|
-
171 261 moveto
|
138
|
-
441 261 lineto
|
139
|
-
stroke
|
140
|
-
newpath
|
141
|
-
171 288 moveto
|
142
|
-
441 288 lineto
|
143
|
-
stroke
|
144
|
-
newpath
|
145
|
-
171 315 moveto
|
146
|
-
441 315 lineto
|
147
|
-
stroke
|
148
|
-
newpath
|
149
|
-
171 342 moveto
|
150
|
-
441 342 lineto
|
151
|
-
stroke
|
152
|
-
newpath
|
153
|
-
171 369 moveto
|
154
|
-
441 369 lineto
|
155
|
-
stroke
|
156
|
-
newpath
|
157
|
-
171 396 moveto
|
158
|
-
441 396 lineto
|
159
|
-
stroke
|
160
|
-
newpath
|
161
|
-
171 423 moveto
|
162
|
-
441 423 lineto
|
163
|
-
stroke
|
164
|
-
newpath
|
165
|
-
171 450 moveto
|
166
|
-
441 450 lineto
|
167
|
-
stroke
|
168
|
-
newpath
|
169
|
-
171 477 moveto
|
170
|
-
441 477 lineto
|
171
|
-
stroke
|
172
|
-
newpath
|
173
|
-
171 504 moveto
|
174
|
-
441 504 lineto
|
175
|
-
stroke
|
176
|
-
newpath
|
177
|
-
171 531 moveto
|
178
|
-
441 531 lineto
|
179
|
-
stroke
|
180
|
-
newpath
|
181
|
-
306 396 5 0 360 arc
|
182
|
-
closepath stroke
|
183
|
-
0.0000 1.0000 0.0000 setrgbcolor
|
184
|
-
newpath
|
185
|
-
387 477 54 0 90 arc
|
186
|
-
stroke
|
187
|
-
171 261 moveto
|
188
|
-
0.0000 0.0000 0.0000 setrgbcolor
|
189
|
-
/Palatino-Roman findfont
|
190
|
-
0.250 inch scalefont
|
191
|
-
setfont
|
192
|
-
(This is "circle.plot".) show
|
193
|
-
171 342 moveto
|
194
|
-
/Palatino-Roman findfont
|
195
|
-
0.125 inch scalefont
|
196
|
-
setfont
|
197
|
-
(This is small print.) show
|
198
|
-
restore showpage
|
199
|
-
%%Trailer
|