emf 0.2.0-x64-mingw-ucrt

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 (448) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +24 -0
  3. data/README.adoc +341 -0
  4. data/exe/emf +125 -0
  5. data/lib/emf/backend.rb +60 -0
  6. data/lib/emf/binary/class_field_accessors.rb +49 -0
  7. data/lib/emf/binary/codec.rb +19 -0
  8. data/lib/emf/binary/float32_le.rb +54 -0
  9. data/lib/emf/binary/types.rb +139 -0
  10. data/lib/emf/binary.rb +10 -0
  11. data/lib/emf/conformance/context.rb +36 -0
  12. data/lib/emf/conformance/diagnostic.rb +18 -0
  13. data/lib/emf/conformance/manifest/emf_bitmap_misc.yml +622 -0
  14. data/lib/emf/conformance/manifest/emf_control_buffers.yml +61 -0
  15. data/lib/emf/conformance/manifest/emf_core.yml +117 -0
  16. data/lib/emf/conformance/manifest/emf_corpus_rules.yml +21 -0
  17. data/lib/emf/conformance/manifest/emf_objects_geometry.yml +229 -0
  18. data/lib/emf/conformance/manifest/emf_plus.yml +357 -0
  19. data/lib/emf/conformance/manifest/emf_plus_core.yml +33 -0
  20. data/lib/emf/conformance/manifest/emf_state_path.yml +403 -0
  21. data/lib/emf/conformance/manifest/emf_text.yml +97 -0
  22. data/lib/emf/conformance/manifest/wmf.yml +874 -0
  23. data/lib/emf/conformance/manifest.rb +79 -0
  24. data/lib/emf/conformance/profile.rb +35 -0
  25. data/lib/emf/conformance/record_types.rb +24 -0
  26. data/lib/emf/conformance/registry.rb +76 -0
  27. data/lib/emf/conformance/report.rb +83 -0
  28. data/lib/emf/conformance/rule.rb +16 -0
  29. data/lib/emf/conformance/rules/emf_bitmap.rb +357 -0
  30. data/lib/emf/conformance/rules/emf_comment_escape.rb +309 -0
  31. data/lib/emf/conformance/rules/emf_control_buffers.rb +137 -0
  32. data/lib/emf/conformance/rules/emf_corpus_named.rb +83 -0
  33. data/lib/emf/conformance/rules/emf_framing.rb +94 -0
  34. data/lib/emf/conformance/rules/emf_geometry.rb +282 -0
  35. data/lib/emf/conformance/rules/emf_header.rb +114 -0
  36. data/lib/emf/conformance/rules/emf_objects.rb +291 -0
  37. data/lib/emf/conformance/rules/emf_parse_recovery.rb +97 -0
  38. data/lib/emf/conformance/rules/emf_path_clip.rb +165 -0
  39. data/lib/emf/conformance/rules/emf_plus.rb +75 -0
  40. data/lib/emf/conformance/rules/emf_plus_common.rb +58 -0
  41. data/lib/emf/conformance/rules/emf_plus_drawing.rb +78 -0
  42. data/lib/emf/conformance/rules/emf_plus_effects.rb +104 -0
  43. data/lib/emf/conformance/rules/emf_plus_fields.rb +169 -0
  44. data/lib/emf/conformance/rules/emf_plus_fields_b.rb +102 -0
  45. data/lib/emf/conformance/rules/emf_plus_framing.rb +172 -0
  46. data/lib/emf/conformance/rules/emf_plus_objects.rb +97 -0
  47. data/lib/emf/conformance/rules/emf_plus_payloads.rb +320 -0
  48. data/lib/emf/conformance/rules/emf_plus_properties.rb +96 -0
  49. data/lib/emf/conformance/rules/emf_plus_state.rb +77 -0
  50. data/lib/emf/conformance/rules/emf_state.rb +244 -0
  51. data/lib/emf/conformance/rules/emf_text.rb +221 -0
  52. data/lib/emf/conformance/rules/emf_transform.rb +85 -0
  53. data/lib/emf/conformance/rules/wmf_buffers.rb +259 -0
  54. data/lib/emf/conformance/rules/wmf_framing.rb +146 -0
  55. data/lib/emf/conformance/rules/wmf_layout_records.rb +112 -0
  56. data/lib/emf/conformance/rules/wmf_objects.rb +168 -0
  57. data/lib/emf/conformance/rules/wmf_records.rb +191 -0
  58. data/lib/emf/conformance/rules/wmf_rejections.rb +184 -0
  59. data/lib/emf/conformance/runner.rb +61 -0
  60. data/lib/emf/conformance/ternary_raster_operations.rb +52 -0
  61. data/lib/emf/conformance.rb +31 -0
  62. data/lib/emf/detector.rb +58 -0
  63. data/lib/emf/emf_plus/binary.rb +8 -0
  64. data/lib/emf/emf_plus/effects/blur.rb +24 -0
  65. data/lib/emf/emf_plus/effects/brightness_contrast.rb +22 -0
  66. data/lib/emf/emf_plus/effects/color_balance.rb +24 -0
  67. data/lib/emf/emf_plus/effects/color_curve.rb +24 -0
  68. data/lib/emf/emf_plus/effects/color_lookup_table.rb +26 -0
  69. data/lib/emf/emf_plus/effects/color_matrix.rb +23 -0
  70. data/lib/emf/emf_plus/effects/effect.rb +50 -0
  71. data/lib/emf/emf_plus/effects/hue_saturation_lightness.rb +24 -0
  72. data/lib/emf/emf_plus/effects/levels.rb +24 -0
  73. data/lib/emf/emf_plus/effects/opaque.rb +19 -0
  74. data/lib/emf/emf_plus/effects/red_eye_correction.rb +35 -0
  75. data/lib/emf/emf_plus/effects/sharpen.rb +24 -0
  76. data/lib/emf/emf_plus/effects/tint.rb +22 -0
  77. data/lib/emf/emf_plus/effects.rb +45 -0
  78. data/lib/emf/emf_plus/frame.rb +41 -0
  79. data/lib/emf/emf_plus/links/effect_link.rb +16 -0
  80. data/lib/emf/emf_plus/links/get_dc_span.rb +18 -0
  81. data/lib/emf/emf_plus/links/link_error.rb +15 -0
  82. data/lib/emf/emf_plus/links.rb +77 -0
  83. data/lib/emf/emf_plus/object_chain.rb +108 -0
  84. data/lib/emf/emf_plus/object_table.rb +182 -0
  85. data/lib/emf/emf_plus/objects/brush.rb +296 -0
  86. data/lib/emf/emf_plus/objects/custom_line_cap.rb +106 -0
  87. data/lib/emf/emf_plus/objects/font.rb +47 -0
  88. data/lib/emf/emf_plus/objects/image.rb +68 -0
  89. data/lib/emf/emf_plus/objects/image_attributes.rb +28 -0
  90. data/lib/emf/emf_plus/objects/opaque.rb +19 -0
  91. data/lib/emf/emf_plus/objects/parts.rb +103 -0
  92. data/lib/emf/emf_plus/objects/path.rb +21 -0
  93. data/lib/emf/emf_plus/objects/pen.rb +132 -0
  94. data/lib/emf/emf_plus/objects/region.rb +39 -0
  95. data/lib/emf/emf_plus/objects/string_format.rb +55 -0
  96. data/lib/emf/emf_plus/objects/typed.rb +50 -0
  97. data/lib/emf/emf_plus/objects.rb +46 -0
  98. data/lib/emf/emf_plus/parser.rb +75 -0
  99. data/lib/emf/emf_plus/records/base.rb +107 -0
  100. data/lib/emf/emf_plus/records/begin_container.rb +31 -0
  101. data/lib/emf/emf_plus/records/begin_container_no_params.rb +20 -0
  102. data/lib/emf/emf_plus/records/body.rb +16 -0
  103. data/lib/emf/emf_plus/records/clear.rb +22 -0
  104. data/lib/emf/emf_plus/records/clip_transform_flags.rb +26 -0
  105. data/lib/emf/emf_plus/records/comment.rb +21 -0
  106. data/lib/emf/emf_plus/records/draw_arc.rb +33 -0
  107. data/lib/emf/emf_plus/records/draw_beziers.rb +31 -0
  108. data/lib/emf/emf_plus/records/draw_closed_curve.rb +34 -0
  109. data/lib/emf/emf_plus/records/draw_curve.rb +38 -0
  110. data/lib/emf/emf_plus/records/draw_driver_string.rb +61 -0
  111. data/lib/emf/emf_plus/records/draw_ellipse.rb +28 -0
  112. data/lib/emf/emf_plus/records/draw_image.rb +42 -0
  113. data/lib/emf/emf_plus/records/draw_image_points.rb +62 -0
  114. data/lib/emf/emf_plus/records/draw_lines.rb +34 -0
  115. data/lib/emf/emf_plus/records/draw_path.rb +23 -0
  116. data/lib/emf/emf_plus/records/draw_pie.rb +33 -0
  117. data/lib/emf/emf_plus/records/draw_rects.rb +30 -0
  118. data/lib/emf/emf_plus/records/draw_string.rb +41 -0
  119. data/lib/emf/emf_plus/records/end_container.rb +20 -0
  120. data/lib/emf/emf_plus/records/end_of_file.rb +17 -0
  121. data/lib/emf/emf_plus/records/fill_brush.rb +21 -0
  122. data/lib/emf/emf_plus/records/fill_closed_curve.rb +38 -0
  123. data/lib/emf/emf_plus/records/fill_ellipse.rb +29 -0
  124. data/lib/emf/emf_plus/records/fill_path.rb +23 -0
  125. data/lib/emf/emf_plus/records/fill_pie.rb +34 -0
  126. data/lib/emf/emf_plus/records/fill_polygon.rb +32 -0
  127. data/lib/emf/emf_plus/records/fill_rects.rb +31 -0
  128. data/lib/emf/emf_plus/records/fill_region.rb +23 -0
  129. data/lib/emf/emf_plus/records/get_dc.rb +18 -0
  130. data/lib/emf/emf_plus/records/header.rb +35 -0
  131. data/lib/emf/emf_plus/records/multiply_world_transform.rb +24 -0
  132. data/lib/emf/emf_plus/records/object.rb +32 -0
  133. data/lib/emf/emf_plus/records/offset_clip.rb +24 -0
  134. data/lib/emf/emf_plus/records/primitives/argb.rb +20 -0
  135. data/lib/emf/emf_plus/records/primitives/bitmap.rb +32 -0
  136. data/lib/emf/emf_plus/records/primitives/bitmap_data.rb +21 -0
  137. data/lib/emf/emf_plus/records/primitives/blend_colors.rb +22 -0
  138. data/lib/emf/emf_plus/records/primitives/blend_factors.rb +21 -0
  139. data/lib/emf/emf_plus/records/primitives/bounded_array.rb +38 -0
  140. data/lib/emf/emf_plus/records/primitives/byte_reader.rb +25 -0
  141. data/lib/emf/emf_plus/records/primitives/character_range.rb +20 -0
  142. data/lib/emf/emf_plus/records/primitives/compressed_image.rb +17 -0
  143. data/lib/emf/emf_plus/records/primitives/focus_scale_data.rb +20 -0
  144. data/lib/emf/emf_plus/records/primitives/graphics_version.rb +21 -0
  145. data/lib/emf/emf_plus/records/primitives/language_identifier.rb +22 -0
  146. data/lib/emf/emf_plus/records/primitives/metafile.rb +19 -0
  147. data/lib/emf/emf_plus/records/primitives/palette.rb +21 -0
  148. data/lib/emf/emf_plus/records/primitives/path.rb +89 -0
  149. data/lib/emf/emf_plus/records/primitives/path_point_type.rb +21 -0
  150. data/lib/emf/emf_plus/records/primitives/path_point_type_rle.rb +23 -0
  151. data/lib/emf/emf_plus/records/primitives/point.rb +18 -0
  152. data/lib/emf/emf_plus/records/primitives/point_array.rb +42 -0
  153. data/lib/emf/emf_plus/records/primitives/point_f.rb +19 -0
  154. data/lib/emf/emf_plus/records/primitives/point_r.rb +19 -0
  155. data/lib/emf/emf_plus/records/primitives/rect.rb +20 -0
  156. data/lib/emf/emf_plus/records/primitives/rect_array.rb +24 -0
  157. data/lib/emf/emf_plus/records/primitives/rect_f.rb +21 -0
  158. data/lib/emf/emf_plus/records/primitives/region_node.rb +68 -0
  159. data/lib/emf/emf_plus/records/primitives/region_node_child_nodes.rb +22 -0
  160. data/lib/emf/emf_plus/records/primitives/region_node_path.rb +37 -0
  161. data/lib/emf/emf_plus/records/primitives/relative_coordinate.rb +32 -0
  162. data/lib/emf/emf_plus/records/primitives/string_format_data.rb +23 -0
  163. data/lib/emf/emf_plus/records/primitives/transform_matrix.rb +23 -0
  164. data/lib/emf/emf_plus/records/primitives.rb +41 -0
  165. data/lib/emf/emf_plus/records/reset_clip.rb +17 -0
  166. data/lib/emf/emf_plus/records/reset_world_transform.rb +17 -0
  167. data/lib/emf/emf_plus/records/restore.rb +20 -0
  168. data/lib/emf/emf_plus/records/rotate_world_transform.rb +24 -0
  169. data/lib/emf/emf_plus/records/save.rb +20 -0
  170. data/lib/emf/emf_plus/records/scale_world_transform.rb +26 -0
  171. data/lib/emf/emf_plus/records/serializable_object.rb +32 -0
  172. data/lib/emf/emf_plus/records/set_anti_alias_mode.rb +25 -0
  173. data/lib/emf/emf_plus/records/set_clip_path.rb +20 -0
  174. data/lib/emf/emf_plus/records/set_clip_rect.rb +24 -0
  175. data/lib/emf/emf_plus/records/set_clip_region.rb +20 -0
  176. data/lib/emf/emf_plus/records/set_compositing_mode.rb +21 -0
  177. data/lib/emf/emf_plus/records/set_compositing_quality.rb +21 -0
  178. data/lib/emf/emf_plus/records/set_interpolation_mode.rb +21 -0
  179. data/lib/emf/emf_plus/records/set_page_transform.rb +25 -0
  180. data/lib/emf/emf_plus/records/set_pixel_offset_mode.rb +21 -0
  181. data/lib/emf/emf_plus/records/set_rendering_origin.rb +22 -0
  182. data/lib/emf/emf_plus/records/set_text_contrast.rb +24 -0
  183. data/lib/emf/emf_plus/records/set_text_rendering_hint.rb +21 -0
  184. data/lib/emf/emf_plus/records/set_ts_clip.rb +40 -0
  185. data/lib/emf/emf_plus/records/set_ts_graphics.rb +88 -0
  186. data/lib/emf/emf_plus/records/set_world_transform.rb +22 -0
  187. data/lib/emf/emf_plus/records/shape_flags.rb +23 -0
  188. data/lib/emf/emf_plus/records/translate_world_transform.rb +26 -0
  189. data/lib/emf/emf_plus/records/unknown.rb +20 -0
  190. data/lib/emf/emf_plus/records.rb +107 -0
  191. data/lib/emf/emf_plus/serializer.rb +20 -0
  192. data/lib/emf/emf_plus/stream/conformance.rb +68 -0
  193. data/lib/emf/emf_plus/stream/editor.rb +21 -0
  194. data/lib/emf/emf_plus/stream/emf_gap.rb +20 -0
  195. data/lib/emf/emf_plus/stream/link_index.rb +30 -0
  196. data/lib/emf/emf_plus/stream/rebuild.rb +47 -0
  197. data/lib/emf/emf_plus/stream/record_handle.rb +26 -0
  198. data/lib/emf/emf_plus/stream/segment.rb +70 -0
  199. data/lib/emf/emf_plus/stream.rb +153 -0
  200. data/lib/emf/emf_plus.rb +18 -0
  201. data/lib/emf/emr/binary/dib_header.rb +142 -0
  202. data/lib/emf/emr/binary/ext_text_out_fields.rb +43 -0
  203. data/lib/emf/emr/binary/extended_pen_buffers.rb +23 -0
  204. data/lib/emf/emr/binary/fast_fill.rb +1164 -0
  205. data/lib/emf/emr/binary/font.rb +159 -0
  206. data/lib/emf/emr/binary/header.rb +41 -0
  207. data/lib/emf/emr/binary/lazy_utf16_array.rb +82 -0
  208. data/lib/emf/emr/binary/pack_plan.rb +144 -0
  209. data/lib/emf/emr/binary/pack_plan_check.rb +75 -0
  210. data/lib/emf/emr/binary/pack_plan_exact.rb +130 -0
  211. data/lib/emf/emr/binary/pack_plan_generate.rb +116 -0
  212. data/lib/emf/emr/binary/pack_plan_values.rb +92 -0
  213. data/lib/emf/emr/binary/palette_body.rb +19 -0
  214. data/lib/emf/emr/binary/palette_entry.rb +18 -0
  215. data/lib/emf/emr/binary/record.rb +50 -0
  216. data/lib/emf/emr/binary/records/abort_path.rb +16 -0
  217. data/lib/emf/emr/binary/records/alpha_blend.rb +60 -0
  218. data/lib/emf/emr/binary/records/angle_arc.rb +19 -0
  219. data/lib/emf/emr/binary/records/arc.rb +19 -0
  220. data/lib/emf/emr/binary/records/arc_to.rb +19 -0
  221. data/lib/emf/emr/binary/records/begin_path.rb +16 -0
  222. data/lib/emf/emr/binary/records/bit_blt.rb +51 -0
  223. data/lib/emf/emr/binary/records/chord.rb +19 -0
  224. data/lib/emf/emr/binary/records/close_figure.rb +16 -0
  225. data/lib/emf/emr/binary/records/color_correct_palette.rb +71 -0
  226. data/lib/emf/emr/binary/records/colormatch_to_target_w.rb +92 -0
  227. data/lib/emf/emr/binary/records/comment.rb +20 -0
  228. data/lib/emf/emr/binary/records/create_brush_indirect.rb +20 -0
  229. data/lib/emf/emr/binary/records/create_colorspace.rb +83 -0
  230. data/lib/emf/emr/binary/records/create_colorspace_w.rb +106 -0
  231. data/lib/emf/emr/binary/records/create_dib_pattern_brush_pt.rb +39 -0
  232. data/lib/emf/emr/binary/records/create_font_indirect_w.rb +22 -0
  233. data/lib/emf/emr/binary/records/create_mono_brush.rb +39 -0
  234. data/lib/emf/emr/binary/records/create_palette.rb +35 -0
  235. data/lib/emf/emr/binary/records/create_pen.rb +20 -0
  236. data/lib/emf/emr/binary/records/delete_colorspace.rb +38 -0
  237. data/lib/emf/emr/binary/records/delete_object.rb +16 -0
  238. data/lib/emf/emr/binary/records/draw_escape.rb +61 -0
  239. data/lib/emf/emr/binary/records/ellipse.rb +18 -0
  240. data/lib/emf/emr/binary/records/end_path.rb +16 -0
  241. data/lib/emf/emr/binary/records/eof.rb +30 -0
  242. data/lib/emf/emr/binary/records/exclude_clip_rect.rb +16 -0
  243. data/lib/emf/emr/binary/records/ext_create_pen.rb +96 -0
  244. data/lib/emf/emr/binary/records/ext_escape.rb +61 -0
  245. data/lib/emf/emr/binary/records/ext_flood_fill.rb +24 -0
  246. data/lib/emf/emr/binary/records/ext_select_clip_rgn.rb +27 -0
  247. data/lib/emf/emr/binary/records/ext_text_out_a.rb +40 -0
  248. data/lib/emf/emr/binary/records/ext_text_out_w.rb +52 -0
  249. data/lib/emf/emr/binary/records/fill_path.rb +16 -0
  250. data/lib/emf/emr/binary/records/fill_rgn.rb +26 -0
  251. data/lib/emf/emr/binary/records/flatten_path.rb +16 -0
  252. data/lib/emf/emr/binary/records/force_ufi_mapping.rb +54 -0
  253. data/lib/emf/emr/binary/records/frame_rgn.rb +27 -0
  254. data/lib/emf/emr/binary/records/gls_bounded_record.rb +77 -0
  255. data/lib/emf/emr/binary/records/gls_record.rb +58 -0
  256. data/lib/emf/emr/binary/records/gradient_fill.rb +26 -0
  257. data/lib/emf/emr/binary/records/intersect_clip_rect.rb +16 -0
  258. data/lib/emf/emr/binary/records/invert_rgn.rb +25 -0
  259. data/lib/emf/emr/binary/records/line_to.rb +16 -0
  260. data/lib/emf/emr/binary/records/mask_blt.rb +83 -0
  261. data/lib/emf/emr/binary/records/modify_world_transform.rb +17 -0
  262. data/lib/emf/emr/binary/records/move_to_ex.rb +16 -0
  263. data/lib/emf/emr/binary/records/named_escape.rb +94 -0
  264. data/lib/emf/emr/binary/records/offset_clip_rgn.rb +16 -0
  265. data/lib/emf/emr/binary/records/paint_rgn.rb +25 -0
  266. data/lib/emf/emr/binary/records/pie.rb +19 -0
  267. data/lib/emf/emr/binary/records/pixel_format.rb +92 -0
  268. data/lib/emf/emr/binary/records/plg_blt.rb +83 -0
  269. data/lib/emf/emr/binary/records/poly_bezier.rb +17 -0
  270. data/lib/emf/emr/binary/records/poly_bezier16.rb +17 -0
  271. data/lib/emf/emr/binary/records/poly_bezier_to.rb +17 -0
  272. data/lib/emf/emr/binary/records/poly_bezier_to16.rb +17 -0
  273. data/lib/emf/emr/binary/records/poly_draw.rb +18 -0
  274. data/lib/emf/emr/binary/records/poly_draw16.rb +18 -0
  275. data/lib/emf/emr/binary/records/poly_polygon.rb +19 -0
  276. data/lib/emf/emr/binary/records/poly_polygon16.rb +19 -0
  277. data/lib/emf/emr/binary/records/poly_polyline.rb +19 -0
  278. data/lib/emf/emr/binary/records/poly_polyline16.rb +19 -0
  279. data/lib/emf/emr/binary/records/poly_textout_a.rb +144 -0
  280. data/lib/emf/emr/binary/records/poly_textout_w.rb +144 -0
  281. data/lib/emf/emr/binary/records/polygon.rb +17 -0
  282. data/lib/emf/emr/binary/records/polygon16.rb +17 -0
  283. data/lib/emf/emr/binary/records/polyline.rb +17 -0
  284. data/lib/emf/emr/binary/records/polyline16.rb +17 -0
  285. data/lib/emf/emr/binary/records/polyline_to.rb +17 -0
  286. data/lib/emf/emr/binary/records/polyline_to16.rb +17 -0
  287. data/lib/emf/emr/binary/records/raw.rb +22 -0
  288. data/lib/emf/emr/binary/records/realize_palette.rb +16 -0
  289. data/lib/emf/emr/binary/records/rectangle.rb +18 -0
  290. data/lib/emf/emr/binary/records/resize_palette.rb +31 -0
  291. data/lib/emf/emr/binary/records/restore_dc.rb +17 -0
  292. data/lib/emf/emr/binary/records/round_rect.rb +19 -0
  293. data/lib/emf/emr/binary/records/save_dc.rb +16 -0
  294. data/lib/emf/emr/binary/records/scale_viewport_ext_ex.rb +19 -0
  295. data/lib/emf/emr/binary/records/scale_window_ext_ex.rb +19 -0
  296. data/lib/emf/emr/binary/records/select_clip_path.rb +20 -0
  297. data/lib/emf/emr/binary/records/select_object.rb +16 -0
  298. data/lib/emf/emr/binary/records/select_palette.rb +17 -0
  299. data/lib/emf/emr/binary/records/set_arc_direction.rb +16 -0
  300. data/lib/emf/emr/binary/records/set_bk_color.rb +16 -0
  301. data/lib/emf/emr/binary/records/set_bk_mode.rb +16 -0
  302. data/lib/emf/emr/binary/records/set_brush_org_ex.rb +16 -0
  303. data/lib/emf/emr/binary/records/set_color_adjustment.rb +136 -0
  304. data/lib/emf/emr/binary/records/set_colorspace.rb +38 -0
  305. data/lib/emf/emr/binary/records/set_dibits_to_device.rb +60 -0
  306. data/lib/emf/emr/binary/records/set_icm_mode.rb +16 -0
  307. data/lib/emf/emr/binary/records/set_icm_profile_a.rb +87 -0
  308. data/lib/emf/emr/binary/records/set_icm_profile_w.rb +87 -0
  309. data/lib/emf/emr/binary/records/set_layout.rb +16 -0
  310. data/lib/emf/emr/binary/records/set_linked_ufis.rb +65 -0
  311. data/lib/emf/emr/binary/records/set_map_mode.rb +16 -0
  312. data/lib/emf/emr/binary/records/set_mapper_flags.rb +16 -0
  313. data/lib/emf/emr/binary/records/set_metargn.rb +16 -0
  314. data/lib/emf/emr/binary/records/set_miter_limit.rb +16 -0
  315. data/lib/emf/emr/binary/records/set_palette_entries.rb +35 -0
  316. data/lib/emf/emr/binary/records/set_pixel_v.rb +18 -0
  317. data/lib/emf/emr/binary/records/set_poly_fill_mode.rb +16 -0
  318. data/lib/emf/emr/binary/records/set_rop2.rb +16 -0
  319. data/lib/emf/emr/binary/records/set_stretch_blt_mode.rb +16 -0
  320. data/lib/emf/emr/binary/records/set_text_align.rb +16 -0
  321. data/lib/emf/emr/binary/records/set_text_color.rb +17 -0
  322. data/lib/emf/emr/binary/records/set_text_justification.rb +23 -0
  323. data/lib/emf/emr/binary/records/set_viewport_ext_ex.rb +16 -0
  324. data/lib/emf/emr/binary/records/set_viewport_org_ex.rb +16 -0
  325. data/lib/emf/emr/binary/records/set_window_ext_ex.rb +16 -0
  326. data/lib/emf/emr/binary/records/set_window_org_ex.rb +16 -0
  327. data/lib/emf/emr/binary/records/set_world_transform.rb +16 -0
  328. data/lib/emf/emr/binary/records/small_text_out.rb +79 -0
  329. data/lib/emf/emr/binary/records/stretch_blt.rb +53 -0
  330. data/lib/emf/emr/binary/records/stretch_dibits.rb +56 -0
  331. data/lib/emf/emr/binary/records/stroke_and_fill_path.rb +16 -0
  332. data/lib/emf/emr/binary/records/stroke_path.rb +16 -0
  333. data/lib/emf/emr/binary/records/transparent_blt.rb +60 -0
  334. data/lib/emf/emr/binary/records/widen_path.rb +16 -0
  335. data/lib/emf/emr/binary/records.rb +260 -0
  336. data/lib/emf/emr/binary/region_data.rb +33 -0
  337. data/lib/emf/emr/binary/state_record_body.rb +33 -0
  338. data/lib/emf/emr/binary/thin_shell.rb +226 -0
  339. data/lib/emf/emr/binary/type_codes.rb +132 -0
  340. data/lib/emf/emr/binary/value_view/layout.rb +101 -0
  341. data/lib/emf/emr/binary/value_view/reader_source.rb +88 -0
  342. data/lib/emf/emr/binary/value_view.rb +173 -0
  343. data/lib/emf/emr/binary/variable_buffers.rb +87 -0
  344. data/lib/emf/emr/binary/with_bounds.rb +15 -0
  345. data/lib/emf/emr/binary.rb +17 -0
  346. data/lib/emf/emr/filled_record.rb +77 -0
  347. data/lib/emf/emr/parser.rb +374 -0
  348. data/lib/emf/emr/path_association.rb +16 -0
  349. data/lib/emf/emr/serializer.rb +23 -0
  350. data/lib/emf/emr.rb +11 -0
  351. data/lib/emf/error.rb +42 -0
  352. data/lib/emf/model/diagnostic.rb +41 -0
  353. data/lib/emf/model/emr/header.rb +132 -0
  354. data/lib/emf/model/emr/records.rb +184 -0
  355. data/lib/emf/model/emr/wire_values.rb +43 -0
  356. data/lib/emf/model/emr.rb +11 -0
  357. data/lib/emf/model/geometry/color.rb +85 -0
  358. data/lib/emf/model/geometry/matrix.rb +52 -0
  359. data/lib/emf/model/geometry/point.rb +41 -0
  360. data/lib/emf/model/geometry/point_f.rb +33 -0
  361. data/lib/emf/model/geometry/point_s.rb +33 -0
  362. data/lib/emf/model/geometry/rect.rb +57 -0
  363. data/lib/emf/model/geometry/rect_s.rb +49 -0
  364. data/lib/emf/model/geometry/size.rb +33 -0
  365. data/lib/emf/model/geometry.rb +16 -0
  366. data/lib/emf/model/metafile.rb +54 -0
  367. data/lib/emf/model/record.rb +19 -0
  368. data/lib/emf/model/visitor.rb +42 -0
  369. data/lib/emf/model/wmf/bitmap_records.rb +155 -0
  370. data/lib/emf/model/wmf/brush_records.rb +45 -0
  371. data/lib/emf/model/wmf/dc_escape_records.rb +67 -0
  372. data/lib/emf/model/wmf/font_record.rb +40 -0
  373. data/lib/emf/model/wmf/geometry_records.rb +107 -0
  374. data/lib/emf/model/wmf/header.rb +36 -0
  375. data/lib/emf/model/wmf/object_records.rb +71 -0
  376. data/lib/emf/model/wmf/palette_records.rb +68 -0
  377. data/lib/emf/model/wmf/records.rb +247 -0
  378. data/lib/emf/model/wmf/region_records.rb +112 -0
  379. data/lib/emf/model/wmf/state_records.rb +188 -0
  380. data/lib/emf/model/wmf/text_records.rb +36 -0
  381. data/lib/emf/model/wmf.rb +11 -0
  382. data/lib/emf/model.rb +13 -0
  383. data/lib/emf/native/bitmap_fields.rb +58 -0
  384. data/lib/emf/native/diagnostic_contract.rb +39 -0
  385. data/lib/emf/native/diagnostics.rb +81 -0
  386. data/lib/emf/native/emf_plus_loader.rb +35 -0
  387. data/lib/emf/native/emf_plus_snapshot.rb +96 -0
  388. data/lib/emf/native/emf_plus_source.rb +20 -0
  389. data/lib/emf/native/emf_plus_stream.rb +150 -0
  390. data/lib/emf/native/fields.rb +369 -0
  391. data/lib/emf/native/font_fields.rb +87 -0
  392. data/lib/emf/native/gradient_fields.rb +23 -0
  393. data/lib/emf/native/header.rb +35 -0
  394. data/lib/emf/native/header_errors.rb +30 -0
  395. data/lib/emf/native/hydrator.rb +151 -0
  396. data/lib/emf/native/lazy_wire.rb +100 -0
  397. data/lib/emf/native/legacy_state_fields.rb +22 -0
  398. data/lib/emf/native/library_path.rb +68 -0
  399. data/lib/emf/native/loader.rb +120 -0
  400. data/lib/emf/native/palette_fields.rb +45 -0
  401. data/lib/emf/native/platforms.json +6 -0
  402. data/lib/emf/native/poly_text_fields.rb +116 -0
  403. data/lib/emf/native/provenance.json +11 -0
  404. data/lib/emf/native/resource_failure.rb +28 -0
  405. data/lib/emf/native/small_text_fields.rb +27 -0
  406. data/lib/emf/native/snapshot.rb +102 -0
  407. data/lib/emf/native/wmf_bitmap_fields.rb +58 -0
  408. data/lib/emf/native/wmf_brush_fields.rb +62 -0
  409. data/lib/emf/native/wmf_fields.rb +117 -0
  410. data/lib/emf/native/wmf_hydrator.rb +143 -0
  411. data/lib/emf/native/wmf_loading.rb +49 -0
  412. data/lib/emf/native/wmf_palette_fields.rb +60 -0
  413. data/lib/emf/native/wmf_region_fields.rb +92 -0
  414. data/lib/emf/native/wmf_rejection.rb +84 -0
  415. data/lib/emf/native/wmf_remaining_fields.rb +70 -0
  416. data/lib/emf/native/wmf_snapshot.rb +51 -0
  417. data/lib/emf/native/wmf_text_fields.rb +56 -0
  418. data/lib/emf/native/x64-mingw-ucrt/emf_ffi.dll +0 -0
  419. data/lib/emf/native.rb +61 -0
  420. data/lib/emf/parse_evidence.rb +57 -0
  421. data/lib/emf/resource_budget/bitmap.rb +66 -0
  422. data/lib/emf/resource_budget/gradient.rb +30 -0
  423. data/lib/emf/resource_budget/poly_text.rb +85 -0
  424. data/lib/emf/resource_budget.rb +382 -0
  425. data/lib/emf/resource_limits/emf_records.rb +130 -0
  426. data/lib/emf/resource_limits.rb +58 -0
  427. data/lib/emf/version.rb +5 -0
  428. data/lib/emf/visitors/dump.rb +61 -0
  429. data/lib/emf/visitors/stats.rb +64 -0
  430. data/lib/emf/visitors.rb +8 -0
  431. data/lib/emf/wmf/binary.rb +158 -0
  432. data/lib/emf/wmf/bitmap_codec.rb +118 -0
  433. data/lib/emf/wmf/brush_codec.rb +102 -0
  434. data/lib/emf/wmf/dc_escape_codec.rb +75 -0
  435. data/lib/emf/wmf/dib.rb +187 -0
  436. data/lib/emf/wmf/embedded_emf.rb +137 -0
  437. data/lib/emf/wmf/escape_views.rb +89 -0
  438. data/lib/emf/wmf/evidence.rb +255 -0
  439. data/lib/emf/wmf/geometry_codec.rb +49 -0
  440. data/lib/emf/wmf/palette_codec.rb +85 -0
  441. data/lib/emf/wmf/parser.rb +158 -0
  442. data/lib/emf/wmf/recovery.rb +95 -0
  443. data/lib/emf/wmf/region_codec.rb +151 -0
  444. data/lib/emf/wmf/serializer.rb +175 -0
  445. data/lib/emf/wmf/text_codec.rb +123 -0
  446. data/lib/emf/wmf.rb +16 -0
  447. data/lib/emf.rb +60 -0
  448. metadata +520 -0
metadata ADDED
@@ -0,0 +1,520 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: emf
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ platform: x64-mingw-ucrt
6
+ authors:
7
+ - Ribose Inc.
8
+ bindir: exe
9
+ cert_chain: []
10
+ dependencies:
11
+ - !ruby/object:Gem::Dependency
12
+ name: bindata
13
+ requirement: !ruby/object:Gem::Requirement
14
+ requirements:
15
+ - - "~>"
16
+ - !ruby/object:Gem::Version
17
+ version: '2.4'
18
+ type: :runtime
19
+ prerelease: false
20
+ version_requirements: !ruby/object:Gem::Requirement
21
+ requirements:
22
+ - - "~>"
23
+ - !ruby/object:Gem::Version
24
+ version: '2.4'
25
+ - !ruby/object:Gem::Dependency
26
+ name: fiddle
27
+ requirement: !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - "~>"
30
+ - !ruby/object:Gem::Version
31
+ version: '1.1'
32
+ type: :runtime
33
+ prerelease: false
34
+ version_requirements: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - "~>"
37
+ - !ruby/object:Gem::Version
38
+ version: '1.1'
39
+ description: Parser for Windows Metafile (WMF), Enhanced Metafile (EMF), and EMF+
40
+ binary formats, in Ruby with an optional native backend. Produces an OOP domain
41
+ model that downstream gems (such as emfsvg) consume.
42
+ email:
43
+ - open.source@ribose.com
44
+ executables:
45
+ - emf
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - LICENSE.txt
50
+ - README.adoc
51
+ - exe/emf
52
+ - lib/emf.rb
53
+ - lib/emf/backend.rb
54
+ - lib/emf/binary.rb
55
+ - lib/emf/binary/class_field_accessors.rb
56
+ - lib/emf/binary/codec.rb
57
+ - lib/emf/binary/float32_le.rb
58
+ - lib/emf/binary/types.rb
59
+ - lib/emf/conformance.rb
60
+ - lib/emf/conformance/context.rb
61
+ - lib/emf/conformance/diagnostic.rb
62
+ - lib/emf/conformance/manifest.rb
63
+ - lib/emf/conformance/manifest/emf_bitmap_misc.yml
64
+ - lib/emf/conformance/manifest/emf_control_buffers.yml
65
+ - lib/emf/conformance/manifest/emf_core.yml
66
+ - lib/emf/conformance/manifest/emf_corpus_rules.yml
67
+ - lib/emf/conformance/manifest/emf_objects_geometry.yml
68
+ - lib/emf/conformance/manifest/emf_plus.yml
69
+ - lib/emf/conformance/manifest/emf_plus_core.yml
70
+ - lib/emf/conformance/manifest/emf_state_path.yml
71
+ - lib/emf/conformance/manifest/emf_text.yml
72
+ - lib/emf/conformance/manifest/wmf.yml
73
+ - lib/emf/conformance/profile.rb
74
+ - lib/emf/conformance/record_types.rb
75
+ - lib/emf/conformance/registry.rb
76
+ - lib/emf/conformance/report.rb
77
+ - lib/emf/conformance/rule.rb
78
+ - lib/emf/conformance/rules/emf_bitmap.rb
79
+ - lib/emf/conformance/rules/emf_comment_escape.rb
80
+ - lib/emf/conformance/rules/emf_control_buffers.rb
81
+ - lib/emf/conformance/rules/emf_corpus_named.rb
82
+ - lib/emf/conformance/rules/emf_framing.rb
83
+ - lib/emf/conformance/rules/emf_geometry.rb
84
+ - lib/emf/conformance/rules/emf_header.rb
85
+ - lib/emf/conformance/rules/emf_objects.rb
86
+ - lib/emf/conformance/rules/emf_parse_recovery.rb
87
+ - lib/emf/conformance/rules/emf_path_clip.rb
88
+ - lib/emf/conformance/rules/emf_plus.rb
89
+ - lib/emf/conformance/rules/emf_plus_common.rb
90
+ - lib/emf/conformance/rules/emf_plus_drawing.rb
91
+ - lib/emf/conformance/rules/emf_plus_effects.rb
92
+ - lib/emf/conformance/rules/emf_plus_fields.rb
93
+ - lib/emf/conformance/rules/emf_plus_fields_b.rb
94
+ - lib/emf/conformance/rules/emf_plus_framing.rb
95
+ - lib/emf/conformance/rules/emf_plus_objects.rb
96
+ - lib/emf/conformance/rules/emf_plus_payloads.rb
97
+ - lib/emf/conformance/rules/emf_plus_properties.rb
98
+ - lib/emf/conformance/rules/emf_plus_state.rb
99
+ - lib/emf/conformance/rules/emf_state.rb
100
+ - lib/emf/conformance/rules/emf_text.rb
101
+ - lib/emf/conformance/rules/emf_transform.rb
102
+ - lib/emf/conformance/rules/wmf_buffers.rb
103
+ - lib/emf/conformance/rules/wmf_framing.rb
104
+ - lib/emf/conformance/rules/wmf_layout_records.rb
105
+ - lib/emf/conformance/rules/wmf_objects.rb
106
+ - lib/emf/conformance/rules/wmf_records.rb
107
+ - lib/emf/conformance/rules/wmf_rejections.rb
108
+ - lib/emf/conformance/runner.rb
109
+ - lib/emf/conformance/ternary_raster_operations.rb
110
+ - lib/emf/detector.rb
111
+ - lib/emf/emf_plus.rb
112
+ - lib/emf/emf_plus/binary.rb
113
+ - lib/emf/emf_plus/effects.rb
114
+ - lib/emf/emf_plus/effects/blur.rb
115
+ - lib/emf/emf_plus/effects/brightness_contrast.rb
116
+ - lib/emf/emf_plus/effects/color_balance.rb
117
+ - lib/emf/emf_plus/effects/color_curve.rb
118
+ - lib/emf/emf_plus/effects/color_lookup_table.rb
119
+ - lib/emf/emf_plus/effects/color_matrix.rb
120
+ - lib/emf/emf_plus/effects/effect.rb
121
+ - lib/emf/emf_plus/effects/hue_saturation_lightness.rb
122
+ - lib/emf/emf_plus/effects/levels.rb
123
+ - lib/emf/emf_plus/effects/opaque.rb
124
+ - lib/emf/emf_plus/effects/red_eye_correction.rb
125
+ - lib/emf/emf_plus/effects/sharpen.rb
126
+ - lib/emf/emf_plus/effects/tint.rb
127
+ - lib/emf/emf_plus/frame.rb
128
+ - lib/emf/emf_plus/links.rb
129
+ - lib/emf/emf_plus/links/effect_link.rb
130
+ - lib/emf/emf_plus/links/get_dc_span.rb
131
+ - lib/emf/emf_plus/links/link_error.rb
132
+ - lib/emf/emf_plus/object_chain.rb
133
+ - lib/emf/emf_plus/object_table.rb
134
+ - lib/emf/emf_plus/objects.rb
135
+ - lib/emf/emf_plus/objects/brush.rb
136
+ - lib/emf/emf_plus/objects/custom_line_cap.rb
137
+ - lib/emf/emf_plus/objects/font.rb
138
+ - lib/emf/emf_plus/objects/image.rb
139
+ - lib/emf/emf_plus/objects/image_attributes.rb
140
+ - lib/emf/emf_plus/objects/opaque.rb
141
+ - lib/emf/emf_plus/objects/parts.rb
142
+ - lib/emf/emf_plus/objects/path.rb
143
+ - lib/emf/emf_plus/objects/pen.rb
144
+ - lib/emf/emf_plus/objects/region.rb
145
+ - lib/emf/emf_plus/objects/string_format.rb
146
+ - lib/emf/emf_plus/objects/typed.rb
147
+ - lib/emf/emf_plus/parser.rb
148
+ - lib/emf/emf_plus/records.rb
149
+ - lib/emf/emf_plus/records/base.rb
150
+ - lib/emf/emf_plus/records/begin_container.rb
151
+ - lib/emf/emf_plus/records/begin_container_no_params.rb
152
+ - lib/emf/emf_plus/records/body.rb
153
+ - lib/emf/emf_plus/records/clear.rb
154
+ - lib/emf/emf_plus/records/clip_transform_flags.rb
155
+ - lib/emf/emf_plus/records/comment.rb
156
+ - lib/emf/emf_plus/records/draw_arc.rb
157
+ - lib/emf/emf_plus/records/draw_beziers.rb
158
+ - lib/emf/emf_plus/records/draw_closed_curve.rb
159
+ - lib/emf/emf_plus/records/draw_curve.rb
160
+ - lib/emf/emf_plus/records/draw_driver_string.rb
161
+ - lib/emf/emf_plus/records/draw_ellipse.rb
162
+ - lib/emf/emf_plus/records/draw_image.rb
163
+ - lib/emf/emf_plus/records/draw_image_points.rb
164
+ - lib/emf/emf_plus/records/draw_lines.rb
165
+ - lib/emf/emf_plus/records/draw_path.rb
166
+ - lib/emf/emf_plus/records/draw_pie.rb
167
+ - lib/emf/emf_plus/records/draw_rects.rb
168
+ - lib/emf/emf_plus/records/draw_string.rb
169
+ - lib/emf/emf_plus/records/end_container.rb
170
+ - lib/emf/emf_plus/records/end_of_file.rb
171
+ - lib/emf/emf_plus/records/fill_brush.rb
172
+ - lib/emf/emf_plus/records/fill_closed_curve.rb
173
+ - lib/emf/emf_plus/records/fill_ellipse.rb
174
+ - lib/emf/emf_plus/records/fill_path.rb
175
+ - lib/emf/emf_plus/records/fill_pie.rb
176
+ - lib/emf/emf_plus/records/fill_polygon.rb
177
+ - lib/emf/emf_plus/records/fill_rects.rb
178
+ - lib/emf/emf_plus/records/fill_region.rb
179
+ - lib/emf/emf_plus/records/get_dc.rb
180
+ - lib/emf/emf_plus/records/header.rb
181
+ - lib/emf/emf_plus/records/multiply_world_transform.rb
182
+ - lib/emf/emf_plus/records/object.rb
183
+ - lib/emf/emf_plus/records/offset_clip.rb
184
+ - lib/emf/emf_plus/records/primitives.rb
185
+ - lib/emf/emf_plus/records/primitives/argb.rb
186
+ - lib/emf/emf_plus/records/primitives/bitmap.rb
187
+ - lib/emf/emf_plus/records/primitives/bitmap_data.rb
188
+ - lib/emf/emf_plus/records/primitives/blend_colors.rb
189
+ - lib/emf/emf_plus/records/primitives/blend_factors.rb
190
+ - lib/emf/emf_plus/records/primitives/bounded_array.rb
191
+ - lib/emf/emf_plus/records/primitives/byte_reader.rb
192
+ - lib/emf/emf_plus/records/primitives/character_range.rb
193
+ - lib/emf/emf_plus/records/primitives/compressed_image.rb
194
+ - lib/emf/emf_plus/records/primitives/focus_scale_data.rb
195
+ - lib/emf/emf_plus/records/primitives/graphics_version.rb
196
+ - lib/emf/emf_plus/records/primitives/language_identifier.rb
197
+ - lib/emf/emf_plus/records/primitives/metafile.rb
198
+ - lib/emf/emf_plus/records/primitives/palette.rb
199
+ - lib/emf/emf_plus/records/primitives/path.rb
200
+ - lib/emf/emf_plus/records/primitives/path_point_type.rb
201
+ - lib/emf/emf_plus/records/primitives/path_point_type_rle.rb
202
+ - lib/emf/emf_plus/records/primitives/point.rb
203
+ - lib/emf/emf_plus/records/primitives/point_array.rb
204
+ - lib/emf/emf_plus/records/primitives/point_f.rb
205
+ - lib/emf/emf_plus/records/primitives/point_r.rb
206
+ - lib/emf/emf_plus/records/primitives/rect.rb
207
+ - lib/emf/emf_plus/records/primitives/rect_array.rb
208
+ - lib/emf/emf_plus/records/primitives/rect_f.rb
209
+ - lib/emf/emf_plus/records/primitives/region_node.rb
210
+ - lib/emf/emf_plus/records/primitives/region_node_child_nodes.rb
211
+ - lib/emf/emf_plus/records/primitives/region_node_path.rb
212
+ - lib/emf/emf_plus/records/primitives/relative_coordinate.rb
213
+ - lib/emf/emf_plus/records/primitives/string_format_data.rb
214
+ - lib/emf/emf_plus/records/primitives/transform_matrix.rb
215
+ - lib/emf/emf_plus/records/reset_clip.rb
216
+ - lib/emf/emf_plus/records/reset_world_transform.rb
217
+ - lib/emf/emf_plus/records/restore.rb
218
+ - lib/emf/emf_plus/records/rotate_world_transform.rb
219
+ - lib/emf/emf_plus/records/save.rb
220
+ - lib/emf/emf_plus/records/scale_world_transform.rb
221
+ - lib/emf/emf_plus/records/serializable_object.rb
222
+ - lib/emf/emf_plus/records/set_anti_alias_mode.rb
223
+ - lib/emf/emf_plus/records/set_clip_path.rb
224
+ - lib/emf/emf_plus/records/set_clip_rect.rb
225
+ - lib/emf/emf_plus/records/set_clip_region.rb
226
+ - lib/emf/emf_plus/records/set_compositing_mode.rb
227
+ - lib/emf/emf_plus/records/set_compositing_quality.rb
228
+ - lib/emf/emf_plus/records/set_interpolation_mode.rb
229
+ - lib/emf/emf_plus/records/set_page_transform.rb
230
+ - lib/emf/emf_plus/records/set_pixel_offset_mode.rb
231
+ - lib/emf/emf_plus/records/set_rendering_origin.rb
232
+ - lib/emf/emf_plus/records/set_text_contrast.rb
233
+ - lib/emf/emf_plus/records/set_text_rendering_hint.rb
234
+ - lib/emf/emf_plus/records/set_ts_clip.rb
235
+ - lib/emf/emf_plus/records/set_ts_graphics.rb
236
+ - lib/emf/emf_plus/records/set_world_transform.rb
237
+ - lib/emf/emf_plus/records/shape_flags.rb
238
+ - lib/emf/emf_plus/records/translate_world_transform.rb
239
+ - lib/emf/emf_plus/records/unknown.rb
240
+ - lib/emf/emf_plus/serializer.rb
241
+ - lib/emf/emf_plus/stream.rb
242
+ - lib/emf/emf_plus/stream/conformance.rb
243
+ - lib/emf/emf_plus/stream/editor.rb
244
+ - lib/emf/emf_plus/stream/emf_gap.rb
245
+ - lib/emf/emf_plus/stream/link_index.rb
246
+ - lib/emf/emf_plus/stream/rebuild.rb
247
+ - lib/emf/emf_plus/stream/record_handle.rb
248
+ - lib/emf/emf_plus/stream/segment.rb
249
+ - lib/emf/emr.rb
250
+ - lib/emf/emr/binary.rb
251
+ - lib/emf/emr/binary/dib_header.rb
252
+ - lib/emf/emr/binary/ext_text_out_fields.rb
253
+ - lib/emf/emr/binary/extended_pen_buffers.rb
254
+ - lib/emf/emr/binary/fast_fill.rb
255
+ - lib/emf/emr/binary/font.rb
256
+ - lib/emf/emr/binary/header.rb
257
+ - lib/emf/emr/binary/lazy_utf16_array.rb
258
+ - lib/emf/emr/binary/pack_plan.rb
259
+ - lib/emf/emr/binary/pack_plan_check.rb
260
+ - lib/emf/emr/binary/pack_plan_exact.rb
261
+ - lib/emf/emr/binary/pack_plan_generate.rb
262
+ - lib/emf/emr/binary/pack_plan_values.rb
263
+ - lib/emf/emr/binary/palette_body.rb
264
+ - lib/emf/emr/binary/palette_entry.rb
265
+ - lib/emf/emr/binary/record.rb
266
+ - lib/emf/emr/binary/records.rb
267
+ - lib/emf/emr/binary/records/abort_path.rb
268
+ - lib/emf/emr/binary/records/alpha_blend.rb
269
+ - lib/emf/emr/binary/records/angle_arc.rb
270
+ - lib/emf/emr/binary/records/arc.rb
271
+ - lib/emf/emr/binary/records/arc_to.rb
272
+ - lib/emf/emr/binary/records/begin_path.rb
273
+ - lib/emf/emr/binary/records/bit_blt.rb
274
+ - lib/emf/emr/binary/records/chord.rb
275
+ - lib/emf/emr/binary/records/close_figure.rb
276
+ - lib/emf/emr/binary/records/color_correct_palette.rb
277
+ - lib/emf/emr/binary/records/colormatch_to_target_w.rb
278
+ - lib/emf/emr/binary/records/comment.rb
279
+ - lib/emf/emr/binary/records/create_brush_indirect.rb
280
+ - lib/emf/emr/binary/records/create_colorspace.rb
281
+ - lib/emf/emr/binary/records/create_colorspace_w.rb
282
+ - lib/emf/emr/binary/records/create_dib_pattern_brush_pt.rb
283
+ - lib/emf/emr/binary/records/create_font_indirect_w.rb
284
+ - lib/emf/emr/binary/records/create_mono_brush.rb
285
+ - lib/emf/emr/binary/records/create_palette.rb
286
+ - lib/emf/emr/binary/records/create_pen.rb
287
+ - lib/emf/emr/binary/records/delete_colorspace.rb
288
+ - lib/emf/emr/binary/records/delete_object.rb
289
+ - lib/emf/emr/binary/records/draw_escape.rb
290
+ - lib/emf/emr/binary/records/ellipse.rb
291
+ - lib/emf/emr/binary/records/end_path.rb
292
+ - lib/emf/emr/binary/records/eof.rb
293
+ - lib/emf/emr/binary/records/exclude_clip_rect.rb
294
+ - lib/emf/emr/binary/records/ext_create_pen.rb
295
+ - lib/emf/emr/binary/records/ext_escape.rb
296
+ - lib/emf/emr/binary/records/ext_flood_fill.rb
297
+ - lib/emf/emr/binary/records/ext_select_clip_rgn.rb
298
+ - lib/emf/emr/binary/records/ext_text_out_a.rb
299
+ - lib/emf/emr/binary/records/ext_text_out_w.rb
300
+ - lib/emf/emr/binary/records/fill_path.rb
301
+ - lib/emf/emr/binary/records/fill_rgn.rb
302
+ - lib/emf/emr/binary/records/flatten_path.rb
303
+ - lib/emf/emr/binary/records/force_ufi_mapping.rb
304
+ - lib/emf/emr/binary/records/frame_rgn.rb
305
+ - lib/emf/emr/binary/records/gls_bounded_record.rb
306
+ - lib/emf/emr/binary/records/gls_record.rb
307
+ - lib/emf/emr/binary/records/gradient_fill.rb
308
+ - lib/emf/emr/binary/records/intersect_clip_rect.rb
309
+ - lib/emf/emr/binary/records/invert_rgn.rb
310
+ - lib/emf/emr/binary/records/line_to.rb
311
+ - lib/emf/emr/binary/records/mask_blt.rb
312
+ - lib/emf/emr/binary/records/modify_world_transform.rb
313
+ - lib/emf/emr/binary/records/move_to_ex.rb
314
+ - lib/emf/emr/binary/records/named_escape.rb
315
+ - lib/emf/emr/binary/records/offset_clip_rgn.rb
316
+ - lib/emf/emr/binary/records/paint_rgn.rb
317
+ - lib/emf/emr/binary/records/pie.rb
318
+ - lib/emf/emr/binary/records/pixel_format.rb
319
+ - lib/emf/emr/binary/records/plg_blt.rb
320
+ - lib/emf/emr/binary/records/poly_bezier.rb
321
+ - lib/emf/emr/binary/records/poly_bezier16.rb
322
+ - lib/emf/emr/binary/records/poly_bezier_to.rb
323
+ - lib/emf/emr/binary/records/poly_bezier_to16.rb
324
+ - lib/emf/emr/binary/records/poly_draw.rb
325
+ - lib/emf/emr/binary/records/poly_draw16.rb
326
+ - lib/emf/emr/binary/records/poly_polygon.rb
327
+ - lib/emf/emr/binary/records/poly_polygon16.rb
328
+ - lib/emf/emr/binary/records/poly_polyline.rb
329
+ - lib/emf/emr/binary/records/poly_polyline16.rb
330
+ - lib/emf/emr/binary/records/poly_textout_a.rb
331
+ - lib/emf/emr/binary/records/poly_textout_w.rb
332
+ - lib/emf/emr/binary/records/polygon.rb
333
+ - lib/emf/emr/binary/records/polygon16.rb
334
+ - lib/emf/emr/binary/records/polyline.rb
335
+ - lib/emf/emr/binary/records/polyline16.rb
336
+ - lib/emf/emr/binary/records/polyline_to.rb
337
+ - lib/emf/emr/binary/records/polyline_to16.rb
338
+ - lib/emf/emr/binary/records/raw.rb
339
+ - lib/emf/emr/binary/records/realize_palette.rb
340
+ - lib/emf/emr/binary/records/rectangle.rb
341
+ - lib/emf/emr/binary/records/resize_palette.rb
342
+ - lib/emf/emr/binary/records/restore_dc.rb
343
+ - lib/emf/emr/binary/records/round_rect.rb
344
+ - lib/emf/emr/binary/records/save_dc.rb
345
+ - lib/emf/emr/binary/records/scale_viewport_ext_ex.rb
346
+ - lib/emf/emr/binary/records/scale_window_ext_ex.rb
347
+ - lib/emf/emr/binary/records/select_clip_path.rb
348
+ - lib/emf/emr/binary/records/select_object.rb
349
+ - lib/emf/emr/binary/records/select_palette.rb
350
+ - lib/emf/emr/binary/records/set_arc_direction.rb
351
+ - lib/emf/emr/binary/records/set_bk_color.rb
352
+ - lib/emf/emr/binary/records/set_bk_mode.rb
353
+ - lib/emf/emr/binary/records/set_brush_org_ex.rb
354
+ - lib/emf/emr/binary/records/set_color_adjustment.rb
355
+ - lib/emf/emr/binary/records/set_colorspace.rb
356
+ - lib/emf/emr/binary/records/set_dibits_to_device.rb
357
+ - lib/emf/emr/binary/records/set_icm_mode.rb
358
+ - lib/emf/emr/binary/records/set_icm_profile_a.rb
359
+ - lib/emf/emr/binary/records/set_icm_profile_w.rb
360
+ - lib/emf/emr/binary/records/set_layout.rb
361
+ - lib/emf/emr/binary/records/set_linked_ufis.rb
362
+ - lib/emf/emr/binary/records/set_map_mode.rb
363
+ - lib/emf/emr/binary/records/set_mapper_flags.rb
364
+ - lib/emf/emr/binary/records/set_metargn.rb
365
+ - lib/emf/emr/binary/records/set_miter_limit.rb
366
+ - lib/emf/emr/binary/records/set_palette_entries.rb
367
+ - lib/emf/emr/binary/records/set_pixel_v.rb
368
+ - lib/emf/emr/binary/records/set_poly_fill_mode.rb
369
+ - lib/emf/emr/binary/records/set_rop2.rb
370
+ - lib/emf/emr/binary/records/set_stretch_blt_mode.rb
371
+ - lib/emf/emr/binary/records/set_text_align.rb
372
+ - lib/emf/emr/binary/records/set_text_color.rb
373
+ - lib/emf/emr/binary/records/set_text_justification.rb
374
+ - lib/emf/emr/binary/records/set_viewport_ext_ex.rb
375
+ - lib/emf/emr/binary/records/set_viewport_org_ex.rb
376
+ - lib/emf/emr/binary/records/set_window_ext_ex.rb
377
+ - lib/emf/emr/binary/records/set_window_org_ex.rb
378
+ - lib/emf/emr/binary/records/set_world_transform.rb
379
+ - lib/emf/emr/binary/records/small_text_out.rb
380
+ - lib/emf/emr/binary/records/stretch_blt.rb
381
+ - lib/emf/emr/binary/records/stretch_dibits.rb
382
+ - lib/emf/emr/binary/records/stroke_and_fill_path.rb
383
+ - lib/emf/emr/binary/records/stroke_path.rb
384
+ - lib/emf/emr/binary/records/transparent_blt.rb
385
+ - lib/emf/emr/binary/records/widen_path.rb
386
+ - lib/emf/emr/binary/region_data.rb
387
+ - lib/emf/emr/binary/state_record_body.rb
388
+ - lib/emf/emr/binary/thin_shell.rb
389
+ - lib/emf/emr/binary/type_codes.rb
390
+ - lib/emf/emr/binary/value_view.rb
391
+ - lib/emf/emr/binary/value_view/layout.rb
392
+ - lib/emf/emr/binary/value_view/reader_source.rb
393
+ - lib/emf/emr/binary/variable_buffers.rb
394
+ - lib/emf/emr/binary/with_bounds.rb
395
+ - lib/emf/emr/filled_record.rb
396
+ - lib/emf/emr/parser.rb
397
+ - lib/emf/emr/path_association.rb
398
+ - lib/emf/emr/serializer.rb
399
+ - lib/emf/error.rb
400
+ - lib/emf/model.rb
401
+ - lib/emf/model/diagnostic.rb
402
+ - lib/emf/model/emr.rb
403
+ - lib/emf/model/emr/header.rb
404
+ - lib/emf/model/emr/records.rb
405
+ - lib/emf/model/emr/wire_values.rb
406
+ - lib/emf/model/geometry.rb
407
+ - lib/emf/model/geometry/color.rb
408
+ - lib/emf/model/geometry/matrix.rb
409
+ - lib/emf/model/geometry/point.rb
410
+ - lib/emf/model/geometry/point_f.rb
411
+ - lib/emf/model/geometry/point_s.rb
412
+ - lib/emf/model/geometry/rect.rb
413
+ - lib/emf/model/geometry/rect_s.rb
414
+ - lib/emf/model/geometry/size.rb
415
+ - lib/emf/model/metafile.rb
416
+ - lib/emf/model/record.rb
417
+ - lib/emf/model/visitor.rb
418
+ - lib/emf/model/wmf.rb
419
+ - lib/emf/model/wmf/bitmap_records.rb
420
+ - lib/emf/model/wmf/brush_records.rb
421
+ - lib/emf/model/wmf/dc_escape_records.rb
422
+ - lib/emf/model/wmf/font_record.rb
423
+ - lib/emf/model/wmf/geometry_records.rb
424
+ - lib/emf/model/wmf/header.rb
425
+ - lib/emf/model/wmf/object_records.rb
426
+ - lib/emf/model/wmf/palette_records.rb
427
+ - lib/emf/model/wmf/records.rb
428
+ - lib/emf/model/wmf/region_records.rb
429
+ - lib/emf/model/wmf/state_records.rb
430
+ - lib/emf/model/wmf/text_records.rb
431
+ - lib/emf/native.rb
432
+ - lib/emf/native/bitmap_fields.rb
433
+ - lib/emf/native/diagnostic_contract.rb
434
+ - lib/emf/native/diagnostics.rb
435
+ - lib/emf/native/emf_plus_loader.rb
436
+ - lib/emf/native/emf_plus_snapshot.rb
437
+ - lib/emf/native/emf_plus_source.rb
438
+ - lib/emf/native/emf_plus_stream.rb
439
+ - lib/emf/native/fields.rb
440
+ - lib/emf/native/font_fields.rb
441
+ - lib/emf/native/gradient_fields.rb
442
+ - lib/emf/native/header.rb
443
+ - lib/emf/native/header_errors.rb
444
+ - lib/emf/native/hydrator.rb
445
+ - lib/emf/native/lazy_wire.rb
446
+ - lib/emf/native/legacy_state_fields.rb
447
+ - lib/emf/native/library_path.rb
448
+ - lib/emf/native/loader.rb
449
+ - lib/emf/native/palette_fields.rb
450
+ - lib/emf/native/poly_text_fields.rb
451
+ - lib/emf/native/resource_failure.rb
452
+ - lib/emf/native/small_text_fields.rb
453
+ - lib/emf/native/snapshot.rb
454
+ - lib/emf/native/wmf_bitmap_fields.rb
455
+ - lib/emf/native/wmf_brush_fields.rb
456
+ - lib/emf/native/wmf_fields.rb
457
+ - lib/emf/native/wmf_hydrator.rb
458
+ - lib/emf/native/wmf_loading.rb
459
+ - lib/emf/native/wmf_palette_fields.rb
460
+ - lib/emf/native/wmf_region_fields.rb
461
+ - lib/emf/native/wmf_rejection.rb
462
+ - lib/emf/native/wmf_remaining_fields.rb
463
+ - lib/emf/native/wmf_snapshot.rb
464
+ - lib/emf/native/wmf_text_fields.rb
465
+ - lib/emf/parse_evidence.rb
466
+ - lib/emf/resource_budget.rb
467
+ - lib/emf/resource_budget/bitmap.rb
468
+ - lib/emf/resource_budget/gradient.rb
469
+ - lib/emf/resource_budget/poly_text.rb
470
+ - lib/emf/resource_limits.rb
471
+ - lib/emf/resource_limits/emf_records.rb
472
+ - lib/emf/version.rb
473
+ - lib/emf/visitors.rb
474
+ - lib/emf/visitors/dump.rb
475
+ - lib/emf/visitors/stats.rb
476
+ - lib/emf/wmf.rb
477
+ - lib/emf/wmf/binary.rb
478
+ - lib/emf/wmf/bitmap_codec.rb
479
+ - lib/emf/wmf/brush_codec.rb
480
+ - lib/emf/wmf/dc_escape_codec.rb
481
+ - lib/emf/wmf/dib.rb
482
+ - lib/emf/wmf/embedded_emf.rb
483
+ - lib/emf/wmf/escape_views.rb
484
+ - lib/emf/wmf/evidence.rb
485
+ - lib/emf/wmf/geometry_codec.rb
486
+ - lib/emf/wmf/palette_codec.rb
487
+ - lib/emf/wmf/parser.rb
488
+ - lib/emf/wmf/recovery.rb
489
+ - lib/emf/wmf/region_codec.rb
490
+ - lib/emf/wmf/serializer.rb
491
+ - lib/emf/wmf/text_codec.rb
492
+ - lib/emf/native/x64-mingw-ucrt/emf_ffi.dll
493
+ - lib/emf/native/platforms.json
494
+ - lib/emf/native/provenance.json
495
+ homepage: https://github.com/claricle/emf
496
+ licenses:
497
+ - BSD-2-Clause
498
+ metadata:
499
+ homepage_uri: https://github.com/claricle/emf
500
+ source_code_uri: https://github.com/claricle/emf
501
+ changelog_uri: https://github.com/claricle/emf/blob/main/CHANGELOG.adoc
502
+ rubygems_mfa_required: 'true'
503
+ rdoc_options: []
504
+ require_paths:
505
+ - lib
506
+ required_ruby_version: !ruby/object:Gem::Requirement
507
+ requirements:
508
+ - - ">="
509
+ - !ruby/object:Gem::Version
510
+ version: 3.1.0
511
+ required_rubygems_version: !ruby/object:Gem::Requirement
512
+ requirements:
513
+ - - ">="
514
+ - !ruby/object:Gem::Version
515
+ version: '0'
516
+ requirements: []
517
+ rubygems_version: 3.6.9
518
+ specification_version: 4
519
+ summary: Parser for WMF, EMF, and EMF+ metafiles, with an optional native backend.
520
+ test_files: []