Colors give us clarity

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.

  • Conformance
  • Conversion
  • Page description
  • Parsers
  • Layout & diagrams

The format flow

SVG at the hub

Every format the suite touches is fully translatable. Vector formats are manipulable at the DOM level — and SVG is where they all meet.

Claricle format flowEMF and WMF files flow into the SVG interchange hub. PostScript and EPS files flow into the same hub as the print projection. SVG projects out to PNG, the raster projection. Conformance lenses — png_conform and svg_conform — validate the formats against their standards.EMF / WMFingestion spokePS / EPSprint projectionPNGraster projectionSVGinterchange hubconformance lenses
png_conform and svg_conform read every format as a lens: the file is checked against the standard it claims, not against its decoder's tolerance.

Four roles, one format pipeline

Every library in the suite plays exactly one role. Together they cover the pipeline end to end.

Models

Typed domain models that make a format programmable — parse EMF, PostScript, or PDF, walk the model, serialize it back.

Lenses

Conformance views over a format — check files against the standards they claim, and repair what deviates.

Projections

Transform one representation into another — EMF to SVG, PS to SVG, SVG to PNG — with no external binaries.

Engines

The shared machinery underneath — layout kernels, PNG codecs, and native parser cores the gems stand on.

The ecosystem

One role per library

Featured projects from the suite. The full grid — grouped into models, lenses, projections, and engines — lives underprojects.

Claricle

Suite & resources

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.

ruby

Vectory

Conversion

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.

ruby

EMF↔SVG

Conversion

Bidirectional EMF to SVG, in pure Ruby.

Reads Microsoft Enhanced Metafile (EMF) records and emits clean SVG, and round-trips back. The foundation of vector conversion for any publication pipeline that receives diagrams from Windows applications.

ruby

PS↔SVG

Conversion

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.

ruby

SVG→PNG

Conversion

Byte-oriented SVG rendering to PNG, in Ruby.

Renders SVG to PNG through a Ruby-owned pipeline: explicit font selection, a pinned PNG encoder, and a native rendering core the gem owns end to end. The raster projection of the suite — SVG in, deterministic PNG out.

ruby

SVG Conform

Conformance

SVG conformance validation and remediation.

Validates SVG against the W3C specification and repairs the common deviations produced by drawing tools. Use it as a gate in any pipeline that ingests third-party SVG.

ruby

PNG Conform

Conformance

PNG conformance checking for Ruby.

Validates PNG files against the ISO/IEC 15948 specification — chunk structure, IHDR constraints, ancillary chunk semantics. Catches the silent corruption that breaks downstream raster pipelines.

ruby

ELK.rb

Layout & diagrams

Eclipse Layout Kernel for Ruby.

Pure-Ruby implementation of the ELK layered layout algorithm. Lay out boxes-and-arrows diagrams (UML, flowcharts, schema diagrams) without a JVM dependency.

ruby

Quickstart

Four gems, running in minutes

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

emfsvg

Projection

EMF to SVG and back — the ingestion spoke, in pure Ruby.

gem install emfsvg
require "emfsvg"

svg = Emfsvg.from_file("image.emf")

postsvg

Projection

PostScript and EPS to SVG — the print projection, no Ghostscript.

gem install postsvg
require "postsvg"

Postsvg.to_svg_file("input.eps", "output.svg")

vectory

Projection

Pairwise conversion across EPS, PS, EMF, and SVG from one CLI.

gem install vectory
vectory -f svg diagram.emf

svg_conform

Lens

Gate third-party SVG against a conformance profile.

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

One gem, every image task

gem install claricle pulls in the umbrella CLI. Use it to validate, convert, and inspect images from a single command.