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.

EMFSVGPNG / DIB

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.

The eikogram model flowThe Vector Image Model sits at the center. The EMF model, the SVG model, and the PNG/DIB model each connect to it bidirectionally through transformers. From the PNG/DIB model, a rasterization trace leads to the pixel surface, where the drawing becomes pixels.transformertransformertransformerrasterizationEMFmetafile modelSVGone serializationamong severalPNG / DIBraster modelPixel surfacethe drawn resultVIMthe vector image model
Transformers run strictly between models —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.
01

One model per format

EMF, SVG, PNG/DIB — each format gets a typed, walkable, serializable model. No format is read as opaque bytes.

02

Transformers between models

Conversion is a transformer from one model to another — strictly model to model, so geometry survives the trip.

03

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.

emf

released

Typed model for WMF, EMF, and EMF+ metafiles.

Clean-room Ruby parser that reads Microsoft metafile records into an OOP domain model and serializes back to binary — with an optional Rust native backend.

ruby

Transformers

Convert between format models — strictly model to model, never bytes to bytes.

emfsvg

released

EMF ↔ SVG, both directions, clean-room Ruby.

Converts between Enhanced Metafile and SVG in both directions. Compatibility is enforced by strict byte comparisons against a pinned corpus — no GPL obligation.

ruby

postsvg

released

PS/EPS ↔ SVG in pure Ruby — no Ghostscript.

A PostScript and EPS transformer supporting both directions. The same typed Program model is produced whether the source was parsed from PS or built from SVG, so round-trips are trivial.

ruby

vectory

released

Pairwise conversion across every vector format.

EPS, PS, EMF, and SVG convert pairwise, with PNG output from each. One CLI and one Ruby API over the transformer gems — a publication pipeline moves a single diagram across every format it touches.

ruby

Lenses

Conformance views over a format — validate files against the standard they claim, not the decoder’s tolerance.

svg_conform

released

SVG conformance: validate, then remediate.

Profile-based SVG validation with automatic remediation of requirement violations. SVGCheck-compatible diagnostics; the operative profile lives with the consumer.

ruby

Rasterization

Project vector drawings onto the pixel surface — explicit fonts, pinned encoders, packaged natives.

svgpng

released

SVG onto the pixel surface, deterministically.

Byte-oriented SVG → PNG rendering with explicit font selection and a pinned PNG encoder. No filesystem, network, or loader input — packaged native, per platform.

ruby

Quickstart

Six gems, running in minutes

Each snippet is straight from the gem's own documentation.

vectory

Transformer

Pairwise 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.content

emfsvg

Transformer

EMF ↔ SVG in both directions — clean-room, corpus-locked.

gem install emfsvg
require "emfsvg"

svg = Emfsvg.from_file("image.emf")         # EMF → SVG
emf = Emfsvg.from_svg_file("drawing.svg")   # SVG → EMF

emf

Model

Parse WMF/EMF/EMF+ records into a typed, serializable model.

gem install emf
require "emf"

metafile = Emf.parse_file("image.emf")
metafile.format         # => :emf or :emf_plus
metafile.records.length # => 3538

postsvg

Transformer

PS/EPS ↔ SVG in pure Ruby — no Ghostscript, no Inkscape.

gem install postsvg
require "postsvg"

# Convert and save in one step
Postsvg.to_svg_file("input.eps", "output.svg")

svg_conform

Lens

Gate SVG against a conformance profile, then remediate.

gem install svg_conform
$ svg_conform check file.svg --profile=metanorma

png_conform

Lens

Validate 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.