rghost 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/Manifest.txt +101 -0
- data/README.txt +3 -0
- data/Rakefile +93 -0
- data/lib/rghost.rb +3 -0
- data/lib/rghost/arc.rb +39 -0
- data/lib/rghost/barcode.rb +40 -0
- data/lib/rghost/callback.rb +55 -0
- data/lib/rghost/color.rb +118 -0
- data/lib/rghost/constants.rb +616 -0
- data/lib/rghost/convert.rb +24 -0
- data/lib/rghost/cursor.rb +82 -0
- data/lib/rghost/data_grid/basic_grid.rb +136 -0
- data/lib/rghost/data_grid/csv_grid.rb +27 -0
- data/lib/rghost/data_grid/data_grid.rb +14 -0
- data/lib/rghost/data_grid/dynamic_callback.rb +12 -0
- data/lib/rghost/data_grid/field_format.rb +60 -0
- data/lib/rghost/data_grid/grid.rb +18 -0
- data/lib/rghost/data_grid/header.rb +111 -0
- data/lib/rghost/data_grid/rails_grid.rb +37 -0
- data/lib/rghost/data_grid/static_callback.rb +13 -0
- data/lib/rghost/data_grid/style/border_lines.rb +47 -0
- data/lib/rghost/data_grid/style/bottom_lines.rb +30 -0
- data/lib/rghost/data_grid/style/old_forms.rb +30 -0
- data/lib/rghost/data_grid/style/style.rb +8 -0
- data/lib/rghost/document.rb +380 -0
- data/lib/rghost/dsc_entry.rb +20 -0
- data/lib/rghost/dynamic_document_callback.rb +27 -0
- data/lib/rghost/eps.rb +22 -0
- data/lib/rghost/font.rb +52 -0
- data/lib/rghost/function.rb +36 -0
- data/lib/rghost/gif.rb +28 -0
- data/lib/rghost/graphic.rb +28 -0
- data/lib/rghost/gs_alone.rb +17 -0
- data/lib/rghost/helpers.rb +13 -0
- data/lib/rghost/horizontal_line.rb +29 -0
- data/lib/rghost/image.rb +26 -0
- data/lib/rghost/jpeg.rb +26 -0
- data/lib/rghost/line.rb +40 -0
- data/lib/rghost/line_width.rb +17 -0
- data/lib/rghost/load.rb +37 -0
- data/lib/rghost/newpath.rb +20 -0
- data/lib/rghost/paper.rb +88 -0
- data/lib/rghost/point.rb +22 -0
- data/lib/rghost/point_with_command.rb +17 -0
- data/lib/rghost/ps/basic.ps +14 -0
- data/lib/rghost/ps/begin_document.ps +7 -0
- data/lib/rghost/ps/callbacks.ps +146 -0
- data/lib/rghost/ps/code128.font +344 -0
- data/lib/rghost/ps/code39.font +195 -0
- data/lib/rghost/ps/cursor.ps +41 -0
- data/lib/rghost/ps/datagrid.ps +52 -0
- data/lib/rghost/ps/ean.font +150 -0
- data/lib/rghost/ps/eps.ps +42 -0
- data/lib/rghost/ps/font.ps +31 -0
- data/lib/rghost/ps/functions.ps +646 -0
- data/lib/rghost/ps/gif.ps +150 -0
- data/lib/rghost/ps/horizontal_line.ps +3 -0
- data/lib/rghost/ps/i25.font +103 -0
- data/lib/rghost/ps/jpeg.ps +122 -0
- data/lib/rghost/ps/paper.ps +8 -0
- data/lib/rghost/ps/rectangle.ps +5 -0
- data/lib/rghost/ps/row.ps +4 -0
- data/lib/rghost/ps/show.ps +20 -0
- data/lib/rghost/ps/table_callbacks.ps +96 -0
- data/lib/rghost/ps/textarea.ps +11 -0
- data/lib/rghost/ps/type.ps +1 -0
- data/lib/rghost/ps/unit.ps +3 -0
- data/lib/rghost/ps/vertical_line.ps +14 -0
- data/lib/rghost/ps_object.rb +51 -0
- data/lib/rghost/rectangle.rb +39 -0
- data/lib/rghost/rgengine.so +0 -0
- data/lib/rghost/rghost.rb +3 -0
- data/lib/rghost/ruby_ghost_config.rb +25 -0
- data/lib/rghost/ruby_ghost_engine.rb +175 -0
- data/lib/rghost/ruby_to_ps.rb +92 -0
- data/lib/rghost/scale.rb +14 -0
- data/lib/rghost/show.rb +31 -0
- data/lib/rghost/static_document_callback.rb +22 -0
- data/lib/rghost/text_in.rb +29 -0
- data/lib/rghost/textarea.rb +115 -0
- data/lib/rghost/units.rb +81 -0
- data/lib/rghost/variable.rb +12 -0
- data/lib/rghost/version.rb +9 -0
- data/lib/rghost/vertical_line.rb +29 -0
- data/scripts/txt2html +67 -0
- data/setup.rb +1585 -0
- data/test/test_helper.rb +2 -0
- data/test/test_rghost.rb +11 -0
- data/website/index.html +11 -0
- data/website/index.txt +30 -0
- data/website/javascripts/rounded_corners_lite.inc.js +285 -0
- data/website/stylesheets/screen.css +129 -0
- data/website/template.rhtml +48 -0
- metadata +145 -0
@@ -0,0 +1,616 @@
|
|
1
|
+
require "helpers"
|
2
|
+
#Constantes do Ambiente RubyGhost API
|
3
|
+
module Constants
|
4
|
+
#Dispositivos avali�veis
|
5
|
+
module Devices
|
6
|
+
#Standard Devices
|
7
|
+
STANDARD=Helpers::HashKeyMethodClass[
|
8
|
+
#-- MS-DOS displays",
|
9
|
+
:ega => "EGA (640x350, 16-color)",
|
10
|
+
:vga => "VGA (640x480, 16-color)",
|
11
|
+
#-- Ms Windows => "",
|
12
|
+
:ali => "SuperVGA using Avance Logic Inc. chipset, 256-color modes",
|
13
|
+
:atiw => "ATI Wonder SuperVGA, 256-color modes",
|
14
|
+
:cirr => "SuperVGA using Cirrus Logic CL-GD54XX chips, 256-color modes",
|
15
|
+
:s3vga => "SuperVGA using S3 86C911 chip (e.g., Diamond Stealth board)",
|
16
|
+
:svga16 => "Generic SuperVGA in 800x600, 16-color mode",
|
17
|
+
:tseng => "SuperVGA using Tseng Labs ET3000/4000 chips, 256-color modes",
|
18
|
+
:vesa => "SuperVGA with VESA standard API driver",
|
19
|
+
:mswindll => "Microsoft Windows 3.1 DLL => [MS Windows only]",
|
20
|
+
:mswinprn => "Microsoft Windows 3.0, 3.1 DDB printer => [MS Windows only]",
|
21
|
+
:mswinpr2 => "Microsoft Windows 3.0, 3.1 DIB printer => [MS Windows only]",
|
22
|
+
#-- Others Displays",
|
23
|
+
:os2pm => "OS/2 Presentation Manager => [OS/2 only]",
|
24
|
+
:os2dll => "OS/2 DLL bitmap::[OS/2 only]",
|
25
|
+
:os2prn => "OS/2 printer:: => [OS/2 only]",
|
26
|
+
#-- Unix Displays",
|
27
|
+
:lvga256 => "Linux vgalib, 256-color VGA modes => [Linux only]",
|
28
|
+
:vgalib => "Linux vgalib, 16-color VGA modes => [Linux only]",
|
29
|
+
:x11 => "X Windows version 11, release >=4 => [Unix and VMS only]",
|
30
|
+
:x11alpha => "X Windows masquerading as a device with alpha capability",
|
31
|
+
:x11cmyk => "X Windows masquerading as a 1-bit-per-plane CMYK device",
|
32
|
+
:x11cmyk2 => "X Windows as a 2-bit-per-plane CMYK device",
|
33
|
+
:x11cmyk4 => "X Windows as a 4-bit-per-plane CMYK device",
|
34
|
+
:x11cmyk8 => "X Windows as an 8-bit-per-plane CMYK device",
|
35
|
+
:x11gray2 => "X Windows as a 2-bit gray-scale device",
|
36
|
+
:x11gray4 => "X Windows as a 4-bit gray-scale device",
|
37
|
+
:x11mono => "X Windows masquerading as a black-and-white device",
|
38
|
+
:x11rg16x => "X Windows with G5/B5/R6 pixel layout for testing.",
|
39
|
+
:x11rg32x => "X Windows with G11/B10/R11 pixel layout for testing.",
|
40
|
+
#-- Printers",
|
41
|
+
:atx23 => "Practical Automation ATX-23 label printer",
|
42
|
+
:atx24 => "Practical Automation ATX-24 label printer",
|
43
|
+
:atx38 => "Practical Automation ATX-38 label printer",
|
44
|
+
:deskjet => "H-P DeskJet and DeskJet Plus",
|
45
|
+
:djet500 => "H-P DeskJet 500; use -r600 for DJ 600 series",
|
46
|
+
:fs600 => "Kyocera FS-600 (600 dpi)",
|
47
|
+
:laserjet => "H-P LaserJet",
|
48
|
+
:ljet2p => "H-P LaserJet IId/IIp/III* with TIFF compression",
|
49
|
+
:ljet3 => "H-P LaserJet III* with Delta Row compression",
|
50
|
+
:ljet3d => "H-P LaserJet IIID with duplex capability",
|
51
|
+
:ljet4 => "H-P LaserJet 4 (defaults to 600 dpi)",
|
52
|
+
:ljet4d => "H-P LaserJet 4 (defaults to 600 dpi) with duplex",
|
53
|
+
:ljetplus => "H-P LaserJet Plus",
|
54
|
+
:lj5mono => "H-P LaserJet 5 & 6 family (PCL XL), bitmap:",
|
55
|
+
:lj5gray => "H-P LaserJet 5 & 6 family, gray-scale bitmap;",
|
56
|
+
:lp2563 => "H-P 2563B line printer",
|
57
|
+
:oce9050 => "OCE 9050 printe",
|
58
|
+
:pxlmono => "H-P black-and-white PCL XL printers (LaserJet 5 and 6 family)",
|
59
|
+
:pxlcolor => "H-P color PCL XL printers (e.g. Color LaserJet 4500)",
|
60
|
+
#-- Fax file format",
|
61
|
+
:faxg3 => "Group 3 fax, with EOLs but no header or EOD",
|
62
|
+
:faxg32d => "Group 3 2-D fax, with EOLs but no header or EOD",
|
63
|
+
:faxg4 => "Group 4 fax, with EOLs but no header or EOD",
|
64
|
+
:tiffcrle => "TIFF CCITT RLE 1-dim (= Group 3 fax with no EOLs)",
|
65
|
+
:tiffg3 => "TIFF Group 3 fax (with EOLs)",
|
66
|
+
:tiffg32d => "TIFF Group 3 2-D fax",
|
67
|
+
:tiffg4 => "TIFF Group 4 fax",
|
68
|
+
#-- High-level (vector) file formats",
|
69
|
+
:epswrite => "EPS output (like PostScript Distillery)",
|
70
|
+
:pdfwrite => "PDF output (like Adobe Acrobat Distiller)",
|
71
|
+
:pswrite => "PostScript output (like PostScript Distillery)",
|
72
|
+
:pxlmono => "Black-and-white PCL XL",
|
73
|
+
:pxlcolor => "Color PCL XL",
|
74
|
+
#-- Raster file formats and devices",
|
75
|
+
:bit => "Plain bits, monochrome",
|
76
|
+
:bitrgb => "Plain bits, RGB",
|
77
|
+
:bitcmyk => "Plain bits, CMYK",
|
78
|
+
:bmpmono => "Monochrome MS Windows .BMP file format",
|
79
|
+
:bmpgray => "8-bit gray .BMP file format",
|
80
|
+
:bmpsep1 => "Separated 1-bit CMYK .BMP file format, primarily for testing",
|
81
|
+
:bmpsep8 =>"Separated 8-bit CMYK .BMP file format, primarily for testing",
|
82
|
+
:bmp16 => "4-bit (EGA/VGA) .BMP file format",
|
83
|
+
:bmp256 => "8-bit (256-color) .BMP file format",
|
84
|
+
:bmp16m => "24-bit .BMP file format",
|
85
|
+
:bmp32b => "32-bit pseudo-.BMP file format",
|
86
|
+
:cgmmono => "Monochrome (black-and-white) CGM -- LOW LEVEL OUTPUT ONLY",
|
87
|
+
:cgm8 => "8-bit (256-color) CGM -- DITTO",
|
88
|
+
:cgm24 => "24-bit color CGM -- DITTO",
|
89
|
+
:jpeg => "JPEG format, RGB output",
|
90
|
+
:jpeggray => "JPEG format, gray output",
|
91
|
+
:miff24 => "ImageMagick MIFF format, 24-bit direct color, RLE compressed",
|
92
|
+
:pcxmono=> "PCX file format, monochrome (1-bit black and white)",
|
93
|
+
:pcxgray=> "PCX file format, 8-bit gray scale",
|
94
|
+
:pcx16 => "PCX file format, 4-bit planar (EGA/VGA) color",
|
95
|
+
:pcx256 => "PCX file format, 8-bit chunky color",
|
96
|
+
:pcx24b => "PCX file format, 24-bit color (3 8-bit planes)",
|
97
|
+
:pcxcmyk => "PCX file format, 4-bit chunky CMYK color",
|
98
|
+
:pbm => "Portable Bitmap (plain format)",
|
99
|
+
:pbmraw => "Portable Bitmap (raw format)",
|
100
|
+
:pgm => "Portable Graymap (plain format)",
|
101
|
+
:pgmraw => "Portable Graymap (raw format)",
|
102
|
+
:pgnm => "Portable Graymap (plain format), optimizing to PBM if possible",
|
103
|
+
:pgnmraw => "Portable Graymap (raw format), optimizing to PBM if possible",
|
104
|
+
:pnm => "Portable Pixmap (plain format) (RGB), optimizing to PGM or PBM",
|
105
|
+
:pnmraw => "Portable Pixmap (raw format) (RGB), optimizing to PGM or PBM",
|
106
|
+
:ppm => "Portable Pixmap (plain format) (RGB)",
|
107
|
+
:ppmraw => "Portable Pixmap (raw format) (RGB)",
|
108
|
+
:pkm => "Portable inKmap (plain format) (4-bit CMYK => RGB)",
|
109
|
+
:pkmraw => "Portable inKmap (raw format) (4-bit CMYK => RGB)",
|
110
|
+
:pksm => "Portable Separated map (plain format) (4-bit CMYK => 4 pages)",
|
111
|
+
:pksmraw => "Portable Separated map (raw format) (4-bit CMYK => 4 pages)",
|
112
|
+
:plan9bm => "Plan 9 bitmap format",
|
113
|
+
:pngmono => "Monochrome Portable Network Graphics (PNG)",
|
114
|
+
:pnggray => "8-bit gray Portable Network Graphics (PNG)",
|
115
|
+
:png16 => "4-bit color Portable Network Graphics (PNG)",
|
116
|
+
:png256 => "8-bit color Portable Network Graphics (PNG)",
|
117
|
+
:png16m => "24-bit color Portable Network Graphics (PNG)",
|
118
|
+
:psmono => "PostScript (Level 1) monochrome image",
|
119
|
+
:psgray => "PostScript (Level 1) 8-bit gray image",
|
120
|
+
:psrgb => "PostScript (Level 2) 24-bit color image",
|
121
|
+
:tiff12nc => "TIFF 12-bit RGB, no compression",
|
122
|
+
:tiff24nc => "TIFF 24-bit RGB, no compression (NeXT standard format)",
|
123
|
+
:tifflzw => "TIFF LZW (tag = 5) (monochrome)",
|
124
|
+
:tiffpack => "TIFF PackBits (tag = 32773) (monochrome)"
|
125
|
+
|
126
|
+
|
127
|
+
]
|
128
|
+
DEVICES_ALIAS={
|
129
|
+
:eps => :epswrite,
|
130
|
+
:pdf => :pdfwrite,
|
131
|
+
:ps => :pswrite,
|
132
|
+
:pcl => :pxlmono,
|
133
|
+
:tif => :tiffcrle,
|
134
|
+
:tiff => :tiffcrle,
|
135
|
+
:jpg => :jpeg,
|
136
|
+
:png => :png16m
|
137
|
+
}
|
138
|
+
#Carrega o device alias
|
139
|
+
def device_for(dev)
|
140
|
+
|
141
|
+
|
142
|
+
return DEVICES_ALIAS[dev] if DEVICES_ALIAS.key? dev
|
143
|
+
return dev if STANDARD.key? dev
|
144
|
+
raise "Unknown device: #{dev}"
|
145
|
+
end
|
146
|
+
|
147
|
+
end
|
148
|
+
#Fonts do Ghostscript(default)
|
149
|
+
module Fonts
|
150
|
+
#Standard Encodings
|
151
|
+
ENCODINGS=['ISOLatin1Encoding', 'StandardEncoding ']
|
152
|
+
#Standard Fonts
|
153
|
+
STANDARD={
|
154
|
+
'AvantGarde-Book' => "Adobe-ITC Avant Garde Gothic-Book-R-Normal--*",
|
155
|
+
'AvantGarde-BookOblique' => "Adobe-ITC Avant Garde Gothic-Book-O-Normal--*",
|
156
|
+
'AvantGarde-Demi' => "Adobe-ITC Avant Garde Gothic-Demi-R-Normal--*",
|
157
|
+
'AvantGarde-DemiOblique' => "Adobe-ITC Avant Garde Gothic-Demi-O-Normal--*",
|
158
|
+
'Bookman-Demi' => "Adobe-ITC Bookman-Demi-R-Normal--*",
|
159
|
+
'Bookman-DemiItalic' => "Adobe-ITC Bookman-Demi-I-Normal--*",
|
160
|
+
'Bookman-Light' => "Adobe-ITC Bookman-Light-R-Normal--*",
|
161
|
+
'Bookman-LightItalic' => "Adobe-ITC Bookman-Light-I-Normal--*",
|
162
|
+
:Courier => "Adobe-Courier-Medium-R-Normal--*",
|
163
|
+
'Courier-Bold' => "Adobe-Courier-Bold-R-Normal--*",
|
164
|
+
'Courier-BoldOblique' => "Adobe-Courier-Bold-O-Normal--*",
|
165
|
+
'Courier-Oblique' => "Adobe-Courier-Medium-O-Normal--*",
|
166
|
+
:Helvetica => "Adobe-Helvetica-Medium-R-Normal--*",
|
167
|
+
'Helvetica-Bold' => "Adobe-Helvetica-Bold-R-Normal--*",
|
168
|
+
'Helvetica-BoldOblique' => "Adobe-Helvetica-Bold-O-Normal--*",
|
169
|
+
'Helvetica-Narrow' => "Adobe-Helvetica-Medium-R-Narrow--*",
|
170
|
+
'Helvetica-Narrow-Bold' => "Adobe-Helvetica-Bold-R-Narrow--*",
|
171
|
+
'Helvetica-Narrow-BoldOblique' =>"Adobe-Helvetica-Bold-O-Narrow--*",
|
172
|
+
'Helvetica-Narrow-Oblique' => "Adobe-Helvetica-Medium-O-Narrow--*",
|
173
|
+
'Helvetica-Oblique' => "Adobe-Helvetica-Medium-O-Normal--*",
|
174
|
+
'NewCenturySchlbk-Bold' => "Adobe-New Century Schoolbook-Bold-R-Normal--*",
|
175
|
+
'NewCenturySchlbk-BoldItalic' => "Adobe-New Century Schoolbook-Bold-I-Normal--*",
|
176
|
+
'NewCenturySchlbk-Italic' => "Adobe-New Century Schoolbook-Medium-I-Normal--*",
|
177
|
+
'NewCenturySchlbk-Roman' => "Adobe-New Century Schoolbook-Medium-R-Normal--*",
|
178
|
+
'Palatino-Bold' => "Adobe-Palatino-Bold-R-Normal--*",
|
179
|
+
'Palatino-BoldItalic' => "Adobe-Palatino-Bold-I-Normal--*",
|
180
|
+
'Palatino-Italic' => "Adobe-Palatino-Medium-I-Normal--*",
|
181
|
+
'Palatino-Roman' => "Adobe-Palatino-Medium-R-Normal--*",
|
182
|
+
:Times => "Adobe-Times-Normal--*",
|
183
|
+
'Times-Bold' => "Adobe-Times-Bold-R-Normal--*",
|
184
|
+
'Times-BoldItalic' => "Adobe-Times-Bold-I-Normal--*",
|
185
|
+
'Times-Italic' => "Adobe-Times-Medium-I-Normal--*",
|
186
|
+
'Times-Roman' => "Adobe-Times-Medium-R-Normal--*",
|
187
|
+
'ZapfChancery-MediumItalic' => "Adobe-ITC Zapf Chancery-Medium-I-Normal--",
|
188
|
+
:Symbol => "Adobe-Symbol-Medium-R-Normal--",
|
189
|
+
:ZapfDingbats => "Adobe-ITC Zapf Dingbats-Medium-R-Normal--"
|
190
|
+
}
|
191
|
+
SUNS={
|
192
|
+
'AvantGarde-Book' => "-itc-avantgarde-book-r-normal--*",
|
193
|
+
'AvantGarde-BookOblique' => "-itc-avantgarde-book-o-normal--*",
|
194
|
+
'AvantGarde-Demi' => "-itc-avantgarde-demi-r-normal--*",
|
195
|
+
'AvantGarde-DemiOblique' => "-itc-avantgarde-demi-o-normal--*",
|
196
|
+
'Bembo' => "-monotype-bembo-medium-r-normal--*",
|
197
|
+
'Bembo-Bold' => "-monotype-bembo-bold-r-normal--*",
|
198
|
+
'Bembo-BoldItalic' => "-monotype-bembo-bold-i-normal--*",
|
199
|
+
'Bembo-Italic' => "-monotype-bembo-medium-i-normal--*",
|
200
|
+
'Bookman-Demi' => "-itc-bookman-demi-r-normal--*",
|
201
|
+
'Bookman-DemiItalic' => "-itc-bookman-demi-i-normal--*",
|
202
|
+
'Bookman-Light' => "-itc-bookman-light-r-normal--*",
|
203
|
+
'Bookman-LightItalic' => "-itc-bookman-light-i-normal--*",
|
204
|
+
'Courier' => "-itc-courier-medium-r-normal--*",
|
205
|
+
'Courier-Bold' => "-itc-courier-bold-r-normal--*",
|
206
|
+
'Courier-BoldOblique' => "-itc-courier-bold-o-normal--*",
|
207
|
+
'Courier-Oblique' => "-itc-courier-medium-o-normal--*",
|
208
|
+
'GillSans' => "-monotype-gill-medium-r-normal-sans-*",
|
209
|
+
'GillSans-Bold' => "-monotype-gill-bold-r-normal-sans-*",
|
210
|
+
'GillSans-BoldItalic' => "-monotype-gill-bold-i-normal-sans-*",
|
211
|
+
'GillSans-Italic' => "-monotype-gill-normal-i-normal-sans-*",
|
212
|
+
'Helvetica' => "-linotype-helvetica-medium-r-normal--*",
|
213
|
+
'Helvetica-Bold' => "-linotype-helvetica-bold-r-normal--*",
|
214
|
+
'Helvetica-BoldOblique' => "-linotype-helvetica-bold-o-normal--*",
|
215
|
+
'Helvetica-Narrow' => "-linotype-helvetica-medium-r-narrow--*",
|
216
|
+
'Helvetica-Narrow-Bold' => "-linotype-helvetica-bold-r-narrow--*",
|
217
|
+
'Helvetica-Narrow-BoldOblique' => "-linotype-helvetica-bold-o-narrow--*",
|
218
|
+
'Helvetica-Narrow-Oblique' => "-linotype-helvetica-medium-o-narrow--*",
|
219
|
+
'Helvetica-Oblique' => "-linotype-helvetica-medium-o-normal--*",
|
220
|
+
'LucidaBright' => "-b&h-lucidabright-medium-r-normal--*",
|
221
|
+
'LucidaBright-Demi' => "-b&h-lucidabright-demibold-r-normal--*",
|
222
|
+
'LucidaBright-DemiItalic' => "-b&h-lucidabright-demibold-i-normal--*",
|
223
|
+
'LucidaBright-Italic' => "-b&h-lucidabright-medium-i-normal--*",
|
224
|
+
'LucidaSans' => "-b&h-lucida-medium-r-normal-sans-*",
|
225
|
+
'LucidaSans-Bold' => "-b&h-lucida-bold-r-normal-sans-*",
|
226
|
+
'LucidaSans-BoldItalic' => "-b&h-lucida-bold-i-normal-sans-*",
|
227
|
+
'LucidaSans-Italic' => "-b&h-lucida-medium-i-normal-sans-*",
|
228
|
+
'LucidaSans-Typewriter' => "-b&h-lucidatypewriter-medium-r-normal-sans-*",
|
229
|
+
'LucidaSans-TypewriterBold' => "-b&h-lucidatypewriter-bold-r-normal-sans-*",
|
230
|
+
'NewCenturySchlbk-BoldItalic' => "-linotype-new century schoolbook-bold-i-normal--*",
|
231
|
+
'NewCenturySchlbk-Bold' => "-linotype-new century schoolbook-bold-r-normal--*",
|
232
|
+
'NewCenturySchlbk-Italic' => "-linotype-new century schoolbook-medium-i-normal--*",
|
233
|
+
'NewCenturySchlbk-Roman' => "-linotype-new century schoolbook-medium-r-normal--*",
|
234
|
+
'Palatino-Bold' => "-linotype-palatino-bold-r-normal--*",
|
235
|
+
'Palatino-BoldItalic' => "-linotype-palatino-bold-i-normal--*",
|
236
|
+
'Palatino-Italic' => "-linotype-palatino-medium-i-normal--*",
|
237
|
+
'Palatino-Roman' => "-linotype-palatino-medium-r-normal--*",
|
238
|
+
'Rockwell' => "-monotype-rockwell-medium-r-normal--*",
|
239
|
+
'Rockwell-Bold' => "-monotype-rockwell-bold-r-normal--*",
|
240
|
+
'Rockwell-BoldItalic' => "-monotype-rockwell-bold-i-normal--*",
|
241
|
+
'Rockwell-Italic' => "-monotype-rockwell-medium-i-normal--*",
|
242
|
+
'Times-Bold' => "-linotype-times-bold-r-normal--*",
|
243
|
+
'Times-BoldItalic' => "-linotype-times-bold-i-normal--*",
|
244
|
+
'Times-Italic' => "-linotype-times-medium-i-normal--*",
|
245
|
+
'Times-Roman' => "-linotype-times-medium-r-normal--*",
|
246
|
+
'Utopia-Bold' => "-adobe-utopia-bold-r-normal--*",
|
247
|
+
'Utopia-BoldItalic' => "-adobe-utopia-bold-i-normal--*",
|
248
|
+
'Utopia-Italic' => "-adobe-utopia-regular-i-normal--*",
|
249
|
+
'Utopia-Regular' => "-adobe-utopia-regular-r-normal--*",
|
250
|
+
'ZapfChancery-MediumItalic' => "-itc-zapfchancery-medium-i-normal--",
|
251
|
+
'ZapfDingbats' => "-itc-zapfdingbats-medium-r-normal--",
|
252
|
+
'Symbol' => "--symbol-medium-r-normal--"
|
253
|
+
}
|
254
|
+
|
255
|
+
end
|
256
|
+
#Mapa de Cores
|
257
|
+
module Colors
|
258
|
+
RGB=Helpers::HashKeyMethodClass[
|
259
|
+
:AliceBlue => [0.941176470588235,0.972549019607843,1.0],
|
260
|
+
:AntiqueWhite => [0.980392156862745,0.92156862745098,0.843137254901961],
|
261
|
+
:Aqua => [0.0,1.0,1.0],
|
262
|
+
:Aquamarine => [0.498039215686275,1.0,0.831372549019608],
|
263
|
+
:Azure => [0.941176470588235,1.0,1.0],
|
264
|
+
:Beige => [0.96078431372549,0.96078431372549,0.862745098039216],
|
265
|
+
:Bisque => [1.0,0.894117647058824,0.768627450980392],
|
266
|
+
:Black => [0.0,0.0,0.0],
|
267
|
+
:BlanchedAlmond => [1.0,0.92156862745098,0.803921568627451],
|
268
|
+
:Blue => [0.0,0.0,1.0],
|
269
|
+
:BlueViolet => [0.541176470588235,0.168627450980392,0.886274509803922],
|
270
|
+
:Brown => [0.647058823529412,0.164705882352941,0.164705882352941],
|
271
|
+
:BurlyWood => [0.870588235294118,0.72156862745098,0.529411764705882],
|
272
|
+
:CadetBlue => [0.372549019607843,0.619607843137255,0.627450980392157],
|
273
|
+
:Chartreuse => [0.498039215686275,1.0,0.0],
|
274
|
+
:Chocolate => [0.823529411764706,0.411764705882353,0.117647058823529],
|
275
|
+
:Coral => [1.0,0.498039215686275,0.313725490196078],
|
276
|
+
:CornflowerBlue => [0.392156862745098,0.584313725490196,0.929411764705882],
|
277
|
+
:Cornsilk => [1.0,0.972549019607843,0.862745098039216],
|
278
|
+
:Crimson => [0.862745098039216,0.0784313725490196,0.235294117647059],
|
279
|
+
:Cyan => [0.0,1.0,1.0],
|
280
|
+
:DarkBlue => [0.0,0.0,0.545098039215686],
|
281
|
+
:DarkCyan => [0.0,0.545098039215686,0.545098039215686],
|
282
|
+
:DarkGoldenRod => [0.72156862745098,0.525490196078431,0.0431372549019608],
|
283
|
+
:DarkGray => [0.662745098039216,0.662745098039216,0.662745098039216],
|
284
|
+
:DarkGreen => [0.0,0.392156862745098,0.0],
|
285
|
+
:DarkGrey => [0.662745098039216,0.662745098039216,0.662745098039216],
|
286
|
+
:DarkKhaki => [0.741176470588235,0.717647058823529,0.419607843137255],
|
287
|
+
:DarkMagenta => [0.545098039215686,0.0,0.545098039215686],
|
288
|
+
:DarkOliveGreen => [0.333333333333333,0.419607843137255,0.184313725490196],
|
289
|
+
:DarkOrchid => [0.6,0.196078431372549,0.8],
|
290
|
+
:DarkRed => [0.545098039215686,0.0,0.0],
|
291
|
+
:DarkSalmon => [0.913725490196078,0.588235294117647,0.47843137254902],
|
292
|
+
:DarkSeaGreen => [0.56078431372549,0.737254901960784,0.56078431372549],
|
293
|
+
:DarkSlateBlue => [0.282352941176471,0.23921568627451,0.545098039215686],
|
294
|
+
:DarkSlateGray => [0.184313725490196,0.309803921568627,0.309803921568627],
|
295
|
+
:DarkSlateGrey => [0.184313725490196,0.309803921568627,0.309803921568627],
|
296
|
+
:DarkTurquoise => [0.0,0.807843137254902,0.819607843137255],
|
297
|
+
:DarkViolet => [0.580392156862745,0.0,0.827450980392157],
|
298
|
+
:Darkorange => [1.0,0.549019607843137,0.0],
|
299
|
+
:DeepPink => [1.0,0.0784313725490196,0.576470588235294],
|
300
|
+
:DeepSkyBlue => [0.0,0.749019607843137,1.0],
|
301
|
+
:DimGray => [0.411764705882353,0.411764705882353,0.411764705882353],
|
302
|
+
:DimGrey => [0.411764705882353,0.411764705882353,0.411764705882353],
|
303
|
+
:DodgerBlue => [0.117647058823529,0.564705882352941,1.0],
|
304
|
+
:FireBrick => [0.698039215686274,0.133333333333333,0.133333333333333],
|
305
|
+
:FloralWhite => [1.0,0.980392156862745,0.941176470588235],
|
306
|
+
:ForestGreen => [0.133333333333333,0.545098039215686,0.133333333333333],
|
307
|
+
:Fuchsia => [1.0,0.0,1.0],
|
308
|
+
:Gainsboro => [0.862745098039216,0.862745098039216,0.862745098039216],
|
309
|
+
:GhostWhite => [0.972549019607843,0.972549019607843,1.0],
|
310
|
+
:Gold => [1.0,0.843137254901961,0.0],
|
311
|
+
:GoldenRod => [0.854901960784314,0.647058823529412,0.125490196078431],
|
312
|
+
:Gray => [0.501960784313725,0.501960784313725,0.501960784313725],
|
313
|
+
:Green => [0.0,0.501960784313725,0.0],
|
314
|
+
:GreenYellow => [0.67843137254902,1.0,0.184313725490196],
|
315
|
+
:Grey => [0.501960784313725,0.501960784313725,0.501960784313725],
|
316
|
+
:HoneyDew => [0.941176470588235,1.0,0.941176470588235],
|
317
|
+
:HotPink => [1.0,0.411764705882353,0.705882352941177],
|
318
|
+
:IndianRed => [0.803921568627451,0.36078431372549,0.36078431372549],
|
319
|
+
:Indigo => [0.294117647058824,0.0,0.509803921568627],
|
320
|
+
:Ivory => [1.0,1.0,0.941176470588235],
|
321
|
+
:Khaki => [0.941176470588235,0.901960784313726,0.549019607843137],
|
322
|
+
:LavenderBlush => [1.0,0.941176470588235,0.96078431372549],
|
323
|
+
:Lavender => [0.901960784313726,0.901960784313726,0.980392156862745],
|
324
|
+
:LawnGreen => [0.486274509803922,0.988235294117647,0.0],
|
325
|
+
:LemonChiffon => [1.0,0.980392156862745,0.803921568627451],
|
326
|
+
:LightBlue => [0.67843137254902,0.847058823529412,0.901960784313726],
|
327
|
+
:LightCoral => [0.941176470588235,0.501960784313725,0.501960784313725],
|
328
|
+
:LightCyan => [0.87843137254902,1.0,1.0],
|
329
|
+
:LightGoldenRodYellow => [0.980392156862745,0.980392156862745,0.823529411764706],
|
330
|
+
:LightGray => [0.827450980392157,0.827450980392157,0.827450980392157],
|
331
|
+
:LightGreen => [0.564705882352941,0.933333333333333,0.564705882352941],
|
332
|
+
:LightGrey => [0.827450980392157,0.827450980392157,0.827450980392157],
|
333
|
+
:LightPink => [1.0,0.713725490196078,0.756862745098039],
|
334
|
+
:LightSalmon => [1.0,0.627450980392157,0.47843137254902],
|
335
|
+
:LightSeaGreen => [0.125490196078431,0.698039215686274,0.666666666666667],
|
336
|
+
:LightSkyBlue => [0.529411764705882,0.807843137254902,0.980392156862745],
|
337
|
+
:LightSlateGray => [0.466666666666667,0.533333333333333,0.6],
|
338
|
+
:LightSlateGrey => [0.466666666666667,0.533333333333333,0.6],
|
339
|
+
:LightSteelBlue => [0.690196078431373,0.768627450980392,0.870588235294118],
|
340
|
+
:LightYellow => [1.0,1.0,0.87843137254902],
|
341
|
+
:Lime => [0.0,1.0,0.0],
|
342
|
+
:LimeGreen => [0.196078431372549,0.803921568627451,0.196078431372549],
|
343
|
+
:Linen => [0.980392156862745,0.941176470588235,0.901960784313726],
|
344
|
+
:Magenta => [1.0,0.0,1.0],
|
345
|
+
:Maroon => [0.501960784313725,0.0,0.0],
|
346
|
+
:MediumAquaMarine => [0.4,0.803921568627451,0.666666666666667],
|
347
|
+
:MediumBlue => [0.0,0.0,0.803921568627451],
|
348
|
+
:MediumOrchid => [0.729411764705882,0.333333333333333,0.827450980392157],
|
349
|
+
:MediumPurple => [0.576470588235294,0.43921568627451,0.847058823529412],
|
350
|
+
:MediumSeaGreen => [0.235294117647059,0.701960784313725,0.443137254901961],
|
351
|
+
:MediumSlateBlue => [0.482352941176471,0.407843137254902,0.933333333333333],
|
352
|
+
:MediumSpringGreen => [0.0,0.980392156862745,0.603921568627451],
|
353
|
+
:MediumTurquoise => [0.282352941176471,0.819607843137255,0.8],
|
354
|
+
:MediumVioletRed => [0.780392156862745,0.0823529411764706,0.52156862745098],
|
355
|
+
:MidnightBlue => [0.0980392156862745,0.0980392156862745,0.43921568627451],
|
356
|
+
:MintCream => [0.96078431372549,1.0,0.980392156862745],
|
357
|
+
:MistyRose => [1.0,0.894117647058824,0.882352941176471],
|
358
|
+
:Moccasin => [1.0,0.894117647058824,0.709803921568627],
|
359
|
+
:NavajoWhite => [1.0,0.870588235294118,0.67843137254902],
|
360
|
+
:Navy => [0.0,0.0,0.501960784313725],
|
361
|
+
:OldLace => [0.992156862745098,0.96078431372549,0.901960784313726],
|
362
|
+
:Olive => [0.501960784313725,0.501960784313725,0.0],
|
363
|
+
:OliveDrab => [0.419607843137255,0.556862745098039,0.137254901960784],
|
364
|
+
:Orange => [1.0,0.647058823529412,0.0],
|
365
|
+
:OrangeRed => [1.0,0.270588235294118,0.0],
|
366
|
+
:Orchid => [0.854901960784314,0.43921568627451,0.83921568627451],
|
367
|
+
:PaleGoldenRod => [0.933333333333333,0.909803921568627,0.666666666666667],
|
368
|
+
:PaleGreen => [0.596078431372549,0.984313725490196,0.596078431372549],
|
369
|
+
:PaleTurquoise => [0.686274509803922,0.933333333333333,0.933333333333333],
|
370
|
+
:PaleVioletRed => [0.847058823529412,0.43921568627451,0.576470588235294],
|
371
|
+
:PapayaWhip => [1.0,0.937254901960784,0.835294117647059],
|
372
|
+
:PeachPuff => [1.0,0.854901960784314,0.725490196078431],
|
373
|
+
:Peru => [0.803921568627451,0.52156862745098,0.247058823529412],
|
374
|
+
:Pink => [1.0,0.752941176470588,0.796078431372549],
|
375
|
+
:Plum => [0.866666666666667,0.627450980392157,0.866666666666667],
|
376
|
+
:PowderBlue => [0.690196078431373,0.87843137254902,0.901960784313726],
|
377
|
+
:Purple => [0.501960784313725,0.0,0.501960784313725],
|
378
|
+
:Red => [1.0,0.0,0.0],
|
379
|
+
:RosyBrown => [0.737254901960784,0.56078431372549,0.56078431372549],
|
380
|
+
:RoyalBlue => [0.254901960784314,0.411764705882353,0.882352941176471],
|
381
|
+
:SaddleBrown => [0.545098039215686,0.270588235294118,0.0745098039215686],
|
382
|
+
:Salmon => [0.980392156862745,0.501960784313725,0.447058823529412],
|
383
|
+
:SandyBrown => [0.956862745098039,0.643137254901961,0.376470588235294],
|
384
|
+
:SeaGreen => [0.180392156862745,0.545098039215686,0.341176470588235],
|
385
|
+
:SeaShell => [1.0,0.96078431372549,0.933333333333333],
|
386
|
+
:Sienna => [0.627450980392157,0.32156862745098,0.176470588235294],
|
387
|
+
:Silver => [0.752941176470588,0.752941176470588,0.752941176470588],
|
388
|
+
:SkyBlue => [0.529411764705882,0.807843137254902,0.92156862745098],
|
389
|
+
:SlateBlue => [0.415686274509804,0.352941176470588,0.803921568627451],
|
390
|
+
:SlateGray => [0.43921568627451,0.501960784313725,0.564705882352941],
|
391
|
+
:SlateGrey => [0.43921568627451,0.501960784313725,0.564705882352941],
|
392
|
+
:Snow => [1.0,0.980392156862745,0.980392156862745],
|
393
|
+
:SpringGreen => [0.0,1.0,0.498039215686275],
|
394
|
+
:SteelBlue => [0.274509803921569,0.509803921568627,0.705882352941177],
|
395
|
+
:Tan => [0.823529411764706,0.705882352941177,0.549019607843137],
|
396
|
+
:Teal => [0.0,0.501960784313725,0.501960784313725],
|
397
|
+
:Thistle => [0.847058823529412,0.749019607843137,0.847058823529412],
|
398
|
+
:Tomato => [1.0,0.388235294117647,0.27843137254902],
|
399
|
+
:Turquoise => [0.250980392156863,0.87843137254902,0.815686274509804],
|
400
|
+
:Violet => [0.933333333333333,0.509803921568627,0.933333333333333],
|
401
|
+
:Wheat => [0.96078431372549,0.870588235294118,0.701960784313725],
|
402
|
+
:White => [1.0,1.0,1.0],
|
403
|
+
:WhiteSmoke => [0.96078431372549,0.96078431372549,0.96078431372549],
|
404
|
+
:Yellow => [1.0,1.0,0.0],
|
405
|
+
:YellowGreen => [0.603921568627451,0.803921568627451,0.196078431372549]
|
406
|
+
]
|
407
|
+
|
408
|
+
CMYK=Helpers::HashKeyMethodClass[
|
409
|
+
:AliceBlue => [0.0588235294117647,0.0274509803921569,0.0,0.0],
|
410
|
+
:AntiqueWhite => [0.0,0.06,0.14,0.0196078431372549],
|
411
|
+
:Aqua => [1.0,0.0,0.0,0.0],
|
412
|
+
:Aquamarine => [0.501960784313725,0.0,0.168627450980392,0.0],
|
413
|
+
:Azure => [0.0588235294117647,0.0,0.0,0.0],
|
414
|
+
:Beige => [0.0,0.0,0.102040816326531,0.0392156862745098],
|
415
|
+
:Bisque => [0.0,0.105882352941176,0.231372549019608,0.0],
|
416
|
+
:Black => [0.0,0.0,0.0,1.0],
|
417
|
+
:BlanchedAlmond => [0.0,0.0784313725490197,0.196078431372549,0.0],
|
418
|
+
:Blue => [1.0,1.0,0.0,0.0],
|
419
|
+
:BlueViolet => [0.389380530973451,0.809734513274336,0.0,0.113725490196078],
|
420
|
+
:Brown => [0.0,0.745454545454545,0.745454545454545,0.352941176470588],
|
421
|
+
:BurlyWood => [0.0,0.171171171171171,0.391891891891892,0.129411764705882],
|
422
|
+
:CadetBlue => [0.40625,0.0125,0.0,0.372549019607843],
|
423
|
+
:Chartreuse => [0.501960784313725,0.0,1.0,0.0],
|
424
|
+
:Chocolate => [0.0,0.5,0.857142857142857,0.176470588235294],
|
425
|
+
:Coral => [0.0,0.501960784313725,0.686274509803922,0.0],
|
426
|
+
:CornflowerBlue => [0.578059071729958,0.371308016877637,0.0,0.0705882352941176],
|
427
|
+
:Cornsilk => [0.0,0.0274509803921569,0.137254901960784,0.0],
|
428
|
+
:Crimson => [0.0,0.909090909090909,0.727272727272727,0.137254901960784],
|
429
|
+
:Cyan => [1.0,0.0,0.0,0.0],
|
430
|
+
:DarkBlue => [1.0,1.0,0.0,0.454901960784314],
|
431
|
+
:DarkCyan => [1.0,0.0,0.0,0.454901960784314],
|
432
|
+
:DarkGoldenRod => [0.0,0.271739130434783,0.940217391304348,0.27843137254902],
|
433
|
+
:DarkGray => [0.0,0.0,0.0,0.337254901960784],
|
434
|
+
:DarkGreen => [1.0,0.0,1.0,0.607843137254902],
|
435
|
+
:DarkGrey => [0.0,0.0,0.0,0.337254901960784],
|
436
|
+
:DarkKhaki => [0.0,0.0317460317460318,0.433862433862434,0.258823529411765],
|
437
|
+
:DarkMagenta => [0.0,1.0,0.0,0.454901960784314],
|
438
|
+
:DarkOliveGreen => [0.205607476635514,0.0,0.560747663551402,0.580392156862745],
|
439
|
+
:DarkOrchid => [0.25,0.754901960784314,0.0,0.2],
|
440
|
+
:DarkRed => [0.0,1.0,1.0,0.454901960784314],
|
441
|
+
:DarkSalmon => [0.0,0.356223175965665,0.476394849785408,0.0862745098039216],
|
442
|
+
:DarkSeaGreen => [0.23936170212766,0.0,0.23936170212766,0.262745098039216],
|
443
|
+
:DarkSlateBlue => [0.482014388489209,0.56115107913669,0.0,0.454901960784314],
|
444
|
+
:DarkSlateGray => [0.405063291139241,0.0,0.0,0.690196078431373],
|
445
|
+
:DarkSlateGrey => [0.405063291139241,0.0,0.0,0.690196078431373],
|
446
|
+
:DarkTurquoise => [1.0,0.0143540669856459,0.0,0.180392156862745],
|
447
|
+
:DarkViolet => [0.298578199052133,1.0,0.0,0.172549019607843],
|
448
|
+
:Darkorange => [0.0,0.450980392156863,1.0,0.0],
|
449
|
+
:DeepPink => [0.0,0.92156862745098,0.423529411764706,0.0],
|
450
|
+
:DeepSkyBlue => [1.0,0.250980392156863,0.0,0.0],
|
451
|
+
:DimGray => [0.0,0.0,0.0,0.588235294117647],
|
452
|
+
:DimGrey => [0.0,0.0,0.0,0.588235294117647],
|
453
|
+
:DodgerBlue => [0.882352941176471,0.435294117647059,0.0,0.0],
|
454
|
+
:FireBrick => [0.0,0.808988764044944,0.808988764044944,0.301960784313726],
|
455
|
+
:FloralWhite => [0.0,0.0196078431372549,0.0588235294117647,0.0],
|
456
|
+
:ForestGreen => [0.755395683453237,0.0,0.755395683453237,0.454901960784314],
|
457
|
+
:Fuchsia => [0.0,1.0,0.0,0.0],
|
458
|
+
:Gainsboro => [0.0,0.0,0.0,0.137254901960784],
|
459
|
+
:GhostWhite => [0.0274509803921569,0.0274509803921569,0.0,0.0],
|
460
|
+
:Gold => [0.0,0.156862745098039,1.0,0.0],
|
461
|
+
:GoldenRod => [0.0,0.243119266055046,0.853211009174312,0.145098039215686],
|
462
|
+
:Gray => [0.0,0.0,0.0,0.498039215686275],
|
463
|
+
:Green => [1.0,0.0,1.0,0.498039215686275],
|
464
|
+
:GreenYellow => [0.32156862745098,0.0,0.815686274509804,0.0],
|
465
|
+
:Grey => [0.0,0.0,0.0,0.498039215686275],
|
466
|
+
:HoneyDew => [0.0588235294117647,0.0,0.0588235294117647,0.0],
|
467
|
+
:HotPink => [0.0,0.588235294117647,0.294117647058823,0.0],
|
468
|
+
:IndianRed => [0.0,0.551219512195122,0.551219512195122,0.196078431372549],
|
469
|
+
:Indigo => [0.423076923076923,1.0,0.0,0.490196078431373],
|
470
|
+
:Ivory => [0.0,0.0,0.0588235294117647,0.0],
|
471
|
+
:Khaki => [0.0,0.0416666666666666,0.416666666666667,0.0588235294117647],
|
472
|
+
:LavenderBlush => [0.0,0.0588235294117647,0.0392156862745098,0.0],
|
473
|
+
:Lavender => [0.0799999999999999,0.0799999999999999,0.0,0.0196078431372549],
|
474
|
+
:LawnGreen => [0.507936507936508,0.0,1.0,0.0117647058823529],
|
475
|
+
:LemonChiffon => [0.0,0.0196078431372549,0.196078431372549,0.0],
|
476
|
+
:LightBlue => [0.247826086956522,0.0608695652173913,0.0,0.0980392156862745],
|
477
|
+
:LightCoral => [0.0,0.466666666666667,0.466666666666667,0.0588235294117647],
|
478
|
+
:LightCyan => [0.12156862745098,0.0,0.0,0.0],
|
479
|
+
:LightGoldenRodYellow => [0.0,0.0,0.16,0.0196078431372549],
|
480
|
+
:LightGray => [0.0,0.0,0.0,0.172549019607843],
|
481
|
+
:LightGreen => [0.394957983193277,0.0,0.394957983193277,0.0666666666666667],
|
482
|
+
:LightGrey => [0.0,0.0,0.0,0.172549019607843],
|
483
|
+
:LightPink => [0.0,0.286274509803922,0.243137254901961,0.0],
|
484
|
+
:LightSalmon => [0.0,0.372549019607843,0.52156862745098,0.0],
|
485
|
+
:LightSeaGreen => [0.820224719101124,0.0,0.0449438202247191,0.301960784313726],
|
486
|
+
:LightSkyBlue => [0.46,0.176,0.0,0.0196078431372549],
|
487
|
+
:LightSlateGray => [0.222222222222222,0.111111111111111,0.0,0.4],
|
488
|
+
:LightSlateGrey => [0.222222222222222,0.111111111111111,0.0,0.4],
|
489
|
+
:LightSteelBlue => [0.207207207207207,0.117117117117117,0.0,0.129411764705882],
|
490
|
+
:LightYellow => [0.0,0.0,0.12156862745098,0.0],
|
491
|
+
:Lime => [1.0,0.0,1.0,0.0],
|
492
|
+
:LimeGreen => [0.75609756097561,0.0,0.75609756097561,0.196078431372549],
|
493
|
+
:Linen => [0.0,0.04,0.0799999999999999,0.0196078431372549],
|
494
|
+
:Magenta => [0.0,1.0,0.0,0.0],
|
495
|
+
:Maroon => [0.0,1.0,1.0,0.498039215686275],
|
496
|
+
:MediumAquaMarine => [0.502439024390244,0.0,0.170731707317073,0.196078431372549],
|
497
|
+
:MediumBlue => [1.0,1.0,0.0,0.196078431372549],
|
498
|
+
:MediumOrchid => [0.118483412322275,0.597156398104265,0.0,0.172549019607843],
|
499
|
+
:MediumPurple => [0.319444444444444,0.481481481481481,0.0,0.152941176470588],
|
500
|
+
:MediumSeaGreen => [0.664804469273743,0.0,0.368715083798883,0.298039215686275],
|
501
|
+
:MediumSlateBlue => [0.483193277310924,0.563025210084034,0.0,0.0666666666666667],
|
502
|
+
:MediumSpringGreen => [1.0,0.0,0.384,0.0196078431372549],
|
503
|
+
:MediumTurquoise => [0.655502392344498,0.0,0.0239234449760765,0.180392156862745],
|
504
|
+
:MediumVioletRed => [0.0,0.894472361809045,0.331658291457286,0.219607843137255],
|
505
|
+
:MidnightBlue => [0.776785714285714,0.776785714285714,0.0,0.56078431372549],
|
506
|
+
:MintCream => [0.0392156862745098,0.0,0.0196078431372549,0.0],
|
507
|
+
:MistyRose => [0.0,0.105882352941176,0.117647058823529,0.0],
|
508
|
+
:Moccasin => [0.0,0.105882352941176,0.290196078431373,0.0],
|
509
|
+
:NavajoWhite => [0.0,0.129411764705882,0.32156862745098,0.0],
|
510
|
+
:Navy => [1.0,1.0,0.0,0.498039215686275],
|
511
|
+
:OldLace => [0.0,0.0316205533596838,0.0909090909090909,0.00784313725490193],
|
512
|
+
:Olive => [0.0,0.0,1.0,0.498039215686275],
|
513
|
+
:OliveDrab => [0.246478873239437,0.0,0.753521126760563,0.443137254901961],
|
514
|
+
:Orange => [0.0,0.352941176470588,1.0,0.0],
|
515
|
+
:OrangeRed => [0.0,0.729411764705882,1.0,0.0],
|
516
|
+
:Orchid => [0.0,0.486238532110092,0.0183486238532109,0.145098039215686],
|
517
|
+
:PaleGoldenRod => [0.0,0.0252100840336135,0.285714285714286,0.0666666666666667],
|
518
|
+
:PaleGreen => [0.394422310756972,0.0,0.394422310756972,0.015686274509804],
|
519
|
+
:PaleTurquoise => [0.264705882352941,0.0,0.0,0.0666666666666667],
|
520
|
+
:PaleVioletRed => [0.0,0.481481481481481,0.319444444444444,0.152941176470588],
|
521
|
+
:PapayaWhip => [0.0,0.0627450980392157,0.164705882352941,0.0],
|
522
|
+
:PeachPuff => [0.0,0.145098039215686,0.274509803921569,0.0],
|
523
|
+
:Peru => [0.0,0.351219512195122,0.692682926829268,0.196078431372549],
|
524
|
+
:Pink => [0.0,0.247058823529412,0.203921568627451,0.0],
|
525
|
+
:Plum => [0.0,0.276018099547511,0.0,0.133333333333333],
|
526
|
+
:PowderBlue => [0.234782608695652,0.0260869565217392,0.0,0.0980392156862745],
|
527
|
+
:Purple => [0.0,1.0,0.0,0.498039215686275],
|
528
|
+
:Red => [0.0,1.0,1.0,0.0],
|
529
|
+
:RosyBrown => [0.0,0.23936170212766,0.23936170212766,0.262745098039216],
|
530
|
+
:RoyalBlue => [0.711111111111111,0.533333333333333,0.0,0.117647058823529],
|
531
|
+
:SaddleBrown => [0.0,0.503597122302158,0.863309352517986,0.454901960784314],
|
532
|
+
:Salmon => [0.0,0.488,0.544,0.0196078431372549],
|
533
|
+
:SandyBrown => [0.0,0.327868852459016,0.60655737704918,0.0431372549019607],
|
534
|
+
:SeaGreen => [0.669064748201439,0.0,0.37410071942446,0.454901960784314],
|
535
|
+
:SeaShell => [0.0,0.0392156862745098,0.0666666666666667,0.0],
|
536
|
+
:Sienna => [0.0,0.4875,0.71875,0.372549019607843],
|
537
|
+
:Silver => [0.0,0.0,0.0,0.247058823529412],
|
538
|
+
:SkyBlue => [0.425531914893617,0.123404255319149,0.0,0.0784313725490197],
|
539
|
+
:SlateBlue => [0.482926829268293,0.560975609756098,0.0,0.196078431372549],
|
540
|
+
:SlateGray => [0.222222222222222,0.111111111111111,0.0,0.435294117647059],
|
541
|
+
:SlateGrey => [0.222222222222222,0.111111111111111,0.0,0.435294117647059],
|
542
|
+
:Snow => [0.0,0.0196078431372549,0.0196078431372549,0.0],
|
543
|
+
:SpringGreen => [1.0,0.0,0.501960784313725,0.0],
|
544
|
+
:SteelBlue => [0.611111111111111,0.277777777777778,0.0,0.294117647058823],
|
545
|
+
:Tan => [0.0,0.142857142857143,0.333333333333333,0.176470588235294],
|
546
|
+
:Teal => [1.0,0.0,0.0,0.498039215686275],
|
547
|
+
:Thistle => [0.0,0.115740740740741,0.0,0.152941176470588],
|
548
|
+
:Tomato => [0.0,0.611764705882353,0.72156862745098,0.0],
|
549
|
+
:Turquoise => [0.714285714285714,0.0,0.0714285714285714,0.12156862745098],
|
550
|
+
:Violet => [0.0,0.453781512605042,0.0,0.0666666666666667],
|
551
|
+
:Wheat => [0.0,0.0938775510204082,0.269387755102041,0.0392156862745098],
|
552
|
+
:White => [0.0,0.0,0.0,0.0],
|
553
|
+
:WhiteSmoke => [0.0,0.0,0.0,0.0392156862745098],
|
554
|
+
:Yellow => [0.0,0.0,1.0,0.0],
|
555
|
+
:YellowGreen => [0.248780487804878,0.0,0.75609756097561,0.196078431372549]
|
556
|
+
]
|
557
|
+
|
558
|
+
end
|
559
|
+
#Papeis conhecidos pelo Ghostscript
|
560
|
+
module Papers
|
561
|
+
STANDARD={
|
562
|
+
"11x17" => [792,1224],
|
563
|
+
:ledger => [1224,792],
|
564
|
+
:legal => [612,1008],
|
565
|
+
:letter => [612,792],
|
566
|
+
:lettersmall=> [612,792],
|
567
|
+
:archE => [2592,3456],
|
568
|
+
:archD => [1728,2592],
|
569
|
+
:archC => [1296,1728],
|
570
|
+
:archB => [864,1296],
|
571
|
+
:archA => [648,864],
|
572
|
+
#ISO standard]
|
573
|
+
:a0 => [2384,3370],
|
574
|
+
:a1 => [1684,2384],
|
575
|
+
:a2 => [1191,1684],
|
576
|
+
:a3 => [842,1191],
|
577
|
+
:a4 => [595,842],
|
578
|
+
:a4small => [595,842],
|
579
|
+
:a5 => [420,595],
|
580
|
+
:a6 => [297,420],
|
581
|
+
:a7 => [210,297],
|
582
|
+
:a8 => [148,210],
|
583
|
+
:a9 => [105,148],
|
584
|
+
:a10 => [73,105],
|
585
|
+
:isob0 => [2835,4008],
|
586
|
+
:isob1 => [2004,2835],
|
587
|
+
:isob2 => [1417,2004],
|
588
|
+
:isob3 => [1001,1417],
|
589
|
+
:isob4 => [709,1001],
|
590
|
+
:isob5 => [499,709],
|
591
|
+
:isob6 => [354,499],
|
592
|
+
:c0 => [2599,3677],
|
593
|
+
:c1 => [1837,2599],
|
594
|
+
:c2 => [1298,1837],
|
595
|
+
:c3 => [918,1298],
|
596
|
+
:c4 => [649,918],
|
597
|
+
:c5 => [459,649],
|
598
|
+
:c6 => [323,459],
|
599
|
+
#JIS standard
|
600
|
+
:jisb0 => [1030,1456],
|
601
|
+
:jisb1 => [728,1030],
|
602
|
+
:jisb2 => [515,728],
|
603
|
+
:jisb3 => [364,515],
|
604
|
+
:jisb4 => [257,364],
|
605
|
+
:jisb5 => [182,257],
|
606
|
+
:jisb6 => [128,182],
|
607
|
+
#Other
|
608
|
+
:flsa => [612,936],
|
609
|
+
:flse => [612,936],
|
610
|
+
:halfletter => [396,612]
|
611
|
+
}
|
612
|
+
|
613
|
+
end
|
614
|
+
end
|
615
|
+
|
616
|
+
|