Class: Ucode::CodeChart::Extractor::Result
- Inherits:
-
Struct
- Object
- Struct
- Ucode::CodeChart::Extractor::Result
- Defined in:
- lib/ucode/code_chart/extractor.rb
Overview
Result of extracting one codepoint.
Carries the SVG payload plus everything downstream concerns need without re-derivation:
* `base_font` — the PDF-embedded BaseFont name (e.g.
"GPJAHB+WolofGaraySansSerif"). Nil for non-PDF sources.
* `gid` — the GID inside that font. Nil for non-PDF sources.
* `source_page` — 1-based PDF page number where the glyph
appears. Nil when the Catalog didn't compute a location
(ToUnicode-only path) — populated by TODO 04's
`Catalog#location_for` integration.
* `source_cell` — `{x: Float, y: Float}` (PDF user space,
origin bottom-left) for the specimen. Same nil rule.
* `extractor_version` — `Ucode::VERSION` at extraction time.
All optional fields default nil so existing call sites that
only read codepoint, svg, tier, provenance keep working.
Instance Attribute Summary collapse
-
#base_font ⇒ Object
Returns the value of attribute base_font.
-
#codepoint ⇒ Object
Returns the value of attribute codepoint.
-
#extractor_version ⇒ Object
Returns the value of attribute extractor_version.
-
#gid ⇒ Object
Returns the value of attribute gid.
-
#provenance ⇒ Object
Returns the value of attribute provenance.
-
#source_cell ⇒ Object
Returns the value of attribute source_cell.
-
#source_page ⇒ Object
Returns the value of attribute source_page.
-
#svg ⇒ Object
Returns the value of attribute svg.
-
#tier ⇒ Object
Returns the value of attribute tier.
Instance Attribute Details
#base_font ⇒ Object
Returns the value of attribute base_font
50 51 52 |
# File 'lib/ucode/code_chart/extractor.rb', line 50 def base_font @base_font end |
#codepoint ⇒ Object
Returns the value of attribute codepoint
50 51 52 |
# File 'lib/ucode/code_chart/extractor.rb', line 50 def codepoint @codepoint end |
#extractor_version ⇒ Object
Returns the value of attribute extractor_version
50 51 52 |
# File 'lib/ucode/code_chart/extractor.rb', line 50 def extractor_version @extractor_version end |
#gid ⇒ Object
Returns the value of attribute gid
50 51 52 |
# File 'lib/ucode/code_chart/extractor.rb', line 50 def gid @gid end |
#provenance ⇒ Object
Returns the value of attribute provenance
50 51 52 |
# File 'lib/ucode/code_chart/extractor.rb', line 50 def provenance @provenance end |
#source_cell ⇒ Object
Returns the value of attribute source_cell
50 51 52 |
# File 'lib/ucode/code_chart/extractor.rb', line 50 def source_cell @source_cell end |
#source_page ⇒ Object
Returns the value of attribute source_page
50 51 52 |
# File 'lib/ucode/code_chart/extractor.rb', line 50 def source_page @source_page end |
#svg ⇒ Object
Returns the value of attribute svg
50 51 52 |
# File 'lib/ucode/code_chart/extractor.rb', line 50 def svg @svg end |
#tier ⇒ Object
Returns the value of attribute tier
50 51 52 |
# File 'lib/ucode/code_chart/extractor.rb', line 50 def tier @tier end |