rghost-ruby1.9-beta 0.8.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. data/lib/rghost.rb +18 -0
  2. data/lib/rghost/border.rb +44 -0
  3. data/lib/rghost/callback.rb +58 -0
  4. data/lib/rghost/circle.rb +102 -0
  5. data/lib/rghost/color.rb +175 -0
  6. data/lib/rghost/constants.rb +626 -0
  7. data/lib/rghost/convert.rb +43 -0
  8. data/lib/rghost/cursor.rb +124 -0
  9. data/lib/rghost/dash.rb +59 -0
  10. data/lib/rghost/document.rb +546 -0
  11. data/lib/rghost/document_callback_facade.rb +64 -0
  12. data/lib/rghost/dsc_entry.rb +20 -0
  13. data/lib/rghost/dynamic_document_callback.rb +15 -0
  14. data/lib/rghost/eps.rb +31 -0
  15. data/lib/rghost/font.rb +48 -0
  16. data/lib/rghost/font_map.rb +54 -0
  17. data/lib/rghost/frame.rb +105 -0
  18. data/lib/rghost/function.rb +38 -0
  19. data/lib/rghost/gif.rb +41 -0
  20. data/lib/rghost/graphic.rb +26 -0
  21. data/lib/rghost/grid/base_grid.rb +228 -0
  22. data/lib/rghost/grid/callback_facade.rb +136 -0
  23. data/lib/rghost/grid/csv_grid.rb +51 -0
  24. data/lib/rghost/grid/dynamic_callback.rb +12 -0
  25. data/lib/rghost/grid/field_format.rb +43 -0
  26. data/lib/rghost/grid/grid.rb +15 -0
  27. data/lib/rghost/grid/header.rb +120 -0
  28. data/lib/rghost/grid/matrix.rb +10 -0
  29. data/lib/rghost/grid/rails_grid.rb +74 -0
  30. data/lib/rghost/grid/static_callback.rb +13 -0
  31. data/lib/rghost/grid/style/border_lines.rb +44 -0
  32. data/lib/rghost/grid/style/bottom_lines.rb +28 -0
  33. data/lib/rghost/grid/style/old_forms.rb +28 -0
  34. data/lib/rghost/grid/style/style.rb +8 -0
  35. data/lib/rghost/gs_alone.rb +25 -0
  36. data/lib/rghost/helpers.rb +13 -0
  37. data/lib/rghost/horizontal_line.rb +45 -0
  38. data/lib/rghost/how_to.rb +75 -0
  39. data/lib/rghost/image.rb +26 -0
  40. data/lib/rghost/jpeg.rb +39 -0
  41. data/lib/rghost/line.rb +89 -0
  42. data/lib/rghost/line_width.rb +28 -0
  43. data/lib/rghost/load.rb +43 -0
  44. data/lib/rghost/newpath.rb +19 -0
  45. data/lib/rghost/paper.rb +147 -0
  46. data/lib/rghost/parse_text.rb +53 -0
  47. data/lib/rghost/pdf_security.rb +36 -0
  48. data/lib/rghost/point.rb +23 -0
  49. data/lib/rghost/point_with_command.rb +17 -0
  50. data/lib/rghost/polygon.rb +75 -0
  51. data/lib/rghost/ps/AdobeExpert.enc +258 -0
  52. data/lib/rghost/ps/AdobeLatinEncoding.enc +258 -0
  53. data/lib/rghost/ps/Bengali.enc +386 -0
  54. data/lib/rghost/ps/CodePage1250.enc +258 -0
  55. data/lib/rghost/ps/CodePage1251.enc +258 -0
  56. data/lib/rghost/ps/CodePage1252.enc +258 -0
  57. data/lib/rghost/ps/CodePage1253.enc +258 -0
  58. data/lib/rghost/ps/CodePage1254.enc +258 -0
  59. data/lib/rghost/ps/CodePage1256.enc +258 -0
  60. data/lib/rghost/ps/CodePage1257.enc +258 -0
  61. data/lib/rghost/ps/CodePage1258.enc +258 -0
  62. data/lib/rghost/ps/CodePage874.enc +258 -0
  63. data/lib/rghost/ps/Fontmap +5 -0
  64. data/lib/rghost/ps/IsoLatin.enc +352 -0
  65. data/lib/rghost/ps/MacCentralEuropean.enc +258 -0
  66. data/lib/rghost/ps/MacCyrillice.desnc +258 -0
  67. data/lib/rghost/ps/MacGreek.enc +258 -0
  68. data/lib/rghost/ps/MacHebrew.enc +258 -0
  69. data/lib/rghost/ps/TeX-CorkEncoding.enc +258 -0
  70. data/lib/rghost/ps/TeX-LGR-Greek.enc +258 -0
  71. data/lib/rghost/ps/TeX-T2AModified2Encoding.enc +258 -0
  72. data/lib/rghost/ps/TeX-T2BAdobeEncoding.enc +258 -0
  73. data/lib/rghost/ps/TeX-T2CAdobeEncoding.enc +258 -0
  74. data/lib/rghost/ps/TeX-X2AdobeEncoding.enc +258 -0
  75. data/lib/rghost/ps/TeX-XL2encoding.enc +258 -0
  76. data/lib/rghost/ps/TeXMathExtensionEncoding.enc +258 -0
  77. data/lib/rghost/ps/TeXMathItalicEncoding.enc +258 -0
  78. data/lib/rghost/ps/TeXMathSymbolEncoding.enc +258 -0
  79. data/lib/rghost/ps/US-ASCII.enc +258 -0
  80. data/lib/rghost/ps/UTF-8.enc +3 -0
  81. data/lib/rghost/ps/_cusor.ps +46 -0
  82. data/lib/rghost/ps/basic.ps +25 -0
  83. data/lib/rghost/ps/begin_document.ps +8 -0
  84. data/lib/rghost/ps/callbacks.ps +175 -0
  85. data/lib/rghost/ps/code128.font +344 -0
  86. data/lib/rghost/ps/code39.font +195 -0
  87. data/lib/rghost/ps/cursor.ps +106 -0
  88. data/lib/rghost/ps/datagrid.ps +55 -0
  89. data/lib/rghost/ps/developer.ps +237 -0
  90. data/lib/rghost/ps/ean.font +150 -0
  91. data/lib/rghost/ps/eps.ps +42 -0
  92. data/lib/rghost/ps/font.ps +38 -0
  93. data/lib/rghost/ps/frame.ps +16 -0
  94. data/lib/rghost/ps/gif.ps +150 -0
  95. data/lib/rghost/ps/horizontal_line.ps +4 -0
  96. data/lib/rghost/ps/i25.font +103 -0
  97. data/lib/rghost/ps/jpeg.ps +122 -0
  98. data/lib/rghost/ps/link.ps +22 -0
  99. data/lib/rghost/ps/paper.ps +8 -0
  100. data/lib/rghost/ps/rect_link.ps +17 -0
  101. data/lib/rghost/ps/rectangle.ps +5 -0
  102. data/lib/rghost/ps/rghost_default_template.eps +1532 -0
  103. data/lib/rghost/ps/row.ps +4 -0
  104. data/lib/rghost/ps/show.ps +21 -0
  105. data/lib/rghost/ps/table_callbacks.ps +96 -0
  106. data/lib/rghost/ps/text.ps +63 -0
  107. data/lib/rghost/ps/textarea.ps +11 -0
  108. data/lib/rghost/ps/type.ps +1 -0
  109. data/lib/rghost/ps/unit.ps +3 -0
  110. data/lib/rghost/ps/vertical_line.ps +12 -0
  111. data/lib/rghost/ps/virtual_pages.ps +55 -0
  112. data/lib/rghost/ps_facade.rb +253 -0
  113. data/lib/rghost/ps_object.rb +55 -0
  114. data/lib/rghost/rectangle_link.rb +65 -0
  115. data/lib/rghost/rgengine.so +0 -0
  116. data/lib/rghost/ruby_ghost_config.rb +243 -0
  117. data/lib/rghost/ruby_ghost_engine.rb +156 -0
  118. data/lib/rghost/ruby_ghost_version.rb +8 -0
  119. data/lib/rghost/ruby_to_ps.rb +78 -0
  120. data/lib/rghost/scale.rb +29 -0
  121. data/lib/rghost/shape_content.rb +23 -0
  122. data/lib/rghost/show.rb +88 -0
  123. data/lib/rghost/static_document_callback.rb +18 -0
  124. data/lib/rghost/text.rb +44 -0
  125. data/lib/rghost/text_in.rb +51 -0
  126. data/lib/rghost/text_link_in.rb +42 -0
  127. data/lib/rghost/textarea.rb +88 -0
  128. data/lib/rghost/units.rb +82 -0
  129. data/lib/rghost/variable.rb +12 -0
  130. data/lib/rghost/vertical_line.rb +37 -0
  131. data/lib/rghost/virtual_pages.rb +42 -0
  132. metadata +185 -0
@@ -0,0 +1,195 @@
1
+ %!FontType1-1.1: Code39JK 001.000
2
+ %%CreationDate: Thu Feb 22 12:20:33 2001
3
+ %%VMusage: 10488 6784
4
+ %
5
+ % This Type 1 PostScript font implements the Code 39 bar code.
6
+ % Copyright (C) 2001 Jan Karrman. All rights reserved.
7
+ %
8
+ % This program is free software; you can redistribute it and/or modify
9
+ % it under the terms of the GNU General Public License as published by
10
+ % the Free Software Foundation; either version 2 of the License, or
11
+ % (at your option) any later version.
12
+ %
13
+ % This program is distributed in the hope that it will be useful,
14
+ % but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ % GNU General Public License for more details.
17
+ %
18
+ % You should have received a copy of the GNU General Public License
19
+ % along with this program; if not, write to the Free Software
20
+ % Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21
+ %
22
+ 11 dict begin
23
+ /FontInfo 10 dict dup begin
24
+ /version (001.000) readonly def
25
+ /Notice (Copyright (C) 2001 Jan Karrman. All rights reserved.) readonly def
26
+ /FullName (Code 39 JK) readonly def
27
+ /FamilyName (Code 39 JK) readonly def
28
+ /Weight (Medium) readonly def
29
+ /ItalicAngle 0 def
30
+ /isFixedPitch false def
31
+ /UnderlinePosition 0 def
32
+ /UnderlineThickness 0 def
33
+ end readonly def
34
+ /FontName /Code39JK def
35
+ /Encoding 256 array
36
+ 0 1 255 {1 index exch /.notdef put} for
37
+ dup 32 /space put
38
+ dup 36 /dollar put
39
+ dup 37 /percent put
40
+ dup 42 /asterisk put
41
+ dup 43 /plus put
42
+ dup 45 /hyphen put
43
+ dup 46 /period put
44
+ dup 47 /slash put
45
+ dup 48 /zero put
46
+ dup 49 /one put
47
+ dup 50 /two put
48
+ dup 51 /three put
49
+ dup 52 /four put
50
+ dup 53 /five put
51
+ dup 54 /six put
52
+ dup 55 /seven put
53
+ dup 56 /eight put
54
+ dup 57 /nine put
55
+ dup 65 /A put
56
+ dup 66 /B put
57
+ dup 67 /C put
58
+ dup 68 /D put
59
+ dup 69 /E put
60
+ dup 70 /F put
61
+ dup 71 /G put
62
+ dup 72 /H put
63
+ dup 73 /I put
64
+ dup 74 /J put
65
+ dup 75 /K put
66
+ dup 76 /L put
67
+ dup 77 /M put
68
+ dup 78 /N put
69
+ dup 79 /O put
70
+ dup 80 /P put
71
+ dup 81 /Q put
72
+ dup 82 /R put
73
+ dup 83 /S put
74
+ dup 84 /T put
75
+ dup 85 /U put
76
+ dup 86 /V put
77
+ dup 87 /W put
78
+ dup 88 /X put
79
+ dup 89 /Y put
80
+ dup 90 /Z put
81
+ readonly def
82
+ /PaintType 0 def
83
+ /FontType 1 def
84
+ /FontMatrix [0.001 0 0 0.001 0 0] readonly def
85
+ /UniqueID 5119294 def
86
+ /FontBBox [0 0 360 800] readonly def
87
+ currentdict end
88
+ currentfile eexec
89
+ f983ef0097ece636fb4a96c74d26ab84185f6dfa4a16a7a1c27bbe3f1156aea6
90
+ 98df331278ddd83a95bfe3721babb069504235a8fca9f8012c70beaa7df68b59
91
+ 3bd9d4efa3ace1dece221596c4dfc26c5c23e53e56473f4d3d6af6250e05d49b
92
+ 73f7a3256c4c7009b943617e186e6e406c0452dfa948d4c47a33656eb964cb53
93
+ dee08929b0003bd7ddaccd7fa8af1d9d747bfddcfef440f31be75ad6f19c971e
94
+ 720977e21ff5df9eb46cffc8637d5b56f558338bcfaa175db8707efb880ccfa5
95
+ be787a0185c3164b2213ed9d4933bfb0142b34cf3296a02575d97c10fe982329
96
+ 3233e30900b1b428c0429f1922d7ec6f01b8d1a72d48f3e093a40a00ffa768e2
97
+ d3e1162c36d8cf116197ee43f5301c217e6f9726917a19d55fd1e8d25e950459
98
+ ff7e42293071631ee92822a5f9f812fa59252b169861541bc334cff66cbb2d61
99
+ 52330092f967f0afe830c391f42739ec786a5e5bbe7b7211120e9acf4c32d9ea
100
+ 97c44b45b3f6d3906afd46dc59ebc162dd11d0a03e32eb21ecc44a1c7f68a6fa
101
+ 2da8f683444c371c1b223bdc8f22d81fdba645d4aac65208590b5df9358ef42c
102
+ 7bdc233984ccfd30846b35941be9c3ac378d34ffa48e9e425c1ab97d4c122677
103
+ 7ff90303deadc59a42e51826dc065a6cc2e708e4cc66f604f52076e022cefce7
104
+ 7223a0f12090d4c370dbb8680834a09b83200f66822a15d9287d786326762b9e
105
+ 86709e3f2775d350eec892870b3b34eda9315924705fabf8ebeab98ae22449d3
106
+ 2e9104f73511b5d8c6b77fe1f2a23042360baa7cc12863ff9577dba7e2b193a3
107
+ 437338ce1b4715f5f72e5b0621c12774a38eefc64e6ec560809f68ef25d3770a
108
+ 90c9f106f9574232f62a98d6a6d564b39554ce6fbc2469ab3963f0e81adefcb9
109
+ c13d9d8e005419ed384c80bd4f53e0bf55efa1632c0ffed21488373639267cee
110
+ 1412d4ceed8a9106d75ba9781383428f0ac5b8f9e5b130a53f708ed004c11458
111
+ 8277fc93fadaf0072baad1974097704a35828af5e9ea2231fa79ded4c93c6465
112
+ 8cfff250066d3094d027af1ff377117db766c2b6d84f4a0ff18cb75de0294ecb
113
+ bbc530d74620e71ed422b48b54489f9ba454260283842c0601b9a15cf3210eb6
114
+ d366e0ea5df852255f95ebc6e144676c53f6c1936868591243451b199ef64978
115
+ 6555f5d89a1c02f8c1c245b04fa691c71a46e0e7c26c3c27f26e1c8aae84dee6
116
+ c880e76ae9e6050c77ab738a90573137acc1ea3678647391581fd63bf2c94337
117
+ 16e4a47e377f24126dc9ecc9f9d120a96bf04a8f9080e4fbfdc1f93962074c41
118
+ 73591895540961a61b4ebf2189e19c682df3bf5e678491161e012e1a39d8b0ee
119
+ 56953d9080d87d90bb7c85a73953b8a2336638f17fc07bdabed372d2278ab84a
120
+ bc40440d5b685cfe6497116c736ce9813aaed18486c47832833cecee650bf780
121
+ 085f19dd5ba5c03364c051fe402b16560b508b0e4b60c7daec677f305ad303b4
122
+ 2ef4656506b8ddc1cd1998d0605173020d84edd1010257e962a9d8c62096c2a9
123
+ a461225bd98372f6336a7289fe3f2852573c77e376a545e5847bfbc1558128ba
124
+ b149d35fef3a7616952420958a5b2772d4443c52d507552694281de81372e742
125
+ 5b3c304c4e4aa53904c8f0e848acea7e904959205563c2155f48a5ceb50126bd
126
+ 1e5b619ecc05cda3489d11687667dafa8059d0adc8fd3b1f25e5e70ec37df8fe
127
+ 7444249d7c806249fbf5e45bff855bda025da96dc80a1fe921508d39e9e2b3e8
128
+ 442538a8a528ac7e4625e569a15717f70fa619113c9f9f69ab5f16b86dcccbbd
129
+ cf6bcdff94020acf1c510c844fc3427932281a21bdf13a49f8db6a3e888bb4d8
130
+ 2060165e08d3428f5f44f32553584421ddbba06bbf874352b30cc25104ffad8b
131
+ 9378574753ee8af2e29884445a8ea1cf2c394e7c905c9f5578c48c1f3d9bd135
132
+ 8f3b26b924818e3a5b0e3b90af115dd8154997dde42863be62fe49942cdcfeec
133
+ edcb38dabd23afbe20d9f18700345da0e4f3a1647fc2b29cab8209a964f0032c
134
+ dc45fad7edb94e1dc574ac9a702cae006d86c0999c107dd5129f6cecceb6e1b8
135
+ 35b53eaf32ca00bedebfa2bffc01c3733edb2513965f95681d0ab13f2188e328
136
+ 9773b193b7ef7fe2a6927f898f8098b3f61db4dbcddcc584b397f4b34ff3155e
137
+ 3a2f8914e521bef2bedc8412984a6ee9e8f778fc41204177a6392b510ba3632c
138
+ 801485e3216e8bed24254259d41066d884c6ede447b3e61803e7330fc6840f19
139
+ 69beb27e73b2a88836bddce8a1399e28f9dbaff4c0d51c4e58dc6e8837be0218
140
+ 05846d0afd5a29c166bbaa4d767ad1d0e6549f0c18597bc701afb56b80fce498
141
+ 16d006103e14c901e94771b3cee1135f180d121dd3953207011b280da7831edb
142
+ 03a7170bd937fed6d337ff2e364a6573abff53144aa21ab91e7aa07d20bbf195
143
+ 96cff361b33917290f4c2a44191943b78b4d384143e18e1b30db604a98e4d80e
144
+ 0e238aef92d8964072436a6e084f86e718f0227b146de41aed0478164ded09ef
145
+ 81139ee0cfee8cfa6e8fdde79d2351f3f406271e30f41432b016a006883b789c
146
+ 876d9e0cfef335e78d596e1b1c217074363a55fc5261766db0541acc9e1540d3
147
+ a7a3bbe6591b25866be0416172ad244eaf1c7a3b373573bf17de55fcded55d13
148
+ 45711e27248ab0e155fab1cb163a7d4c0207fc7e6ab4012ffeb7837f66b3f526
149
+ be1f3762ae9e4bbe20768c88e6bf86719a94fc323cc22db7bef746cdd87c2fba
150
+ 69a8ac401dec2f33a2d6a2c25bfb2c2e4c1d0a02737764afdc71d6c5b9cda9cc
151
+ 59690208c68f92c91a7a21d090584679245801b507a184c63deba8ae147e3cc1
152
+ 8d9f5ed12a2e3b3086ecdb4d03abd6123212227df157d06b8ea2bacb319f06de
153
+ 87625fb7a949fce79ca3f4ba09b71f00365d05c4fd583ca71700c502b3505098
154
+ 6d359100adad44cc2331b9cceac941e91f74467b910b772da9a8ddec760ded34
155
+ 077eeec300a0444313e4dbc7d2b29176bb34e8007f5cc3ac9586cceb56a317e1
156
+ 18bb69205b313361f7feceac84d688ee70d0ab3c5af9428d0b1b373adf018894
157
+ 3ba8e82d017f2855dd94c37dcc2c3a5661fc34db09e6fd3ab0e3019cfe4a4a8d
158
+ b01d6a48e74fc4aba7fb1bb9e8af6f476188fe75deb7da278d3b597c754368a9
159
+ d9b15c3319a7fd66370a4abddc47e428f884b4d359a7bcba799b2b1f8a6629d3
160
+ 5385caee9c04dbd5b6521f621473a62020f814ecbbbcc300e6a8cb1d729529b3
161
+ 9528e6872380e4777abfc41f437dda52759a251b93174298f5fc5752862fd62c
162
+ 865db358d52384e6b9649556a8b8a84f56393cfac7d8ef532cf911a76a3f996f
163
+ 2a747d0cb97798bcccc8cfa31cd3de4bc923e8a94369943e6cc34aeec4d99dbe
164
+ 5f02efd96263f7e639d08998742ef4d03f786e58b9b76e83a05b1fd3cc952b44
165
+ 049824cf808e95d868031089bf2606f77b39c8b82f0712eeefde6952ef7ed510
166
+ b468c03b3fe288e20f87538c9980301be5f0753611ffee00ada6436b8978b632
167
+ ad51185337a3862bebfafa0af6c5f276bafea34d202669787c3f8003c66c2871
168
+ 338dde6b629d9e8e94bc2bbc5583e1196f36e179de3d4861fd4dbb461e49b2a1
169
+ a775c12f8ab1a733a7597d6b2801020b7241babe073b8ecd1b6ac5ae872ddd3e
170
+ cb55324f6006c8d8979052fa8f2b4c13435488064c3ca2262dc75d3aa62e8a43
171
+ 9a723cc8c28c8076f3ed0e981845619e58c3d8e935a73ec8c24f8e4213880a2a
172
+ 69e1b61e10ed165826836d454db0a9233cad93e61a865035ffb446a53638f6a6
173
+ 0ae72bf6948ae2f80f337eabc92a7113dfe35c4de690c71349a5bdf18c1bc4e3
174
+ 47d2bbec3318fa751d4978922cb0653d9ba73ba3b430b153461e2deaec27dfaa
175
+ 39f7eaa8fae31bd85b7e9c88e4d9144930bca23d3e7e0cc5235b295bc597a12f
176
+ 71868bca353e31d728771ee6e7cc9e1c3b69472a39a9b1a4b50f321237daf0ff
177
+ 4ed8abeea87a8ad49f1876f6d51c88c6dec98ba9da1c393ac0adf7693fb14b19
178
+ 1d3ecad5b10a45d1a679f90f4cebf91454d89f7e2a0c5f2e474fcb095cfab2b1
179
+ 5bcc4b824d6860b5fe1505197e3a76773d0a737bd3fb568cd7d20b32e8d98613
180
+ 9d2973d000d180d77f907ba8c1ad684236e84aec0089e800ac98b126ffa78ad9
181
+ 16c3053e10ed7d8697fa6189327e9018f44370a8a3399d320e589f2b4bc2bd4c
182
+ f742b5c98b808c29c9e7442398ad0407494284ca2addf340ce5b51e0c5792589
183
+ 70d84434f2869055f84917e9a64787c5f5333b4cf78887a73836f14e6f58c980
184
+ 2c90ff4669b97267394826d854f35cb5abe96fe46d558fbc02a371e26972aff3
185
+ 2303941bcc1913ea8e90bbd916ad22745820f52ba160db1c36b811d927924cd6
186
+ 9784b3617cd20e8df06c5cf7dbcea9a59d74bd5de2595afdf90e37
187
+ 0000000000000000000000000000000000000000000000000000000000000000
188
+ 0000000000000000000000000000000000000000000000000000000000000000
189
+ 0000000000000000000000000000000000000000000000000000000000000000
190
+ 0000000000000000000000000000000000000000000000000000000000000000
191
+ 0000000000000000000000000000000000000000000000000000000000000000
192
+ 0000000000000000000000000000000000000000000000000000000000000000
193
+ 0000000000000000000000000000000000000000000000000000000000000000
194
+ 0000000000000000000000000000000000000000000000000000000000000000
195
+ cleartomark
@@ -0,0 +1,106 @@
1
+ /p{ pstack} def
2
+ /current_page 1 def
3
+ /current_vp 1 def
4
+
5
+ %vp = virtual_page
6
+ /new_vp? false def
7
+ /has_vp? false def
8
+ /start_vp{
9
+ /has_vp? true def
10
+ /current_vp 1 def
11
+ %/vp_params [ [20 cm 1 cm ] [10 cm 1 cm ] [7 cm 1 cm ] ] def
12
+ /vp_count vp_params length def
13
+ /source_limit_left limit_left def
14
+ /source_limit_right limit_right def
15
+ }def
16
+
17
+ /first_vp_page{
18
+ vp_params 0 get aload pop %pop
19
+ limit_left add
20
+ /limit_right exch def
21
+ /new_vp? true def
22
+ default_point
23
+ %before_virtual_page_create vp_callback
24
+ } def
25
+ /vp_proc{
26
+
27
+ has_vp? { start_vp before_virtual_page_create vp_callback first_vp_page } if
28
+
29
+ } def
30
+ /new_page_defaults{
31
+ /current_page inc
32
+ /current_row limit_top row row_height mul sub def
33
+ current_page count_pages eq { last_page } if
34
+ new_current_row_point
35
+ default_point
36
+ before_page_create callback
37
+ odd_or_even callback
38
+ before_virtual_page_create vp_callback
39
+ } def
40
+
41
+ /X{ currentpoint pop } def
42
+ /Y{ currentpoint exch pop} def
43
+ /nrdp{ next_row default_point } def
44
+ /next_page{
45
+ has_vp?{ (ok has virtual page\n) print
46
+ /row 1 def
47
+ current_vp vp_count lt {
48
+ default_point
49
+ after_virtual_page_create vp_callback
50
+
51
+ vp_params current_vp get
52
+ /current_vp inc
53
+ aload pop limit_right exch add /limit_left exch def
54
+ limit_left add /limit_right exch def
55
+ /current_row limit_top row row_height mul sub def
56
+ new_current_row_point
57
+ default_point
58
+ before_virtual_page_create vp_callback
59
+ /new_vp? true def
60
+ }{
61
+ after_page_create callback
62
+ /current_vp 1 def
63
+ /limit_left source_limit_left def
64
+ showpage
65
+ new_page_defaults
66
+ has_vp? {first_vp_page} if
67
+ } ifelse
68
+
69
+ new_current_row_point
70
+ default_point
71
+ }{
72
+ /row 1 def
73
+ /new_page? true def
74
+ /current_vp 1 def
75
+ after_page_create callback
76
+ showpage
77
+ /new_page? true def
78
+ new_page_defaults
79
+ has_vp? {first_vp_page} if
80
+ }ifelse
81
+ } def
82
+
83
+
84
+ /default_point { limit_left current_row moveto} def
85
+ /new_current_row_point{ /current_row limit_top row row_height row_padding add mul sub def }def
86
+
87
+ /next_row{
88
+ row rows_per_page lt current_row limit_bottom ge and { /row inc
89
+ new_current_row_point
90
+ }{ next_page }ifelse
91
+ } def
92
+
93
+ /jump_rows{
94
+ %dup 1 le { { next_row }repeat} if
95
+ { next_row }repeat
96
+ } def
97
+ /jump_rows{
98
+ %dup 1 le { { next_row }repeat} if
99
+ dup 0 ge {{ next_row }repeat
100
+ }{ neg { /row dec } repeat new_current_row_point } ifelse
101
+ } def
102
+
103
+ /goto_row{
104
+ /row exch def
105
+ new_current_row_point
106
+ } def
@@ -0,0 +1,55 @@
1
+ /col_padding 0.1 cm def
2
+
3
+ /st_center{ exch strlen 3 -1 roll sub -2 div dup 0 rmoveto exch show 0 rmoveto } def
4
+ /st_right{ exch strlen 3 -1 roll X add sub neg col_padding sub current_row moveto show col_padding 0 rmoveto } def
5
+ /st_left{ X add exch X col_padding add current_row moveto show current_row moveto }def
6
+
7
+ /col 0 def
8
+ /current_table_row 0 def %current row table
9
+ /nextcol{ /col inc } def
10
+
11
+ /headings? true def
12
+
13
+ /header_proc {
14
+ new_page? new_vp? or{
15
+ %before_row_create callback_row
16
+ before_header_create
17
+ header_titles {
18
+ before_column_header callback_col
19
+ headings? {
20
+ table_header col get aload pop cvx exec nextcol
21
+
22
+ }{ pop } ifelse
23
+ after_column_header callback_col
24
+ } forall
25
+ after_header_create
26
+ after_row
27
+ /new_page? false def
28
+ /new_vp? false def
29
+ }if
30
+ } def
31
+
32
+ /after_row{
33
+ /current_table_row inc
34
+ /col 0 def
35
+ next_row
36
+ new_current_row_point
37
+ limit_left current_row moveto
38
+ }def
39
+
40
+ /table_proc {
41
+ {limit_left current_row moveto
42
+ header_proc
43
+ before_row callback_row
44
+ row_odd_or_even callback_row
45
+ {
46
+ before_column callback_col
47
+ table_params col get aload pop cvx exec nextcol
48
+ after_column callback_col
49
+ } forall
50
+ after_row
51
+
52
+ } forall
53
+ after_table_create
54
+
55
+ }bind def
@@ -0,0 +1,237 @@
1
+ %!
2
+ (type.ps) runlibfile
3
+ (unit.ps) runlibfile
4
+ (IsoLatin.enc) runlibfile
5
+ /default_encoding IsoLatin def
6
+ << /Duplex false /Tumble false >> setpagedevice
7
+ /pagesize [595 842] def
8
+ /margin 3 dict def margin begin /top 1 cm def /right 2 cm def /bottom 1 cm def /left 2 cm def end
9
+ (paper.ps) runlibfile
10
+ /rows_per_page 80 def /count_pages 10 def /row_height 0.8 cm def /row_padding 0.1 cm def (basic.ps) runlibfile
11
+ (cursor.ps) runlibfile
12
+ (rectangle.ps) runlibfile
13
+ (font.ps) runlibfile
14
+ (text.ps) runlibfile
15
+ (horizontal_line.ps) runlibfile
16
+ (vertical_line.ps) runlibfile
17
+ (callbacks.ps) runlibfile
18
+ (show.ps) runlibfile
19
+ (eps.ps) runlibfile
20
+ (jpeg.ps) runlibfile
21
+ (gif.ps) runlibfile
22
+ (begin_document.ps) runlibfile
23
+ (datagrid.ps) runlibfile
24
+ limit_left current_row moveto
25
+ /title{
26
+ /Helvetica-encoding findfont 20 scalefont setfont 0 setgray
27
+ } bind def
28
+
29
+ /h1{
30
+ /Helvetica-encoding findfont 14 scalefont setfont 0 setgray
31
+ } bind def
32
+
33
+ /b{
34
+ /Helvetica-Bold-encoding findfont 10 scalefont setfont 0 setgray
35
+ } bind def
36
+
37
+ /span{
38
+ /Helvetica-encoding findfont 10 scalefont setfont 0 setgray
39
+ } bind def
40
+
41
+ /h2{
42
+ /Helvetica-encoding findfont 13 scalefont setfont 0 setgray
43
+ } bind def
44
+
45
+ /i{
46
+ /Helvetica-Oblique-encoding findfont 10 scalefont setfont 0 setgray
47
+ } bind def
48
+
49
+ /h3{
50
+ /Helvetica-encoding findfont 12 scalefont setfont 0.5 setgray
51
+ } bind def
52
+
53
+ /bi{
54
+ /Helvetica-BoldOblique-encoding findfont 10 scalefont setfont 0 setgray
55
+ } bind def
56
+
57
+ /h4{
58
+ /Helvetica-encoding findfont 11 scalefont setfont 1 0 0 setrgbcolor
59
+ } bind def
60
+
61
+ /big{
62
+ /Helvetica-encoding findfont 24 scalefont setfont 0 setgray
63
+ } bind def
64
+
65
+ /h5{
66
+ /Helvetica-encoding findfont 10 scalefont setfont 0 setgray
67
+ } bind def
68
+
69
+ /pre{
70
+ /Courier-encoding findfont 10 scalefont setfont 0 setgray
71
+ } bind def
72
+
73
+ /small{
74
+ /Helvetica-encoding findfont 7 scalefont setfont 0 setgray
75
+ } bind def
76
+ (begin_document.ps) runlibfile
77
+ limit_left current_row moveto
78
+
79
+ %gs -sDEVICE=x11 -I/local/projects/ruby/rghost_rf/lib/lib/rghost/ps developer.ps
80
+
81
+ /p{ pstack} def
82
+ (rghost - Develop Environment\n) print
83
+ (by Shairon Toledo\n) print
84
+ (Postscript Version ) print version print (\n) print
85
+ %%rounded corners
86
+ /rcorners_params{
87
+ /:x 3 cm def /:y 12 cm def
88
+ /:w 10 cm def /:h 8 cm def
89
+ /:r 10 def
90
+ /:s 1 def
91
+ /:inside{
92
+ 0.9 setgray
93
+ %0.2 0.4 0 setrgbcolor
94
+ fill
95
+ } def
96
+ /:outside{
97
+ 0.5 setgray
98
+ }def
99
+ } def
100
+ /rcorners{
101
+ gsave
102
+ :x :y :r add moveto
103
+ :outside
104
+ /:l1{ :x :y :h add :x :s add :y :h add :r arcto } def
105
+ /:l2{ :x :w add :y :h add :x :w add :y :h add :s sub :r arcto } def
106
+ /:l3{ :x :w add :y :x :w add :s sub :y :r arcto } def
107
+ /:l4{ :x :y :x :y :s add :r arcto } def
108
+ :l1 :l2 :l3 :l4 clear
109
+ closepath
110
+ gsave
111
+ :inside
112
+ grestore
113
+ stroke
114
+ grestore
115
+ } def
116
+
117
+ %rcorners_params rcorners
118
+
119
+ %charmap
120
+ /charmap{
121
+ /c 1 string def
122
+ /n 3 string def
123
+ default_font span
124
+ /Times-Roman findfont 12 scalefont setfont
125
+
126
+ 1 1 255{
127
+ dup dup dup
128
+ n cvs show ( = ) show
129
+ c 0 3 -1 roll put c show
130
+ 5 mod 0 eq{ nrdp }{ 5 mod 4 cm mul Y moveto } ifelse
131
+ } for
132
+ } def
133
+
134
+
135
+ %charmap
136
+ /font_outline{
137
+ big
138
+ 1 0 0 setrgbcolor
139
+ (Hello) true charpath gsave 0.5 setgray fill grestore stroke
140
+ } def
141
+ /clipping{
142
+ /Times-BoldItalic findfont 48 scalefont setfont
143
+ /rays{
144
+ BeginEPSF
145
+ (rghost_default_template.eps) run
146
+ EndEPSF
147
+ } def
148
+ 300 400 translate
149
+ .25 setlinewidth
150
+ newpath
151
+ 0 0 moveto
152
+ (StarLines) true charpath clip
153
+ newpath
154
+ 0 -5 translate
155
+ rays
156
+ }def
157
+ %clipping
158
+
159
+ %linecap
160
+ %setlinecap
161
+ %setlinejoin
162
+ %setmiterlimit
163
+ %[ ] 0 setdash % Turn dashing off: solid lines
164
+ %[3] 0 setdash % 3-unit on, 3-unit off,
165
+
166
+ %nrdp
167
+ %[0 1 9 9] 1 setdash
168
+ %limit_left area_x horizontal_line_top
169
+ %stroke showpage
170
+
171
+
172
+
173
+ /:test (If proc executes the exit operator, rasdf a adad af its own on the stack, but XX ## If proc executes the exit operator, repeat terminates prematurely. repeat leaves no results of its own on the stack, but What if the printer isn't on the default queue? The destination for the printed output can be specified on the command line. To output to the file c:\out.prn, add -sOutputFile="c:/out.prn" somewhere before the name of the PostScript file. To output to a Windows 95 queue named HP DeskJet Portable Printer, use -sOutputFile="\\spool\HP DeskJet Portable Printer". Get the spelling exact or it won't work. For Windows 3.1 or Win32s, to output to port LPT2:"
174
+ ) def
175
+
176
+ default_font
177
+ %gsave
178
+ %5 cm 17 cm translate
179
+
180
+ /:bw 14 cm def %box width
181
+ /:rp 0.1 cm def %row padding
182
+ /:rh 0.5 cm def %row height
183
+ /:text_area {
184
+ %next box row
185
+ /:nbw{ currentpoint :rh :rp add sub exch pop 0 exch moveto } def
186
+ /:space ( ) def
187
+ /:this_or_next{ X add :bw le { show :space show }{ :nbw show } ifelse } def
188
+ /:nw{ search false eq { /:last true def } if dup stringwidth pop :this_or_next }def
189
+ /:last false def
190
+
191
+ } def
192
+ /:text_proc{:space { :nw :last {exit} if } loop /:last false def } def
193
+
194
+ /concat
195
+ { exch dup length
196
+ 2 index length add string
197
+ dup dup 4 2 roll copy length
198
+ 4 -1 roll putintervaler, </pre>
199
+ but it is considered a development release. Several virtual machines are
200
+ } bind def
201
+
202
+ /Helvetica findfont 16 scalefont setfont
203
+
204
+ /str (As of December 2007, the latest stable version is 1.8.6. Ruby 1.9.0 was released in December, but it is considered a development release. Several virtual machines are being developed for Ruby These include JRuby, a port of Ruby to the Java platform, IronRuby an implementation for the .NET Framework produced by Microsoft and Rubinius, an interpreter modeled after self-hosting Smalltalk virtual machines. The main developers have thrown their weight behind the virtual machine provided by the YARV project, which was merged into the Ruby source) def
205
+
206
+ /fstr () def
207
+ /append{
208
+ %curstr exch ( ) concat concat /curstr exch def
209
+ dup cvx exec 3 -1 roll concat ( ) concat def
210
+ } def
211
+
212
+ /txt_nrdp{
213
+ (novo----------) puts
214
+ currentpoint puts puts
215
+ %currentpoint exch pop :rh sub 0 exch moveto
216
+ 762.786
217
+ 282.908
218
+ nrdp
219
+ } def
220
+
221
+
222
+ %gsave
223
+ 5 cm 0 translate
224
+ /:bw 10 cm def
225
+ /text_align { /cdenter } def
226
+
227
+ str text_area_cr
228
+ %grestore
229
+ %h3
230
+ %(*tree on 31 December 2006, and released as part of Ruby1.9) text_area_cr
231
+ %h4
232
+ %(*The type of the result is the same as the type of num1, unless num1 is the most negative integer, in which case the result is a real. )
233
+
234
+ %text_area_cr
235
+
236
+ showpage
237
+