rghost 0.7.4 → 0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rghost/border.rb +44 -0
- data/lib/rghost/callback.rb +25 -22
- data/lib/rghost/circle.rb +102 -0
- data/lib/rghost/color.rb +81 -56
- data/lib/rghost/constants.rb +599 -589
- data/lib/rghost/convert.rb +26 -7
- data/lib/rghost/cursor.rb +90 -58
- data/lib/rghost/dash.rb +59 -0
- data/lib/rghost/document.rb +334 -311
- data/lib/rghost/document_callback_facade.rb +64 -0
- data/lib/rghost/dsc_entry.rb +12 -12
- data/lib/rghost/dynamic_document_callback.rb +6 -18
- data/lib/rghost/eps.rb +17 -8
- data/lib/rghost/font.rb +19 -23
- data/lib/rghost/font_map.rb +40 -0
- data/lib/rghost/frame.rb +105 -0
- data/lib/rghost/function.rb +19 -21
- data/lib/rghost/gif.rb +22 -9
- data/lib/rghost/graphic.rb +3 -3
- data/lib/rghost/grid/base_grid.rb +218 -0
- data/lib/rghost/grid/callback_facade.rb +136 -0
- data/lib/rghost/grid/csv_grid.rb +50 -0
- data/lib/rghost/{data_grid → grid}/dynamic_callback.rb +2 -2
- data/lib/rghost/grid/field_format.rb +43 -0
- data/lib/rghost/grid/grid.rb +15 -0
- data/lib/rghost/grid/header.rb +120 -0
- data/lib/rghost/grid/matrix.rb +10 -0
- data/lib/rghost/grid/rails_grid.rb +70 -0
- data/lib/rghost/{data_grid → grid}/static_callback.rb +4 -4
- data/lib/rghost/grid/style/border_lines.rb +46 -0
- data/lib/rghost/grid/style/bottom_lines.rb +30 -0
- data/lib/rghost/grid/style/old_forms.rb +30 -0
- data/lib/rghost/grid/style/style.rb +8 -0
- data/lib/rghost/gs_alone.rb +7 -5
- data/lib/rghost/helpers.rb +4 -4
- data/lib/rghost/horizontal_line.rb +35 -19
- data/lib/rghost/how_to.rb +75 -0
- data/lib/rghost/image.rb +8 -8
- data/lib/rghost/jpeg.rb +21 -8
- data/lib/rghost/line.rb +66 -17
- data/lib/rghost/line_width.rb +19 -8
- data/lib/rghost/load.rb +24 -22
- data/lib/rghost/newpath.rb +8 -7
- data/lib/rghost/paper.rb +100 -41
- data/lib/rghost/parse_text.rb +53 -0
- data/lib/rghost/point.rb +9 -8
- data/lib/rghost/point_with_command.rb +5 -5
- data/lib/rghost/polygon.rb +75 -0
- data/lib/rghost/ps/AdobeExpert.enc +0 -0
- data/lib/rghost/ps/AdobeLatinEncoding.enc +0 -0
- data/lib/rghost/ps/Bengali.enc +0 -0
- data/lib/rghost/ps/CodePage1250.enc +0 -0
- data/lib/rghost/ps/CodePage1251.enc +0 -0
- data/lib/rghost/ps/CodePage1252.enc +0 -0
- data/lib/rghost/ps/CodePage1253.enc +0 -0
- data/lib/rghost/ps/CodePage1254.enc +0 -0
- data/lib/rghost/ps/CodePage1256.enc +0 -0
- data/lib/rghost/ps/CodePage1257.enc +0 -0
- data/lib/rghost/ps/CodePage1258.enc +0 -0
- data/lib/rghost/ps/CodePage874.enc +0 -0
- data/lib/rghost/ps/Fontmap +5 -0
- data/lib/rghost/ps/IsoLatin.enc +0 -0
- data/lib/rghost/ps/MacCentralEuropean.enc +0 -0
- data/lib/rghost/ps/{MacCyrillice.enc → MacCyrillice.desnc} +0 -0
- data/lib/rghost/ps/MacGreek.enc +0 -0
- data/lib/rghost/ps/MacHebrew.enc +0 -0
- data/lib/rghost/ps/TeX-CorkEncoding.enc +0 -0
- data/lib/rghost/ps/TeX-LGR-Greek.enc +0 -0
- data/lib/rghost/ps/TeX-T2AModified2Encoding.enc +0 -0
- data/lib/rghost/ps/TeX-T2BAdobeEncoding.enc +0 -0
- data/lib/rghost/ps/TeX-T2CAdobeEncoding.enc +0 -0
- data/lib/rghost/ps/TeX-X2AdobeEncoding.enc +0 -0
- data/lib/rghost/ps/TeX-XL2encoding.enc +0 -0
- data/lib/rghost/ps/TeXMathExtensionEncoding.enc +0 -0
- data/lib/rghost/ps/TeXMathItalicEncoding.enc +0 -0
- data/lib/rghost/ps/TeXMathSymbolEncoding.enc +0 -0
- data/lib/rghost/ps/US-ASCII.enc +0 -0
- data/lib/rghost/ps/UTF-8.enc +0 -0
- data/lib/rghost/ps/__datagrid.ps +52 -0
- data/lib/rghost/ps/_cusor.ps +46 -0
- data/lib/rghost/ps/basic.ps +12 -1
- data/lib/rghost/ps/begin_document.ps +1 -0
- data/lib/rghost/ps/callbacks.ps +32 -3
- data/lib/rghost/ps/code128.font +0 -0
- data/lib/rghost/ps/code39.font +0 -0
- data/lib/rghost/ps/cursor.ps +77 -13
- data/lib/rghost/ps/datagrid.ps +4 -1
- data/lib/rghost/ps/developer.ps +237 -0
- data/lib/rghost/ps/ean.font +0 -0
- data/lib/rghost/ps/eps.ps +0 -0
- data/lib/rghost/ps/font.ps +8 -1
- data/lib/rghost/ps/frame.ps +16 -0
- data/lib/rghost/ps/gif.ps +0 -0
- data/lib/rghost/ps/horizontal_line.ps +4 -3
- data/lib/rghost/ps/i25.font +0 -0
- data/lib/rghost/ps/jpeg.ps +0 -0
- data/lib/rghost/ps/paper.ps +0 -0
- data/lib/rghost/ps/rectangle.ps +0 -0
- data/lib/rghost/ps/rghost_default_template.eps +1532 -0
- data/lib/rghost/ps/row.ps +0 -0
- data/lib/rghost/ps/show.ps +2 -1
- data/lib/rghost/ps/table_callbacks.ps +0 -0
- data/lib/rghost/ps/text.ps +63 -0
- data/lib/rghost/ps/textarea.ps +1 -1
- data/lib/rghost/ps/type.ps +0 -0
- data/lib/rghost/ps/unit.ps +0 -0
- data/lib/rghost/ps/vertical_line.ps +2 -4
- data/lib/rghost/ps/virtual_pages.ps +55 -0
- data/lib/rghost/ps_facade.rb +256 -0
- data/lib/rghost/ps_object.rb +24 -20
- data/lib/rghost/rgengine.so +0 -0
- data/lib/rghost/ruby_ghost_config.rb +224 -16
- data/lib/rghost/ruby_ghost_engine.rb +32 -55
- data/lib/rghost/ruby_ghost_version.rb +8 -0
- data/lib/rghost/ruby_to_ps.rb +52 -78
- data/lib/rghost/scale.rb +22 -7
- data/lib/rghost/shape_content.rb +23 -0
- data/lib/rghost/show.rb +77 -20
- data/lib/rghost/static_document_callback.rb +3 -7
- data/lib/rghost/text.rb +44 -0
- data/lib/rghost/text_in.rb +36 -14
- data/lib/rghost/textarea.rb +66 -93
- data/lib/rghost/units.rb +45 -44
- data/lib/rghost/variable.rb +4 -4
- data/lib/rghost/vertical_line.rb +27 -19
- data/lib/rghost/virtual_pages.rb +42 -0
- data/lib/rghost.rb +16 -2
- metadata +153 -500
- data/lib/rghost/arc.rb +0 -39
- data/lib/rghost/barcode.rb +0 -40
- data/lib/rghost/data_grid/basic_grid.rb +0 -136
- data/lib/rghost/data_grid/csv_grid.rb +0 -27
- data/lib/rghost/data_grid/data_grid.rb +0 -14
- data/lib/rghost/data_grid/field_format.rb +0 -60
- data/lib/rghost/data_grid/grid.rb +0 -18
- data/lib/rghost/data_grid/header.rb +0 -111
- data/lib/rghost/data_grid/rails_grid.rb +0 -62
- data/lib/rghost/data_grid/style/border_lines.rb +0 -47
- data/lib/rghost/data_grid/style/bottom_lines.rb +0 -30
- data/lib/rghost/data_grid/style/old_forms.rb +0 -30
- data/lib/rghost/data_grid/style/style.rb +0 -8
- data/lib/rghost/doc/classes/Arc.html +0 -200
- data/lib/rghost/doc/classes/Arc.src/M000049.html +0 -18
- data/lib/rghost/doc/classes/Arc.src/M000050.html +0 -23
- data/lib/rghost/doc/classes/Barcode.html +0 -214
- data/lib/rghost/doc/classes/Barcode.src/M000001.html +0 -19
- data/lib/rghost/doc/classes/Barcode.src/M000002.html +0 -18
- data/lib/rghost/doc/classes/Barcode.src/M000003.html +0 -19
- data/lib/rghost/doc/classes/Barcode.src/M000004.html +0 -27
- data/lib/rghost/doc/classes/CMYK.html +0 -209
- data/lib/rghost/doc/classes/CMYK.src/M000047.html +0 -18
- data/lib/rghost/doc/classes/CMYK.src/M000048.html +0 -24
- data/lib/rghost/doc/classes/Callback.html +0 -220
- data/lib/rghost/doc/classes/Callback.src/M000071.html +0 -21
- data/lib/rghost/doc/classes/Callback.src/M000072.html +0 -26
- data/lib/rghost/doc/classes/Color.html +0 -175
- data/lib/rghost/doc/classes/Color.src/M000028.html +0 -33
- data/lib/rghost/doc/classes/Constants/Colors.html +0 -129
- data/lib/rghost/doc/classes/Constants/Devices.html +0 -163
- data/lib/rghost/doc/classes/Constants/Devices.src/M000168.html +0 -22
- data/lib/rghost/doc/classes/Constants/Fonts.html +0 -144
- data/lib/rghost/doc/classes/Constants/Papers.html +0 -124
- data/lib/rghost/doc/classes/Constants.html +0 -120
- data/lib/rghost/doc/classes/Convert.html +0 -189
- data/lib/rghost/doc/classes/Convert.src/M000067.html +0 -20
- data/lib/rghost/doc/classes/Convert.src/M000068.html +0 -24
- data/lib/rghost/doc/classes/Cursor.html +0 -330
- data/lib/rghost/doc/classes/Cursor.src/M000031.html +0 -21
- data/lib/rghost/doc/classes/Cursor.src/M000032.html +0 -21
- data/lib/rghost/doc/classes/Cursor.src/M000033.html +0 -20
- data/lib/rghost/doc/classes/Cursor.src/M000034.html +0 -18
- data/lib/rghost/doc/classes/Cursor.src/M000035.html +0 -18
- data/lib/rghost/doc/classes/Cursor.src/M000036.html +0 -19
- data/lib/rghost/doc/classes/Cursor.src/M000037.html +0 -22
- data/lib/rghost/doc/classes/Cursor.src/M000038.html +0 -18
- data/lib/rghost/doc/classes/Cursor.src/M000039.html +0 -18
- data/lib/rghost/doc/classes/DSCEntry.html +0 -173
- data/lib/rghost/doc/classes/DSCEntry.src/M000059.html +0 -19
- data/lib/rghost/doc/classes/DSCEntry.src/M000060.html +0 -19
- data/lib/rghost/doc/classes/DataGrid/BasicGrid.html +0 -343
- data/lib/rghost/doc/classes/DataGrid/BasicGrid.src/M000140.html +0 -27
- data/lib/rghost/doc/classes/DataGrid/BasicGrid.src/M000141.html +0 -26
- data/lib/rghost/doc/classes/DataGrid/BasicGrid.src/M000142.html +0 -22
- data/lib/rghost/doc/classes/DataGrid/BasicGrid.src/M000143.html +0 -19
- data/lib/rghost/doc/classes/DataGrid/BasicGrid.src/M000144.html +0 -26
- data/lib/rghost/doc/classes/DataGrid/BasicGrid.src/M000145.html +0 -34
- data/lib/rghost/doc/classes/DataGrid/BasicGrid.src/M000146.html +0 -18
- data/lib/rghost/doc/classes/DataGrid/BasicGrid.src/M000147.html +0 -37
- data/lib/rghost/doc/classes/DataGrid/BasicGrid.src/M000148.html +0 -26
- data/lib/rghost/doc/classes/DataGrid/CSVGrid.html +0 -152
- data/lib/rghost/doc/classes/DataGrid/CSVGrid.src/M000139.html +0 -32
- data/lib/rghost/doc/classes/DataGrid/DynamicCallback.html +0 -158
- data/lib/rghost/doc/classes/DataGrid/DynamicCallback.src/M000149.html +0 -19
- data/lib/rghost/doc/classes/DataGrid/FieldFormat/Custom.html +0 -176
- data/lib/rghost/doc/classes/DataGrid/FieldFormat/Custom.src/M000136.html +0 -18
- data/lib/rghost/doc/classes/DataGrid/FieldFormat/Custom.src/M000137.html +0 -18
- data/lib/rghost/doc/classes/DataGrid/FieldFormat/Custom.src/M000138.html +0 -18
- data/lib/rghost/doc/classes/DataGrid/FieldFormat.html +0 -216
- data/lib/rghost/doc/classes/DataGrid/FieldFormat.src/M000131.html +0 -19
- data/lib/rghost/doc/classes/DataGrid/FieldFormat.src/M000132.html +0 -18
- data/lib/rghost/doc/classes/DataGrid/FieldFormat.src/M000133.html +0 -23
- data/lib/rghost/doc/classes/DataGrid/FieldFormat.src/M000134.html +0 -18
- data/lib/rghost/doc/classes/DataGrid/FieldFormat.src/M000135.html +0 -22
- data/lib/rghost/doc/classes/DataGrid/Grid.html +0 -148
- data/lib/rghost/doc/classes/DataGrid/Grid.src/M000160.html +0 -19
- data/lib/rghost/doc/classes/DataGrid/Header.html +0 -367
- data/lib/rghost/doc/classes/DataGrid/Header.src/M000150.html +0 -26
- data/lib/rghost/doc/classes/DataGrid/Header.src/M000151.html +0 -25
- data/lib/rghost/doc/classes/DataGrid/Header.src/M000152.html +0 -24
- data/lib/rghost/doc/classes/DataGrid/Header.src/M000153.html +0 -19
- data/lib/rghost/doc/classes/DataGrid/Header.src/M000154.html +0 -18
- data/lib/rghost/doc/classes/DataGrid/Header.src/M000155.html +0 -18
- data/lib/rghost/doc/classes/DataGrid/Header.src/M000156.html +0 -18
- data/lib/rghost/doc/classes/DataGrid/Header.src/M000157.html +0 -18
- data/lib/rghost/doc/classes/DataGrid/Header.src/M000158.html +0 -19
- data/lib/rghost/doc/classes/DataGrid/Header.src/M000159.html +0 -19
- data/lib/rghost/doc/classes/DataGrid/RailsGrid.html +0 -234
- data/lib/rghost/doc/classes/DataGrid/RailsGrid.src/M000161.html +0 -27
- data/lib/rghost/doc/classes/DataGrid/RailsGrid.src/M000162.html +0 -23
- data/lib/rghost/doc/classes/DataGrid/RailsGrid.src/M000163.html +0 -18
- data/lib/rghost/doc/classes/DataGrid/StaticCallback.html +0 -158
- data/lib/rghost/doc/classes/DataGrid/StaticCallback.src/M000164.html +0 -19
- data/lib/rghost/doc/classes/DataGrid/Style/BorderLines.html +0 -137
- data/lib/rghost/doc/classes/DataGrid/Style/BorderLines.src/M000128.html +0 -55
- data/lib/rghost/doc/classes/DataGrid/Style/BottomLines.html +0 -137
- data/lib/rghost/doc/classes/DataGrid/Style/BottomLines.src/M000129.html +0 -38
- data/lib/rghost/doc/classes/DataGrid/Style/OldForms.html +0 -137
- data/lib/rghost/doc/classes/DataGrid/Style/OldForms.src/M000130.html +0 -38
- data/lib/rghost/doc/classes/DataGrid/Style.html +0 -113
- data/lib/rghost/doc/classes/DataGrid.html +0 -133
- data/lib/rghost/doc/classes/Document.html +0 -990
- data/lib/rghost/doc/classes/Document.src/M000075.html +0 -32
- data/lib/rghost/doc/classes/Document.src/M000076.html +0 -18
- data/lib/rghost/doc/classes/Document.src/M000077.html +0 -29
- data/lib/rghost/doc/classes/Document.src/M000078.html +0 -33
- data/lib/rghost/doc/classes/Document.src/M000079.html +0 -20
- data/lib/rghost/doc/classes/Document.src/M000080.html +0 -21
- data/lib/rghost/doc/classes/Document.src/M000081.html +0 -18
- data/lib/rghost/doc/classes/Document.src/M000082.html +0 -19
- data/lib/rghost/doc/classes/Document.src/M000083.html +0 -21
- data/lib/rghost/doc/classes/Document.src/M000084.html +0 -22
- data/lib/rghost/doc/classes/Document.src/M000085.html +0 -18
- data/lib/rghost/doc/classes/Document.src/M000086.html +0 -18
- data/lib/rghost/doc/classes/Document.src/M000087.html +0 -18
- data/lib/rghost/doc/classes/Document.src/M000088.html +0 -18
- data/lib/rghost/doc/classes/Document.src/M000089.html +0 -19
- data/lib/rghost/doc/classes/Document.src/M000090.html +0 -18
- data/lib/rghost/doc/classes/Document.src/M000091.html +0 -18
- data/lib/rghost/doc/classes/Document.src/M000092.html +0 -18
- data/lib/rghost/doc/classes/Document.src/M000093.html +0 -18
- data/lib/rghost/doc/classes/Document.src/M000094.html +0 -18
- data/lib/rghost/doc/classes/Document.src/M000095.html +0 -18
- data/lib/rghost/doc/classes/Document.src/M000096.html +0 -18
- data/lib/rghost/doc/classes/Document.src/M000097.html +0 -18
- data/lib/rghost/doc/classes/Document.src/M000098.html +0 -18
- data/lib/rghost/doc/classes/Document.src/M000099.html +0 -18
- data/lib/rghost/doc/classes/Document.src/M000100.html +0 -18
- data/lib/rghost/doc/classes/Document.src/M000101.html +0 -18
- data/lib/rghost/doc/classes/Document.src/M000102.html +0 -18
- data/lib/rghost/doc/classes/Document.src/M000103.html +0 -18
- data/lib/rghost/doc/classes/Document.src/M000104.html +0 -18
- data/lib/rghost/doc/classes/Document.src/M000105.html +0 -18
- data/lib/rghost/doc/classes/Document.src/M000106.html +0 -18
- data/lib/rghost/doc/classes/Document.src/M000107.html +0 -18
- data/lib/rghost/doc/classes/Document.src/M000108.html +0 -18
- data/lib/rghost/doc/classes/Document.src/M000109.html +0 -18
- data/lib/rghost/doc/classes/Document.src/M000110.html +0 -18
- data/lib/rghost/doc/classes/Document.src/M000111.html +0 -20
- data/lib/rghost/doc/classes/Document.src/M000112.html +0 -19
- data/lib/rghost/doc/classes/Document.src/M000113.html +0 -19
- data/lib/rghost/doc/classes/DynamicDocumentCallback.html +0 -175
- data/lib/rghost/doc/classes/DynamicDocumentCallback.src/M000022.html +0 -19
- data/lib/rghost/doc/classes/Eps.html +0 -168
- data/lib/rghost/doc/classes/Eps.src/M000063.html +0 -20
- data/lib/rghost/doc/classes/Eps.src/M000064.html +0 -20
- data/lib/rghost/doc/classes/Font.html +0 -205
- data/lib/rghost/doc/classes/Font.src/M000061.html +0 -22
- data/lib/rghost/doc/classes/Font.src/M000062.html +0 -37
- data/lib/rghost/doc/classes/Function.html +0 -196
- data/lib/rghost/doc/classes/Function.src/M000045.html +0 -27
- data/lib/rghost/doc/classes/Function.src/M000046.html +0 -20
- data/lib/rghost/doc/classes/GSAlone.html +0 -154
- data/lib/rghost/doc/classes/GSAlone.src/M000065.html +0 -19
- data/lib/rghost/doc/classes/GSAlone.src/M000066.html +0 -22
- data/lib/rghost/doc/classes/Gif.html +0 -148
- data/lib/rghost/doc/classes/Gif.src/M000040.html +0 -30
- data/lib/rghost/doc/classes/Graphic.html +0 -153
- data/lib/rghost/doc/classes/Graphic.src/M000014.html +0 -18
- data/lib/rghost/doc/classes/Gray.html +0 -181
- data/lib/rghost/doc/classes/Gray.src/M000026.html +0 -18
- data/lib/rghost/doc/classes/Gray.src/M000027.html +0 -19
- data/lib/rghost/doc/classes/Helpers/HashKeyMethod.html +0 -131
- data/lib/rghost/doc/classes/Helpers/HashKeyMethod.src/M000127.html +0 -18
- data/lib/rghost/doc/classes/Helpers/HashKeyMethodClass.html +0 -118
- data/lib/rghost/doc/classes/Helpers.html +0 -112
- data/lib/rghost/doc/classes/HorizontalLine.html +0 -186
- data/lib/rghost/doc/classes/HorizontalLine.src/M000023.html +0 -23
- data/lib/rghost/doc/classes/Image.html +0 -176
- data/lib/rghost/doc/classes/Image.src/M000042.html +0 -20
- data/lib/rghost/doc/classes/Image.src/M000043.html +0 -26
- data/lib/rghost/doc/classes/Jpeg.html +0 -148
- data/lib/rghost/doc/classes/Jpeg.src/M000013.html +0 -28
- data/lib/rghost/doc/classes/Line.html +0 -190
- data/lib/rghost/doc/classes/Line.src/M000069.html +0 -20
- data/lib/rghost/doc/classes/Line.src/M000070.html +0 -19
- data/lib/rghost/doc/classes/LineWidth.html +0 -172
- data/lib/rghost/doc/classes/LineWidth.src/M000005.html +0 -18
- data/lib/rghost/doc/classes/LineWidth.src/M000006.html +0 -18
- data/lib/rghost/doc/classes/Load.html +0 -161
- data/lib/rghost/doc/classes/Load.src/M000165.html +0 -21
- data/lib/rghost/doc/classes/Load.src/M000166.html +0 -34
- data/lib/rghost/doc/classes/Load.src/M000167.html +0 -19
- data/lib/rghost/doc/classes/NewPath.html +0 -153
- data/lib/rghost/doc/classes/NewPath.src/M000041.html +0 -18
- data/lib/rghost/doc/classes/Paper.html +0 -213
- data/lib/rghost/doc/classes/Paper.src/M000010.html +0 -20
- data/lib/rghost/doc/classes/Paper.src/M000011.html +0 -24
- data/lib/rghost/doc/classes/Paper.src/M000012.html +0 -20
- data/lib/rghost/doc/classes/Point.html +0 -180
- data/lib/rghost/doc/classes/Point.src/M000073.html +0 -20
- data/lib/rghost/doc/classes/Point.src/M000074.html +0 -18
- data/lib/rghost/doc/classes/PointWithCommand.html +0 -150
- data/lib/rghost/doc/classes/PointWithCommand.src/M000115.html +0 -22
- data/lib/rghost/doc/classes/PsObject.html +0 -269
- data/lib/rghost/doc/classes/PsObject.src/M000015.html +0 -25
- data/lib/rghost/doc/classes/PsObject.src/M000016.html +0 -18
- data/lib/rghost/doc/classes/PsObject.src/M000017.html +0 -18
- data/lib/rghost/doc/classes/PsObject.src/M000018.html +0 -18
- data/lib/rghost/doc/classes/PsObject.src/M000019.html +0 -21
- data/lib/rghost/doc/classes/PsObject.src/M000020.html +0 -19
- data/lib/rghost/doc/classes/PsObject.src/M000021.html +0 -18
- data/lib/rghost/doc/classes/RGB.html +0 -213
- data/lib/rghost/doc/classes/RGB.src/M000024.html +0 -21
- data/lib/rghost/doc/classes/RGB.src/M000025.html +0 -25
- data/lib/rghost/doc/classes/Rectangle.html +0 -226
- data/lib/rghost/doc/classes/Rectangle.src/M000056.html +0 -18
- data/lib/rghost/doc/classes/Rectangle.src/M000057.html +0 -24
- data/lib/rghost/doc/classes/Rectangle.src/M000058.html +0 -21
- data/lib/rghost/doc/classes/RubyGhostConfig.html +0 -144
- data/lib/rghost/doc/classes/RubyGhostConfig.src/M000118.html +0 -22
- data/lib/rghost/doc/classes/RubyGhostEngine.html +0 -261
- data/lib/rghost/doc/classes/RubyGhostEngine.src/M000007.html +0 -24
- data/lib/rghost/doc/classes/RubyGhostEngine.src/M000008.html +0 -96
- data/lib/rghost/doc/classes/RubyGhostEngine.src/M000009.html +0 -21
- data/lib/rghost/doc/classes/RubyToPs.html +0 -272
- data/lib/rghost/doc/classes/RubyToPs.src/M000119.html +0 -23
- data/lib/rghost/doc/classes/RubyToPs.src/M000120.html +0 -18
- data/lib/rghost/doc/classes/RubyToPs.src/M000121.html +0 -18
- data/lib/rghost/doc/classes/RubyToPs.src/M000122.html +0 -19
- data/lib/rghost/doc/classes/RubyToPs.src/M000123.html +0 -30
- data/lib/rghost/doc/classes/RubyToPs.src/M000124.html +0 -18
- data/lib/rghost/doc/classes/RubyToPs.src/M000125.html +0 -18
- data/lib/rghost/doc/classes/RubyToPs.src/M000126.html +0 -30
- data/lib/rghost/doc/classes/Scale.html +0 -153
- data/lib/rghost/doc/classes/Scale.src/M000114.html +0 -18
- data/lib/rghost/doc/classes/Show.html +0 -203
- data/lib/rghost/doc/classes/Show.src/M000052.html +0 -20
- data/lib/rghost/doc/classes/Show.src/M000053.html +0 -19
- data/lib/rghost/doc/classes/StaticDocumentCallback.html +0 -168
- data/lib/rghost/doc/classes/StaticDocumentCallback.src/M000051.html +0 -19
- data/lib/rghost/doc/classes/TextArea.html +0 -217
- data/lib/rghost/doc/classes/TextArea.src/M000029.html +0 -22
- data/lib/rghost/doc/classes/TextArea.src/M000030.html +0 -24
- data/lib/rghost/doc/classes/TextIn.html +0 -201
- data/lib/rghost/doc/classes/TextIn.src/M000054.html +0 -19
- data/lib/rghost/doc/classes/TextIn.src/M000055.html +0 -24
- data/lib/rghost/doc/classes/Units/Cm.html +0 -145
- data/lib/rghost/doc/classes/Units/Cm.src/M000175.html +0 -19
- data/lib/rghost/doc/classes/Units/Inch.html +0 -145
- data/lib/rghost/doc/classes/Units/Inch.src/M000174.html +0 -18
- data/lib/rghost/doc/classes/Units/PSUnit.html +0 -139
- data/lib/rghost/doc/classes/Units/PSUnit.src/M000170.html +0 -18
- data/lib/rghost/doc/classes/Units/Unit.html +0 -190
- data/lib/rghost/doc/classes/Units/Unit.src/M000171.html +0 -18
- data/lib/rghost/doc/classes/Units/Unit.src/M000172.html +0 -19
- data/lib/rghost/doc/classes/Units/Unit.src/M000173.html +0 -18
- data/lib/rghost/doc/classes/Units.html +0 -166
- data/lib/rghost/doc/classes/Units.src/M000169.html +0 -22
- data/lib/rghost/doc/classes/Variable.html +0 -152
- data/lib/rghost/doc/classes/Variable.src/M000044.html +0 -18
- data/lib/rghost/doc/classes/VerticalLine.html +0 -175
- data/lib/rghost/doc/classes/VerticalLine.src/M000116.html +0 -23
- data/lib/rghost/doc/classes/VerticalLine.src/M000117.html +0 -19
- data/lib/rghost/doc/created.rid +0 -1
- data/lib/rghost/doc/files/arc_rb.html +0 -109
- data/lib/rghost/doc/files/barcode_rb.html +0 -108
- data/lib/rghost/doc/files/callback_rb.html +0 -109
- data/lib/rghost/doc/files/color_rb.html +0 -110
- data/lib/rghost/doc/files/constants_rb.html +0 -108
- data/lib/rghost/doc/files/convert_rb.html +0 -107
- data/lib/rghost/doc/files/cursor_rb.html +0 -110
- data/lib/rghost/doc/files/data_grid/basic_grid_rb.html +0 -108
- data/lib/rghost/doc/files/data_grid/csv_grid_rb.html +0 -108
- data/lib/rghost/doc/files/data_grid/data_grid_rb.html +0 -116
- data/lib/rghost/doc/files/data_grid/dynamic_callback_rb.html +0 -108
- data/lib/rghost/doc/files/data_grid/field_format_rb.html +0 -109
- data/lib/rghost/doc/files/data_grid/grid_rb.html +0 -108
- data/lib/rghost/doc/files/data_grid/header_rb.html +0 -113
- data/lib/rghost/doc/files/data_grid/rails_grid_rb.html +0 -108
- data/lib/rghost/doc/files/data_grid/static_callback_rb.html +0 -109
- data/lib/rghost/doc/files/data_grid/style/border_lines_rb.html +0 -101
- data/lib/rghost/doc/files/data_grid/style/bottom_lines_rb.html +0 -101
- data/lib/rghost/doc/files/data_grid/style/old_forms_rb.html +0 -101
- data/lib/rghost/doc/files/data_grid/style/style_rb.html +0 -110
- data/lib/rghost/doc/files/document_rb.html +0 -150
- data/lib/rghost/doc/files/dsc_entry_rb.html +0 -108
- data/lib/rghost/doc/files/dynamic_document_callback_rb.html +0 -108
- data/lib/rghost/doc/files/eps_rb.html +0 -108
- data/lib/rghost/doc/files/font_rb.html +0 -110
- data/lib/rghost/doc/files/function_rb.html +0 -108
- data/lib/rghost/doc/files/gif_rb.html +0 -114
- data/lib/rghost/doc/files/graphic_rb.html +0 -113
- data/lib/rghost/doc/files/gs_alone_rb.html +0 -101
- data/lib/rghost/doc/files/helpers_rb.html +0 -101
- data/lib/rghost/doc/files/horizontal_line_rb.html +0 -109
- data/lib/rghost/doc/files/image_rb.html +0 -108
- data/lib/rghost/doc/files/jpeg_rb.html +0 -112
- data/lib/rghost/doc/files/line_rb.html +0 -109
- data/lib/rghost/doc/files/line_width_rb.html +0 -108
- data/lib/rghost/doc/files/load_rb.html +0 -108
- data/lib/rghost/doc/files/newpath_rb.html +0 -113
- data/lib/rghost/doc/files/paper_rb.html +0 -112
- data/lib/rghost/doc/files/point_rb.html +0 -109
- data/lib/rghost/doc/files/point_with_command_rb.html +0 -109
- data/lib/rghost/doc/files/ps_object_rb.html +0 -107
- data/lib/rghost/doc/files/rectangle_rb.html +0 -110
- data/lib/rghost/doc/files/rghost_rb.html +0 -109
- data/lib/rghost/doc/files/ruby_ghost_config_rb.html +0 -109
- data/lib/rghost/doc/files/ruby_ghost_engine_rb.html +0 -111
- data/lib/rghost/doc/files/ruby_to_ps_rb.html +0 -107
- data/lib/rghost/doc/files/scale_rb.html +0 -108
- data/lib/rghost/doc/files/show_rb.html +0 -109
- data/lib/rghost/doc/files/static_document_callback_rb.html +0 -109
- data/lib/rghost/doc/files/text_in_rb.html +0 -110
- data/lib/rghost/doc/files/textarea_rb.html +0 -111
- data/lib/rghost/doc/files/units_rb.html +0 -109
- data/lib/rghost/doc/files/variable_rb.html +0 -108
- data/lib/rghost/doc/files/version_rb.html +0 -101
- data/lib/rghost/doc/files/vertical_line_rb.html +0 -110
- data/lib/rghost/doc/fr_class_index.html +0 -93
- data/lib/rghost/doc/fr_file_index.html +0 -81
- data/lib/rghost/doc/fr_method_index.html +0 -201
- data/lib/rghost/doc/index.html +0 -24
- data/lib/rghost/ps/functions.ps +0 -646
- data/lib/rghost/rectangle.rb +0 -39
- data/lib/rghost/rghost.rb +0 -3
- data/lib/rghost/version.rb +0 -9
data/lib/rghost/constants.rb
CHANGED
@@ -1,614 +1,624 @@
|
|
1
1
|
require "helpers"
|
2
|
-
|
3
|
-
module Constants
|
4
|
-
|
2
|
+
|
3
|
+
module RGhost::Constants
|
4
|
+
module HashKeyMethod #:nodoc:
|
5
|
+
def method_missing(method, *args)
|
6
|
+
self[method.to_sym]
|
7
|
+
end
|
8
|
+
end
|
9
|
+
class HashKeyMethodClass < Hash #:nodoc:
|
10
|
+
include RGhost::Constants::HashKeyMethod
|
11
|
+
end
|
5
12
|
module Devices
|
6
13
|
#Standard Devices
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
14
|
+
STANDARD=RGhost::Constants::HashKeyMethodClass[
|
15
|
+
#-- MS-DOS displays",
|
16
|
+
:ega => "EGA (640x350, 16-color)",
|
17
|
+
:vga => "VGA (640x480, 16-color)",
|
18
|
+
#-- Ms Windows => "",
|
19
|
+
:ali => "SuperVGA using Avance Logic Inc. chipset, 256-color modes",
|
20
|
+
:atiw => "ATI Wonder SuperVGA, 256-color modes",
|
21
|
+
:cirr => "SuperVGA using Cirrus Logic CL-GD54XX chips, 256-color modes",
|
22
|
+
:s3vga => "SuperVGA using S3 86C911 chip (e.g., Diamond Stealth board)",
|
23
|
+
:svga16 => "Generic SuperVGA in 800x600, 16-color mode",
|
24
|
+
:tseng => "SuperVGA using Tseng Labs ET3000/4000 chips, 256-color modes",
|
25
|
+
:vesa => "SuperVGA with VESA standard API driver",
|
26
|
+
:mswindll => "Microsoft Windows 3.1 DLL => [MS Windows only]",
|
27
|
+
:mswinprn => "Microsoft Windows 3.0, 3.1 DDB printer => [MS Windows only]",
|
28
|
+
:mswinpr2 => "Microsoft Windows 3.0, 3.1 DIB printer => [MS Windows only]",
|
29
|
+
#-- Others Displays",
|
30
|
+
:os2pm => "OS/2 Presentation Manager => [OS/2 only]",
|
31
|
+
:os2dll => "OS/2 DLL bitmap::[OS/2 only]",
|
32
|
+
:os2prn => "OS/2 printer:: => [OS/2 only]",
|
33
|
+
#-- Unix Displays",
|
34
|
+
:lvga256 => "Linux vgalib, 256-color VGA modes => [Linux only]",
|
35
|
+
:vgalib => "Linux vgalib, 16-color VGA modes => [Linux only]",
|
36
|
+
:x11 => "X Windows version 11, release >=4 => [Unix and VMS only]",
|
37
|
+
:x11alpha => "X Windows masquerading as a device with alpha capability",
|
38
|
+
:x11cmyk => "X Windows masquerading as a 1-bit-per-plane CMYK device",
|
39
|
+
:x11cmyk2 => "X Windows as a 2-bit-per-plane CMYK device",
|
40
|
+
:x11cmyk4 => "X Windows as a 4-bit-per-plane CMYK device",
|
41
|
+
:x11cmyk8 => "X Windows as an 8-bit-per-plane CMYK device",
|
42
|
+
:x11gray2 => "X Windows as a 2-bit gray-scale device",
|
43
|
+
:x11gray4 => "X Windows as a 4-bit gray-scale device",
|
44
|
+
:x11mono => "X Windows masquerading as a black-and-white device",
|
45
|
+
:x11rg16x => "X Windows with G5/B5/R6 pixel layout for testing.",
|
46
|
+
:x11rg32x => "X Windows with G11/B10/R11 pixel layout for testing.",
|
47
|
+
#-- Printers",
|
48
|
+
:epson => "Epson-compatible dot matrix printers (9- or 24-pin)",
|
49
|
+
:eps9mid => "Epson-compatible 9-pin, interleaved lines (intermediate resolution)",
|
50
|
+
:eps9high => "Epson-compatible 9-pin, interleaved lines (triple resolution)",
|
51
|
+
:atx23 => "Practical Automation ATX-23 label printer",
|
52
|
+
:atx24 => "Practical Automation ATX-24 label printer",
|
53
|
+
:atx38 => "Practical Automation ATX-38 label printer",
|
54
|
+
:deskjet => "H-P DeskJet and DeskJet Plus",
|
55
|
+
:djet500 => "H-P DeskJet 500; use -r600 for DJ 600 series",
|
56
|
+
:fs600 => "Kyocera FS-600 (600 dpi)",
|
57
|
+
:laserjet => "H-P LaserJet",
|
58
|
+
:ljet2p => "H-P LaserJet IId/IIp/III* with TIFF compression",
|
59
|
+
:ljet3 => "H-P LaserJet III* with Delta Row compression",
|
60
|
+
:ljet3d => "H-P LaserJet IIID with duplex capability",
|
61
|
+
:ljet4 => "H-P LaserJet 4 (defaults to 600 dpi)",
|
62
|
+
:ljet4d => "H-P LaserJet 4 (defaults to 600 dpi) with duplex",
|
63
|
+
:ljetplus => "H-P LaserJet Plus",
|
64
|
+
:lj5mono => "H-P LaserJet 5 & 6 family (PCL XL), bitmap:",
|
65
|
+
:lj5gray => "H-P LaserJet 5 & 6 family, gray-scale bitmap;",
|
66
|
+
:lp2563 => "H-P 2563B line printer",
|
67
|
+
:oce9050 => "OCE 9050 printe",
|
68
|
+
:pxlmono => "H-P black-and-white PCL XL printers (LaserJet 5 and 6 family)",
|
69
|
+
:pxlcolor => "H-P color PCL XL printers (e.g. Color LaserJet 4500)",
|
70
|
+
#-- Fax file format",
|
71
|
+
:faxg3 => "Group 3 fax, with EOLs but no header or EOD",
|
72
|
+
:faxg32d => "Group 3 2-D fax, with EOLs but no header or EOD",
|
73
|
+
:faxg4 => "Group 4 fax, with EOLs but no header or EOD",
|
74
|
+
:tiffcrle => "TIFF CCITT RLE 1-dim (= Group 3 fax with no EOLs)",
|
75
|
+
:tiffg3 => "TIFF Group 3 fax (with EOLs)",
|
76
|
+
:tiffg32d => "TIFF Group 3 2-D fax",
|
77
|
+
:tiffg4 => "TIFF Group 4 fax",
|
78
|
+
#-- High-level (vector) file formats",
|
79
|
+
:epswrite => "EPS output (like PostScript Distillery)",
|
80
|
+
:pdfwrite => "PDF output (like Adobe Acrobat Distiller)",
|
81
|
+
:pswrite => "PostScript output (like PostScript Distillery)",
|
82
|
+
:pxlmono => "Black-and-white PCL XL",
|
83
|
+
:pxlcolor => "Color PCL XL",
|
84
|
+
#-- Raster file formats and devices",
|
85
|
+
:bit => "Plain bits, monochrome",
|
86
|
+
:bitrgb => "Plain bits, RGB",
|
87
|
+
:bitcmyk => "Plain bits, CMYK",
|
88
|
+
:bmpmono => "Monochrome MS Windows .BMP file format",
|
89
|
+
:bmpgray => "8-bit gray .BMP file format",
|
90
|
+
:bmpsep1 => "Separated 1-bit CMYK .BMP file format, primarily for testing",
|
91
|
+
:bmpsep8 =>"Separated 8-bit CMYK .BMP file format, primarily for testing",
|
92
|
+
:bmp16 => "4-bit (EGA/VGA) .BMP file format",
|
93
|
+
:bmp256 => "8-bit (256-color) .BMP file format",
|
94
|
+
:bmp16m => "24-bit .BMP file format",
|
95
|
+
:bmp32b => "32-bit pseudo-.BMP file format",
|
96
|
+
:cgmmono => "Monochrome (black-and-white) CGM -- LOW LEVEL OUTPUT ONLY",
|
97
|
+
:cgm8 => "8-bit (256-color) CGM -- DITTO",
|
98
|
+
:cgm24 => "24-bit color CGM -- DITTO",
|
99
|
+
:jpeg => "JPEG format, RGB output",
|
100
|
+
:jpeggray => "JPEG format, gray output",
|
101
|
+
:miff24 => "ImageMagick MIFF format, 24-bit direct color, RLE compressed",
|
102
|
+
:pcxmono=> "PCX file format, monochrome (1-bit black and white)",
|
103
|
+
:pcxgray=> "PCX file format, 8-bit gray scale",
|
104
|
+
:pcx16 => "PCX file format, 4-bit planar (EGA/VGA) color",
|
105
|
+
:pcx256 => "PCX file format, 8-bit chunky color",
|
106
|
+
:pcx24b => "PCX file format, 24-bit color (3 8-bit planes)",
|
107
|
+
:pcxcmyk => "PCX file format, 4-bit chunky CMYK color",
|
108
|
+
:pbm => "Portable Bitmap (plain format)",
|
109
|
+
:pbmraw => "Portable Bitmap (raw format)",
|
110
|
+
:pgm => "Portable Graymap (plain format)",
|
111
|
+
:pgmraw => "Portable Graymap (raw format)",
|
112
|
+
:pgnm => "Portable Graymap (plain format), optimizing to PBM if possible",
|
113
|
+
:pgnmraw => "Portable Graymap (raw format), optimizing to PBM if possible",
|
114
|
+
:pnm => "Portable Pixmap (plain format) (RGB), optimizing to PGM or PBM",
|
115
|
+
:pnmraw => "Portable Pixmap (raw format) (RGB), optimizing to PGM or PBM",
|
116
|
+
:ppm => "Portable Pixmap (plain format) (RGB)",
|
117
|
+
:ppmraw => "Portable Pixmap (raw format) (RGB)",
|
118
|
+
:pkm => "Portable inKmap (plain format) (4-bit CMYK => RGB)",
|
119
|
+
:pkmraw => "Portable inKmap (raw format) (4-bit CMYK => RGB)",
|
120
|
+
:pksm => "Portable Separated map (plain format) (4-bit CMYK => 4 pages)",
|
121
|
+
:pksmraw => "Portable Separated map (raw format) (4-bit CMYK => 4 pages)",
|
122
|
+
:plan9bm => "Plan 9 bitmap format",
|
123
|
+
:pngmono => "Monochrome Portable Network Graphics (PNG)",
|
124
|
+
:pnggray => "8-bit gray Portable Network Graphics (PNG)",
|
125
|
+
:png16 => "4-bit color Portable Network Graphics (PNG)",
|
126
|
+
:png256 => "8-bit color Portable Network Graphics (PNG)",
|
127
|
+
:png16m => "24-bit color Portable Network Graphics (PNG)",
|
128
|
+
:psmono => "PostScript (Level 1) monochrome image",
|
129
|
+
:psgray => "PostScript (Level 1) 8-bit gray image",
|
130
|
+
:psrgb => "PostScript (Level 2) 24-bit color image",
|
131
|
+
:tiff12nc => "TIFF 12-bit RGB, no compression",
|
132
|
+
:tiff24nc => "TIFF 24-bit RGB, no compression (NeXT standard format)",
|
133
|
+
:tifflzw => "TIFF LZW (tag = 5) (monochrome)",
|
134
|
+
:tiffpack => "TIFF PackBits (tag = 32773) (monochrome)"
|
125
135
|
|
126
136
|
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
137
|
+
]
|
138
|
+
DEVICES_ALIAS={
|
139
|
+
:eps => :epswrite,
|
140
|
+
:pdf => :pdfwrite,
|
141
|
+
:ps => :pswrite,
|
142
|
+
:pcl => :pxlmono,
|
143
|
+
:tif => :tiffcrle,
|
144
|
+
:tiff => :tiffcrle,
|
145
|
+
:jpg => :jpeg,
|
146
|
+
:png => :png16m
|
147
|
+
}
|
148
|
+
#Load device by alias
|
139
149
|
def device_for(dev)
|
140
150
|
|
141
151
|
|
142
|
-
|
143
|
-
|
144
|
-
|
152
|
+
return DEVICES_ALIAS[dev] if DEVICES_ALIAS.key? dev
|
153
|
+
return dev if STANDARD.key? dev
|
154
|
+
raise "Undefined device: #{dev}"
|
145
155
|
end
|
146
156
|
|
147
157
|
end
|
148
|
-
|
158
|
+
|
149
159
|
module Fonts
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
160
|
+
#Standard Encodings
|
161
|
+
ENCODINGS=['ISOLatin1Encoding', 'StandardEncoding ']
|
162
|
+
#Standard Fonts
|
163
|
+
STANDARD={
|
164
|
+
'AvantGarde-Book' => "Adobe-ITC Avant Garde Gothic-Book-R-Normal--*",
|
165
|
+
'AvantGarde-BookOblique' => "Adobe-ITC Avant Garde Gothic-Book-O-Normal--*",
|
166
|
+
'AvantGarde-Demi' => "Adobe-ITC Avant Garde Gothic-Demi-R-Normal--*",
|
167
|
+
'AvantGarde-DemiOblique' => "Adobe-ITC Avant Garde Gothic-Demi-O-Normal--*",
|
168
|
+
'Bookman-Demi' => "Adobe-ITC Bookman-Demi-R-Normal--*",
|
169
|
+
'Bookman-DemiItalic' => "Adobe-ITC Bookman-Demi-I-Normal--*",
|
170
|
+
'Bookman-Light' => "Adobe-ITC Bookman-Light-R-Normal--*",
|
171
|
+
'Bookman-LightItalic' => "Adobe-ITC Bookman-Light-I-Normal--*",
|
172
|
+
:Courier => "Adobe-Courier-Medium-R-Normal--*",
|
173
|
+
'Courier-Bold' => "Adobe-Courier-Bold-R-Normal--*",
|
174
|
+
'Courier-BoldOblique' => "Adobe-Courier-Bold-O-Normal--*",
|
175
|
+
'Courier-Oblique' => "Adobe-Courier-Medium-O-Normal--*",
|
176
|
+
:Helvetica => "Adobe-Helvetica-Medium-R-Normal--*",
|
177
|
+
'Helvetica-Bold' => "Adobe-Helvetica-Bold-R-Normal--*",
|
178
|
+
'Helvetica-BoldOblique' => "Adobe-Helvetica-Bold-O-Normal--*",
|
179
|
+
'Helvetica-Narrow' => "Adobe-Helvetica-Medium-R-Narrow--*",
|
180
|
+
'Helvetica-Narrow-Bold' => "Adobe-Helvetica-Bold-R-Narrow--*",
|
181
|
+
'Helvetica-Narrow-BoldOblique' =>"Adobe-Helvetica-Bold-O-Narrow--*",
|
182
|
+
'Helvetica-Narrow-Oblique' => "Adobe-Helvetica-Medium-O-Narrow--*",
|
183
|
+
'Helvetica-Oblique' => "Adobe-Helvetica-Medium-O-Normal--*",
|
184
|
+
'NewCenturySchlbk-Bold' => "Adobe-New Century Schoolbook-Bold-R-Normal--*",
|
185
|
+
'NewCenturySchlbk-BoldItalic' => "Adobe-New Century Schoolbook-Bold-I-Normal--*",
|
186
|
+
'NewCenturySchlbk-Italic' => "Adobe-New Century Schoolbook-Medium-I-Normal--*",
|
187
|
+
'NewCenturySchlbk-Roman' => "Adobe-New Century Schoolbook-Medium-R-Normal--*",
|
188
|
+
'Palatino-Bold' => "Adobe-Palatino-Bold-R-Normal--*",
|
189
|
+
'Palatino-BoldItalic' => "Adobe-Palatino-Bold-I-Normal--*",
|
190
|
+
'Palatino-Italic' => "Adobe-Palatino-Medium-I-Normal--*",
|
191
|
+
'Palatino-Roman' => "Adobe-Palatino-Medium-R-Normal--*",
|
192
|
+
:Times => "Adobe-Times-Normal--*",
|
193
|
+
'Times-Bold' => "Adobe-Times-Bold-R-Normal--*",
|
194
|
+
'Times-BoldItalic' => "Adobe-Times-Bold-I-Normal--*",
|
195
|
+
'Times-Italic' => "Adobe-Times-Medium-I-Normal--*",
|
196
|
+
'Times-Roman' => "Adobe-Times-Medium-R-Normal--*",
|
197
|
+
'ZapfChancery-MediumItalic' => "Adobe-ITC Zapf Chancery-Medium-I-Normal--",
|
198
|
+
:Symbol => "Adobe-Symbol-Medium-R-Normal--",
|
199
|
+
:ZapfDingbats => "Adobe-ITC Zapf Dingbats-Medium-R-Normal--"
|
200
|
+
}
|
201
|
+
SUNS={
|
202
|
+
'AvantGarde-Book' => "-itc-avantgarde-book-r-normal--*",
|
203
|
+
'AvantGarde-BookOblique' => "-itc-avantgarde-book-o-normal--*",
|
204
|
+
'AvantGarde-Demi' => "-itc-avantgarde-demi-r-normal--*",
|
205
|
+
'AvantGarde-DemiOblique' => "-itc-avantgarde-demi-o-normal--*",
|
206
|
+
'Bembo' => "-monotype-bembo-medium-r-normal--*",
|
207
|
+
'Bembo-Bold' => "-monotype-bembo-bold-r-normal--*",
|
208
|
+
'Bembo-BoldItalic' => "-monotype-bembo-bold-i-normal--*",
|
209
|
+
'Bembo-Italic' => "-monotype-bembo-medium-i-normal--*",
|
210
|
+
'Bookman-Demi' => "-itc-bookman-demi-r-normal--*",
|
211
|
+
'Bookman-DemiItalic' => "-itc-bookman-demi-i-normal--*",
|
212
|
+
'Bookman-Light' => "-itc-bookman-light-r-normal--*",
|
213
|
+
'Bookman-LightItalic' => "-itc-bookman-light-i-normal--*",
|
214
|
+
'Courier' => "-itc-courier-medium-r-normal--*",
|
215
|
+
'Courier-Bold' => "-itc-courier-bold-r-normal--*",
|
216
|
+
'Courier-BoldOblique' => "-itc-courier-bold-o-normal--*",
|
217
|
+
'Courier-Oblique' => "-itc-courier-medium-o-normal--*",
|
218
|
+
'GillSans' => "-monotype-gill-medium-r-normal-sans-*",
|
219
|
+
'GillSans-Bold' => "-monotype-gill-bold-r-normal-sans-*",
|
220
|
+
'GillSans-BoldItalic' => "-monotype-gill-bold-i-normal-sans-*",
|
221
|
+
'GillSans-Italic' => "-monotype-gill-normal-i-normal-sans-*",
|
222
|
+
'Helvetica' => "-linotype-helvetica-medium-r-normal--*",
|
223
|
+
'Helvetica-Bold' => "-linotype-helvetica-bold-r-normal--*",
|
224
|
+
'Helvetica-BoldOblique' => "-linotype-helvetica-bold-o-normal--*",
|
225
|
+
'Helvetica-Narrow' => "-linotype-helvetica-medium-r-narrow--*",
|
226
|
+
'Helvetica-Narrow-Bold' => "-linotype-helvetica-bold-r-narrow--*",
|
227
|
+
'Helvetica-Narrow-BoldOblique' => "-linotype-helvetica-bold-o-narrow--*",
|
228
|
+
'Helvetica-Narrow-Oblique' => "-linotype-helvetica-medium-o-narrow--*",
|
229
|
+
'Helvetica-Oblique' => "-linotype-helvetica-medium-o-normal--*",
|
230
|
+
'LucidaBright' => "-b&h-lucidabright-medium-r-normal--*",
|
231
|
+
'LucidaBright-Demi' => "-b&h-lucidabright-demibold-r-normal--*",
|
232
|
+
'LucidaBright-DemiItalic' => "-b&h-lucidabright-demibold-i-normal--*",
|
233
|
+
'LucidaBright-Italic' => "-b&h-lucidabright-medium-i-normal--*",
|
234
|
+
'LucidaSans' => "-b&h-lucida-medium-r-normal-sans-*",
|
235
|
+
'LucidaSans-Bold' => "-b&h-lucida-bold-r-normal-sans-*",
|
236
|
+
'LucidaSans-BoldItalic' => "-b&h-lucida-bold-i-normal-sans-*",
|
237
|
+
'LucidaSans-Italic' => "-b&h-lucida-medium-i-normal-sans-*",
|
238
|
+
'LucidaSans-Typewriter' => "-b&h-lucidatypewriter-medium-r-normal-sans-*",
|
239
|
+
'LucidaSans-TypewriterBold' => "-b&h-lucidatypewriter-bold-r-normal-sans-*",
|
240
|
+
'NewCenturySchlbk-BoldItalic' => "-linotype-new century schoolbook-bold-i-normal--*",
|
241
|
+
'NewCenturySchlbk-Bold' => "-linotype-new century schoolbook-bold-r-normal--*",
|
242
|
+
'NewCenturySchlbk-Italic' => "-linotype-new century schoolbook-medium-i-normal--*",
|
243
|
+
'NewCenturySchlbk-Roman' => "-linotype-new century schoolbook-medium-r-normal--*",
|
244
|
+
'Palatino-Bold' => "-linotype-palatino-bold-r-normal--*",
|
245
|
+
'Palatino-BoldItalic' => "-linotype-palatino-bold-i-normal--*",
|
246
|
+
'Palatino-Italic' => "-linotype-palatino-medium-i-normal--*",
|
247
|
+
'Palatino-Roman' => "-linotype-palatino-medium-r-normal--*",
|
248
|
+
'Rockwell' => "-monotype-rockwell-medium-r-normal--*",
|
249
|
+
'Rockwell-Bold' => "-monotype-rockwell-bold-r-normal--*",
|
250
|
+
'Rockwell-BoldItalic' => "-monotype-rockwell-bold-i-normal--*",
|
251
|
+
'Rockwell-Italic' => "-monotype-rockwell-medium-i-normal--*",
|
252
|
+
'Times-Bold' => "-linotype-times-bold-r-normal--*",
|
253
|
+
'Times-BoldItalic' => "-linotype-times-bold-i-normal--*",
|
254
|
+
'Times-Italic' => "-linotype-times-medium-i-normal--*",
|
255
|
+
'Times-Roman' => "-linotype-times-medium-r-normal--*",
|
256
|
+
'Utopia-Bold' => "-adobe-utopia-bold-r-normal--*",
|
257
|
+
'Utopia-BoldItalic' => "-adobe-utopia-bold-i-normal--*",
|
258
|
+
'Utopia-Italic' => "-adobe-utopia-regular-i-normal--*",
|
259
|
+
'Utopia-Regular' => "-adobe-utopia-regular-r-normal--*",
|
260
|
+
'ZapfChancery-MediumItalic' => "-itc-zapfchancery-medium-i-normal--",
|
261
|
+
'ZapfDingbats' => "-itc-zapfdingbats-medium-r-normal--",
|
262
|
+
'Symbol' => "--symbol-medium-r-normal--"
|
253
263
|
}
|
254
264
|
|
255
265
|
end
|
256
|
-
#
|
266
|
+
#Color map
|
257
267
|
module Colors
|
258
|
-
RGB=
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
268
|
+
RGB=RGhost::Constants::HashKeyMethodClass[
|
269
|
+
:aliceBlue => [0.941176470588235,0.972549019607843,1.0],
|
270
|
+
:antiqueWhite => [0.980392156862745,0.92156862745098,0.843137254901961],
|
271
|
+
:aqua => [0.0,1.0,1.0],
|
272
|
+
:aquamarine => [0.498039215686275,1.0,0.831372549019608],
|
273
|
+
:azure => [0.941176470588235,1.0,1.0],
|
274
|
+
:beige => [0.96078431372549,0.96078431372549,0.862745098039216],
|
275
|
+
:bisque => [1.0,0.894117647058824,0.768627450980392],
|
276
|
+
:black => [0.0,0.0,0.0],
|
277
|
+
:blanchedAlmond => [1.0,0.92156862745098,0.803921568627451],
|
278
|
+
:blue => [0.0,0.0,1.0],
|
279
|
+
:blueViolet => [0.541176470588235,0.168627450980392,0.886274509803922],
|
280
|
+
:brown => [0.647058823529412,0.164705882352941,0.164705882352941],
|
281
|
+
:burlyWood => [0.870588235294118,0.72156862745098,0.529411764705882],
|
282
|
+
:cadetBlue => [0.372549019607843,0.619607843137255,0.627450980392157],
|
283
|
+
:chartreuse => [0.498039215686275,1.0,0.0],
|
284
|
+
:chocolate => [0.823529411764706,0.411764705882353,0.117647058823529],
|
285
|
+
:coral => [1.0,0.498039215686275,0.313725490196078],
|
286
|
+
:cornflowerBlue => [0.392156862745098,0.584313725490196,0.929411764705882],
|
287
|
+
:cornsilk => [1.0,0.972549019607843,0.862745098039216],
|
288
|
+
:crimson => [0.862745098039216,0.0784313725490196,0.235294117647059],
|
289
|
+
:cyan => [0.0,1.0,1.0],
|
290
|
+
:darkBlue => [0.0,0.0,0.545098039215686],
|
291
|
+
:darkCyan => [0.0,0.545098039215686,0.545098039215686],
|
292
|
+
:darkGoldenRod => [0.72156862745098,0.525490196078431,0.0431372549019608],
|
293
|
+
:darkGray => [0.662745098039216,0.662745098039216,0.662745098039216],
|
294
|
+
:darkGreen => [0.0,0.392156862745098,0.0],
|
295
|
+
:darkGrey => [0.662745098039216,0.662745098039216,0.662745098039216],
|
296
|
+
:darkKhaki => [0.741176470588235,0.717647058823529,0.419607843137255],
|
297
|
+
:darkMagenta => [0.545098039215686,0.0,0.545098039215686],
|
298
|
+
:darkOliveGreen => [0.333333333333333,0.419607843137255,0.184313725490196],
|
299
|
+
:darkOrchid => [0.6,0.196078431372549,0.8],
|
300
|
+
:darkRed => [0.545098039215686,0.0,0.0],
|
301
|
+
:darkSalmon => [0.913725490196078,0.588235294117647,0.47843137254902],
|
302
|
+
:darkSeaGreen => [0.56078431372549,0.737254901960784,0.56078431372549],
|
303
|
+
:darkSlateBlue => [0.282352941176471,0.23921568627451,0.545098039215686],
|
304
|
+
:darkSlateGray => [0.184313725490196,0.309803921568627,0.309803921568627],
|
305
|
+
:darkSlateGrey => [0.184313725490196,0.309803921568627,0.309803921568627],
|
306
|
+
:darkTurquoise => [0.0,0.807843137254902,0.819607843137255],
|
307
|
+
:darkViolet => [0.580392156862745,0.0,0.827450980392157],
|
308
|
+
:darkorange => [1.0,0.549019607843137,0.0],
|
309
|
+
:deepPink => [1.0,0.0784313725490196,0.576470588235294],
|
310
|
+
:deepSkyBlue => [0.0,0.749019607843137,1.0],
|
311
|
+
:dimGray => [0.411764705882353,0.411764705882353,0.411764705882353],
|
312
|
+
:dimGrey => [0.411764705882353,0.411764705882353,0.411764705882353],
|
313
|
+
:dodgerBlue => [0.117647058823529,0.564705882352941,1.0],
|
314
|
+
:direBrick => [0.698039215686274,0.133333333333333,0.133333333333333],
|
315
|
+
:dloralWhite => [1.0,0.980392156862745,0.941176470588235],
|
316
|
+
:dorestGreen => [0.133333333333333,0.545098039215686,0.133333333333333],
|
317
|
+
:duchsia => [1.0,0.0,1.0],
|
318
|
+
:gainsboro => [0.862745098039216,0.862745098039216,0.862745098039216],
|
319
|
+
:ghostWhite => [0.972549019607843,0.972549019607843,1.0],
|
320
|
+
:gold => [1.0,0.843137254901961,0.0],
|
321
|
+
:goldenRod => [0.854901960784314,0.647058823529412,0.125490196078431],
|
322
|
+
:gray => [0.501960784313725,0.501960784313725,0.501960784313725],
|
323
|
+
:green => [0.0,0.501960784313725,0.0],
|
324
|
+
:greenYellow => [0.67843137254902,1.0,0.184313725490196],
|
325
|
+
:grey => [0.501960784313725,0.501960784313725,0.501960784313725],
|
326
|
+
:honeyDew => [0.941176470588235,1.0,0.941176470588235],
|
327
|
+
:hotPink => [1.0,0.411764705882353,0.705882352941177],
|
328
|
+
:indianRed => [0.803921568627451,0.36078431372549,0.36078431372549],
|
329
|
+
:indigo => [0.294117647058824,0.0,0.509803921568627],
|
330
|
+
:ivory => [1.0,1.0,0.941176470588235],
|
331
|
+
:khaki => [0.941176470588235,0.901960784313726,0.549019607843137],
|
332
|
+
:lavenderBlush => [1.0,0.941176470588235,0.96078431372549],
|
333
|
+
:lavender => [0.901960784313726,0.901960784313726,0.980392156862745],
|
334
|
+
:lawnGreen => [0.486274509803922,0.988235294117647,0.0],
|
335
|
+
:lemonChiffon => [1.0,0.980392156862745,0.803921568627451],
|
336
|
+
:lightBlue => [0.67843137254902,0.847058823529412,0.901960784313726],
|
337
|
+
:lightCoral => [0.941176470588235,0.501960784313725,0.501960784313725],
|
338
|
+
:lightCyan => [0.87843137254902,1.0,1.0],
|
339
|
+
:lightGoldenRodYellow => [0.980392156862745,0.980392156862745,0.823529411764706],
|
340
|
+
:lightGray => [0.827450980392157,0.827450980392157,0.827450980392157],
|
341
|
+
:lightGreen => [0.564705882352941,0.933333333333333,0.564705882352941],
|
342
|
+
:lightGrey => [0.827450980392157,0.827450980392157,0.827450980392157],
|
343
|
+
:lightPink => [1.0,0.713725490196078,0.756862745098039],
|
344
|
+
:lightSalmon => [1.0,0.627450980392157,0.47843137254902],
|
345
|
+
:lightSeaGreen => [0.125490196078431,0.698039215686274,0.666666666666667],
|
346
|
+
:lightSkyBlue => [0.529411764705882,0.807843137254902,0.980392156862745],
|
347
|
+
:lightSlateGray => [0.466666666666667,0.533333333333333,0.6],
|
348
|
+
:lightSlateGrey => [0.466666666666667,0.533333333333333,0.6],
|
349
|
+
:lightSteelBlue => [0.690196078431373,0.768627450980392,0.870588235294118],
|
350
|
+
:lightYellow => [1.0,1.0,0.87843137254902],
|
351
|
+
:lime => [0.0,1.0,0.0],
|
352
|
+
:limeGreen => [0.196078431372549,0.803921568627451,0.196078431372549],
|
353
|
+
:linen => [0.980392156862745,0.941176470588235,0.901960784313726],
|
354
|
+
:magenta => [1.0,0.0,1.0],
|
355
|
+
:maroon => [0.501960784313725,0.0,0.0],
|
356
|
+
:mediumAquaMarine => [0.4,0.803921568627451,0.666666666666667],
|
357
|
+
:mediumBlue => [0.0,0.0,0.803921568627451],
|
358
|
+
:mediumOrchid => [0.729411764705882,0.333333333333333,0.827450980392157],
|
359
|
+
:mediumPurple => [0.576470588235294,0.43921568627451,0.847058823529412],
|
360
|
+
:mediumSeaGreen => [0.235294117647059,0.701960784313725,0.443137254901961],
|
361
|
+
:mediumSlateBlue => [0.482352941176471,0.407843137254902,0.933333333333333],
|
362
|
+
:mediumSpringGreen => [0.0,0.980392156862745,0.603921568627451],
|
363
|
+
:mediumTurquoise => [0.282352941176471,0.819607843137255,0.8],
|
364
|
+
:mediumVioletRed => [0.780392156862745,0.0823529411764706,0.52156862745098],
|
365
|
+
:midnightBlue => [0.0980392156862745,0.0980392156862745,0.43921568627451],
|
366
|
+
:mintCream => [0.96078431372549,1.0,0.980392156862745],
|
367
|
+
:mistyRose => [1.0,0.894117647058824,0.882352941176471],
|
368
|
+
:moccasin => [1.0,0.894117647058824,0.709803921568627],
|
369
|
+
:navajoWhite => [1.0,0.870588235294118,0.67843137254902],
|
370
|
+
:navy => [0.0,0.0,0.501960784313725],
|
371
|
+
:oldLace => [0.992156862745098,0.96078431372549,0.901960784313726],
|
372
|
+
:olive => [0.501960784313725,0.501960784313725,0.0],
|
373
|
+
:oliveDrab => [0.419607843137255,0.556862745098039,0.137254901960784],
|
374
|
+
:orange => [1.0,0.647058823529412,0.0],
|
375
|
+
:orangeRed => [1.0,0.270588235294118,0.0],
|
376
|
+
:orchid => [0.854901960784314,0.43921568627451,0.83921568627451],
|
377
|
+
:paleGoldenRod => [0.933333333333333,0.909803921568627,0.666666666666667],
|
378
|
+
:paleGreen => [0.596078431372549,0.984313725490196,0.596078431372549],
|
379
|
+
:paleTurquoise => [0.686274509803922,0.933333333333333,0.933333333333333],
|
380
|
+
:paleVioletRed => [0.847058823529412,0.43921568627451,0.576470588235294],
|
381
|
+
:papayaWhip => [1.0,0.937254901960784,0.835294117647059],
|
382
|
+
:peachPuff => [1.0,0.854901960784314,0.725490196078431],
|
383
|
+
:peru => [0.803921568627451,0.52156862745098,0.247058823529412],
|
384
|
+
:pink => [1.0,0.752941176470588,0.796078431372549],
|
385
|
+
:plum => [0.866666666666667,0.627450980392157,0.866666666666667],
|
386
|
+
:powderBlue => [0.690196078431373,0.87843137254902,0.901960784313726],
|
387
|
+
:purple => [0.501960784313725,0.0,0.501960784313725],
|
388
|
+
:red => [1.0,0.0,0.0],
|
389
|
+
:rosyBrown => [0.737254901960784,0.56078431372549,0.56078431372549],
|
390
|
+
:royalBlue => [0.254901960784314,0.411764705882353,0.882352941176471],
|
391
|
+
:saddleBrown => [0.545098039215686,0.270588235294118,0.0745098039215686],
|
392
|
+
:salmon => [0.980392156862745,0.501960784313725,0.447058823529412],
|
393
|
+
:sandyBrown => [0.956862745098039,0.643137254901961,0.376470588235294],
|
394
|
+
:seaGreen => [0.180392156862745,0.545098039215686,0.341176470588235],
|
395
|
+
:seaShell => [1.0,0.96078431372549,0.933333333333333],
|
396
|
+
:sienna => [0.627450980392157,0.32156862745098,0.176470588235294],
|
397
|
+
:silver => [0.752941176470588,0.752941176470588,0.752941176470588],
|
398
|
+
:skyBlue => [0.529411764705882,0.807843137254902,0.92156862745098],
|
399
|
+
:slateBlue => [0.415686274509804,0.352941176470588,0.803921568627451],
|
400
|
+
:slateGray => [0.43921568627451,0.501960784313725,0.564705882352941],
|
401
|
+
:slateGrey => [0.43921568627451,0.501960784313725,0.564705882352941],
|
402
|
+
:snow => [1.0,0.980392156862745,0.980392156862745],
|
403
|
+
:springGreen => [0.0,1.0,0.498039215686275],
|
404
|
+
:steelBlue => [0.274509803921569,0.509803921568627,0.705882352941177],
|
405
|
+
:tan => [0.823529411764706,0.705882352941177,0.549019607843137],
|
406
|
+
:teal => [0.0,0.501960784313725,0.501960784313725],
|
407
|
+
:thistle => [0.847058823529412,0.749019607843137,0.847058823529412],
|
408
|
+
:tomato => [1.0,0.388235294117647,0.27843137254902],
|
409
|
+
:turquoise => [0.250980392156863,0.87843137254902,0.815686274509804],
|
410
|
+
:violet => [0.933333333333333,0.509803921568627,0.933333333333333],
|
411
|
+
:wheat => [0.96078431372549,0.870588235294118,0.701960784313725],
|
412
|
+
:white => [1.0,1.0,1.0],
|
413
|
+
:whiteSmoke => [0.96078431372549,0.96078431372549,0.96078431372549],
|
414
|
+
:yellow => [1.0,1.0,0.0],
|
415
|
+
:yellowGreen => [0.603921568627451,0.803921568627451,0.196078431372549]
|
406
416
|
]
|
407
417
|
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
418
|
+
CMYK=RGhost::Constants::HashKeyMethodClass[
|
419
|
+
:AliceBlue => [0.0588235294117647,0.0274509803921569,0.0,0.0],
|
420
|
+
:AntiqueWhite => [0.0,0.06,0.14,0.0196078431372549],
|
421
|
+
:Aqua => [1.0,0.0,0.0,0.0],
|
422
|
+
:Aquamarine => [0.501960784313725,0.0,0.168627450980392,0.0],
|
423
|
+
:Azure => [0.0588235294117647,0.0,0.0,0.0],
|
424
|
+
:Beige => [0.0,0.0,0.102040816326531,0.0392156862745098],
|
425
|
+
:Bisque => [0.0,0.105882352941176,0.231372549019608,0.0],
|
426
|
+
:Black => [0.0,0.0,0.0,1.0],
|
427
|
+
:BlanchedAlmond => [0.0,0.0784313725490197,0.196078431372549,0.0],
|
428
|
+
:Blue => [1.0,1.0,0.0,0.0],
|
429
|
+
:BlueViolet => [0.389380530973451,0.809734513274336,0.0,0.113725490196078],
|
430
|
+
:Brown => [0.0,0.745454545454545,0.745454545454545,0.352941176470588],
|
431
|
+
:BurlyWood => [0.0,0.171171171171171,0.391891891891892,0.129411764705882],
|
432
|
+
:CadetBlue => [0.40625,0.0125,0.0,0.372549019607843],
|
433
|
+
:Chartreuse => [0.501960784313725,0.0,1.0,0.0],
|
434
|
+
:Chocolate => [0.0,0.5,0.857142857142857,0.176470588235294],
|
435
|
+
:Coral => [0.0,0.501960784313725,0.686274509803922,0.0],
|
436
|
+
:CornflowerBlue => [0.578059071729958,0.371308016877637,0.0,0.0705882352941176],
|
437
|
+
:Cornsilk => [0.0,0.0274509803921569,0.137254901960784,0.0],
|
438
|
+
:Crimson => [0.0,0.909090909090909,0.727272727272727,0.137254901960784],
|
439
|
+
:Cyan => [1.0,0.0,0.0,0.0],
|
440
|
+
:DarkBlue => [1.0,1.0,0.0,0.454901960784314],
|
441
|
+
:DarkCyan => [1.0,0.0,0.0,0.454901960784314],
|
442
|
+
:DarkGoldenRod => [0.0,0.271739130434783,0.940217391304348,0.27843137254902],
|
443
|
+
:DarkGray => [0.0,0.0,0.0,0.337254901960784],
|
444
|
+
:DarkGreen => [1.0,0.0,1.0,0.607843137254902],
|
445
|
+
:DarkGrey => [0.0,0.0,0.0,0.337254901960784],
|
446
|
+
:DarkKhaki => [0.0,0.0317460317460318,0.433862433862434,0.258823529411765],
|
447
|
+
:DarkMagenta => [0.0,1.0,0.0,0.454901960784314],
|
448
|
+
:DarkOliveGreen => [0.205607476635514,0.0,0.560747663551402,0.580392156862745],
|
449
|
+
:DarkOrchid => [0.25,0.754901960784314,0.0,0.2],
|
450
|
+
:DarkRed => [0.0,1.0,1.0,0.454901960784314],
|
451
|
+
:DarkSalmon => [0.0,0.356223175965665,0.476394849785408,0.0862745098039216],
|
452
|
+
:DarkSeaGreen => [0.23936170212766,0.0,0.23936170212766,0.262745098039216],
|
453
|
+
:DarkSlateBlue => [0.482014388489209,0.56115107913669,0.0,0.454901960784314],
|
454
|
+
:DarkSlateGray => [0.405063291139241,0.0,0.0,0.690196078431373],
|
455
|
+
:DarkSlateGrey => [0.405063291139241,0.0,0.0,0.690196078431373],
|
456
|
+
:DarkTurquoise => [1.0,0.0143540669856459,0.0,0.180392156862745],
|
457
|
+
:DarkViolet => [0.298578199052133,1.0,0.0,0.172549019607843],
|
458
|
+
:Darkorange => [0.0,0.450980392156863,1.0,0.0],
|
459
|
+
:DeepPink => [0.0,0.92156862745098,0.423529411764706,0.0],
|
460
|
+
:DeepSkyBlue => [1.0,0.250980392156863,0.0,0.0],
|
461
|
+
:DimGray => [0.0,0.0,0.0,0.588235294117647],
|
462
|
+
:DimGrey => [0.0,0.0,0.0,0.588235294117647],
|
463
|
+
:DodgerBlue => [0.882352941176471,0.435294117647059,0.0,0.0],
|
464
|
+
:FireBrick => [0.0,0.808988764044944,0.808988764044944,0.301960784313726],
|
465
|
+
:FloralWhite => [0.0,0.0196078431372549,0.0588235294117647,0.0],
|
466
|
+
:ForestGreen => [0.755395683453237,0.0,0.755395683453237,0.454901960784314],
|
467
|
+
:Fuchsia => [0.0,1.0,0.0,0.0],
|
468
|
+
:Gainsboro => [0.0,0.0,0.0,0.137254901960784],
|
469
|
+
:GhostWhite => [0.0274509803921569,0.0274509803921569,0.0,0.0],
|
470
|
+
:Gold => [0.0,0.156862745098039,1.0,0.0],
|
471
|
+
:GoldenRod => [0.0,0.243119266055046,0.853211009174312,0.145098039215686],
|
472
|
+
:Gray => [0.0,0.0,0.0,0.498039215686275],
|
473
|
+
:Green => [1.0,0.0,1.0,0.498039215686275],
|
474
|
+
:GreenYellow => [0.32156862745098,0.0,0.815686274509804,0.0],
|
475
|
+
:Grey => [0.0,0.0,0.0,0.498039215686275],
|
476
|
+
:HoneyDew => [0.0588235294117647,0.0,0.0588235294117647,0.0],
|
477
|
+
:HotPink => [0.0,0.588235294117647,0.294117647058823,0.0],
|
478
|
+
:IndianRed => [0.0,0.551219512195122,0.551219512195122,0.196078431372549],
|
479
|
+
:Indigo => [0.423076923076923,1.0,0.0,0.490196078431373],
|
480
|
+
:Ivory => [0.0,0.0,0.0588235294117647,0.0],
|
481
|
+
:Khaki => [0.0,0.0416666666666666,0.416666666666667,0.0588235294117647],
|
482
|
+
:LavenderBlush => [0.0,0.0588235294117647,0.0392156862745098,0.0],
|
483
|
+
:Lavender => [0.0799999999999999,0.0799999999999999,0.0,0.0196078431372549],
|
484
|
+
:LawnGreen => [0.507936507936508,0.0,1.0,0.0117647058823529],
|
485
|
+
:LemonChiffon => [0.0,0.0196078431372549,0.196078431372549,0.0],
|
486
|
+
:LightBlue => [0.247826086956522,0.0608695652173913,0.0,0.0980392156862745],
|
487
|
+
:LightCoral => [0.0,0.466666666666667,0.466666666666667,0.0588235294117647],
|
488
|
+
:LightCyan => [0.12156862745098,0.0,0.0,0.0],
|
489
|
+
:LightGoldenRodYellow => [0.0,0.0,0.16,0.0196078431372549],
|
490
|
+
:LightGray => [0.0,0.0,0.0,0.172549019607843],
|
491
|
+
:LightGreen => [0.394957983193277,0.0,0.394957983193277,0.0666666666666667],
|
492
|
+
:LightGrey => [0.0,0.0,0.0,0.172549019607843],
|
493
|
+
:LightPink => [0.0,0.286274509803922,0.243137254901961,0.0],
|
494
|
+
:LightSalmon => [0.0,0.372549019607843,0.52156862745098,0.0],
|
495
|
+
:LightSeaGreen => [0.820224719101124,0.0,0.0449438202247191,0.301960784313726],
|
496
|
+
:LightSkyBlue => [0.46,0.176,0.0,0.0196078431372549],
|
497
|
+
:LightSlateGray => [0.222222222222222,0.111111111111111,0.0,0.4],
|
498
|
+
:LightSlateGrey => [0.222222222222222,0.111111111111111,0.0,0.4],
|
499
|
+
:LightSteelBlue => [0.207207207207207,0.117117117117117,0.0,0.129411764705882],
|
500
|
+
:LightYellow => [0.0,0.0,0.12156862745098,0.0],
|
501
|
+
:Lime => [1.0,0.0,1.0,0.0],
|
502
|
+
:LimeGreen => [0.75609756097561,0.0,0.75609756097561,0.196078431372549],
|
503
|
+
:Linen => [0.0,0.04,0.0799999999999999,0.0196078431372549],
|
504
|
+
:Magenta => [0.0,1.0,0.0,0.0],
|
505
|
+
:Maroon => [0.0,1.0,1.0,0.498039215686275],
|
506
|
+
:MediumAquaMarine => [0.502439024390244,0.0,0.170731707317073,0.196078431372549],
|
507
|
+
:MediumBlue => [1.0,1.0,0.0,0.196078431372549],
|
508
|
+
:MediumOrchid => [0.118483412322275,0.597156398104265,0.0,0.172549019607843],
|
509
|
+
:MediumPurple => [0.319444444444444,0.481481481481481,0.0,0.152941176470588],
|
510
|
+
:MediumSeaGreen => [0.664804469273743,0.0,0.368715083798883,0.298039215686275],
|
511
|
+
:MediumSlateBlue => [0.483193277310924,0.563025210084034,0.0,0.0666666666666667],
|
512
|
+
:MediumSpringGreen => [1.0,0.0,0.384,0.0196078431372549],
|
513
|
+
:MediumTurquoise => [0.655502392344498,0.0,0.0239234449760765,0.180392156862745],
|
514
|
+
:MediumVioletRed => [0.0,0.894472361809045,0.331658291457286,0.219607843137255],
|
515
|
+
:MidnightBlue => [0.776785714285714,0.776785714285714,0.0,0.56078431372549],
|
516
|
+
:MintCream => [0.0392156862745098,0.0,0.0196078431372549,0.0],
|
517
|
+
:MistyRose => [0.0,0.105882352941176,0.117647058823529,0.0],
|
518
|
+
:Moccasin => [0.0,0.105882352941176,0.290196078431373,0.0],
|
519
|
+
:NavajoWhite => [0.0,0.129411764705882,0.32156862745098,0.0],
|
520
|
+
:Navy => [1.0,1.0,0.0,0.498039215686275],
|
521
|
+
:OldLace => [0.0,0.0316205533596838,0.0909090909090909,0.00784313725490193],
|
522
|
+
:Olive => [0.0,0.0,1.0,0.498039215686275],
|
523
|
+
:OliveDrab => [0.246478873239437,0.0,0.753521126760563,0.443137254901961],
|
524
|
+
:Orange => [0.0,0.352941176470588,1.0,0.0],
|
525
|
+
:OrangeRed => [0.0,0.729411764705882,1.0,0.0],
|
526
|
+
:Orchid => [0.0,0.486238532110092,0.0183486238532109,0.145098039215686],
|
527
|
+
:PaleGoldenRod => [0.0,0.0252100840336135,0.285714285714286,0.0666666666666667],
|
528
|
+
:PaleGreen => [0.394422310756972,0.0,0.394422310756972,0.015686274509804],
|
529
|
+
:PaleTurquoise => [0.264705882352941,0.0,0.0,0.0666666666666667],
|
530
|
+
:PaleVioletRed => [0.0,0.481481481481481,0.319444444444444,0.152941176470588],
|
531
|
+
:PapayaWhip => [0.0,0.0627450980392157,0.164705882352941,0.0],
|
532
|
+
:PeachPuff => [0.0,0.145098039215686,0.274509803921569,0.0],
|
533
|
+
:Peru => [0.0,0.351219512195122,0.692682926829268,0.196078431372549],
|
534
|
+
:Pink => [0.0,0.247058823529412,0.203921568627451,0.0],
|
535
|
+
:Plum => [0.0,0.276018099547511,0.0,0.133333333333333],
|
536
|
+
:PowderBlue => [0.234782608695652,0.0260869565217392,0.0,0.0980392156862745],
|
537
|
+
:Purple => [0.0,1.0,0.0,0.498039215686275],
|
538
|
+
:Red => [0.0,1.0,1.0,0.0],
|
539
|
+
:RosyBrown => [0.0,0.23936170212766,0.23936170212766,0.262745098039216],
|
540
|
+
:RoyalBlue => [0.711111111111111,0.533333333333333,0.0,0.117647058823529],
|
541
|
+
:SaddleBrown => [0.0,0.503597122302158,0.863309352517986,0.454901960784314],
|
542
|
+
:Salmon => [0.0,0.488,0.544,0.0196078431372549],
|
543
|
+
:SandyBrown => [0.0,0.327868852459016,0.60655737704918,0.0431372549019607],
|
544
|
+
:SeaGreen => [0.669064748201439,0.0,0.37410071942446,0.454901960784314],
|
545
|
+
:SeaShell => [0.0,0.0392156862745098,0.0666666666666667,0.0],
|
546
|
+
:Sienna => [0.0,0.4875,0.71875,0.372549019607843],
|
547
|
+
:Silver => [0.0,0.0,0.0,0.247058823529412],
|
548
|
+
:SkyBlue => [0.425531914893617,0.123404255319149,0.0,0.0784313725490197],
|
549
|
+
:SlateBlue => [0.482926829268293,0.560975609756098,0.0,0.196078431372549],
|
550
|
+
:SlateGray => [0.222222222222222,0.111111111111111,0.0,0.435294117647059],
|
551
|
+
:SlateGrey => [0.222222222222222,0.111111111111111,0.0,0.435294117647059],
|
552
|
+
:Snow => [0.0,0.0196078431372549,0.0196078431372549,0.0],
|
553
|
+
:SpringGreen => [1.0,0.0,0.501960784313725,0.0],
|
554
|
+
:SteelBlue => [0.611111111111111,0.277777777777778,0.0,0.294117647058823],
|
555
|
+
:Tan => [0.0,0.142857142857143,0.333333333333333,0.176470588235294],
|
556
|
+
:Teal => [1.0,0.0,0.0,0.498039215686275],
|
557
|
+
:Thistle => [0.0,0.115740740740741,0.0,0.152941176470588],
|
558
|
+
:Tomato => [0.0,0.611764705882353,0.72156862745098,0.0],
|
559
|
+
:Turquoise => [0.714285714285714,0.0,0.0714285714285714,0.12156862745098],
|
560
|
+
:Violet => [0.0,0.453781512605042,0.0,0.0666666666666667],
|
561
|
+
:Wheat => [0.0,0.0938775510204082,0.269387755102041,0.0392156862745098],
|
562
|
+
:White => [0.0,0.0,0.0,0.0],
|
563
|
+
:WhiteSmoke => [0.0,0.0,0.0,0.0392156862745098],
|
564
|
+
:Yellow => [0.0,0.0,1.0,0.0],
|
565
|
+
:YellowGreen => [0.248780487804878,0.0,0.75609756097561,0.196078431372549]
|
556
566
|
]
|
557
567
|
|
558
|
-
|
559
|
-
#
|
568
|
+
end
|
569
|
+
#Standard papers
|
560
570
|
module Papers
|
561
571
|
STANDARD={
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
572
|
+
"11x17" => [792,1224],
|
573
|
+
:ledger => [1224,792],
|
574
|
+
:legal => [612,1008],
|
575
|
+
:letter => [612,792],
|
576
|
+
:lettersmall=> [612,792],
|
577
|
+
:archE => [2592,3456],
|
578
|
+
:archD => [1728,2592],
|
579
|
+
:archC => [1296,1728],
|
580
|
+
:archB => [864,1296],
|
581
|
+
:archA => [648,864],
|
582
|
+
#ISO standard]
|
583
|
+
:a0 => [2384,3370],
|
584
|
+
:a1 => [1684,2384],
|
585
|
+
:a2 => [1191,1684],
|
586
|
+
:a3 => [842,1191],
|
587
|
+
:a4 => [595,842],
|
588
|
+
:a4small => [595,842],
|
589
|
+
:a5 => [420,595],
|
590
|
+
:a6 => [297,420],
|
591
|
+
:a7 => [210,297],
|
592
|
+
:a8 => [148,210],
|
593
|
+
:a9 => [105,148],
|
594
|
+
:a10 => [73,105],
|
595
|
+
:isob0 => [2835,4008],
|
596
|
+
:isob1 => [2004,2835],
|
597
|
+
:isob2 => [1417,2004],
|
598
|
+
:isob3 => [1001,1417],
|
599
|
+
:isob4 => [709,1001],
|
600
|
+
:isob5 => [499,709],
|
601
|
+
:isob6 => [354,499],
|
602
|
+
:c0 => [2599,3677],
|
603
|
+
:c1 => [1837,2599],
|
604
|
+
:c2 => [1298,1837],
|
605
|
+
:c3 => [918,1298],
|
606
|
+
:c4 => [649,918],
|
607
|
+
:c5 => [459,649],
|
608
|
+
:c6 => [323,459],
|
609
|
+
#JIS standard
|
610
|
+
:jisb0 => [1030,1456],
|
611
|
+
:jisb1 => [728,1030],
|
612
|
+
:jisb2 => [515,728],
|
613
|
+
:jisb3 => [364,515],
|
614
|
+
:jisb4 => [257,364],
|
615
|
+
:jisb5 => [182,257],
|
616
|
+
:jisb6 => [128,182],
|
617
|
+
#Other
|
618
|
+
:flsa => [612,936],
|
619
|
+
:flse => [612,936],
|
620
|
+
:halfletter => [396,612]
|
621
|
+
}
|
612
622
|
|
613
623
|
end
|
614
624
|
end
|