Skip to content

v1.3.0 - Color-bubble detection, Koharu contour typesetting, OCR and font updates

Choose a tag to compare

@Unheat Unheat released this 30 Oct 00:29
· 248 commits to main since this release
539f2cd

🎨 Full-Page Colorization + Color-Bubble Detection & Wrap

The headline feature of this release: Kites can now colorize grayscale manga pages and detect the color of each original speech balloon so translated text blends in like professional lettering.

  • Manga colorization tier — a dedicated WebGPU-accelerated colorization engine integrated into the pipeline (OCR → Colorize → Inpaint), eliminating white-box artifacts on grayscale pages, with popup controls to enable/disable per run
  • Per-bubble text color detection — samples the original ink of every balloon and snaps the translated font color to pure black/white accordingly, so red annotations stay red, gray SFX stays gray
  • Speech balloon wrapping — translated text is fitted inside the original balloon shapes instead of overlaying rectangles
  • Works with Chinese, Japanese, Korean manga / manhwa / webtoons

Full Translation + Colorization (Chinese → English)

Original Chinese Kites Translated + Colorized
Original grayscale Chinese manga page Fully translated and colorized English result

🖌️ Kites Studio: Project Editor

Studio grew from a single-page fixer into a proper project editor:

  • Project management — a redesigned project library with rose branding, multi-page chapter rail, direct-fit toolbar buttons, and translated composite previews; projects are optional and editor-first
  • Layered PSD export — export any page as a single-page layered PSD (text layers properly bounded and invalidated on re-export) for finishing in Photoshop/Clip Studio
  • Batch page upload — drop a whole chapter at once with format enforcement and a progress bar
  • CJK vertical column typesetting — centered RTL layout and vertical punctuation mapping for manhua/original-style pages
  • Contour-aware text editing — inline selection highlight, caret, and pointer mapping follow the painted scanline layout; per-range formatting reflows inside the bubble contour; manual font-size slider works in every mode with one-undo drag gestures (size, line space, rotation share a single gesture model)

✍️ Koharu Contour Typesetting Engine

The text layout engine was rebuilt as a faithful port of established scanlation lettering math, then extended where Kites can be better:

  • Contour fitting — scanline profile measurement, dynamic-programming line breaking, and a readability-floor font search with hyphenation recovery: text now fills bubble shapes the way dedicated manga lettering does
  • Fill sizing — long words hyphenate into visibly larger text instead of shrinking the whole block, with a cut-count tax that prevents spray-hyphenation
  • Smart Bubble Fit — advanced bubble detection (Heuristic & Neural YOLO) expands narrow CJK columns into roomy balloon chambers with tail severing, eliminating tiny squeezed fonts
  • Unified 3-tier rendering — heuristic, neural YOLO, and classic MST tiers share one ellipse/contour geometry pipeline with rotated-ellipse support
  • Font ceiling raised to the slider maximum (120px) across balanced fit, vertical CJK, and the canvas drag handle

🌐 Smarter Translation

  • Custom Prompt tier — bring your own LLM with a two-tier prompt system, language-aware glossary filtering, and a calibrated dual-budget sliding window for long chapters
  • Universal script casing normalization — translated output keeps the source casing intent (no more forced ALL-CAPS English)
  • Parser hardening — recursion fix, digit/timestamp preservation, and glossary boundary handling in CJK text

🔍 OCR Robustness

  • Edge-flush native-script text kept: vertical columns that touch the page edge no longer get dropped by the margin-noise filter when recognition confidence is marginal
  • High-quality Lanczos3 downsampling for detection input on large pages
  • Tall webtoon 1D tiled OCR for >14,000px stitched strips at original resolution

🗨️ Smarter Bubble Discovery

  • Engine-owned tier geometry: heuristic and neural bubble tiers are isolated behind their engines, with shared-chamber association and partitioning for multi-utterance balloons
  • Evidence-validated heuristic discovery with adaptive component extraction, hardened against artwork false positives
  • Utterance splitting no longer false-splits continuous vertical columns at punctuation

📚 Font System

  • On-demand font catalog with a searchable picker in the popup and Studio
  • Bundled comic lettering fonts (CC Wild Words, Anime Ace, Patrick Hand SC) with explicit @font-face registration
  • First-open repaint fixes so saved bubbles render with their preset fonts immediately

⚙️ Better Default Settings (First Install Experience)

Setting Old Default New Default Why
Inpainting Simple Fill Telea Diffusion Cleaner background repair, preserves screentones
Font Standard (sans-serif) Wild Words (Comic) Authentic manga dialogue lettering out of the box

🐛 Bug Fixes

  • Studio first-open font registration race: overlay now repaints after font-library loading settles
  • Text measurement mixed-script and NaN guard fixes in the ellipse solver
  • Studio height manual resize restored; legacy ellipse mode normalized to contour on restore
  • Content-script original-toggle state synchronized across registry and observer
  • Conjoined double-bubble splitting and burst balloon expansion fixed
  • Sub-chamber collision and double-bubble blowout eliminated; parallel-column over-splitting fixed
  • Hyphen markers healed in every Studio reflow route; hyphenated fallback enabled when unhyphenated text overflows
  • Page dimensions retained across the bitmap lifecycle in the offscreen document
  • Project pages protected from storage retention cleanup; projectId forwarded on upload
  • Popup reorganized: theme toggle moved to the top header, GPU panel moved to Advanced, engine dropdowns ordered by size tier

🔧 Infrastructure & Maintenance

  • Tier 2 multi-tier CPU pipeline smoke-test matrix in CI; visual test suite added to the smoke workflow
  • OCR registry model URL validation in CI
  • Clean-architecture refactors: content-script image replant module extraction, bubble engine decoupling with provider capability checks, god-file decomposition
  • Memory: unified engine disposal, WebGPU serialization, and bitmap lifecycle cleanup

📦 What's Changed

  • ✨ Colorization tier + per-bubble color detection + balloon wrapping
  • 🖌️ Studio project management, layered PSD export, batch upload, CJK vertical typesetting
  • ✍️ Koharu contour typesetting engine with fill sizing and contour-aware editing
  • 🌐 Custom Prompt translation tier, glossary filtering, sliding window, casing normalization
  • 🗨️ Unified YOLO bubble tier, shared-chamber partitioning, heuristic discovery hardening
  • 🔍 OCR edge-flush fix, Lanczos detection input, punctuation split floor, tiled webtoon OCR
  • 📚 On-demand font catalog, bundled comic fonts, first-open repaint fixes
  • 🎛️ One-undo slider gestures, 120px font ceiling across all Studio sizing paths
  • 🎯 Better defaults: Telea inpaint + WildWords font
  • 🔧 Version bump: 1.2.3 → 1.3.0

🔧 Installation

Chrome Web Store (auto-updates): https://chromewebstore.google.com/detail/kites/pcaokchkdgnmfgjkljfpghlfohbdjcmj

Manual Install: Download kites-v1.3.0.zip, extract, load as unpacked extension in chrome://extensions