tts-voice-creator-clone-and.../static/sections
mARTin-B78 96b0b9dd71
Some checks are pending
Test and SonarQube / quality (push) Waiting to run
fix(magazine): finish and harden the live ingest preview
Resumes an in-progress, uncommitted change from a previous session: the
live "page image + recognised text" preview shown during ingestion was
reworked to render formatted HTML (styled headings, a figure
placeholder) instead of a plain-text dump, but was left with a
duplication bug, dead code, inline styles, and no tests.

- Fixed duplication: a figure block's own transcribed text (usually its
  on-screen UI copy) was rendered as an ordinary paragraph in addition
  to the new figure placeholder box. Figure/chart/table/code blocks are
  now represented only by the placeholder.
- Furniture/sidebar/pullquote/ad text is shown muted instead of being
  dropped with no replacement, and is never promoted to a heading
  regardless of font size.
- Factored the formatting logic out of the progress closure into a
  standalone, unit-tested _render_ingest_preview_html().
- Replaced dead getattr(bbox, "y0", ...) calls (bbox is always a plain
  [x, y, w, h] list) with direct indexing, moved statistics/logging
  imports to module level, switched manual character replacement to
  html.escape(), and bounded the preview by an accumulated line budget
  instead of a blind slice that could truncate mid-tag.
- Replaced inline style="..." with CSS classes matching the panel's
  existing dark console treatment.
- The frontend now always uses innerHTML (every text node is escaped
  server-side), dropping the startsWith('<') content-type sniffing.
- Marked the preview panel aria-hidden -- decorative, and would
  otherwise churn noisily for screen reader users on top of the
  adjacent progress bar.

Verified against the real c't KI Wissen 2026 layout: a figure's raw
OCR text no longer appears twice, a real headline renders as <h3>, a
footer/pull-quote render muted, and all text is correctly escaped.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-12 15:24:16 +02:00
..
s-caststudio.html Release v1.22.2 2026-09-03 16:12:02 +02:00
s-characters.html Release v1.9.0 — Character Library + richer character sheets 2026-06-26 21:22:40 +02:00
s-clone.html Release v1.22.2 2026-09-03 16:12:02 +02:00
s-connect.html Add Script Rehearser; clean Connect Apps; About changelog; rework Try It Out 2026-05-31 20:09:59 +02:00
s-conversation.html Fix Fish-Speech emotion tags, wire book context into portraits, add emotion controls app-wide (v1.20.5) 2026-08-11 18:02:41 +02:00
s-design.html Release v1.22.2 2026-09-03 16:12:02 +02:00
s-library.html Release v1.14.19 2026-07-09 14:11:40 +02:00
s-llms.html feat: complete magazine P1 (images, play-all, karaoke, driving mode, sidebar exclusion) + OCR engines page + second OCR engine 2026-09-06 23:39:34 +02:00
s-magazine.html fix(magazine): finish and harden the live ingest preview 2026-09-12 15:24:16 +02:00
s-performance.html feat: add constrained-device resource diagnostics 2026-09-04 09:51:49 +02:00
s-reader.html Release v1.22.2 2026-09-03 16:12:02 +02:00
s-rehearser.html Release v1.22.2 2026-09-03 16:12:02 +02:00
s-routing.html Release v1.22.2 2026-09-03 16:12:02 +02:00
s-settings.html Fix voice stability, audio effects, and character/voice pipeline bugs 2026-07-29 15:33:24 +02:00
s-studio.html Release v1.6.0: a11y (WCAG AA), i18n (DE), PWA, perf, tests, Cast UX 2026-06-03 14:23:35 +02:00
s-tryout.html Fix Fish-Speech 0-voices bug, add inline emotion-tag reference to Try It Out (v1.20.8) 2026-08-12 00:08:36 +02:00
s-voices.html Release v1.22.2 2026-09-03 16:12:02 +02:00