eikogram · the internal vector image model
One model. Every drawing is a
transformer away.
eikogram is the format-neutral super-model for vector drawings:one model per format, and transformers strictly between models — never bytes to bytes.
SVG is one serialization among several, not the center of the world. The drawing lives in the model; the format is a projection of it.
The model flow
VIM at the hub, formats as peers
One model per format. Transformers convert strictly between models — so every supported format stays fully translatable, and no format is privileged.
emfsvg between the EMF and SVG models, postsvgbetween the PostScript and SVG models, vectory chaining the pair — never bytes to bytes. Rasterization (svgpng) projects the drawing onto the pixel surface, and the lenses check every model against the standard it claims.One model per format
EMF, SVG, PNG/DIB — each format gets a typed, walkable, serializable model. No format is read as opaque bytes.
Transformers between models
Conversion is a transformer from one model to another — strictly model to model, so geometry survives the trip.
SVG is one serialization
Not the hub, not the truth — one serialization among several. The drawing lives in the model; formats are projections of it.
The stack
Gems, grouped by role
The claricle-stack gems behind the program — models, transformers, lenses, rasterization, and the Rust engines now in build-out. The full grid with role filtering lives underprojects.
Models
Typed domain models that make a format programmable — parse the bytes, walk the records, serialize back.
Transformers
Convert between format models — strictly model to model, never bytes to bytes.
Lenses
Conformance views over a format — validate files against the standard they claim, not the decoder’s tolerance.
Rasterization
Project vector drawings onto the pixel surface — explicit fonts, pinned encoders, packaged natives.
Quickstart
Six gems, running in minutes
Each snippet is straight from the gem's own documentation.
vectory
TransformerPairwise conversion across EPS, PS, EMF, and SVG — plus PNG out.
gem install vectory$ vectory -f svg diagram.emf
# or from Ruby:
Vectory::Emf.from_path("diagram.emf").to_svg.contentemfsvg
TransformerEMF ↔ SVG in both directions — clean-room, corpus-locked.
gem install emfsvgrequire "emfsvg"
svg = Emfsvg.from_file("image.emf") # EMF → SVG
emf = Emfsvg.from_svg_file("drawing.svg") # SVG → EMFemf
ModelParse WMF/EMF/EMF+ records into a typed, serializable model.
gem install emfrequire "emf"
metafile = Emf.parse_file("image.emf")
metafile.format # => :emf or :emf_plus
metafile.records.length # => 3538postsvg
TransformerPS/EPS ↔ SVG in pure Ruby — no Ghostscript, no Inkscape.
gem install postsvgrequire "postsvg"
# Convert and save in one step
Postsvg.to_svg_file("input.eps", "output.svg")svg_conform
LensGate SVG against a conformance profile, then remediate.
gem install svg_conform$ svg_conform check file.svg --profile=metanormapng_conform
LensValidate PNG chunks, CRCs, and ordering — pngcheck-compatible.
gem install png_conform$ png_conform check image.png
✅ OK: image.png (800x600, 8-bit/color RGB, non-interlaced)The engines are being built
emf-rs already parses EMF/EMF+; vectory-rscarries the SVG model, the eikogram VIM, and the transformers. Follow the work in the org.