rghost 0.6.6 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. data/History.txt +1 -1
  2. data/Manifest.txt +42 -12
  3. data/lib/rghost/document.rb +11 -2
  4. data/lib/rghost/load.rb +3 -1
  5. data/lib/rghost/ps/AdobeExpert.enc +258 -0
  6. data/lib/rghost/ps/AdobeLatinEncoding.enc +258 -0
  7. data/lib/rghost/ps/Bengali.enc +386 -0
  8. data/lib/rghost/ps/CodePage1250.enc +258 -0
  9. data/lib/rghost/ps/CodePage1251.enc +258 -0
  10. data/lib/rghost/ps/CodePage1252.enc +258 -0
  11. data/lib/rghost/ps/CodePage1253.enc +258 -0
  12. data/lib/rghost/ps/CodePage1254.enc +258 -0
  13. data/lib/rghost/ps/CodePage1256.enc +258 -0
  14. data/lib/rghost/ps/CodePage1257.enc +258 -0
  15. data/lib/rghost/ps/CodePage1258.enc +258 -0
  16. data/lib/rghost/ps/CodePage874.enc +258 -0
  17. data/lib/rghost/ps/IsoLatin.enc +352 -0
  18. data/lib/rghost/ps/MacCentralEuropean.enc +258 -0
  19. data/lib/rghost/ps/MacCyrillice.enc +258 -0
  20. data/lib/rghost/ps/MacGreek.enc +258 -0
  21. data/lib/rghost/ps/MacHebrew.enc +258 -0
  22. data/lib/rghost/ps/TeX-CorkEncoding.enc +258 -0
  23. data/lib/rghost/ps/TeX-LGR-Greek.enc +258 -0
  24. data/lib/rghost/ps/TeX-T2AModified2Encoding.enc +258 -0
  25. data/lib/rghost/ps/TeX-T2BAdobeEncoding.enc +258 -0
  26. data/lib/rghost/ps/TeX-T2CAdobeEncoding.enc +258 -0
  27. data/lib/rghost/ps/TeX-X2AdobeEncoding.enc +258 -0
  28. data/lib/rghost/ps/TeX-XL2encoding.enc +258 -0
  29. data/lib/rghost/ps/TeXMathExtensionEncoding.enc +258 -0
  30. data/lib/rghost/ps/TeXMathItalicEncoding.enc +258 -0
  31. data/lib/rghost/ps/TeXMathSymbolEncoding.enc +258 -0
  32. data/lib/rghost/ps/US-ASCII.enc +258 -0
  33. data/lib/rghost/ps/UTF-8.enc +3 -0
  34. data/lib/rghost/ps/font.ps +1 -1
  35. data/lib/rghost/ruby_ghost_config.rb +4 -1
  36. data/lib/rghost/ruby_to_ps.rb +2 -0
  37. data/lib/rghost/version.rb +2 -2
  38. data/lib/rgteste.rb +46 -0
  39. metadata +44 -14
data/History.txt CHANGED
@@ -1,4 +1,4 @@
1
- +++ 0.0.1 2007-06-11
1
+ +++ 0.0.1 2007-06-13
2
2
 
3
3
  + 1 major enhancement:
4
4
  + Initial release
data/Manifest.txt CHANGED
@@ -57,30 +57,59 @@ lib/rghost/data_grid/field_format.rb
57
57
  lib/rghost/rgengine.so
58
58
  lib/rghost/constants.rb
59
59
  lib/rghost/ps
60
- lib/rghost/ps/horizontal_line.ps
60
+ lib/rghost/ps/TeX-T2CAdobeEncoding.enc
61
+ lib/rghost/ps/TeX-LGR-Greek.enc
62
+ lib/rghost/ps/MacGreek.enc
61
63
  lib/rghost/ps/rectangle.ps
62
- lib/rghost/ps/gif.ps
63
- lib/rghost/ps/font.ps
64
- lib/rghost/ps/paper.ps
64
+ lib/rghost/ps/IsoLatin.enc
65
65
  lib/rghost/ps/row.ps
66
- lib/rghost/ps/functions.ps
67
66
  lib/rghost/ps/code39.font
68
- lib/rghost/ps/cursor.ps
69
- lib/rghost/ps/textarea.ps
70
- lib/rghost/ps/datagrid.ps
67
+ lib/rghost/ps/MacHebrew.enc
71
68
  lib/rghost/ps/callbacks.ps
69
+ lib/rghost/ps/datagrid.ps
72
70
  lib/rghost/ps/unit.ps
73
- lib/rghost/ps/show.ps
71
+ lib/rghost/ps/begin_document.ps
74
72
  lib/rghost/ps/vertical_line.ps
75
73
  lib/rghost/ps/basic.ps
76
74
  lib/rghost/ps/type.ps
77
- lib/rghost/ps/begin_document.ps
78
- lib/rghost/ps/i25.font
75
+ lib/rghost/ps/AdobeExpert.enc
76
+ lib/rghost/ps/Bengali.enc
77
+ lib/rghost/ps/UTF-8.enc
79
78
  lib/rghost/ps/jpeg.ps
79
+ lib/rghost/ps/TeX-T2BAdobeEncoding.enc
80
80
  lib/rghost/ps/table_callbacks.ps
81
81
  lib/rghost/ps/eps.ps
82
- lib/rghost/ps/ean.font
83
82
  lib/rghost/ps/code128.font
83
+ lib/rghost/ps/CodePage874.enc
84
+ lib/rghost/ps/gif.ps
85
+ lib/rghost/ps/TeXMathItalicEncoding.enc
86
+ lib/rghost/ps/US-ASCII.enc
87
+ lib/rghost/ps/horizontal_line.ps
88
+ lib/rghost/ps/CodePage1250.enc
89
+ lib/rghost/ps/font.ps
90
+ lib/rghost/ps/TeXMathExtensionEncoding.enc
91
+ lib/rghost/ps/TeX-T2AModified2Encoding.enc
92
+ lib/rghost/ps/CodePage1251.enc
93
+ lib/rghost/ps/CodePage1252.enc
94
+ lib/rghost/ps/CodePage1253.enc
95
+ lib/rghost/ps/CodePage1254.enc
96
+ lib/rghost/ps/paper.ps
97
+ lib/rghost/ps/CodePage1256.enc
98
+ lib/rghost/ps/functions.ps
99
+ lib/rghost/ps/CodePage1257.enc
100
+ lib/rghost/ps/TeX-CorkEncoding.enc
101
+ lib/rghost/ps/CodePage1258.enc
102
+ lib/rghost/ps/cursor.ps
103
+ lib/rghost/ps/show.ps
104
+ lib/rghost/ps/TeX-X2AdobeEncoding.enc
105
+ lib/rghost/ps/textarea.ps
106
+ lib/rghost/ps/MacCyrillice.enc
107
+ lib/rghost/ps/i25.font
108
+ lib/rghost/ps/ean.font
109
+ lib/rghost/ps/TeXMathSymbolEncoding.enc
110
+ lib/rghost/ps/MacCentralEuropean.enc
111
+ lib/rghost/ps/AdobeLatinEncoding.enc
112
+ lib/rghost/ps/TeX-XL2encoding.enc
84
113
  lib/rghost/cursor.rb
85
114
  lib/rghost/textarea.rb
86
115
  lib/rghost/variable.rb
@@ -99,3 +128,4 @@ lib/rghost/ps_object.rb
99
128
  lib/rghost/ruby_ghost_config.rb
100
129
  lib/rghost/ruby_ghost_engine.rb
101
130
  lib/rghost.rb
131
+ lib/rgteste.rb
@@ -45,7 +45,8 @@ class Document < PsObject
45
45
  :count_pages => 10,
46
46
  :row_height => 0.4,
47
47
  :row_padding => 0.1,
48
- :fontsize=> 8
48
+ :fontsize=> RubyGhostConfig::GS[:fontsize],
49
+ :font_encoding=> RubyGhostConfig::GS[:font_encoding]
49
50
  }
50
51
  #Nova inst�ncia de Document com proxy da classe Paper.
51
52
  # Responde as op��es
@@ -71,10 +72,13 @@ class Document < PsObject
71
72
  @head,@callbacks=PsObject.new,PsObject.new
72
73
  @head.set Load.library(:type)
73
74
  @head.set Load.library(:unit)
75
+
76
+ @variables=DEFAULT_OPTIONS.dup.merge(options)
77
+ default_encoding
74
78
  @paper=Paper.new(options[:paper] || :A4, options)
75
79
  @head.set @paper
76
80
 
77
- @variables=DEFAULT_OPTIONS.dup.merge(options)
81
+
78
82
  @defines=[]
79
83
 
80
84
  default_variables
@@ -375,6 +379,11 @@ class Document < PsObject
375
379
 
376
380
 
377
381
  end
382
+ def default_encoding
383
+ @head.set Load.library(@variables[:font_encoding],:enc)
384
+ @head.set Variable.new(:default_encoding,@variables[:font_encoding])
385
+
386
+ end
378
387
 
379
388
  end
380
389
 
data/lib/rghost/load.rb CHANGED
@@ -4,7 +4,7 @@ module Load
4
4
  def Load.library(name, type=:ps)
5
5
  #PsObject.new File.open(File.dirname(__FILE__)+File::SEPARATOR+type.to_s+File::SEPARATOR+name.to_s+"."+type.to_s).readlines.join("")
6
6
 
7
- PsObject.new("(#{name.to_s.downcase}.#{type}) runlibfile\n")
7
+ PsObject.new("(#{name.to_s}.#{type}) runlibfile\n")
8
8
 
9
9
  end
10
10
 
@@ -33,5 +33,7 @@ module Load
33
33
 
34
34
  end
35
35
 
36
+
37
+
36
38
  end
37
39
 
@@ -0,0 +1,258 @@
1
+ /AdobeExpert [
2
+ /.notdef % 0x00
3
+ /.notdef
4
+ /.notdef
5
+ /.notdef
6
+ /.notdef
7
+ /.notdef
8
+ /.notdef
9
+ /.notdef
10
+ /.notdef
11
+ /.notdef
12
+ /.notdef
13
+ /.notdef
14
+ /.notdef
15
+ /.notdef
16
+ /.notdef
17
+ /.notdef
18
+ /.notdef % 0x10
19
+ /.notdef
20
+ /.notdef
21
+ /.notdef
22
+ /.notdef
23
+ /.notdef
24
+ /.notdef
25
+ /.notdef
26
+ /.notdef
27
+ /.notdef
28
+ /.notdef
29
+ /.notdef
30
+ /.notdef
31
+ /.notdef
32
+ /.notdef
33
+ /.notdef
34
+ /space % 0x20
35
+ /exclam.sc
36
+ /hungarumlaut.sc
37
+ /.notdef
38
+ /dollar.oldstyle
39
+ /dollar.superior
40
+ /ampersand.sc
41
+ /acute.sc
42
+ /parenleftsuperior
43
+ /parenrightsuperior
44
+ /twodotenleader
45
+ /onedotenleader
46
+ /comma
47
+ /hyphen
48
+ /period
49
+ /fraction
50
+ /zero.oldstyle % 0x30
51
+ /one.oldstyle
52
+ /two.oldstyle
53
+ /three.oldstyle
54
+ /four.oldstyle
55
+ /five.oldstyle
56
+ /six.oldstyle
57
+ /seven.oldstyle
58
+ /eight.oldstyle
59
+ /nine.oldstyle
60
+ /colon
61
+ /semicolon
62
+ /comma.superior
63
+ /threequartersemdash
64
+ /period.superior
65
+ /question.sc
66
+ /.notdef % 0x40
67
+ /a.superior
68
+ /b.superior
69
+ /cent.superior
70
+ /d.superior
71
+ /e.superior
72
+ /.notdef
73
+ /.notdef
74
+ /.notdef
75
+ /i.superior
76
+ /.notdef
77
+ /.notdef
78
+ /l.superior
79
+ /m.superior
80
+ /nsuperior
81
+ /o.superior
82
+ /.notdef % 0x50
83
+ /.notdef
84
+ /r.superior
85
+ /s.superior
86
+ /t.superior
87
+ /.notdef
88
+ /ff
89
+ /fi
90
+ /fl
91
+ /ffi
92
+ /ffl
93
+ /parenleftinferior
94
+ /.notdef
95
+ /parenrightinferior
96
+ /circumflex.sc
97
+ /hyphen.superior
98
+ /grave.sc % 0x60
99
+ /a.sc
100
+ /b.sc
101
+ /c.sc
102
+ /d.sc
103
+ /e.sc
104
+ /f.sc
105
+ /g.sc
106
+ /h.sc
107
+ /i.sc
108
+ /j.sc
109
+ /k.sc
110
+ /l.sc
111
+ /m.sc
112
+ /n.sc
113
+ /o.sc
114
+ /p.sc % 0x70
115
+ /q.sc
116
+ /r.sc
117
+ /s.sc
118
+ /t.sc
119
+ /u.sc
120
+ /v.sc
121
+ /w.sc
122
+ /x.sc
123
+ /y.sc
124
+ /z.sc
125
+ /colonmonetary
126
+ /onefitted
127
+ /rupiah
128
+ /tilde.sc
129
+ /.notdef
130
+ /.notdef % 0x80
131
+ /.notdef
132
+ /.notdef
133
+ /.notdef
134
+ /.notdef
135
+ /.notdef
136
+ /.notdef
137
+ /.notdef
138
+ /.notdef
139
+ /.notdef
140
+ /.notdef
141
+ /.notdef
142
+ /.notdef
143
+ /.notdef
144
+ /.notdef
145
+ /.notdef
146
+ /.notdef % 0x90
147
+ /.notdef
148
+ /.notdef
149
+ /.notdef
150
+ /.notdef
151
+ /.notdef
152
+ /.notdef
153
+ /.notdef
154
+ /.notdef
155
+ /.notdef
156
+ /.notdef
157
+ /.notdef
158
+ /.notdef
159
+ /.notdef
160
+ /.notdef
161
+ /.notdef
162
+ /.notdef % 0xa0
163
+ /exclamdown.sc
164
+ /cent.oldstyle
165
+ /lslash.sc
166
+ /.notdef
167
+ /.notdef
168
+ /scaron.sc
169
+ /zcaron.sc
170
+ /dieresis.sc
171
+ /breve.sc
172
+ /caron.sc
173
+ /.notdef
174
+ /dotaccent.sc
175
+ /.notdef
176
+ /.notdef
177
+ /macron.sc
178
+ /.notdef % 0xb0
179
+ /.notdef
180
+ /figuredash
181
+ /hyphen.inferior
182
+ /.notdef
183
+ /.notdef
184
+ /ogonek.sc
185
+ /ring.sc
186
+ /cedilla.sc
187
+ /.notdef
188
+ /.notdef
189
+ /.notdef
190
+ /onequarter
191
+ /onehalf
192
+ /threequarters
193
+ /questiondown.sc
194
+ /oneeighth % 0xc0
195
+ /threeeighths
196
+ /fiveeighths
197
+ /seveneighths
198
+ /onethird
199
+ /twothirds
200
+ /.notdef
201
+ /.notdef
202
+ /zerosuperior
203
+ /onesuperior
204
+ /twosuperior
205
+ /threesuperior
206
+ /foursuperior
207
+ /fivesuperior
208
+ /sixsuperior
209
+ /sevensuperior
210
+ /eightsuperior % 0xd0
211
+ /ninesuperior
212
+ /zeroinferior
213
+ /oneinferior
214
+ /twoinferior
215
+ /threeinferior
216
+ /fourinferior
217
+ /fiveinferior
218
+ /sixinferior
219
+ /seveninferior
220
+ /eightinferior
221
+ /nineinferior
222
+ /cent.inferior
223
+ /dollar.inferior
224
+ /period.inferior
225
+ /comma.inferior
226
+ /agrave.sc % 0xe0
227
+ /aacute.sc
228
+ /acircumflex.sc
229
+ /atilde.sc
230
+ /adieresis.sc
231
+ /aring.sc
232
+ /ae.sc
233
+ /ccedilla.sc
234
+ /egrave.sc
235
+ /eacute.sc
236
+ /ecircumflex.sc
237
+ /edieresis.sc
238
+ /igrave.sc
239
+ /iacute.sc
240
+ /icircumflex.sc
241
+ /idieresis.sc
242
+ /eth.sc % 0xf0
243
+ /ntilde.sc
244
+ /ograve.sc
245
+ /oacute.sc
246
+ /ocircumflex.sc
247
+ /otilde.sc
248
+ /odieresis.sc
249
+ /oe.sc
250
+ /oslash.sc
251
+ /ugrave.sc
252
+ /uacute.sc
253
+ /ucircumflex.sc
254
+ /udieresis.sc
255
+ /yacute.sc
256
+ /thorn.sc
257
+ /ydieresis.sc
258
+ ] def
@@ -0,0 +1,258 @@
1
+ /AdobeLatinEncoding [
2
+ /.notdef % 0x00
3
+ /.notdef
4
+ /.notdef
5
+ /.notdef
6
+ /.notdef
7
+ /.notdef
8
+ /.notdef
9
+ /.notdef
10
+ /.notdef
11
+ /.notdef
12
+ /.notdef
13
+ /.notdef
14
+ /.notdef
15
+ /.notdef
16
+ /.notdef
17
+ /.notdef
18
+ /.notdef % 0x10
19
+ /.notdef
20
+ /.notdef
21
+ /.notdef
22
+ /.notdef
23
+ /.notdef
24
+ /.notdef
25
+ /.notdef
26
+ /.notdef
27
+ /.notdef
28
+ /.notdef
29
+ /.notdef
30
+ /.notdef
31
+ /.notdef
32
+ /.notdef
33
+ /.notdef
34
+ /space % 0x20
35
+ /exclam
36
+ /quotedbl
37
+ /numbersign
38
+ /dollar
39
+ /percent
40
+ /ampersand
41
+ /quoteright
42
+ /parenleft
43
+ /parenright
44
+ /asterisk
45
+ /plus
46
+ /comma
47
+ /minus
48
+ /period
49
+ /slash
50
+ /zero % 0x30
51
+ /one
52
+ /two
53
+ /three
54
+ /four
55
+ /five
56
+ /six
57
+ /seven
58
+ /eight
59
+ /nine
60
+ /colon
61
+ /semicolon
62
+ /less
63
+ /equal
64
+ /greater
65
+ /question
66
+ /at % 0x40
67
+ /A
68
+ /B
69
+ /C
70
+ /D
71
+ /E
72
+ /F
73
+ /G
74
+ /H
75
+ /I
76
+ /J
77
+ /K
78
+ /L
79
+ /M
80
+ /N
81
+ /O
82
+ /P % 0x50
83
+ /Q
84
+ /R
85
+ /S
86
+ /T
87
+ /U
88
+ /V
89
+ /W
90
+ /X
91
+ /Y
92
+ /Z
93
+ /bracketleft
94
+ /backslash
95
+ /bracketright
96
+ /asciicircum
97
+ /underscore
98
+ /quoteleft % 0x60
99
+ /a
100
+ /b
101
+ /c
102
+ /d
103
+ /e
104
+ /f
105
+ /g
106
+ /h
107
+ /i
108
+ /j
109
+ /k
110
+ /l
111
+ /m
112
+ /n
113
+ /o
114
+ /p % 0x70
115
+ /q
116
+ /r
117
+ /s
118
+ /t
119
+ /u
120
+ /v
121
+ /w
122
+ /x
123
+ /y
124
+ /z
125
+ /braceleft
126
+ /bar
127
+ /braceright
128
+ /asciitilde
129
+ /.notdef
130
+ /.notdef % 0x80
131
+ /.notdef
132
+ /.notdef
133
+ /.notdef
134
+ /.notdef
135
+ /.notdef
136
+ /.notdef
137
+ /.notdef
138
+ /.notdef
139
+ /.notdef
140
+ /.notdef
141
+ /.notdef
142
+ /.notdef
143
+ /.notdef
144
+ /.notdef
145
+ /.notdef
146
+ /dotlessi % 0x90
147
+ /grave
148
+ /acute
149
+ /circumflex
150
+ /tilde
151
+ /macron
152
+ /breve
153
+ /dotaccent
154
+ /dieresis
155
+ /.notdef
156
+ /ring
157
+ /cedilla
158
+ /.notdef
159
+ /hungarumlaut
160
+ /ogonek
161
+ /caron
162
+ /space % 0xa0
163
+ /exclamdown
164
+ /cent
165
+ /sterling
166
+ /currency
167
+ /yen
168
+ /brokenbar
169
+ /section
170
+ /dieresis
171
+ /copyright
172
+ /ordfeminine
173
+ /guillemotleft
174
+ /logicalnot
175
+ /hyphen
176
+ /registered
177
+ /macron
178
+ /degree % 0xb0
179
+ /plusminus
180
+ /twosuperior
181
+ /threesuperior
182
+ /acute
183
+ /mu
184
+ /paragraph
185
+ /periodcentered
186
+ /cedilla
187
+ /onesuperior
188
+ /ordmasculine
189
+ /guillemotright
190
+ /onequarter
191
+ /onehalf
192
+ /threequarters
193
+ /questiondown
194
+ /Agrave % 0xc0
195
+ /Aacute
196
+ /Acircumflex
197
+ /Atilde
198
+ /Adieresis
199
+ /Aring
200
+ /AE
201
+ /Ccedilla
202
+ /Egrave
203
+ /Eacute
204
+ /Ecircumflex
205
+ /Edieresis
206
+ /Igrave
207
+ /Iacute
208
+ /Icircumflex
209
+ /Idieresis
210
+ /Eth % 0xd0
211
+ /Ntilde
212
+ /Ograve
213
+ /Oacute
214
+ /Ocircumflex
215
+ /Otilde
216
+ /Odieresis
217
+ /multiply
218
+ /Oslash
219
+ /Ugrave
220
+ /Uacute
221
+ /Ucircumflex
222
+ /Udieresis
223
+ /Yacute
224
+ /Thorn
225
+ /germandbls
226
+ /agrave % 0xe0
227
+ /aacute
228
+ /acircumflex
229
+ /atilde
230
+ /adieresis
231
+ /aring
232
+ /ae
233
+ /ccedilla
234
+ /egrave
235
+ /eacute
236
+ /ecircumflex
237
+ /edieresis
238
+ /igrave
239
+ /iacute
240
+ /icircumflex
241
+ /idieresis
242
+ /eth % 0xf0
243
+ /ntilde
244
+ /ograve
245
+ /oacute
246
+ /ocircumflex
247
+ /otilde
248
+ /odieresis
249
+ /divide
250
+ /oslash
251
+ /ugrave
252
+ /uacute
253
+ /ucircumflex
254
+ /udieresis
255
+ /yacute
256
+ /thorn
257
+ /ydieresis
258
+ ] def