Models
Typed domain models that make a format programmable — parse EMF, PostScript, or PDF, walk the model, serialize it back.
Claricle builds models, lenses, and projections for image formats — every supported format fully translatable and transformable, vector formats manipulable at the DOM level.
SVG is the interchange hub. EMF and WMF are the ingestion spoke, PostScript the print projection, PNG the raster projection.
The format flow
Every format the suite touches is fully translatable. Vector formats are manipulable at the DOM level — and SVG is where they all meet.
Every library in the suite plays exactly one role. Together they cover the pipeline end to end.
Typed domain models that make a format programmable — parse EMF, PostScript, or PDF, walk the model, serialize it back.
Conformance views over a format — check files against the standards they claim, and repair what deviates.
Transform one representation into another — EMF to SVG, PS to SVG, SVG to PNG — with no external binaries.
The shared machinery underneath — layout kernels, PNG codecs, and native parser cores the gems stand on.
The ecosystem
Featured projects from the suite. The full grid — grouped into models, lenses, projections, and engines — lives underprojects.
The umbrella CLI for the Claricle image suite.
A single gem that bundles Claricle's image utilities — validate, convert, and inspect PNG, SVG, EMF, EPS and friends from one command line. Currently a shim reserving the gem name; full functionality lands as the underlying libraries mature.
Pairwise vector image conversion in pure Ruby.
Convert between EPS, PS, EMF, and SVG without shelling out to Inkscape or Ghostscript. Vectory chains the parser and emitter gems in the Claricle ecosystem so a publication pipeline can move a single diagram across every format it touches.
Bidirectional PS / EPS to SVG, in pure Ruby.
Bidirectional PostScript and Encapsulated PostScript transformer: PS ↔ SVG and SVG → EPS. Uses Nokogiri for the SVG side and a hand-written comment-aware lexer and stack-machine interpreter for the PS source side. No Ghostscript, no Inkscape — the entire pipeline runs in Ruby.
Quickstart
Each snippet is straight from the gem's own documentation.
EMF to SVG and back — the ingestion spoke, in pure Ruby.
gem install emfsvgrequire "emfsvg"
svg = Emfsvg.from_file("image.emf")PostScript and EPS to SVG — the print projection, no Ghostscript.
gem install postsvgrequire "postsvg"
Postsvg.to_svg_file("input.eps", "output.svg")Pairwise conversion across EPS, PS, EMF, and SVG from one CLI.
gem install vectoryvectory -f svg diagram.emfGate third-party SVG against a conformance profile.
gem install svg_conformsvg_conform check file.svg --profile=metanormagem install claricle pulls in the umbrella CLI. Use it to validate, convert, and inspect images from a single command.