Skip to content

xdoc-v0.21.0

Choose a tag to compare

@hustcer hustcer released this 12 Nov 08:02
· 46 commits to main since this release

v0.21.0 - 2026/11/12

Compared with v0.20.0 (918276739), through HEAD dcce9c1cb (source version 0.21.0). These notes cover CLI behavior and shared engine changes used by the CLI.

  • add-equation now typesets supported LaTeX into SVG vector paths in the default and rendered modes, replacing the previous SVG containing literal LaTeX text. One-shot and cooperative daemon patch execution use the same typesetter. The obsolete formula-fallback-svg risk is no longer emitted; this does not establish visual fidelity for a particular equation.
  • Expanded native-omml equation creation to compose sequences, grouped expressions, fractions, square roots, paired parentheses/brackets, combined subscripts/superscripts in either order, and sum/product/integral bodies and limits. For example, E=\frac{a}{b}+x_i^2 retains all terms. Native editable math and built-in rendered math use the same bounded parser. A sum or integral body stops at the next top-level additive or relation operator; use braces when a larger expression belongs to the body.
  • Equation migration: built-in parsing rejects unknown commands, malformed syntax, trimmed input longer than 65,536 UTF-16 units, and nesting deeper than 64 without output bytes. Rendered mode no longer falls back to drawing source text. Full TeX, environments, and user-defined macros are unsupported. Use mode: "rendered" and supply externally typeset SVG with bytesBase64 or assetSource when the built-in subset is insufficient; supplied SVG bypasses LaTeX parsing and retains its bytes. Rendered w/h now define a centered contain box that preserves a known SVG aspect ratio; SVG without an intrinsic ratio keeps the explicit frame. Recheck equation placement after upgrading. The schema's derivative example also now uses the correct LaTeX escaping.
  • Corrected equation extraction to retain combined subscripts/superscripts, group compound script bases, and escape literal reserved characters such as % in generated LaTeX. Removed duplicate operator spacing in vector math rendering and adjusted upper side limits to clear operator outlines. Recheck extracted math and affected PDF/PNG previews before adding manual spacing workarounds.
  • New marker-only scatter charts now explicitly suppress connecting series lines while keeping marker borders independently styleable. Imported marker-style charts retain their existing connection visibility; replacing XY data preserves that visibility by series position, and newly added series default to unconnected markers. Data replacement rebuilds chart XML and does not preserve other chart formatting. Inspect and preview the result when replacing data in a styled chart.
  • Scatter and bubble chart PDF rendering now chooses automatic horizontal numeric tick density using the chart frame and label measurements. Explicit major units remain authoritative; axes with both finite endpoints explicitly set retain the existing automatic interval budget. Re-render affected PDF/PNG output before retaining manual tick-density workarounds.
  • Native PDF font preparation now supplements the primary Unicode fallback with complementary local or cached font faces that cover missing glyphs, including relevant slide and chart text. The supplementary search does not download fonts and does not replace the primary math fallback. Coverage still depends on available fonts; preview multilingual output rather than assuming every Unicode character is supported.
  • Fixed populate-slide and layout bindings in bind-data when they append slides: image content-type declarations and layout overrides written during the fill are retained instead of being overwritten by a stale batch snapshot. Presentation metadata and slide IDs remain batched during repeated appends. Retry affected patches and check the resulting package before applying raw XML repairs.
  • xdoc schema now exposes authorization contract version 2026.11.08, including the independent writer-pptx-export-v1 SDK profile (pptx-writer, feature pptx-export). SDK profiles identify the quota subjects through freeQuotaSubjects: Converter uses compressed-input; Writer uses final-output and read-only-input. Read profiles by ID and product rather than assuming a three-entry array or treating Writer quotas as native CLI quotas.

Full Changelog: xdoc-v0.20.0...xdoc-v0.21.0