forked from molhanec/rb2py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hints.rb
67 lines (57 loc) · 1.18 KB
/
hints.rb
1
2
3
4
5
6
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
# Currently setup for the Prawn PDF generating library
# These modules will be converted to classes
$HINTS_MODULE = %w[
Annotations
CapStyle
Color
Dash
Destinations
Formatted
Graphics
Images
Internals
JoinStyle
Measurements
Patterns
Reader
SoftMask
Stamp
Subset
Text
Transformation
TransformationStack
Transparency
View
Wrap
]
$HINTS_IMPORTS = {
'forwardable' => :remove,
'pdf/core/byte_string' => :remove,
'pdf/core/text' => :remove,
'set' => :remove,
'ttfunk' => 'TTFunk',
'ttfunk/subset_collection' => :remove,
}
$HINTS_IMPORTS_ADD = %w(
PDF
)
# Each step flattens only one level. If you want to flatten more levels,
# see below how it's done for the FormatX0 class.
$HINTS_FLATTEN_CLASSES = %w[
Prawn::Document::BoundingBox
Prawn::Document::ColumnBox
Prawn::Document::MultiBox
Prawn::Font::DFont
Prawn::Text::Formatted::Wrap
Prawn::Images::JPG
Prawn::Images::PNG
TTFunk::Subset::Base
TTFunk::Table::Post::Format10
TTFunk::Table::Post::Format20
TTFunk::Table::Post::Format30
TTFunk::Table::Post::Format40
TTFunk::Table::Format10
TTFunk::Table::Format20
TTFunk::Table::Format30
TTFunk::Table::Format40
]