Class: Glossarist::NonVerbRep

Inherits:
NonVerbalEntity
  • Object
show all
Defined in:
lib/glossarist/non_verb_rep.rb

Overview

A concept-local non-verbal representation (ISO 10241-1 §6.5).

NonVerbRep is the inline form attached directly to a concept’s data. The dataset-shared form is Figure / Table / Formula. The two share the same a11y + provenance payload via NonVerbalEntity; NonVerbRep differs only in that it has no dataset-wide identity (no id, no identifier) — its identity is its position inside the parent concept.

type discriminates the kind of non-verbal content: “image”, “table”, or “formula”. When type is “image”, images carries one or more FigureImage variants (responsive, format fallback, dark/light). The caption/description/alt fields are localized (hash keyed by ISO 639 code) for accessibility.

Method Summary

Methods inherited from NonVerbalEntity

#all_ids, #find_by_id, from_file