combine_pdf 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,79 +0,0 @@
1
- module CombinePDF
2
- class PDFWriter < Hash
3
- # This function calculates the dimensions of a string in a PDF.
4
- #
5
- # UNICODE SUPPORT IS MISSING!
6
- #
7
- # text:: String containing the text for which the demantion box will be calculated.
8
- # font:: the font name, from the 14 fonts possible. @see font
9
- # size:: the size of the text, as it will be applied in the PDF.
10
- def dimensions_of(text, font, size = 1000)
11
- metrics = METRICS_DICTIONARY[font]
12
- metrics_array = []
13
- # the following is only good for latin text - unicode support is missing!!!!
14
- text.each_char do |c|
15
- metrics_mappings = metrics.select {|k,v| v[:charcode] == c.bytes[0].ord}
16
- ######
17
- # need to add unicode support
18
- # this is a lousy patch that puts the bounds of @ inside...
19
- metrics_mappings = metrics.select {|k,v| v[:charcode] == "@".ord} if metrics_mappings.empty?
20
- metrics_array << metrics_mappings.to_a[0][1]
21
- end
22
- max_width = metrics_array.map {|m| m ? m[:wx] : 0} .max
23
- height = metrics_array.map {|m| m ? m[:boundingbox][3] : 0} .max
24
- height = height - (metrics_array.map {|m| m ? m[:boundingbox][1] : 0} ).min
25
- width = 0.0
26
- metrics_array.each do |m|
27
- if m
28
- width += m[:wx]
29
- else
30
- width += max_width
31
- end
32
- end
33
- [width.to_f/1000*size, height.to_f/1000*size]
34
- end
35
-
36
- protected
37
-
38
- METRICS_DICTIONARY = {
39
- :"Times-Roman" => TIMES_ROMAN_METRICS,
40
- :"Times-Bold" => TIMES_BOLD_METRICS,
41
- :"Times-Italic" => TIMES_ITALIC_METRICS,
42
- :"Times-BoldItalic" => TIMES_BOLDITALIC_METRICS,
43
- :Helvetica => HELVETICA_METRICS,
44
- :"Helvetica-Bold" => HELVETICA_BOLD_METRICS,
45
- :"Helvetica-BoldOblique"=> HELVETICA_BOLDOBLIQUE_METRICS,
46
- :"Helvetica-Oblique" => HELVETICA_OBLIQUE_METRICS,
47
- :Courier => COURIER_METRICS,
48
- :"Courier-Bold" => COURIER_BOLD_METRICS,
49
- :"Courier-Oblique" => COURIER_OBLIQUE_METRICS,
50
- :"Courier-BoldOblique" => COURIER_BOLDOBLIQUE_METRICS,
51
- :Symbol => SYMBOL_METRICS,
52
- :ZapfDingbats => ZAPFDINGBATS_METRICS
53
- }
54
- def self.get_metrics(font_name)
55
- METRICS_DICTIONARY[font_name]
56
- end
57
-
58
- # this method returns the size for which the text fits the requested metrices
59
- # the size is type Float and is rather exact
60
- # if the text cannot fit such a small place, returns zero (0).
61
- # maximum font size possible is set to 100,000 - which should be big enough for anything
62
- # text:: the text to fit
63
- # font:: the font name. @see font
64
- # length:: the length to fit
65
- # height:: the height to fit (optional - normally length is the issue)
66
- def fit_text(text, font, length, height = 10000000)
67
- size = 100000
68
- size_array = [size]
69
- metrics = dimensions_of text, font, size
70
- if metrics[0] > length
71
- size_array << size * length/metrics[0]
72
- end
73
- if metrics[1] > height
74
- size_array << size * height/metrics[1]
75
- end
76
- size_array.min
77
- end
78
- end
79
- end
@@ -1,1337 +0,0 @@
1
- module CombinePDF
2
- class PDFWriter < Hash
3
- protected
4
- # with thanks to Jan Krutisch, the creator of the afm gem.
5
- SYMBOL_METRICS =
6
- {"space"=>{:charcode=>32,
7
- :wx=>250,
8
- :name=>"space",
9
- :boundingbox=>[0,
10
- 0,
11
- 0,
12
- 0]},
13
- "exclam"=>{:charcode=>33,
14
- :wx=>333,
15
- :name=>"exclam",
16
- :boundingbox=>[128,
17
- -17,
18
- 240,
19
- 672]},
20
- "universal"=>{:charcode=>34,
21
- :wx=>713,
22
- :name=>"universal",
23
- :boundingbox=>[31,
24
- 0,
25
- 681,
26
- 705]},
27
- "numbersign"=>{:charcode=>35,
28
- :wx=>500,
29
- :name=>"numbersign",
30
- :boundingbox=>[20,
31
- -16,
32
- 481,
33
- 673]},
34
- "existential"=>{:charcode=>36,
35
- :wx=>549,
36
- :name=>"existential",
37
- :boundingbox=>[25,
38
- 0,
39
- 478,
40
- 707]},
41
- "percent"=>{:charcode=>37,
42
- :wx=>833,
43
- :name=>"percent",
44
- :boundingbox=>[63,
45
- -36,
46
- 771,
47
- 655]},
48
- "ampersand"=>{:charcode=>38,
49
- :wx=>778,
50
- :name=>"ampersand",
51
- :boundingbox=>[41,
52
- -18,
53
- 750,
54
- 661]},
55
- "suchthat"=>{:charcode=>39,
56
- :wx=>439,
57
- :name=>"suchthat",
58
- :boundingbox=>[48,
59
- -17,
60
- 414,
61
- 500]},
62
- "parenleft"=>{:charcode=>40,
63
- :wx=>333,
64
- :name=>"parenleft",
65
- :boundingbox=>[53,
66
- -191,
67
- 300,
68
- 673]},
69
- "parenright"=>{:charcode=>41,
70
- :wx=>333,
71
- :name=>"parenright",
72
- :boundingbox=>[30,
73
- -191,
74
- 277,
75
- 673]},
76
- "asteriskmath"=>{:charcode=>42,
77
- :wx=>500,
78
- :name=>"asteriskmath",
79
- :boundingbox=>[65,
80
- 134,
81
- 427,
82
- 551]},
83
- "plus"=>{:charcode=>43,
84
- :wx=>549,
85
- :name=>"plus",
86
- :boundingbox=>[10,
87
- 0,
88
- 539,
89
- 533]},
90
- "comma"=>{:charcode=>44,
91
- :wx=>250,
92
- :name=>"comma",
93
- :boundingbox=>[56,
94
- -152,
95
- 194,
96
- 104]},
97
- "minus"=>{:charcode=>45,
98
- :wx=>549,
99
- :name=>"minus",
100
- :boundingbox=>[11,
101
- 233,
102
- 535,
103
- 288]},
104
- "period"=>{:charcode=>46,
105
- :wx=>250,
106
- :name=>"period",
107
- :boundingbox=>[69,
108
- -17,
109
- 181,
110
- 95]},
111
- "slash"=>{:charcode=>47,
112
- :wx=>278,
113
- :name=>"slash",
114
- :boundingbox=>[0,
115
- -18,
116
- 254,
117
- 646]},
118
- "zero"=>{:charcode=>48,
119
- :wx=>500,
120
- :name=>"zero",
121
- :boundingbox=>[24,
122
- -14,
123
- 476,
124
- 685]},
125
- "one"=>{:charcode=>49,
126
- :wx=>500,
127
- :name=>"one",
128
- :boundingbox=>[117,
129
- 0,
130
- 390,
131
- 673]},
132
- "two"=>{:charcode=>50,
133
- :wx=>500,
134
- :name=>"two",
135
- :boundingbox=>[25,
136
- 0,
137
- 475,
138
- 685]},
139
- "three"=>{:charcode=>51,
140
- :wx=>500,
141
- :name=>"three",
142
- :boundingbox=>[43,
143
- -14,
144
- 435,
145
- 685]},
146
- "four"=>{:charcode=>52,
147
- :wx=>500,
148
- :name=>"four",
149
- :boundingbox=>[15,
150
- 0,
151
- 469,
152
- 685]},
153
- "five"=>{:charcode=>53,
154
- :wx=>500,
155
- :name=>"five",
156
- :boundingbox=>[32,
157
- -14,
158
- 445,
159
- 690]},
160
- "six"=>{:charcode=>54,
161
- :wx=>500,
162
- :name=>"six",
163
- :boundingbox=>[34,
164
- -14,
165
- 468,
166
- 685]},
167
- "seven"=>{:charcode=>55,
168
- :wx=>500,
169
- :name=>"seven",
170
- :boundingbox=>[24,
171
- -16,
172
- 448,
173
- 673]},
174
- "eight"=>{:charcode=>56,
175
- :wx=>500,
176
- :name=>"eight",
177
- :boundingbox=>[56,
178
- -14,
179
- 445,
180
- 685]},
181
- "nine"=>{:charcode=>57,
182
- :wx=>500,
183
- :name=>"nine",
184
- :boundingbox=>[30,
185
- -18,
186
- 459,
187
- 685]},
188
- "colon"=>{:charcode=>58,
189
- :wx=>278,
190
- :name=>"colon",
191
- :boundingbox=>[81,
192
- -17,
193
- 193,
194
- 460]},
195
- "semicolon"=>{:charcode=>59,
196
- :wx=>278,
197
- :name=>"semicolon",
198
- :boundingbox=>[83,
199
- -152,
200
- 221,
201
- 460]},
202
- "less"=>{:charcode=>60,
203
- :wx=>549,
204
- :name=>"less",
205
- :boundingbox=>[26,
206
- 0,
207
- 523,
208
- 522]},
209
- "equal"=>{:charcode=>61,
210
- :wx=>549,
211
- :name=>"equal",
212
- :boundingbox=>[11,
213
- 141,
214
- 537,
215
- 390]},
216
- "greater"=>{:charcode=>62,
217
- :wx=>549,
218
- :name=>"greater",
219
- :boundingbox=>[26,
220
- 0,
221
- 523,
222
- 522]},
223
- "question"=>{:charcode=>63,
224
- :wx=>444,
225
- :name=>"question",
226
- :boundingbox=>[70,
227
- -17,
228
- 412,
229
- 686]},
230
- "congruent"=>{:charcode=>64,
231
- :wx=>549,
232
- :name=>"congruent",
233
- :boundingbox=>[11,
234
- 0,
235
- 537,
236
- 475]},
237
- "Alpha"=>{:charcode=>65,
238
- :wx=>722,
239
- :name=>"Alpha",
240
- :boundingbox=>[4,
241
- 0,
242
- 684,
243
- 673]},
244
- "Beta"=>{:charcode=>66,
245
- :wx=>667,
246
- :name=>"Beta",
247
- :boundingbox=>[29,
248
- 0,
249
- 592,
250
- 673]},
251
- "Chi"=>{:charcode=>67,
252
- :wx=>722,
253
- :name=>"Chi",
254
- :boundingbox=>[-9,
255
- 0,
256
- 704,
257
- 673]},
258
- "Delta"=>{:charcode=>68,
259
- :wx=>612,
260
- :name=>"Delta",
261
- :boundingbox=>[6,
262
- 0,
263
- 608,
264
- 688]},
265
- "Epsilon"=>{:charcode=>69,
266
- :wx=>611,
267
- :name=>"Epsilon",
268
- :boundingbox=>[32,
269
- 0,
270
- 617,
271
- 673]},
272
- "Phi"=>{:charcode=>70,
273
- :wx=>763,
274
- :name=>"Phi",
275
- :boundingbox=>[26,
276
- 0,
277
- 741,
278
- 673]},
279
- "Gamma"=>{:charcode=>71,
280
- :wx=>603,
281
- :name=>"Gamma",
282
- :boundingbox=>[24,
283
- 0,
284
- 609,
285
- 673]},
286
- "Eta"=>{:charcode=>72,
287
- :wx=>722,
288
- :name=>"Eta",
289
- :boundingbox=>[39,
290
- 0,
291
- 729,
292
- 673]},
293
- "Iota"=>{:charcode=>73,
294
- :wx=>333,
295
- :name=>"Iota",
296
- :boundingbox=>[32,
297
- 0,
298
- 316,
299
- 673]},
300
- "theta1"=>{:charcode=>74,
301
- :wx=>631,
302
- :name=>"theta1",
303
- :boundingbox=>[18,
304
- -18,
305
- 623,
306
- 689]},
307
- "Kappa"=>{:charcode=>75,
308
- :wx=>722,
309
- :name=>"Kappa",
310
- :boundingbox=>[35,
311
- 0,
312
- 722,
313
- 673]},
314
- "Lambda"=>{:charcode=>76,
315
- :wx=>686,
316
- :name=>"Lambda",
317
- :boundingbox=>[6,
318
- 0,
319
- 680,
320
- 688]},
321
- "Mu"=>{:charcode=>77,
322
- :wx=>889,
323
- :name=>"Mu",
324
- :boundingbox=>[28,
325
- 0,
326
- 887,
327
- 673]},
328
- "Nu"=>{:charcode=>78,
329
- :wx=>722,
330
- :name=>"Nu",
331
- :boundingbox=>[29,
332
- -8,
333
- 720,
334
- 673]},
335
- "Omicron"=>{:charcode=>79,
336
- :wx=>722,
337
- :name=>"Omicron",
338
- :boundingbox=>[41,
339
- -17,
340
- 715,
341
- 685]},
342
- "Pi"=>{:charcode=>80,
343
- :wx=>768,
344
- :name=>"Pi",
345
- :boundingbox=>[25,
346
- 0,
347
- 745,
348
- 673]},
349
- "Theta"=>{:charcode=>81,
350
- :wx=>741,
351
- :name=>"Theta",
352
- :boundingbox=>[41,
353
- -17,
354
- 715,
355
- 685]},
356
- "Rho"=>{:charcode=>82,
357
- :wx=>556,
358
- :name=>"Rho",
359
- :boundingbox=>[28,
360
- 0,
361
- 563,
362
- 673]},
363
- "Sigma"=>{:charcode=>83,
364
- :wx=>592,
365
- :name=>"Sigma",
366
- :boundingbox=>[5,
367
- 0,
368
- 589,
369
- 673]},
370
- "Tau"=>{:charcode=>84,
371
- :wx=>611,
372
- :name=>"Tau",
373
- :boundingbox=>[33,
374
- 0,
375
- 607,
376
- 673]},
377
- "Upsilon"=>{:charcode=>85,
378
- :wx=>690,
379
- :name=>"Upsilon",
380
- :boundingbox=>[-8,
381
- 0,
382
- 694,
383
- 673]},
384
- "sigma1"=>{:charcode=>86,
385
- :wx=>439,
386
- :name=>"sigma1",
387
- :boundingbox=>[40,
388
- -233,
389
- 436,
390
- 500]},
391
- "Omega"=>{:charcode=>87,
392
- :wx=>768,
393
- :name=>"Omega",
394
- :boundingbox=>[34,
395
- 0,
396
- 736,
397
- 688]},
398
- "Xi"=>{:charcode=>88,
399
- :wx=>645,
400
- :name=>"Xi",
401
- :boundingbox=>[40,
402
- 0,
403
- 599,
404
- 673]},
405
- "Psi"=>{:charcode=>89,
406
- :wx=>795,
407
- :name=>"Psi",
408
- :boundingbox=>[15,
409
- 0,
410
- 781,
411
- 684]},
412
- "Zeta"=>{:charcode=>90,
413
- :wx=>611,
414
- :name=>"Zeta",
415
- :boundingbox=>[44,
416
- 0,
417
- 636,
418
- 673]},
419
- "bracketleft"=>{:charcode=>91,
420
- :wx=>333,
421
- :name=>"bracketleft",
422
- :boundingbox=>[86,
423
- -155,
424
- 299,
425
- 674]},
426
- "therefore"=>{:charcode=>92,
427
- :wx=>863,
428
- :name=>"therefore",
429
- :boundingbox=>[163,
430
- 0,
431
- 701,
432
- 487]},
433
- "bracketright"=>{:charcode=>93,
434
- :wx=>333,
435
- :name=>"bracketright",
436
- :boundingbox=>[33,
437
- -155,
438
- 246,
439
- 674]},
440
- "perpendicular"=>{:charcode=>94,
441
- :wx=>658,
442
- :name=>"perpendicular",
443
- :boundingbox=>[15,
444
- 0,
445
- 652,
446
- 674]},
447
- "underscore"=>{:charcode=>95,
448
- :wx=>500,
449
- :name=>"underscore",
450
- :boundingbox=>[-2,
451
- -125,
452
- 502,
453
- -75]},
454
- "radicalex"=>{:charcode=>96,
455
- :wx=>500,
456
- :name=>"radicalex",
457
- :boundingbox=>[480,
458
- 881,
459
- 1090,
460
- 917]},
461
- "alpha"=>{:charcode=>97,
462
- :wx=>631,
463
- :name=>"alpha",
464
- :boundingbox=>[41,
465
- -18,
466
- 622,
467
- 500]},
468
- "beta"=>{:charcode=>98,
469
- :wx=>549,
470
- :name=>"beta",
471
- :boundingbox=>[61,
472
- -223,
473
- 515,
474
- 741]},
475
- "chi"=>{:charcode=>99,
476
- :wx=>549,
477
- :name=>"chi",
478
- :boundingbox=>[12,
479
- -231,
480
- 522,
481
- 499]},
482
- "delta"=>{:charcode=>100,
483
- :wx=>494,
484
- :name=>"delta",
485
- :boundingbox=>[40,
486
- -19,
487
- 481,
488
- 740]},
489
- "epsilon"=>{:charcode=>101,
490
- :wx=>439,
491
- :name=>"epsilon",
492
- :boundingbox=>[22,
493
- -19,
494
- 427,
495
- 502]},
496
- "phi"=>{:charcode=>102,
497
- :wx=>521,
498
- :name=>"phi",
499
- :boundingbox=>[28,
500
- -224,
501
- 492,
502
- 673]},
503
- "gamma"=>{:charcode=>103,
504
- :wx=>411,
505
- :name=>"gamma",
506
- :boundingbox=>[5,
507
- -225,
508
- 484,
509
- 499]},
510
- "eta"=>{:charcode=>104,
511
- :wx=>603,
512
- :name=>"eta",
513
- :boundingbox=>[0,
514
- -202,
515
- 527,
516
- 514]},
517
- "iota"=>{:charcode=>105,
518
- :wx=>329,
519
- :name=>"iota",
520
- :boundingbox=>[0,
521
- -17,
522
- 301,
523
- 503]},
524
- "phi1"=>{:charcode=>106,
525
- :wx=>603,
526
- :name=>"phi1",
527
- :boundingbox=>[36,
528
- -224,
529
- 587,
530
- 499]},
531
- "kappa"=>{:charcode=>107,
532
- :wx=>549,
533
- :name=>"kappa",
534
- :boundingbox=>[33,
535
- 0,
536
- 558,
537
- 501]},
538
- "lambda"=>{:charcode=>108,
539
- :wx=>549,
540
- :name=>"lambda",
541
- :boundingbox=>[24,
542
- -17,
543
- 548,
544
- 739]},
545
- "mu"=>{:charcode=>109,
546
- :wx=>576,
547
- :name=>"mu",
548
- :boundingbox=>[33,
549
- -223,
550
- 567,
551
- 500]},
552
- "nu"=>{:charcode=>110,
553
- :wx=>521,
554
- :name=>"nu",
555
- :boundingbox=>[-9,
556
- -16,
557
- 475,
558
- 507]},
559
- "omicron"=>{:charcode=>111,
560
- :wx=>549,
561
- :name=>"omicron",
562
- :boundingbox=>[35,
563
- -19,
564
- 501,
565
- 499]},
566
- "pi"=>{:charcode=>112,
567
- :wx=>549,
568
- :name=>"pi",
569
- :boundingbox=>[10,
570
- -19,
571
- 530,
572
- 487]},
573
- "theta"=>{:charcode=>113,
574
- :wx=>521,
575
- :name=>"theta",
576
- :boundingbox=>[43,
577
- -17,
578
- 485,
579
- 690]},
580
- "rho"=>{:charcode=>114,
581
- :wx=>549,
582
- :name=>"rho",
583
- :boundingbox=>[50,
584
- -230,
585
- 490,
586
- 499]},
587
- "sigma"=>{:charcode=>115,
588
- :wx=>603,
589
- :name=>"sigma",
590
- :boundingbox=>[30,
591
- -21,
592
- 588,
593
- 500]},
594
- "tau"=>{:charcode=>116,
595
- :wx=>439,
596
- :name=>"tau",
597
- :boundingbox=>[10,
598
- -19,
599
- 418,
600
- 500]},
601
- "upsilon"=>{:charcode=>117,
602
- :wx=>576,
603
- :name=>"upsilon",
604
- :boundingbox=>[7,
605
- -18,
606
- 535,
607
- 507]},
608
- "omega1"=>{:charcode=>118,
609
- :wx=>713,
610
- :name=>"omega1",
611
- :boundingbox=>[12,
612
- -18,
613
- 671,
614
- 583]},
615
- "omega"=>{:charcode=>119,
616
- :wx=>686,
617
- :name=>"omega",
618
- :boundingbox=>[42,
619
- -17,
620
- 684,
621
- 500]},
622
- "xi"=>{:charcode=>120,
623
- :wx=>493,
624
- :name=>"xi",
625
- :boundingbox=>[27,
626
- -224,
627
- 469,
628
- 766]},
629
- "psi"=>{:charcode=>121,
630
- :wx=>686,
631
- :name=>"psi",
632
- :boundingbox=>[12,
633
- -228,
634
- 701,
635
- 500]},
636
- "zeta"=>{:charcode=>122,
637
- :wx=>494,
638
- :name=>"zeta",
639
- :boundingbox=>[60,
640
- -225,
641
- 467,
642
- 756]},
643
- "braceleft"=>{:charcode=>123,
644
- :wx=>480,
645
- :name=>"braceleft",
646
- :boundingbox=>[58,
647
- -183,
648
- 397,
649
- 673]},
650
- "bar"=>{:charcode=>124,
651
- :wx=>200,
652
- :name=>"bar",
653
- :boundingbox=>[65,
654
- -293,
655
- 135,
656
- 707]},
657
- "braceright"=>{:charcode=>125,
658
- :wx=>480,
659
- :name=>"braceright",
660
- :boundingbox=>[79,
661
- -183,
662
- 418,
663
- 673]},
664
- "similar"=>{:charcode=>126,
665
- :wx=>549,
666
- :name=>"similar",
667
- :boundingbox=>[17,
668
- 203,
669
- 529,
670
- 307]},
671
- "Euro"=>{:charcode=>160,
672
- :wx=>750,
673
- :name=>"Euro",
674
- :boundingbox=>[20,
675
- -12,
676
- 714,
677
- 685]},
678
- "Upsilon1"=>{:charcode=>161,
679
- :wx=>620,
680
- :name=>"Upsilon1",
681
- :boundingbox=>[-2,
682
- 0,
683
- 610,
684
- 685]},
685
- "minute"=>{:charcode=>162,
686
- :wx=>247,
687
- :name=>"minute",
688
- :boundingbox=>[27,
689
- 459,
690
- 228,
691
- 735]},
692
- "lessequal"=>{:charcode=>163,
693
- :wx=>549,
694
- :name=>"lessequal",
695
- :boundingbox=>[29,
696
- 0,
697
- 526,
698
- 639]},
699
- "fraction"=>{:charcode=>164,
700
- :wx=>167,
701
- :name=>"fraction",
702
- :boundingbox=>[-180,
703
- -12,
704
- 340,
705
- 677]},
706
- "infinity"=>{:charcode=>165,
707
- :wx=>713,
708
- :name=>"infinity",
709
- :boundingbox=>[26,
710
- 124,
711
- 688,
712
- 404]},
713
- "florin"=>{:charcode=>166,
714
- :wx=>500,
715
- :name=>"florin",
716
- :boundingbox=>[2,
717
- -193,
718
- 494,
719
- 686]},
720
- "club"=>{:charcode=>167,
721
- :wx=>753,
722
- :name=>"club",
723
- :boundingbox=>[86,
724
- -26,
725
- 660,
726
- 533]},
727
- "diamond"=>{:charcode=>168,
728
- :wx=>753,
729
- :name=>"diamond",
730
- :boundingbox=>[142,
731
- -36,
732
- 600,
733
- 550]},
734
- "heart"=>{:charcode=>169,
735
- :wx=>753,
736
- :name=>"heart",
737
- :boundingbox=>[117,
738
- -33,
739
- 631,
740
- 532]},
741
- "spade"=>{:charcode=>170,
742
- :wx=>753,
743
- :name=>"spade",
744
- :boundingbox=>[113,
745
- -36,
746
- 629,
747
- 548]},
748
- "arrowboth"=>{:charcode=>171,
749
- :wx=>1042,
750
- :name=>"arrowboth",
751
- :boundingbox=>[24,
752
- -15,
753
- 1024,
754
- 511]},
755
- "arrowleft"=>{:charcode=>172,
756
- :wx=>987,
757
- :name=>"arrowleft",
758
- :boundingbox=>[32,
759
- -15,
760
- 942,
761
- 511]},
762
- "arrowup"=>{:charcode=>173,
763
- :wx=>603,
764
- :name=>"arrowup",
765
- :boundingbox=>[45,
766
- 0,
767
- 571,
768
- 910]},
769
- "arrowright"=>{:charcode=>174,
770
- :wx=>987,
771
- :name=>"arrowright",
772
- :boundingbox=>[49,
773
- -15,
774
- 959,
775
- 511]},
776
- "arrowdown"=>{:charcode=>175,
777
- :wx=>603,
778
- :name=>"arrowdown",
779
- :boundingbox=>[45,
780
- -22,
781
- 571,
782
- 888]},
783
- "degree"=>{:charcode=>176,
784
- :wx=>400,
785
- :name=>"degree",
786
- :boundingbox=>[50,
787
- 385,
788
- 350,
789
- 685]},
790
- "plusminus"=>{:charcode=>177,
791
- :wx=>549,
792
- :name=>"plusminus",
793
- :boundingbox=>[10,
794
- 0,
795
- 539,
796
- 645]},
797
- "second"=>{:charcode=>178,
798
- :wx=>411,
799
- :name=>"second",
800
- :boundingbox=>[20,
801
- 459,
802
- 413,
803
- 737]},
804
- "greaterequal"=>{:charcode=>179,
805
- :wx=>549,
806
- :name=>"greaterequal",
807
- :boundingbox=>[29,
808
- 0,
809
- 526,
810
- 639]},
811
- "multiply"=>{:charcode=>180,
812
- :wx=>549,
813
- :name=>"multiply",
814
- :boundingbox=>[17,
815
- 8,
816
- 533,
817
- 524]},
818
- "proportional"=>{:charcode=>181,
819
- :wx=>713,
820
- :name=>"proportional",
821
- :boundingbox=>[27,
822
- 123,
823
- 639,
824
- 404]},
825
- "partialdiff"=>{:charcode=>182,
826
- :wx=>494,
827
- :name=>"partialdiff",
828
- :boundingbox=>[26,
829
- -20,
830
- 462,
831
- 746]},
832
- "bullet"=>{:charcode=>183,
833
- :wx=>460,
834
- :name=>"bullet",
835
- :boundingbox=>[50,
836
- 113,
837
- 410,
838
- 473]},
839
- "divide"=>{:charcode=>184,
840
- :wx=>549,
841
- :name=>"divide",
842
- :boundingbox=>[10,
843
- 71,
844
- 536,
845
- 456]},
846
- "notequal"=>{:charcode=>185,
847
- :wx=>549,
848
- :name=>"notequal",
849
- :boundingbox=>[15,
850
- -25,
851
- 540,
852
- 549]},
853
- "equivalence"=>{:charcode=>186,
854
- :wx=>549,
855
- :name=>"equivalence",
856
- :boundingbox=>[14,
857
- 82,
858
- 538,
859
- 443]},
860
- "approxequal"=>{:charcode=>187,
861
- :wx=>549,
862
- :name=>"approxequal",
863
- :boundingbox=>[14,
864
- 135,
865
- 527,
866
- 394]},
867
- "ellipsis"=>{:charcode=>188,
868
- :wx=>1000,
869
- :name=>"ellipsis",
870
- :boundingbox=>[111,
871
- -17,
872
- 889,
873
- 95]},
874
- "arrowvertex"=>{:charcode=>189,
875
- :wx=>603,
876
- :name=>"arrowvertex",
877
- :boundingbox=>[280,
878
- -120,
879
- 336,
880
- 1010]},
881
- "arrowhorizex"=>{:charcode=>190,
882
- :wx=>1000,
883
- :name=>"arrowhorizex",
884
- :boundingbox=>[-60,
885
- 220,
886
- 1050,
887
- 276]},
888
- "carriagereturn"=>{:charcode=>191,
889
- :wx=>658,
890
- :name=>"carriagereturn",
891
- :boundingbox=>[15,
892
- -16,
893
- 602,
894
- 629]},
895
- "aleph"=>{:charcode=>192,
896
- :wx=>823,
897
- :name=>"aleph",
898
- :boundingbox=>[175,
899
- -18,
900
- 661,
901
- 658]},
902
- "Ifraktur"=>{:charcode=>193,
903
- :wx=>686,
904
- :name=>"Ifraktur",
905
- :boundingbox=>[10,
906
- -53,
907
- 578,
908
- 740]},
909
- "Rfraktur"=>{:charcode=>194,
910
- :wx=>795,
911
- :name=>"Rfraktur",
912
- :boundingbox=>[26,
913
- -15,
914
- 759,
915
- 734]},
916
- "weierstrass"=>{:charcode=>195,
917
- :wx=>987,
918
- :name=>"weierstrass",
919
- :boundingbox=>[159,
920
- -211,
921
- 870,
922
- 573]},
923
- "circlemultiply"=>{:charcode=>196,
924
- :wx=>768,
925
- :name=>"circlemultiply",
926
- :boundingbox=>[43,
927
- -17,
928
- 733,
929
- 673]},
930
- "circleplus"=>{:charcode=>197,
931
- :wx=>768,
932
- :name=>"circleplus",
933
- :boundingbox=>[43,
934
- -15,
935
- 733,
936
- 675]},
937
- "emptyset"=>{:charcode=>198,
938
- :wx=>823,
939
- :name=>"emptyset",
940
- :boundingbox=>[39,
941
- -24,
942
- 781,
943
- 719]},
944
- "intersection"=>{:charcode=>199,
945
- :wx=>768,
946
- :name=>"intersection",
947
- :boundingbox=>[40,
948
- 0,
949
- 732,
950
- 509]},
951
- "union"=>{:charcode=>200,
952
- :wx=>768,
953
- :name=>"union",
954
- :boundingbox=>[40,
955
- -17,
956
- 732,
957
- 492]},
958
- "propersuperset"=>{:charcode=>201,
959
- :wx=>713,
960
- :name=>"propersuperset",
961
- :boundingbox=>[20,
962
- 0,
963
- 673,
964
- 470]},
965
- "reflexsuperset"=>{:charcode=>202,
966
- :wx=>713,
967
- :name=>"reflexsuperset",
968
- :boundingbox=>[20,
969
- -125,
970
- 673,
971
- 470]},
972
- "notsubset"=>{:charcode=>203,
973
- :wx=>713,
974
- :name=>"notsubset",
975
- :boundingbox=>[36,
976
- -70,
977
- 690,
978
- 540]},
979
- "propersubset"=>{:charcode=>204,
980
- :wx=>713,
981
- :name=>"propersubset",
982
- :boundingbox=>[37,
983
- 0,
984
- 690,
985
- 470]},
986
- "reflexsubset"=>{:charcode=>205,
987
- :wx=>713,
988
- :name=>"reflexsubset",
989
- :boundingbox=>[37,
990
- -125,
991
- 690,
992
- 470]},
993
- "element"=>{:charcode=>206,
994
- :wx=>713,
995
- :name=>"element",
996
- :boundingbox=>[45,
997
- 0,
998
- 505,
999
- 468]},
1000
- "notelement"=>{:charcode=>207,
1001
- :wx=>713,
1002
- :name=>"notelement",
1003
- :boundingbox=>[45,
1004
- -58,
1005
- 505,
1006
- 555]},
1007
- "angle"=>{:charcode=>208,
1008
- :wx=>768,
1009
- :name=>"angle",
1010
- :boundingbox=>[26,
1011
- 0,
1012
- 738,
1013
- 673]},
1014
- "gradient"=>{:charcode=>209,
1015
- :wx=>713,
1016
- :name=>"gradient",
1017
- :boundingbox=>[36,
1018
- -19,
1019
- 681,
1020
- 718]},
1021
- "registerserif"=>{:charcode=>210,
1022
- :wx=>790,
1023
- :name=>"registerserif",
1024
- :boundingbox=>[50,
1025
- -17,
1026
- 740,
1027
- 673]},
1028
- "copyrightserif"=>{:charcode=>211,
1029
- :wx=>790,
1030
- :name=>"copyrightserif",
1031
- :boundingbox=>[51,
1032
- -15,
1033
- 741,
1034
- 675]},
1035
- "trademarkserif"=>{:charcode=>212,
1036
- :wx=>890,
1037
- :name=>"trademarkserif",
1038
- :boundingbox=>[18,
1039
- 293,
1040
- 855,
1041
- 673]},
1042
- "product"=>{:charcode=>213,
1043
- :wx=>823,
1044
- :name=>"product",
1045
- :boundingbox=>[25,
1046
- -101,
1047
- 803,
1048
- 751]},
1049
- "radical"=>{:charcode=>214,
1050
- :wx=>549,
1051
- :name=>"radical",
1052
- :boundingbox=>[10,
1053
- -38,
1054
- 515,
1055
- 917]},
1056
- "dotmath"=>{:charcode=>215,
1057
- :wx=>250,
1058
- :name=>"dotmath",
1059
- :boundingbox=>[69,
1060
- 210,
1061
- 169,
1062
- 310]},
1063
- "logicalnot"=>{:charcode=>216,
1064
- :wx=>713,
1065
- :name=>"logicalnot",
1066
- :boundingbox=>[15,
1067
- 0,
1068
- 680,
1069
- 288]},
1070
- "logicaland"=>{:charcode=>217,
1071
- :wx=>603,
1072
- :name=>"logicaland",
1073
- :boundingbox=>[23,
1074
- 0,
1075
- 583,
1076
- 454]},
1077
- "logicalor"=>{:charcode=>218,
1078
- :wx=>603,
1079
- :name=>"logicalor",
1080
- :boundingbox=>[30,
1081
- 0,
1082
- 578,
1083
- 477]},
1084
- "arrowdblboth"=>{:charcode=>219,
1085
- :wx=>1042,
1086
- :name=>"arrowdblboth",
1087
- :boundingbox=>[27,
1088
- -20,
1089
- 1023,
1090
- 510]},
1091
- "arrowdblleft"=>{:charcode=>220,
1092
- :wx=>987,
1093
- :name=>"arrowdblleft",
1094
- :boundingbox=>[30,
1095
- -15,
1096
- 939,
1097
- 513]},
1098
- "arrowdblup"=>{:charcode=>221,
1099
- :wx=>603,
1100
- :name=>"arrowdblup",
1101
- :boundingbox=>[39,
1102
- 2,
1103
- 567,
1104
- 911]},
1105
- "arrowdblright"=>{:charcode=>222,
1106
- :wx=>987,
1107
- :name=>"arrowdblright",
1108
- :boundingbox=>[45,
1109
- -20,
1110
- 954,
1111
- 508]},
1112
- "arrowdbldown"=>{:charcode=>223,
1113
- :wx=>603,
1114
- :name=>"arrowdbldown",
1115
- :boundingbox=>[44,
1116
- -19,
1117
- 572,
1118
- 890]},
1119
- "lozenge"=>{:charcode=>224,
1120
- :wx=>494,
1121
- :name=>"lozenge",
1122
- :boundingbox=>[18,
1123
- 0,
1124
- 466,
1125
- 745]},
1126
- "angleleft"=>{:charcode=>225,
1127
- :wx=>329,
1128
- :name=>"angleleft",
1129
- :boundingbox=>[25,
1130
- -198,
1131
- 306,
1132
- 746]},
1133
- "registersans"=>{:charcode=>226,
1134
- :wx=>790,
1135
- :name=>"registersans",
1136
- :boundingbox=>[50,
1137
- -20,
1138
- 740,
1139
- 670]},
1140
- "copyrightsans"=>{:charcode=>227,
1141
- :wx=>790,
1142
- :name=>"copyrightsans",
1143
- :boundingbox=>[49,
1144
- -15,
1145
- 739,
1146
- 675]},
1147
- "trademarksans"=>{:charcode=>228,
1148
- :wx=>786,
1149
- :name=>"trademarksans",
1150
- :boundingbox=>[5,
1151
- 293,
1152
- 725,
1153
- 673]},
1154
- "summation"=>{:charcode=>229,
1155
- :wx=>713,
1156
- :name=>"summation",
1157
- :boundingbox=>[14,
1158
- -108,
1159
- 695,
1160
- 752]},
1161
- "parenlefttp"=>{:charcode=>230,
1162
- :wx=>384,
1163
- :name=>"parenlefttp",
1164
- :boundingbox=>[24,
1165
- -293,
1166
- 436,
1167
- 926]},
1168
- "parenleftex"=>{:charcode=>231,
1169
- :wx=>384,
1170
- :name=>"parenleftex",
1171
- :boundingbox=>[24,
1172
- -85,
1173
- 108,
1174
- 925]},
1175
- "parenleftbt"=>{:charcode=>232,
1176
- :wx=>384,
1177
- :name=>"parenleftbt",
1178
- :boundingbox=>[24,
1179
- -293,
1180
- 436,
1181
- 926]},
1182
- "bracketlefttp"=>{:charcode=>233,
1183
- :wx=>384,
1184
- :name=>"bracketlefttp",
1185
- :boundingbox=>[0,
1186
- -80,
1187
- 349,
1188
- 926]},
1189
- "bracketleftex"=>{:charcode=>234,
1190
- :wx=>384,
1191
- :name=>"bracketleftex",
1192
- :boundingbox=>[0,
1193
- -79,
1194
- 77,
1195
- 925]},
1196
- "bracketleftbt"=>{:charcode=>235,
1197
- :wx=>384,
1198
- :name=>"bracketleftbt",
1199
- :boundingbox=>[0,
1200
- -80,
1201
- 349,
1202
- 926]},
1203
- "bracelefttp"=>{:charcode=>236,
1204
- :wx=>494,
1205
- :name=>"bracelefttp",
1206
- :boundingbox=>[209,
1207
- -85,
1208
- 445,
1209
- 925]},
1210
- "braceleftmid"=>{:charcode=>237,
1211
- :wx=>494,
1212
- :name=>"braceleftmid",
1213
- :boundingbox=>[20,
1214
- -85,
1215
- 284,
1216
- 935]},
1217
- "braceleftbt"=>{:charcode=>238,
1218
- :wx=>494,
1219
- :name=>"braceleftbt",
1220
- :boundingbox=>[209,
1221
- -75,
1222
- 445,
1223
- 935]},
1224
- "braceex"=>{:charcode=>239,
1225
- :wx=>494,
1226
- :name=>"braceex",
1227
- :boundingbox=>[209,
1228
- -85,
1229
- 284,
1230
- 935]},
1231
- "angleright"=>{:charcode=>241,
1232
- :wx=>329,
1233
- :name=>"angleright",
1234
- :boundingbox=>[21,
1235
- -198,
1236
- 302,
1237
- 746]},
1238
- "integral"=>{:charcode=>242,
1239
- :wx=>274,
1240
- :name=>"integral",
1241
- :boundingbox=>[2,
1242
- -107,
1243
- 291,
1244
- 916]},
1245
- "integraltp"=>{:charcode=>243,
1246
- :wx=>686,
1247
- :name=>"integraltp",
1248
- :boundingbox=>[308,
1249
- -88,
1250
- 675,
1251
- 920]},
1252
- "integralex"=>{:charcode=>244,
1253
- :wx=>686,
1254
- :name=>"integralex",
1255
- :boundingbox=>[308,
1256
- -88,
1257
- 378,
1258
- 975]},
1259
- "integralbt"=>{:charcode=>245,
1260
- :wx=>686,
1261
- :name=>"integralbt",
1262
- :boundingbox=>[11,
1263
- -87,
1264
- 378,
1265
- 921]},
1266
- "parenrighttp"=>{:charcode=>246,
1267
- :wx=>384,
1268
- :name=>"parenrighttp",
1269
- :boundingbox=>[54,
1270
- -293,
1271
- 466,
1272
- 926]},
1273
- "parenrightex"=>{:charcode=>247,
1274
- :wx=>384,
1275
- :name=>"parenrightex",
1276
- :boundingbox=>[382,
1277
- -85,
1278
- 466,
1279
- 925]},
1280
- "parenrightbt"=>{:charcode=>248,
1281
- :wx=>384,
1282
- :name=>"parenrightbt",
1283
- :boundingbox=>[54,
1284
- -293,
1285
- 466,
1286
- 926]},
1287
- "bracketrighttp"=>{:charcode=>249,
1288
- :wx=>384,
1289
- :name=>"bracketrighttp",
1290
- :boundingbox=>[22,
1291
- -80,
1292
- 371,
1293
- 926]},
1294
- "bracketrightex"=>{:charcode=>250,
1295
- :wx=>384,
1296
- :name=>"bracketrightex",
1297
- :boundingbox=>[294,
1298
- -79,
1299
- 371,
1300
- 925]},
1301
- "bracketrightbt"=>{:charcode=>251,
1302
- :wx=>384,
1303
- :name=>"bracketrightbt",
1304
- :boundingbox=>[22,
1305
- -80,
1306
- 371,
1307
- 926]},
1308
- "bracerighttp"=>{:charcode=>252,
1309
- :wx=>494,
1310
- :name=>"bracerighttp",
1311
- :boundingbox=>[48,
1312
- -85,
1313
- 284,
1314
- 925]},
1315
- "bracerightmid"=>{:charcode=>253,
1316
- :wx=>494,
1317
- :name=>"bracerightmid",
1318
- :boundingbox=>[209,
1319
- -85,
1320
- 473,
1321
- 935]},
1322
- "bracerightbt"=>{:charcode=>254,
1323
- :wx=>494,
1324
- :name=>"bracerightbt",
1325
- :boundingbox=>[48,
1326
- -75,
1327
- 284,
1328
- 935]},
1329
- "apple"=>{:charcode=>-1,
1330
- :wx=>790,
1331
- :name=>"apple",
1332
- :boundingbox=>[56,
1333
- -3,
1334
- 733,
1335
- 808]}}
1336
- end
1337
- end