Commit Graph
3038 Commits
Author SHA1 Message Date
Cédric Legrand 25f1ac5801 test(prc): validate compressed mesh reconstruction 2026-11-14 10:39:34 +01:00
pakiatandClaude Opus 5.5 0e83ef6d51 craft-docx: Thai text outside a complex-script run takes the run's own font and size, as in Word
Moved from the DOCX part of storytold/wordcraft#6244. Runs are marked with what Word counts as complex script (the run, its paragraph style chain, its table style and the run defaults, not a character style). StyleSheet::table_cells_chr works out a table's cell run formatting once; ResolvedChar gains cs_off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 09:33:37 +00:00
Dylan M. Taylor f0f4758c01 image-codecs: preserve PNG HDR metadata and PQ output (#1249)
* image-codecs: preserve PNG HDR colour metadata and PQ output

* image-codecs: keep PQ PNG dimension checks overflow-safe

* image-codecs: test empty PQ PNG input rejection

* fix(png): preserve HDR color metadata semantics
2026-11-14 04:08:23 -05:00
Dylan M. Taylor b423529943 Merge pull request #1247 from storytold/codex/craft-xfl-sfx
fix(xfl): support self-extracting archive offsets
2026-11-14 03:49:55 -05:00
alehel 4732a89b02 craft-audio: review of the format queries
- EncodeFormat::max_channels gave 65535 for WAV and AIFF, whose headers
  hold 32767 (a WAV fewer at wider samples, which the doc now says).
- Tests pin the AAC and MP3 layouts, each format's channel limit with the
  count above it, and every listed sample rate with its neighbours: the
  agreement test alone compared the tables with a writer that reads them.
- Docs: FileEncoder::bitrate points at the rule RateControl::Bitrate
  states; the README says when check exists.

Refs #1230
2026-11-14 09:37:54 +01:00
alehel 1570d6a29a craft-audio: ask what a format takes before writing a file
- EncodeOptions::check says whether a file can be begun, with the error
  FileEncoder::new would return and nothing written.
- EncodeOptions::bitrate and FileEncoder::bitrate give the constant bit
  rate actually used, after it is moved to one the stream can carry.
- EncodeFormat::sample_rates, max_channels, fixed_layouts, supports_layout
  and supports_quality say what a format takes, also when its feature is
  off. The writer reads its layouts from the same table, and tests hold
  the tables to the encoders and to what the writer accepts.

Refs #1230
2026-11-14 08:48:19 +01:00
alehel 6f7c041a09 craft-audio: tests of the coded formats hold on ffmpeg 8 and without AAC
- ffmpeg 8 skips an AAC M4A's priming but plays the last packet's padding
  (ffmpeg 9 cuts it): the ffmpeg oracle test takes either length, and the
  README says which readers end the audio where.
- With alac-encode and no aac-encode, `m4a` names ALAC: the extension test
  compared it with AAC.

Refs #1230
2026-11-14 08:31:05 +01:00
Dylan M. Taylor cca7733f21 perf(xfl): cache candidate directory validation 2026-11-14 07:30:14 +00:00
Dylan M. Taylor 506610767b Merge pull request #1266 from storytold/codex/docx-measure-clamp
docx: clamp large measurements in f64
2026-11-14 02:21:06 -05:00
Dylan M. Taylor f5ccaba5d3 Merge pull request #1265 from storytold/codex/docx-notes-fallback
docx: read conventional footnote and endnote parts
2026-11-14 02:20:44 -05:00
Dylan M. Taylor 899e396b9e Merge pull request #1272 from storytold/codex/idml-value-compat-main
fix(idml): preserve transforms and text variable values
2026-11-14 02:17:53 -05:00
Dylan M. Taylor e1c84a471c fix(xfl): validate shifted EOCD candidates 2026-11-14 07:13:44 +00:00
aiongg b1b4602a71 designcraft-format: linked assets, proxy previews, streaming write (format 5) (#1264)
* designcraft-format v5: linked assets, proxy previews, streaming write_to

* Skip bytes of linked assets, latch writer errors, charge failed proxy reads
2026-11-14 02:12:23 -05:00
Dylan M. Taylor 9dcbd90c7d Merge pull request #1275 from storytold/codex/docx-wordcraft-parity
fix(docx,wordmodel): style revisions, lnNumType guard, deterministic Paragraph Debug
2026-11-14 01:11:52 -05:00
Dylan M. Taylor 9ea7a82027 fix(docx,wordmodel): preserve style revisions, lnNumType countBy guard, and deterministic Paragraph Debug 2026-11-14 06:11:36 +00:00
Dylan M. Taylor 9444213901 Merge remote-tracking branch 'origin/main' into codex/idml-value-compat-main 2026-11-14 06:08:45 +00:00
Dylan M. Taylor 32e802fa08 Merge remote-tracking branch 'origin/main' into codex/docx-measure-clamp 2026-11-14 06:06:54 +00:00
Dylan M. Taylor c2a5eca2e3 Merge remote-tracking branch 'origin/main' into codex/docx-notes-fallback 2026-11-14 06:06:51 +00:00
Dylan M. Taylor 8a184f715b Merge remote-tracking branch 'origin/main' into codex/craft-xfl-sfx 2026-11-14 06:04:56 +00:00
Dylan M. Taylor 52e1329ce3 Merge pull request #1261 from dylanmtaylor/codex/image-codecs-metadata-cutover
image-codecs: delegate metadata edits to craft-metadata
2026-11-14 01:04:11 -05:00
Dylan M. Taylor 07e89ad30a fix(idml): preserve transforms and text variable values 2026-11-14 05:51:17 +00:00
Dylan M. Taylor 6c894be829 Merge pull request #1180 from dylanmtaylor/codex/craft-idml-geometry
craft-idml: strict bounded path geometry reader
2026-11-14 00:46:14 -05:00
Dylan M. Taylor e58cd131af test(svg): use tree-depth limit for referenced depth 2026-11-14 05:17:03 +00:00
Dylan M. Taylor d2fd4fb09e Clamp OOXML measurements before f32 conversion 2026-11-14 04:54:11 +00:00
Dylan M. Taylor 0559e4214e Read conventional footnote and endnote parts 2026-11-14 04:48:57 +00:00
kiwi4boy 3e957e0fd1 craft-xlsx: read the styles part of a binary workbook
Package::styles() reads styles.bin into the same Styles the XML part
gives: number formats, fonts, fills, borders, cell and cell style
formats, cell styles, differential formats and indexed colours, spelled
as Excel writes them in styles.xml. A damaged part is a warning and no
styles; each table holds at most 65,536 entries.

Closes #1253.
2026-11-13 23:35:18 -05:00
Dylan M. Taylor 9481cecd22 docs: clarify shared resolution precedence 2026-11-14 04:24:37 +00:00
Dylan M. Taylor c526df24f3 image-codecs: delegate metadata edits to shared crate 2026-11-14 04:22:36 +00:00
Dylan M. Taylor 1c6ac2e086 fix(xfl): honor the ZIP64 entry-count sentinel 2026-11-14 04:02:41 +00:00
Dylan M. Taylor b77af389f3 Merge pull request #1245 from storytold/codex/anicraft-envelope
feat(anicraft-format): extract native JSON envelope
2026-11-13 23:01:08 -05:00
dotCooCoo 47baffee9d craft-texture: compare images by value whether or not the buffer is shared
Image equality no longer short-cuts on a shared buffer. An image holding
NaN compared equal to its clone but unequal to the same image built
again; it is now unequal to both, as f32 comparison gives.
2026-11-13 19:55:39 -08:00
Dylan M. Taylor f9f9e11fd9 Merge pull request #1244 from storytold/codex/docx-conventional-part-fallback
craft-docx: keep conventional parts without relationships
2026-11-13 22:55:28 -05:00
dotCooCoo 316db97052 craft-texture: keep bilinear samples of finite texels finite
The four weighted texels are summed in f64 and a finite sum is clamped
to the f32 range. Rounded weights can add up to slightly more than 1,
which made a constant image of f32::MAX sample to infinity at some
coordinates. Infinite texels still give an infinite or NaN sample.

The crate docs and README now limit the OutOfMemory guarantee of the
try_ forms to the pixel buffer, and name the Arc and the try_resize
resampler as allocations that are not fallible.
2026-11-13 19:52:40 -08:00
Dylan M. Taylor a6b246ebef fix(xfl): support self-extracting archive offsets 2026-11-14 03:49:42 +00:00
Dylan M. Taylor e2dc681a3a Merge pull request #1197 from dylanmtaylor/codex/photocraft-psd-zlib-stream
PSD: expose incremental zlib stream encoding
2026-11-13 22:39:04 -05:00
Dylan M. Taylor fd708734aa Merge pull request #1182 from storytold/codex/photocraft-file-caps
Add shared format capability catalog
2026-11-13 22:38:59 -05:00
Dylan M. Taylor ecee693322 Merge pull request #1171 from dylanmtaylor/codex/photocraft-format-library
Add shared image codec facade
2026-11-13 22:38:50 -05:00
Dylan M. Taylor 2bc600186f Align IDML story test with typed destinations 2026-11-14 03:30:34 +00:00
Dylan M. Taylor 2239b0afb0 Merge pull request #1246 from storytold/prc-compressed
craft-prc: rebuild compressed tessellations whose normals are recalculated (#778)
2026-11-13 22:27:44 -05:00
Dylan M. Taylor f72b69699f craft-prc: rebuild compressed tessellations whose normals are recalculated (#778) 2026-11-14 03:27:29 +00:00
Dylan M. Taylor d9284894ba Merge pull request #1243 from dylanmtaylor/codex/eps-postscript-numeric-operators
craft-eps: share PostScript numeric operators
2026-11-13 22:26:11 -05:00
Dylan M. Taylor 49056e5408 image-codecs: align JPEG tests with progressive support 2026-11-14 03:21:46 +00:00
Dylan M. Taylor c82c83043a Update lockfile after main merge 2026-11-14 03:12:15 +00:00
Dylan M. Taylor 0b1688098a fix(anicraft): preserve invalid envelope diagnostic 2026-11-14 03:12:01 +00:00
Dylan M. Taylor 840d156fbf Merge current main into image codec extraction 2026-11-14 03:10:53 +00:00
Dylan M. Taylor 7f59e8f3f5 fix(docx): preserve case-insensitive main part fallback 2026-11-14 03:04:54 +00:00
Dylan M. Taylor 427fa15899 Merge pull request #1223 from storytold/codex/anicraft-xfl-format
Add bounded XFL FLA package reader
2026-11-13 22:01:31 -05:00
Dylan M. Taylor 9a2dafbf7d Move native format identity into shared crate 2026-11-14 02:47:40 +00:00
Dylan M. Taylor 5df4b49f8c feat(anicraft-format): extract versioned JSON envelope 2026-11-14 02:46:10 +00:00
Dylan M. Taylor fbbebecf27 Preserve conventional Word part fallback 2026-11-14 02:28:04 +00:00