xberg 1.4.2 → 1.5.3
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.
- checksums.yaml +4 -4
- data/THIRD_PARTY_LICENSES.md +38205 -0
- data/ext/xberg_rb/native/Cargo.lock +128 -124
- data/ext/xberg_rb/native/Cargo.toml +10 -7
- data/ext/xberg_rb/src/lib.rs +2873 -2
- data/lib/xberg/native.rb +75 -1
- data/lib/xberg/version.rb +2 -2
- data/sig/types.rbs +201 -5
- metadata +3 -2
data/lib/xberg/native.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:9af4cbfa4a33fdd712e0b7f33563f2de146f5602d3e5028ae87f1183efa758ca
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify
|
|
5
5
|
# frozen_string_literal: true
|
|
@@ -5150,6 +5150,80 @@ module Xberg
|
|
|
5150
5150
|
end
|
|
5151
5151
|
end
|
|
5152
5152
|
|
|
5153
|
+
module Xberg
|
|
5154
|
+
# One segment of a [`VectorSubpath`].
|
|
5155
|
+
module VectorSegment
|
|
5156
|
+
extend T::Helpers
|
|
5157
|
+
extend T::Sig
|
|
5158
|
+
|
|
5159
|
+
interface!
|
|
5160
|
+
|
|
5161
|
+
# Dispatch from a Hash to the appropriate variant constructor.
|
|
5162
|
+
# @param hash [Hash] with discriminator field and variant-specific fields
|
|
5163
|
+
# @return [variant_class] an instance of the appropriate variant
|
|
5164
|
+
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.untyped) }
|
|
5165
|
+
def self.from_hash(hash)
|
|
5166
|
+
discriminator = hash[:type] || hash["type"]
|
|
5167
|
+
case discriminator
|
|
5168
|
+
when "line"
|
|
5169
|
+
VectorSegmentLine.from_hash(hash)
|
|
5170
|
+
when "cubic"
|
|
5171
|
+
VectorSegmentCubic.from_hash(hash)
|
|
5172
|
+
else
|
|
5173
|
+
raise "Unknown discriminator: #{discriminator}"
|
|
5174
|
+
end
|
|
5175
|
+
end
|
|
5176
|
+
end
|
|
5177
|
+
## A straight segment.
|
|
5178
|
+
VectorSegmentLine = Data.define(:to) do
|
|
5179
|
+
include VectorSegment
|
|
5180
|
+
extend T::Sig
|
|
5181
|
+
|
|
5182
|
+
# End point of the segment.
|
|
5183
|
+
sig { returns(VectorPoint) }
|
|
5184
|
+
def to = Data.instance_method(:to_h).bind_call(self).fetch(:to)
|
|
5185
|
+
sig { returns(T::Boolean) }
|
|
5186
|
+
def line? = true
|
|
5187
|
+
sig { returns(T::Boolean) }
|
|
5188
|
+
def cubic? = false
|
|
5189
|
+
# @param hash [Hash] deserialized from the native extension
|
|
5190
|
+
# @return [self]
|
|
5191
|
+
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
5192
|
+
def self.from_hash(hash)
|
|
5193
|
+
new(to: hash.key?(:to) ? hash[:to] : hash["to"])
|
|
5194
|
+
end
|
|
5195
|
+
end
|
|
5196
|
+
## A cubic Bézier segment.
|
|
5197
|
+
VectorSegmentCubic = Data.define(:control1, :control2, :to) do
|
|
5198
|
+
include VectorSegment
|
|
5199
|
+
extend T::Sig
|
|
5200
|
+
|
|
5201
|
+
# First control point.
|
|
5202
|
+
sig { returns(VectorPoint) }
|
|
5203
|
+
def control1 = Data.instance_method(:to_h).bind_call(self).fetch(:control1)
|
|
5204
|
+
# Second control point.
|
|
5205
|
+
sig { returns(VectorPoint) }
|
|
5206
|
+
def control2 = Data.instance_method(:to_h).bind_call(self).fetch(:control2)
|
|
5207
|
+
# End point of the segment.
|
|
5208
|
+
sig { returns(VectorPoint) }
|
|
5209
|
+
def to = Data.instance_method(:to_h).bind_call(self).fetch(:to)
|
|
5210
|
+
sig { returns(T::Boolean) }
|
|
5211
|
+
def line? = false
|
|
5212
|
+
sig { returns(T::Boolean) }
|
|
5213
|
+
def cubic? = true
|
|
5214
|
+
# @param hash [Hash] deserialized from the native extension
|
|
5215
|
+
# @return [self]
|
|
5216
|
+
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
5217
|
+
def self.from_hash(hash)
|
|
5218
|
+
new(
|
|
5219
|
+
control1: hash.key?(:control1) ? hash[:control1] : hash["control1"],
|
|
5220
|
+
control2: hash.key?(:control2) ? hash[:control2] : hash["control2"],
|
|
5221
|
+
to: hash.key?(:to) ? hash[:to] : hash["to"]
|
|
5222
|
+
)
|
|
5223
|
+
end
|
|
5224
|
+
end
|
|
5225
|
+
end
|
|
5226
|
+
|
|
5153
5227
|
module Xberg
|
|
5154
5228
|
# Policy controlling when VLM (Vision Language Model) OCR is used as a fallback.
|
|
5155
5229
|
#
|
data/lib/xberg/version.rb
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:76db9576f8dcfb8f3ea614b3e356a0ea61503e5f4a9ebc562cb63507101d4c19
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify
|
|
5
5
|
# frozen_string_literal: true
|
|
6
6
|
|
|
7
7
|
module Xberg
|
|
8
8
|
## The version string for this package.
|
|
9
|
-
VERSION = "1.
|
|
9
|
+
VERSION = "1.5.3"
|
|
10
10
|
end
|
data/sig/types.rbs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:d231a9d57c38b42d451046de6f30a744d04197848a34242ada82bfff692b2755
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify
|
|
5
5
|
|
|
@@ -16,6 +16,13 @@ type json_value = Hash[String, untyped] | Array[untyped] | String | Integer | Fl
|
|
|
16
16
|
def initialize: (?provider: enum_ExecutionProviderType, ?device_id: Integer) -> void
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
+
class AnnotationPoint
|
|
20
|
+
attr_reader x: Float
|
|
21
|
+
attr_reader y: Float
|
|
22
|
+
|
|
23
|
+
def initialize: (?x: Float, ?y: Float) -> void
|
|
24
|
+
end
|
|
25
|
+
|
|
19
26
|
class ArchiveEntry
|
|
20
27
|
attr_reader path: String
|
|
21
28
|
attr_reader mime_type: String
|
|
@@ -386,10 +393,11 @@ def initialize: (?output_format: String, ?preprocessing_preset: String, ?remove_
|
|
|
386
393
|
attr_reader infer_dimensions: bool
|
|
387
394
|
attr_reader max_depth: Integer?
|
|
388
395
|
attr_reader exclude_selectors: Array[String]
|
|
396
|
+
attr_reader data_as_elements: Array[String]?
|
|
389
397
|
attr_reader tier_strategy: enum_TierStrategy
|
|
390
398
|
attr_reader base_url: String?
|
|
391
399
|
|
|
392
|
-
def initialize: (?heading_style: enum_HeadingStyle, ?list_indent_type: enum_ListIndentType, ?list_indent_width: Integer, ?bullets: String, ?strong_em_symbol: String, ?escape_asterisks: bool, ?escape_underscores: bool, ?escape_misc: bool, ?escape_ascii: bool, ?code_language: String, ?autolinks: bool, ?expand_abbreviations: bool, ?include_blockquote_citations: bool, ?default_title: bool, ?br_in_tables: bool, ?compact_tables: bool, ?highlight_style: enum_HighlightStyle, ?extract_metadata: bool, ?whitespace_mode: enum_WhitespaceMode, ?strip_newlines: bool, ?wrap: bool, ?wrap_width: Integer, ?convert_as_inline: bool, ?sub_symbol: String, ?sup_symbol: String, ?newline_style: enum_NewlineStyle, ?code_block_style: enum_CodeBlockStyle, ?keep_inline_images_in: Array[String], ?preprocessing: PreprocessingOptions, ?encoding: String, ?debug: bool, ?strip_tags: Array[String], ?preserve_tags: Array[String], ?skip_images: bool, ?inline_data_media: enum_InlineDataMedia, ?hidden_content: enum_HiddenContent, ?url_escape_style: enum_UrlEscapeStyle, ?link_style: enum_LinkStyle, ?output_format: enum_HtmlToMarkdownRsOutputFormat, ?include_document_structure: bool, ?extract_images: bool, ?max_image_size: Integer, ?max_input_size: Integer, ?capture_svg: bool, ?infer_dimensions: bool, ?max_depth: Integer, ?exclude_selectors: Array[String], ?tier_strategy: enum_TierStrategy, ?base_url: String) -> void
|
|
400
|
+
def initialize: (?heading_style: enum_HeadingStyle, ?list_indent_type: enum_ListIndentType, ?list_indent_width: Integer, ?bullets: String, ?strong_em_symbol: String, ?escape_asterisks: bool, ?escape_underscores: bool, ?escape_misc: bool, ?escape_ascii: bool, ?code_language: String, ?autolinks: bool, ?expand_abbreviations: bool, ?include_blockquote_citations: bool, ?default_title: bool, ?br_in_tables: bool, ?compact_tables: bool, ?highlight_style: enum_HighlightStyle, ?extract_metadata: bool, ?whitespace_mode: enum_WhitespaceMode, ?strip_newlines: bool, ?wrap: bool, ?wrap_width: Integer, ?convert_as_inline: bool, ?sub_symbol: String, ?sup_symbol: String, ?newline_style: enum_NewlineStyle, ?code_block_style: enum_CodeBlockStyle, ?keep_inline_images_in: Array[String], ?preprocessing: PreprocessingOptions, ?encoding: String, ?debug: bool, ?strip_tags: Array[String], ?preserve_tags: Array[String], ?skip_images: bool, ?inline_data_media: enum_InlineDataMedia, ?hidden_content: enum_HiddenContent, ?url_escape_style: enum_UrlEscapeStyle, ?link_style: enum_LinkStyle, ?output_format: enum_HtmlToMarkdownRsOutputFormat, ?include_document_structure: bool, ?extract_images: bool, ?max_image_size: Integer, ?max_input_size: Integer, ?capture_svg: bool, ?infer_dimensions: bool, ?max_depth: Integer, ?exclude_selectors: Array[String], ?data_as_elements: Array[String], ?tier_strategy: enum_TierStrategy, ?base_url: String) -> void
|
|
393
401
|
end
|
|
394
402
|
|
|
395
403
|
class CoreProperties
|
|
@@ -714,6 +722,9 @@ def initialize: (?nodes: Array[DocumentNode], ?source_format: String, ?relations
|
|
|
714
722
|
def initialize: (?core_properties: CoreProperties, ?app_properties: DocxAppProperties, ?custom_properties: Hash[String, String]) -> void
|
|
715
723
|
end
|
|
716
724
|
|
|
725
|
+
class DrawingSetText
|
|
726
|
+
end
|
|
727
|
+
|
|
717
728
|
class Element
|
|
718
729
|
attr_reader element_id: String
|
|
719
730
|
attr_reader element_type: enum_ElementType
|
|
@@ -1636,6 +1647,20 @@ def initialize: (?urls: Array[SitemapUrl]) -> void
|
|
|
1636
1647
|
def initialize: (?text: String, ?url: String) -> void
|
|
1637
1648
|
end
|
|
1638
1649
|
|
|
1650
|
+
class MeasureData
|
|
1651
|
+
attr_reader subtype: String?
|
|
1652
|
+
attr_reader scale_ratio: String?
|
|
1653
|
+
attr_reader x: Array[Float]?
|
|
1654
|
+
attr_reader y: Array[Float]?
|
|
1655
|
+
attr_reader distance: Array[Float]?
|
|
1656
|
+
attr_reader area: Array[Float]?
|
|
1657
|
+
attr_reader angle: Array[Float]?
|
|
1658
|
+
attr_reader slope: Array[Float]?
|
|
1659
|
+
attr_reader origin: String?
|
|
1660
|
+
|
|
1661
|
+
def initialize: (?subtype: String, ?scale_ratio: String, ?x: Array[Float], ?y: Array[Float], ?distance: Array[Float], ?area: Array[Float], ?angle: Array[Float], ?slope: Array[Float], ?origin: String) -> void
|
|
1662
|
+
end
|
|
1663
|
+
|
|
1639
1664
|
class MetaSchema
|
|
1640
1665
|
def parse_preset: (String path, String raw) -> Preset
|
|
1641
1666
|
end
|
|
@@ -1898,6 +1923,14 @@ def initialize: (cells: Array[Array[String]], markdown: String, page_number: Int
|
|
|
1898
1923
|
def initialize: (degrees: Integer, confidence: Float) -> void
|
|
1899
1924
|
end
|
|
1900
1925
|
|
|
1926
|
+
class OrtSessionOptions
|
|
1927
|
+
attr_reader memory_pattern: bool
|
|
1928
|
+
attr_reader cpu_arena: bool
|
|
1929
|
+
attr_reader max_threads: Integer?
|
|
1930
|
+
|
|
1931
|
+
def initialize: (?memory_pattern: bool, ?cpu_arena: bool, ?max_threads: Integer) -> void
|
|
1932
|
+
end
|
|
1933
|
+
|
|
1901
1934
|
class PaddleOcrConfig
|
|
1902
1935
|
attr_reader language: String
|
|
1903
1936
|
attr_reader cache_dir: String?
|
|
@@ -1987,8 +2020,10 @@ def initialize: (?prompt_template: String, labels: Array[String], multi_label: b
|
|
|
1987
2020
|
attr_reader sheet_name: String?
|
|
1988
2021
|
attr_reader ocr_confidence: PageOcrConfidence?
|
|
1989
2022
|
attr_reader native_content: String?
|
|
2023
|
+
attr_reader geometry: PageGeometry?
|
|
2024
|
+
attr_reader viewports: Array[PageViewport]?
|
|
1990
2025
|
|
|
1991
|
-
def initialize: (page_number: Integer, content: String, tables: Array[Table], image_indices: Array[Integer], ?image_preprocessing: ImagePreprocessingMetadata, ?hierarchy: PageHierarchy, ?is_blank: bool, ?layout_regions: Array[LayoutRegion], ?speaker_notes: String, ?section_name: String, ?sheet_name: String, ?ocr_confidence: PageOcrConfidence, ?native_content: String) -> void
|
|
2026
|
+
def initialize: (page_number: Integer, content: String, tables: Array[Table], image_indices: Array[Integer], ?image_preprocessing: ImagePreprocessingMetadata, ?hierarchy: PageHierarchy, ?is_blank: bool, ?layout_regions: Array[LayoutRegion], ?speaker_notes: String, ?section_name: String, ?sheet_name: String, ?ocr_confidence: PageOcrConfidence, ?native_content: String, ?geometry: PageGeometry, ?viewports: Array[PageViewport]) -> void
|
|
1992
2027
|
end
|
|
1993
2028
|
|
|
1994
2029
|
class PageDimensions
|
|
@@ -1998,6 +2033,13 @@ def initialize: (page_number: Integer, content: String, tables: Array[Table], im
|
|
|
1998
2033
|
def initialize: (?width: Float, ?height: Float) -> void
|
|
1999
2034
|
end
|
|
2000
2035
|
|
|
2036
|
+
class PageGeometry
|
|
2037
|
+
attr_reader paths: Array[VectorPath]
|
|
2038
|
+
attr_reader regions: Array[PlanRegion]
|
|
2039
|
+
|
|
2040
|
+
def initialize: (?paths: Array[VectorPath], ?regions: Array[PlanRegion]) -> void
|
|
2041
|
+
end
|
|
2042
|
+
|
|
2001
2043
|
class PageHierarchy
|
|
2002
2044
|
attr_reader block_count: Integer
|
|
2003
2045
|
attr_reader blocks: Array[HierarchicalBlock]
|
|
@@ -2061,6 +2103,30 @@ def initialize: (block_count: Integer, blocks: Array[HierarchicalBlock]) -> void
|
|
|
2061
2103
|
def initialize: (total_count: Integer, unit_type: enum_PageUnitType, ?boundaries: Array[PageBoundary], ?pages: Array[PageInfo]) -> void
|
|
2062
2104
|
end
|
|
2063
2105
|
|
|
2106
|
+
class PageViewport
|
|
2107
|
+
attr_reader bounding_box: BoundingBox
|
|
2108
|
+
attr_reader name: String?
|
|
2109
|
+
attr_reader measure: MeasureData?
|
|
2110
|
+
|
|
2111
|
+
def initialize: (?bounding_box: BoundingBox, ?name: String, ?measure: MeasureData) -> void
|
|
2112
|
+
end
|
|
2113
|
+
|
|
2114
|
+
class ParsedDimension
|
|
2115
|
+
attr_reader text: String
|
|
2116
|
+
attr_reader inches: Float
|
|
2117
|
+
attr_reader position: VectorPoint
|
|
2118
|
+
|
|
2119
|
+
def initialize: (text: String, inches: Float, position: VectorPoint) -> void
|
|
2120
|
+
end
|
|
2121
|
+
|
|
2122
|
+
class ParsedScale
|
|
2123
|
+
attr_reader drawing_inches: Float?
|
|
2124
|
+
attr_reader real_inches: Float?
|
|
2125
|
+
attr_reader ratio: Float
|
|
2126
|
+
|
|
2127
|
+
def initialize: (?drawing_inches: Float, ?real_inches: Float, ratio: Float) -> void
|
|
2128
|
+
end
|
|
2129
|
+
|
|
2064
2130
|
class PatternMatch
|
|
2065
2131
|
attr_reader start: Integer
|
|
2066
2132
|
attr_reader end: Integer
|
|
@@ -2081,8 +2147,11 @@ def initialize: (total_count: Integer, unit_type: enum_PageUnitType, ?boundaries
|
|
|
2081
2147
|
attr_reader subject: String?
|
|
2082
2148
|
attr_reader quad_points: Array[BoundingBox]?
|
|
2083
2149
|
attr_reader marked_text: String?
|
|
2150
|
+
attr_reader vertices: Array[AnnotationPoint]?
|
|
2151
|
+
attr_reader ink_list: Array[Array[AnnotationPoint]]?
|
|
2152
|
+
attr_reader measure: MeasureData?
|
|
2084
2153
|
|
|
2085
|
-
def initialize: (annotation_type: enum_PdfAnnotationType, ?content: String, page_number: Integer, ?bounding_box: BoundingBox, ?author: String, ?modified: String, ?color: String, ?subject: String, ?quad_points: Array[BoundingBox], ?marked_text: String) -> void
|
|
2154
|
+
def initialize: (annotation_type: enum_PdfAnnotationType, ?content: String, page_number: Integer, ?bounding_box: BoundingBox, ?author: String, ?modified: String, ?color: String, ?subject: String, ?quad_points: Array[BoundingBox], ?marked_text: String, ?vertices: Array[AnnotationPoint], ?ink_list: Array[Array[AnnotationPoint]], ?measure: MeasureData) -> void
|
|
2086
2155
|
end
|
|
2087
2156
|
|
|
2088
2157
|
class PdfConfig
|
|
@@ -2099,8 +2168,10 @@ def initialize: (annotation_type: enum_PdfAnnotationType, ?content: String, page
|
|
|
2099
2168
|
attr_reader extract_form_fields: bool
|
|
2100
2169
|
attr_reader reading_order: bool
|
|
2101
2170
|
attr_reader backend: enum_PdfBackend
|
|
2171
|
+
attr_reader extract_vector_geometry: bool
|
|
2172
|
+
attr_reader plan_regions: PlanRegionConfig?
|
|
2102
2173
|
|
|
2103
|
-
def initialize: (?extract_images: bool, ?extract_tables: bool, ?passwords: Array[String], ?extract_metadata: bool, ?hierarchy: HierarchyConfig, ?extract_annotations: bool, ?top_margin_fraction: Float, ?bottom_margin_fraction: Float, ?allow_single_column_tables: bool, ?ocr_inline_images: bool, ?extract_form_fields: bool, ?reading_order: bool, ?backend: enum_PdfBackend) -> void
|
|
2174
|
+
def initialize: (?extract_images: bool, ?extract_tables: bool, ?passwords: Array[String], ?extract_metadata: bool, ?hierarchy: HierarchyConfig, ?extract_annotations: bool, ?top_margin_fraction: Float, ?bottom_margin_fraction: Float, ?allow_single_column_tables: bool, ?ocr_inline_images: bool, ?extract_form_fields: bool, ?reading_order: bool, ?backend: enum_PdfBackend, ?extract_vector_geometry: bool, ?plan_regions: PlanRegionConfig) -> void
|
|
2104
2175
|
def validate: () -> void
|
|
2105
2176
|
end
|
|
2106
2177
|
|
|
@@ -2143,6 +2214,35 @@ def initialize: (?pdf_version: String, ?producer: String, ?is_encrypted: bool, ?
|
|
|
2143
2214
|
def initialize: (?width: Integer, ?height: Integer) -> void
|
|
2144
2215
|
end
|
|
2145
2216
|
|
|
2217
|
+
class PlanRegion
|
|
2218
|
+
attr_reader polygon: Array[VectorPoint]
|
|
2219
|
+
attr_reader area: Float
|
|
2220
|
+
attr_reader bounding_box: BoundingBox
|
|
2221
|
+
attr_reader text: String
|
|
2222
|
+
|
|
2223
|
+
def initialize: (?polygon: Array[VectorPoint], ?area: Float, ?bounding_box: BoundingBox, ?text: String) -> void
|
|
2224
|
+
end
|
|
2225
|
+
|
|
2226
|
+
class PlanRegionConfig
|
|
2227
|
+
attr_reader enabled: bool
|
|
2228
|
+
attr_reader snap_tolerance: Float
|
|
2229
|
+
attr_reader gap_tolerance: Float
|
|
2230
|
+
attr_reader max_segments: Integer
|
|
2231
|
+
|
|
2232
|
+
def initialize: (?enabled: bool, ?snap_tolerance: Float, ?gap_tolerance: Float, ?max_segments: Integer) -> void
|
|
2233
|
+
end
|
|
2234
|
+
|
|
2235
|
+
class PolygonAnnotationInput
|
|
2236
|
+
attr_reader vertices: Array[AnnotationPoint]
|
|
2237
|
+
attr_reader rect: BoundingBox?
|
|
2238
|
+
attr_reader contents: String?
|
|
2239
|
+
attr_reader subject: String?
|
|
2240
|
+
attr_reader measure: MeasureData?
|
|
2241
|
+
attr_reader color: Array[Float]?
|
|
2242
|
+
|
|
2243
|
+
def initialize: (?vertices: Array[AnnotationPoint], ?rect: BoundingBox, ?contents: String, ?subject: String, ?measure: MeasureData, ?color: Array[Float]) -> void
|
|
2244
|
+
end
|
|
2245
|
+
|
|
2146
2246
|
class PostProcessorConfig
|
|
2147
2247
|
attr_reader enabled: bool
|
|
2148
2248
|
attr_reader enabled_processors: Array[String]?
|
|
@@ -2447,6 +2547,14 @@ def initialize: (?host: String, ?port: Integer, ?cors_origins: Array[String], ?m
|
|
|
2447
2547
|
def max_multipart_field_mb: () -> Integer
|
|
2448
2548
|
end
|
|
2449
2549
|
|
|
2550
|
+
class SheetMetadata
|
|
2551
|
+
attr_reader sheet_number: String?
|
|
2552
|
+
attr_reader title: String?
|
|
2553
|
+
attr_reader revision: String?
|
|
2554
|
+
|
|
2555
|
+
def initialize: (?sheet_number: String, ?title: String, ?revision: String) -> void
|
|
2556
|
+
end
|
|
2557
|
+
|
|
2450
2558
|
class SitemapUrl
|
|
2451
2559
|
attr_reader url: String
|
|
2452
2560
|
attr_reader lastmod: String?
|
|
@@ -2766,6 +2874,56 @@ def initialize: (?enabled: bool, ?cache_dir: String, ?languages: Array[String],
|
|
|
2766
2874
|
def initialize: (?page_ranges: Array[PageRange], ?pages_per_chunk: Integer, ?force_chunking: bool, ?disable_chunking: bool) -> void
|
|
2767
2875
|
end
|
|
2768
2876
|
|
|
2877
|
+
class VectorColor
|
|
2878
|
+
attr_reader r: Float
|
|
2879
|
+
attr_reader g: Float
|
|
2880
|
+
attr_reader b: Float
|
|
2881
|
+
|
|
2882
|
+
def initialize: (?r: Float, ?g: Float, ?b: Float) -> void
|
|
2883
|
+
end
|
|
2884
|
+
|
|
2885
|
+
class VectorDashPattern
|
|
2886
|
+
attr_reader dashes: Array[Float]
|
|
2887
|
+
attr_reader phase: Float
|
|
2888
|
+
|
|
2889
|
+
def initialize: (?dashes: Array[Float], ?phase: Float) -> void
|
|
2890
|
+
end
|
|
2891
|
+
|
|
2892
|
+
class VectorPath
|
|
2893
|
+
attr_reader subpaths: Array[VectorSubpath]
|
|
2894
|
+
attr_reader bounding_box: BoundingBox
|
|
2895
|
+
attr_reader fill_color: VectorColor?
|
|
2896
|
+
attr_reader stroke: VectorStroke?
|
|
2897
|
+
attr_reader layer: String?
|
|
2898
|
+
|
|
2899
|
+
def initialize: (?subpaths: Array[VectorSubpath], ?bounding_box: BoundingBox, ?fill_color: VectorColor, ?stroke: VectorStroke, ?layer: String) -> void
|
|
2900
|
+
end
|
|
2901
|
+
|
|
2902
|
+
class VectorPoint
|
|
2903
|
+
attr_reader x: Float
|
|
2904
|
+
attr_reader y: Float
|
|
2905
|
+
|
|
2906
|
+
def initialize: (?x: Float, ?y: Float) -> void
|
|
2907
|
+
end
|
|
2908
|
+
|
|
2909
|
+
class VectorStroke
|
|
2910
|
+
attr_reader color: VectorColor
|
|
2911
|
+
attr_reader width: Float
|
|
2912
|
+
attr_reader dash_pattern: VectorDashPattern?
|
|
2913
|
+
attr_reader line_cap: enum_VectorLineCap
|
|
2914
|
+
attr_reader line_join: enum_VectorLineJoin
|
|
2915
|
+
|
|
2916
|
+
def initialize: (?color: VectorColor, ?width: Float, ?dash_pattern: VectorDashPattern, ?line_cap: enum_VectorLineCap, ?line_join: enum_VectorLineJoin) -> void
|
|
2917
|
+
end
|
|
2918
|
+
|
|
2919
|
+
class VectorSubpath
|
|
2920
|
+
attr_reader start: VectorPoint
|
|
2921
|
+
attr_reader segments: Array[VectorSegment]
|
|
2922
|
+
attr_reader closed: bool
|
|
2923
|
+
|
|
2924
|
+
def initialize: (?start: VectorPoint, ?segments: Array[VectorSegment], ?closed: bool) -> void
|
|
2925
|
+
end
|
|
2926
|
+
|
|
2769
2927
|
class XlsxAppProperties
|
|
2770
2928
|
attr_reader application: String?
|
|
2771
2929
|
attr_reader app_version: String?
|
|
@@ -5290,6 +5448,38 @@ def self.new: (model_id: String, model_file: String?, additional_files: Array[St
|
|
|
5290
5448
|
|
|
5291
5449
|
type enum_UrlExtractionMode = :auto | :document | :crawl
|
|
5292
5450
|
|
|
5451
|
+
type enum_VectorLineCap = :butt | :round | :square
|
|
5452
|
+
|
|
5453
|
+
type enum_VectorLineJoin = :miter | :round | :bevel
|
|
5454
|
+
|
|
5455
|
+
module VectorSegment
|
|
5456
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
5457
|
+
end
|
|
5458
|
+
|
|
5459
|
+
class VectorSegmentLine
|
|
5460
|
+
include VectorSegment
|
|
5461
|
+
attr_reader to: VectorPoint
|
|
5462
|
+
|
|
5463
|
+
def line?: () -> bool
|
|
5464
|
+
def cubic?: () -> bool
|
|
5465
|
+
|
|
5466
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
5467
|
+
def self.new: (to: VectorPoint) -> VectorSegmentLine
|
|
5468
|
+
end
|
|
5469
|
+
|
|
5470
|
+
class VectorSegmentCubic
|
|
5471
|
+
include VectorSegment
|
|
5472
|
+
attr_reader control1: VectorPoint
|
|
5473
|
+
attr_reader control2: VectorPoint
|
|
5474
|
+
attr_reader to: VectorPoint
|
|
5475
|
+
|
|
5476
|
+
def line?: () -> bool
|
|
5477
|
+
def cubic?: () -> bool
|
|
5478
|
+
|
|
5479
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
5480
|
+
def self.new: (control1: VectorPoint, control2: VectorPoint, to: VectorPoint) -> VectorSegmentCubic
|
|
5481
|
+
end
|
|
5482
|
+
|
|
5293
5483
|
module VlmFallbackPolicy
|
|
5294
5484
|
def self.from_hash: (untyped hash) -> untyped
|
|
5295
5485
|
end
|
|
@@ -5330,6 +5520,8 @@ def self.new: (model_id: String, model_file: String?, additional_files: Array[St
|
|
|
5330
5520
|
|
|
5331
5521
|
type enum_WhitespaceMode = :Normalized | :Strict
|
|
5332
5522
|
|
|
5523
|
+
def self.append_polygon_annotation: (String pdf, Integer page_index, PolygonAnnotationInput annotation) -> String
|
|
5524
|
+
|
|
5333
5525
|
def self.classify_chunks_owned: (ExtractedDocument result, ChunkClassificationConfig config) -> ExtractedDocument
|
|
5334
5526
|
|
|
5335
5527
|
def self.clear_document_extractors: () -> void
|
|
@@ -5396,6 +5588,8 @@ def self.ocr_backend_supports_language: (String backend, String language) -> boo
|
|
|
5396
5588
|
|
|
5397
5589
|
def self.ocr_backend_supports_language_for: (String backend, String language, OcrConfig config) -> bool
|
|
5398
5590
|
|
|
5591
|
+
def self.ort_session_options: () -> OrtSessionOptions
|
|
5592
|
+
|
|
5399
5593
|
def self.pdf_page_count: (String pdf_bytes, ?String password) -> Integer
|
|
5400
5594
|
|
|
5401
5595
|
def self.redact_external: (ExtractedDocument document, RedactionConfig config, String findings_json, ?String offset_encoding, ?Integer max_findings) -> ExtractedDocument
|
|
@@ -5404,6 +5598,8 @@ def self.register_document_extractor: (_DocumentExtractor extractor) -> void
|
|
|
5404
5598
|
|
|
5405
5599
|
def self.register_renderer: (_Renderer renderer) -> void
|
|
5406
5600
|
|
|
5601
|
+
def self.set_ort_session_options: (OrtSessionOptions options) -> void
|
|
5602
|
+
|
|
5407
5603
|
def self.unregister_document_extractor: (String name) -> void
|
|
5408
5604
|
|
|
5409
5605
|
def self.unregister_renderer: (String name) -> void
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: xberg
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.5.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Na'aman Hirschfeld
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2026-11-
|
|
12
|
+
date: 2026-11-25 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rb_sys
|
|
@@ -57,6 +57,7 @@ files:
|
|
|
57
57
|
- LICENSE
|
|
58
58
|
- README.md
|
|
59
59
|
- Steepfile
|
|
60
|
+
- THIRD_PARTY_LICENSES.md
|
|
60
61
|
- ext/xberg_rb/native/Cargo.lock
|
|
61
62
|
- ext/xberg_rb/native/Cargo.toml
|
|
62
63
|
- ext/xberg_rb/native/extconf.rb
|