Skip to content

Releases

VietSVG v0.3.0

Choose a tag to compare

@Konoha95 Konoha95 released this 06 Dec 07:15
5e65887

VietSVG v0.3.0 — Gemini backend removed, deep-review fixes

Removed:

  • The Gemini proofreader backend (--gemini-proofread, added in 0.2.0). It never passed live verification — the provider returned overload errors throughout testing — so the proofreader now focuses on the Grok backend (--grok-proofread), which shares the same conservative prompt and parser.

Fixed (from a deep code review; every item reproduced before fixing):

  • Transforms use full matrix math (rotate/skew included): rotated artwork is no longer clipped by the crop.
  • Arc bounds use the rotated ellipse box instead of unrotated radii around the chord midpoint.
  • Malformed path data (truncated coordinates) reports instead of crashing.
  • Fixes are applied to parsed text nodes: XML-escaped text matches, &/< in replacements stay valid, attributes and comments are untouched, and a word stored in both NFC and NFD is corrected everywhere.
  • The root viewBox is set on the parsed root — single-quoted, absent, and comment-shadowed attributes all handled.
  • Sub-unit canvases keep positive viewBox dimensions instead of rounding to 0 0 0 0.
  • OCR comparison treats tone-placement variants (hòa/hoà) as equivalent; real tone differences still flag.
  • DTD entity declarations are rejected (expansion risk).
  • --grok-proofread sends only flagged strings to the API.
  • Browser demo: SVG-derived text is escaped before rendering, active content is stripped before preview, and its crop/fix logic mirrors the Python fixes.

Test suite: 33 tests. Install: pip install -U vietsvg

VietSVG v0.2.1

Choose a tag to compare

@Konoha95 Konoha95 released this 06 Dec 06:45

VietSVG v0.2.1 — NFD correctness fix

  • Fixed silent mis-reporting of Vietnamese text in NFD (decomposed) form: the scanner now normalizes before tier checks, so stacked diacritics and definite errors (ë, ǎ) are flagged identically in NFC and NFD. Previously NFD text fell through to the mildest "review" tier.
  • finish --fix now matches fixes across normalization forms: an NFC fix mapping applies correctly to an NFD file. A fix that matches nothing now prints a clear warning and exits non-zero instead of silently succeeding.
  • Crop width estimation no longer under-measures NFD text (wide titles were clipped).
  • __version__ corrected to match the release (it was stuck at 0.1.0 in the 0.2.0 package).
  • Test suite grows 15 → 21 tests, including NFD round-trip cases.

Install: pip install -U vietsvg · Try it: vietsvg check examples/broken-vietnamese.svg

VietSVG v0.2.0

Choose a tag to compare

@Konoha95 Konoha95 released this 06 Dec 06:09

VietSVG v0.2.0 — Gemini proofreader + a real bug fix

  • New Gemini proofreader backend: vietsvg finish --gemini-proofread with your own free GEMINI_API_KEY (key sent via header, never in the URL; GEMINI_MODEL overrides the default gemini-3.8-flash). Same conservative prompt and suggestion parsing as the Grok backend; the two flags are mutually exclusive.
  • Fixed a latent crash from 0.1.0: the proofreader prompt contained a literal {} that would have crashed the first real proofread call. Prompt assembly now uses token replacement, locked in by round-trip tests for both backends.
  • Test suite grows 8 → 15 tests.
  • README: stale "PyPI release coming" note removed; proofreader docs cover both backends.

Install: pip install -U vietsvg · Try it: vietsvg check examples/broken-vietnamese.svg

VietSVG v0.1.0

Choose a tag to compare

@Konoha95 Konoha95 released this 05 Dec 17:00
1e2b069

VietSVG v0.1.0 — first public release

Vietnamese-safe finishing toolkit for AI-generated SVGs, packaged from the tool used daily since 2026-12-04 for Unlimited-SVG conversions.

  • Tight viewBox auto-crop from the true content bounding box (paths, shapes, text, transforms; full-canvas backgrounds ignored) — matched a hand crop within 1 unit in verification runs.
  • Vietnamese diacritic risk scan with five tiers (definite, stacked, ocr, digits, review), calibrated on a full-diacritics test where stacked diacritics broke in nearly every instance.
  • Confirmed-fix application from a JSON mapping — VietSVG never guesses text.
  • Optional Grok proofreader (BYOK via XAI_API_KEY) that writes suggestions for human confirmation.
  • Optional PNG render proof via the render extra (cairosvg).
  • Agent Skill (skills/vietsvg-check) so coding agents can run the finishing workflow themselves.
  • Static web demo in docs/: drop an SVG, see the crop + risk report in the browser, download the finished file.

Install: pip install vietsvg · Try it: vietsvg check examples/broken-vietnamese.svg