giga-fast-kit 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. checksums.yaml +7 -0
  2. data/giga-fast-kit.gemspec +12 -0
  3. data/prawn-2.5.0/COPYING +2 -0
  4. data/prawn-2.5.0/GPLv2 +339 -0
  5. data/prawn-2.5.0/GPLv3 +674 -0
  6. data/prawn-2.5.0/LICENSE +56 -0
  7. data/prawn-2.5.0/data/fonts/Courier-Bold.afm +342 -0
  8. data/prawn-2.5.0/data/fonts/Courier-BoldOblique.afm +342 -0
  9. data/prawn-2.5.0/data/fonts/Courier-Oblique.afm +342 -0
  10. data/prawn-2.5.0/data/fonts/Courier.afm +342 -0
  11. data/prawn-2.5.0/data/fonts/Helvetica-Bold.afm +2827 -0
  12. data/prawn-2.5.0/data/fonts/Helvetica-BoldOblique.afm +2827 -0
  13. data/prawn-2.5.0/data/fonts/Helvetica-Oblique.afm +3051 -0
  14. data/prawn-2.5.0/data/fonts/Helvetica.afm +3051 -0
  15. data/prawn-2.5.0/data/fonts/MustRead.html +19 -0
  16. data/prawn-2.5.0/data/fonts/Symbol.afm +213 -0
  17. data/prawn-2.5.0/data/fonts/Times-Bold.afm +2588 -0
  18. data/prawn-2.5.0/data/fonts/Times-BoldItalic.afm +2384 -0
  19. data/prawn-2.5.0/data/fonts/Times-Italic.afm +2667 -0
  20. data/prawn-2.5.0/data/fonts/Times-Roman.afm +2419 -0
  21. data/prawn-2.5.0/data/fonts/ZapfDingbats.afm +225 -0
  22. data/prawn-2.5.0/lib/prawn/document/bounding_box.rb +625 -0
  23. data/prawn-2.5.0/lib/prawn/document/column_box.rb +177 -0
  24. data/prawn-2.5.0/lib/prawn/document/internals.rb +76 -0
  25. data/prawn-2.5.0/lib/prawn/document/span.rb +65 -0
  26. data/prawn-2.5.0/lib/prawn/document.rb +846 -0
  27. data/prawn-2.5.0/lib/prawn/encoding.rb +85 -0
  28. data/prawn-2.5.0/lib/prawn/errors.rb +73 -0
  29. data/prawn-2.5.0/lib/prawn/font.rb +567 -0
  30. data/prawn-2.5.0/lib/prawn/font_metric_cache.rb +50 -0
  31. data/prawn-2.5.0/lib/prawn/fonts/afm.rb +332 -0
  32. data/prawn-2.5.0/lib/prawn/fonts/dfont.rb +42 -0
  33. data/prawn-2.5.0/lib/prawn/fonts/otf.rb +14 -0
  34. data/prawn-2.5.0/lib/prawn/fonts/to_unicode_cmap.rb +151 -0
  35. data/prawn-2.5.0/lib/prawn/fonts/ttc.rb +41 -0
  36. data/prawn-2.5.0/lib/prawn/fonts/ttf.rb +615 -0
  37. data/prawn-2.5.0/lib/prawn/fonts.rb +14 -0
  38. data/prawn-2.5.0/lib/prawn/graphics/blend_mode.rb +62 -0
  39. data/prawn-2.5.0/lib/prawn/graphics/cap_style.rb +44 -0
  40. data/prawn-2.5.0/lib/prawn/graphics/color.rb +257 -0
  41. data/prawn-2.5.0/lib/prawn/graphics/dash.rb +123 -0
  42. data/prawn-2.5.0/lib/prawn/graphics/join_style.rb +60 -0
  43. data/prawn-2.5.0/lib/prawn/graphics/patterns.rb +389 -0
  44. data/prawn-2.5.0/lib/prawn/graphics/transformation.rb +172 -0
  45. data/prawn-2.5.0/lib/prawn/graphics/transparency.rb +79 -0
  46. data/prawn-2.5.0/lib/prawn/graphics.rb +791 -0
  47. data/prawn-2.5.0/lib/prawn/grid.rb +449 -0
  48. data/prawn-2.5.0/lib/prawn/image_handler.rb +61 -0
  49. data/prawn-2.5.0/lib/prawn/images/image.rb +48 -0
  50. data/prawn-2.5.0/lib/prawn/images/jpg.rb +121 -0
  51. data/prawn-2.5.0/lib/prawn/images/png.rb +383 -0
  52. data/prawn-2.5.0/lib/prawn/images.rb +195 -0
  53. data/prawn-2.5.0/lib/prawn/measurement_extensions.rb +82 -0
  54. data/prawn-2.5.0/lib/prawn/measurements.rb +129 -0
  55. data/prawn-2.5.0/lib/prawn/outline.rb +316 -0
  56. data/prawn-2.5.0/lib/prawn/repeater.rb +140 -0
  57. data/prawn-2.5.0/lib/prawn/security/arcfour.rb +54 -0
  58. data/prawn-2.5.0/lib/prawn/security.rb +308 -0
  59. data/prawn-2.5.0/lib/prawn/soft_mask.rb +105 -0
  60. data/prawn-2.5.0/lib/prawn/stamp.rb +147 -0
  61. data/prawn-2.5.0/lib/prawn/text/box.rb +192 -0
  62. data/prawn-2.5.0/lib/prawn/text/formatted/arranger.rb +396 -0
  63. data/prawn-2.5.0/lib/prawn/text/formatted/box.rb +725 -0
  64. data/prawn-2.5.0/lib/prawn/text/formatted/fragment.rb +373 -0
  65. data/prawn-2.5.0/lib/prawn/text/formatted/line_wrap.rb +335 -0
  66. data/prawn-2.5.0/lib/prawn/text/formatted/parser.rb +284 -0
  67. data/prawn-2.5.0/lib/prawn/text/formatted/wrap.rb +166 -0
  68. data/prawn-2.5.0/lib/prawn/text/formatted.rb +82 -0
  69. data/prawn-2.5.0/lib/prawn/text.rb +701 -0
  70. data/prawn-2.5.0/lib/prawn/transformation_stack.rb +63 -0
  71. data/prawn-2.5.0/lib/prawn/utilities.rb +34 -0
  72. data/prawn-2.5.0/lib/prawn/version.rb +6 -0
  73. data/prawn-2.5.0/lib/prawn/view.rb +116 -0
  74. data/prawn-2.5.0/lib/prawn.rb +83 -0
  75. metadata +114 -0
@@ -0,0 +1,85 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Prawn
4
+ # @private
5
+ module Encoding
6
+ # Map between unicode and WinAnsiEnoding
7
+ #
8
+ # @private
9
+ class WinAnsi
10
+ CHARACTERS = %w[
11
+ .notdef .notdef .notdef .notdef
12
+ .notdef .notdef .notdef .notdef
13
+ .notdef .notdef .notdef .notdef
14
+ .notdef .notdef .notdef .notdef
15
+ .notdef .notdef .notdef .notdef
16
+ .notdef .notdef .notdef .notdef
17
+ .notdef .notdef .notdef .notdef
18
+ .notdef .notdef .notdef .notdef
19
+
20
+ space exclam quotedbl numbersign
21
+ dollar percent ampersand quotesingle
22
+ parenleft parenright asterisk plus
23
+ comma hyphen period slash
24
+ zero one two three
25
+ four five six seven
26
+ eight nine colon semicolon
27
+ less equal greater question
28
+
29
+ at A B C
30
+ D E F G
31
+ H I J K
32
+ L M N O
33
+ P Q R S
34
+ T U V W
35
+ X Y Z bracketleft
36
+ backslash bracketright asciicircum underscore
37
+
38
+ grave a b c
39
+ d e f g
40
+ h i j k
41
+ l m n o
42
+ p q r s
43
+ t u v w
44
+ x y z braceleft
45
+ bar braceright asciitilde .notdef
46
+
47
+ Euro .notdef quotesinglbase florin
48
+ quotedblbase ellipsis dagger daggerdbl
49
+ circumflex perthousand Scaron guilsinglleft
50
+ OE .notdef Zcaron .notdef
51
+ .notdef quoteleft quoteright quotedblleft
52
+ quotedblright bullet endash emdash
53
+ tilde trademark scaron guilsinglright
54
+ oe .notdef zcaron ydieresis
55
+
56
+ space exclamdown cent sterling
57
+ currency yen brokenbar section
58
+ dieresis copyright ordfeminine guillemotleft
59
+ logicalnot hyphen registered macron
60
+ degree plusminus twosuperior threesuperior
61
+ acute mu paragraph periodcentered
62
+ cedilla onesuperior ordmasculine guillemotright
63
+ onequarter onehalf threequarters questiondown
64
+
65
+ Agrave Aacute Acircumflex Atilde
66
+ Adieresis Aring AE Ccedilla
67
+ Egrave Eacute Ecircumflex Edieresis
68
+ Igrave Iacute Icircumflex Idieresis
69
+ Eth Ntilde Ograve Oacute
70
+ Ocircumflex Otilde Odieresis multiply
71
+ Oslash Ugrave Uacute Ucircumflex
72
+ Udieresis Yacute Thorn germandbls
73
+
74
+ agrave aacute acircumflex atilde
75
+ adieresis aring ae ccedilla
76
+ egrave eacute ecircumflex edieresis
77
+ igrave iacute icircumflex idieresis
78
+ eth ntilde ograve oacute
79
+ ocircumflex otilde odieresis divide
80
+ oslash ugrave uacute ucircumflex
81
+ udieresis yacute thorn ydieresis
82
+ ].freeze
83
+ end
84
+ end
85
+ end
@@ -0,0 +1,73 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Prawn
4
+ # Custom error classes for Prawn.
5
+ module Errors
6
+ # Raised when a table is spanned in an impossible way.
7
+ InvalidTableSpan = Class.new(StandardError)
8
+
9
+ # This error is raised when a method requiring a current page is called
10
+ # without being on a page.
11
+ NotOnPage = Class.new(StandardError)
12
+
13
+ # This error is raised when Prawn cannot find a specified font.
14
+ UnknownFont = Class.new(StandardError)
15
+
16
+ # Raised when Prawn is asked to draw something into a too-small box.
17
+ CannotFit = Class.new(StandardError)
18
+
19
+ # Raised if {#group} is called with a block that is too big to be rendered
20
+ # in the current context.
21
+ #
22
+ # @private
23
+ CannotGroup = Class.new(StandardError)
24
+
25
+ # This error is raised when Prawn is being used on a M17N aware VM, and the
26
+ # user attempts to add text that isn't compatible with UTF-8 to their
27
+ # document.
28
+ IncompatibleStringEncoding = Class.new(StandardError)
29
+
30
+ # This error is raised when Prawn encounters an unknown key in functions
31
+ # that accept an options hash. This usually means there is a typo in your
32
+ # code or that the option you are trying to use has a different name than
33
+ # what you have specified.
34
+ UnknownOption = Class.new(StandardError)
35
+
36
+ # This error is raised when a user attempts to embed an image of an
37
+ # unsupported type. This can either a completely unsupported format, or
38
+ # a dialect of a supported format (i.e. some types of PNG).
39
+ UnsupportedImageType = Class.new(StandardError)
40
+
41
+ # This error is raised when a named element has already been created. For
42
+ # example, in the stamp module, stamps must have unique names within
43
+ # a document.
44
+ NameTaken = Class.new(StandardError)
45
+
46
+ # This error is raised when a name is not a valid format.
47
+ InvalidName = Class.new(StandardError)
48
+
49
+ # This error is raised when an object is attempted to be referenced by name,
50
+ # but no such name is associated with an object.
51
+ UndefinedObjectName = Class.new(StandardError)
52
+
53
+ # This error is raised when a required option has not been set.
54
+ RequiredOption = Class.new(StandardError)
55
+
56
+ # This error is raised when a requested outline item with a given title does
57
+ # not exist.
58
+ UnknownOutlineTitle = Class.new(StandardError)
59
+
60
+ # This error is raised when a block is required, but not provided.
61
+ BlockRequired = Class.new(StandardError)
62
+
63
+ # This error is raised when a graphics method is called with improper
64
+ # arguments.
65
+ InvalidGraphicsPath = Class.new(StandardError)
66
+
67
+ # Raised when unrecognized content is provided for a table cell.
68
+ UnrecognizedTableContent = Class.new(StandardError)
69
+
70
+ # This error is raised when an incompatible join style is specified.
71
+ InvalidJoinStyle = Class.new(StandardError)
72
+ end
73
+ end