Commit Graph
4034 Commits
Author SHA1 Message Date
Dylan M. Taylor cbf62cb2ce Merge branch 'main' into feat/audio-dsp 2026-11-20 00:26:12 -05:00
FredApps 5a913a42ab Merge pull request #2449 from mmazzieri/fix/vml-allowincell
craft-docx: a VML shape in a body table cell keeps Layout in table cell off
2026-11-20 12:21:02 +07:00
FredApps 0a385b97df Merge pull request #2441 from MMexicann/patch-2
fix(ipp): decode language-tagged attribute text
2026-11-20 11:58:14 +07:00
Dylan M. Taylor a6e9a7e6c5 craft-pdf: add font wire builders (FontDescriptor, font stream, CID, ToUnicode) (#2499)
* craft-pdf: add font wire builders (FontDescriptor, font stream, CID, ToUnicode)

* craft-pdf: match Object::Stream in wire unit test

* craft-pdf: split doc.add borrow in wire unit test
2026-11-19 23:56:13 -05:00
FredApps c0eb1b6277 Merge pull request #1162 from keithcsqueensu/math-ports
craft-math: linear-format and OMML writer fixes (ports of wordcraft#6080–#6085, #6230, #6236)
2026-11-20 11:55:26 +07:00
Dylan M. Taylor b92907f69d idml: add reusable schema emission helpers for remaining IDML parts (#778) (#2501)
* idml: add reusable schema emission helpers for remaining IDML parts (#778)

* fix(idml): remove duplicate push_prefixed_attrs on FillValues
2026-11-19 23:48:59 -05:00
Dylan M. Taylor 4e1983238a Merge branch 'main' into feat/audio-dsp 2026-11-19 23:48:41 -05:00
Dylan M. Taylor c470ed170d hayro-interpret: restore FormXObject RESOURCES presence check and Indexed image recovery in x_object.rs (#2497)
* hayro-interpret: port remaining pdfcraft resource-scope, indexed-image, and text-clip patches

* hayro-interpret: keep craft-libs resource-scope and text contracts; retain x_object.rs fixes
2026-11-19 23:46:01 -05:00
Dylan M. Taylor 380a2f79f6 craft-sbs: share SBS package/schema read/write, sniffing, URI resolution, and embedded codec (#2496)
* sbs: add craft-sbs crate for SBS package/schema read/write

* craft-sbs: fix roxmltree 0.21 ParsingOptions and test imports
2026-11-19 23:40:51 -05:00
Dylan M. Taylor a7c6c9d61c image-codecs: extract JPEG and JP2 embedding probes (#2498) 2026-11-19 23:32:11 -05:00
Dylan M. Taylor f4c242fe21 test(raw): ensure CARGO_TARGET_TMPDIR exists in decode_report FixtureDir (#2502) 2026-11-19 23:32:07 -05:00
Dylan M. Taylor cfcc86242d ps(write): add line style, smooth shading, and image stream helpers (#2500) 2026-11-19 23:23:02 -05:00
Dylan M. Taylor d0193d7e94 craft-rtf: add OutlineWriter for PowerPoint-compatible Outline/RTF (refs #778) (#2494) 2026-11-19 23:15:41 -05:00
Dylan M. Taylor d7a1a6aec6 Merge branch 'main' into feat/audio-dsp 2026-11-19 22:48:18 -05:00
Dylan M. Taylor 057b0e3e01 fix(media): custom ftyp compatible brands and real ReferenceBlock deltas (#2486)
* fix(media): support custom ftyp compatible brands and real ReferenceBlock deltas

* fix(media): satisfy clippy::chunks_exact_to_as_chunks in ftyp test
2026-11-19 22:34:35 -05:00
Dylan M. Taylor 7ec2437906 Bound default loudness channel weights 2026-11-19 22:30:27 -05:00
Dylan M. Taylor 63029ff9cb Merge branch 'main' into feat/audio-dsp 2026-11-19 22:27:43 -05:00
Dylan M. Taylor c8087acbd9 hayro*: port pdfcraft vendor/hayro* patches (#2472)
* hayro*: port pdfcraft vendor/hayro* patches (storytold/craft-libs#778)

* hayro-syntax: fix test and merge compile errors from port

* fix(hayro-syntax): avoid moving params.control in lzw_flate test

* fix(hayro-syntax): include early_change in lzw_flate test

* hayro*: fix hayro-interpret compile errors and hayro-syntax test failures

* hayro*: fix duplicate char_code_to_unicode and super::LETTER in test

* hayro-syntax: fix predictor cancellation and ArrayIter parse failure tests

* hayro-syntax: restore bit-level PNG predictor fallback when control is set

* hayro-syntax: support Checkpoints cancellation inside unfilter_png

* hayro-interpret: remove duplicate blob::tests and require hayro-syntax 0.7.2

* hayro-interpret: cast MAX_COLOR_SPACE_DEPTH u32 as usize in test

* hayro: drop unvendored vello_cpu set_max_coverage/coverage_full calls

* hayro-interpret: restore interpret_form_contents call and TextPass order

* hayro-interpret: split ExtendedWarning out of InterpreterWarning for vectorcraft compatibility

* hayro-interpret: clone extended_warning_sink before ImageXObject::new closure

* hayro-interpret: restore OP/op/OPM ExtGState handling for overprint

* hayro-interpret: restore DecodeLimits and truncation reporting in decode_content

* hayro: restore on_plate DefaultColorSpaces bypass and cmyk_luminosity soft mask
2026-11-19 21:57:15 -05:00
mtlcl410 38b4001816 MIDI: imported SMF SysEx packets retain their payloads and timing on export (#2077)
* Preserve SMF SysEx packet payloads and timing across MIDI round trips

* Order cross-track note-offs before SysEx when writing format zero

* Diagnose truncated SysEx and guard merged packet streams

* Validate emitted event order around split SysEx

* Preserve real split boundaries when exporting SMF SysEx

* Preserve same-tick SysEx order and require real termination
2026-11-20 09:57:10 +07:00
Elvis33LE 4b4d5f7a9d fix(exr): stage contained data windows in display canvas (#2033) 2026-11-19 21:30:51 -05:00
Terra854 359b72eebc docs: compare SQLite readers for #778 (#2443) 2026-11-19 21:30:46 -05:00
Dylan M. Taylor 5c0d5999bd Expose bounded ZIP directory records for catalog selection (#2474)
* zip: expose bounded central directory record listing

* Preserve original ZIP central directory name bytes
2026-11-19 21:08:56 -05:00
Dylan M. Taylor 3dff4793f1 craft-develop, craft-color-transform: deduplicate spline, add 1024-entry compose_len, spaces, and warm-green WB test (#2464)
* craft-develop, craft-color-transform: deduplicate spline, add 1024-entry Lut1::compose_len, spaces, and warm-green WB test

* cct: check bradford identity and matrix tolerance in warm-green WB test

* style(color-transform): fix clippy needless_range_loop in cct test
2026-11-19 20:36:43 -05:00
Dylan M. Taylor 106134631c video: add TrackDecoderOptions, with_threads, and set_draft on TrackDecoder (#2461)
* video: add TrackDecoderOptions, with_threads, and set_draft on TrackDecoder (#778)

* fix(video): allow unused opts when decoder features disabled

* video: fix unreachable pattern in TrackDecoder::set_draft and verify inner state on reset

* fix(video): allow irrefutable_let_patterns when single decoder feature enabled

* fix(video): remove nonexistent hevc/av1 Decoder::threads test getters

* style(video): allow clippy::cognitive_complexity in track options test
2026-11-19 20:36:39 -05:00
Dylan M. Taylor 483f2ab81f craft-usd: extract neutral USDA/USDC scene, prim, and layer read/write (#778) (#2459)
* craft-usd: extract neutral USDA/USDC scene, prim, and layer read/write (#778)

* chore: update Cargo.lock for craft-usd

* craft-usd: add integration tests for USDA/USDC scene read/write (#778)

* fix(usd): use asset-only external reference syntax in scene test

* test(usd): include Shader child prim for material surface target in neutral layer test
2026-11-19 20:36:34 -05:00
Dylan M. Taylor 03d1afced9 svg: extract shared SVG document/CSS interpretation helpers (#778) (#2456)
* svg: extract shared SVG document/CSS interpretation helpers (storytold/craft-libs#778)

* svg: document doc_style::length unknown-unit px fallback

* style(svg): fix clippy field_reassign_with_default in doc_style test
2026-11-19 20:36:26 -05:00
Dylan M. Taylor 1a3be2d439 craft-develop: extract ToneMap/CameraTone and pure-Rust finish helpers (#2471)
* craft-develop: extract ToneMap/CameraTone and pure-Rust finish helpers

* fix(develop): add serde_json dev-dependency for tone tests
2026-11-19 20:23:11 -05:00
keithcsqueensu f4917bc47e craft-math: the control-word check stays linear over a run of letters
ends_with_control_word walked back over the whole trailing run of
letters for every letter written, so a long run took quadratic time:
200,000 letters took about 10 s in a release build, and 400,000 did not
finish in 3 minutes in a test build. The output position after the last
plain letter is now remembered; while the output still ends there its
trailing letters are plain text and are not scanned again.

Review finding on #1162 (ends_with_control_word).
2026-11-20 01:22:46 +00:00
Dylan M. Taylor 429937ad72 craft-dds: expose shared BC1-7, ETC1/EAC, and packed pixel decoders (#778) (#2460)
* craft-dds: expose shared BC1-7, ETC1/EAC, and packed pixel decoders (#778)

* fix(dds): qualify super::anchor in bptc test

* craft-dds: add independent known-answer test vectors for BC6H, BC7, ETC1, and EAC

* fix(dds): remove unused partition/anchor imports in bptc test
2026-11-19 20:03:14 -05:00
Dylan M. Taylor 1546550b0d pptx/drawingml: upstream DeckCraft table caps, has_notes_slide, ModelError, and import_report (#2463)
* pptx/drawingml: upstream DeckCraft table caps, has_notes_slide, ModelError, and import_report (#792)

* drawingml(table): mark insert_row and insert_col #[must_use]
2026-11-19 20:01:09 -05:00
Dylan M. Taylor d0ca0cdb28 craft-mesh: add COLLADA (.dae) and Alembic (.abc) readers (#2462)
* craft-mesh: add COLLADA (.dae) and Alembic (.abc) readers

* fix(mesh): use str::to_owned instead of into_owned in dae

* craft-mesh: make dae and abc opt-in features

* fix(mesh): remove unused Error import and use Entry API in abc
2026-11-19 20:01:05 -05:00
Dylan M. Taylor 7258e42d8d ps: expose public PostScript token/lexer scanner (read::lex) (#2458)
* ps: expose public PostScript token/lexer scanner (read::lex)

* ps(lex): only mark stream fresh on Ok token

* fix(ps): allow clippy::should_implement_trait on Lexer::next
2026-11-19 19:55:29 -05:00
Dylan M. Taylor 512a1b8e8b mesh, image-codecs: add clearcoat/sheen GLB, obj_with_mtl, and EXR chromaticities (#778) (#2466)
* mesh, image-codecs: add clearcoat/sheen GLB, obj_with_mtl, and EXR chromaticities (#778)

* fix(mesh): import Image and TextureRef in obj tests

* fix(mesh): construct Mesh via struct literal in gltf test
2026-11-19 19:50:59 -05:00
keithcsqueensu 4e5f883c93 Merge storytold/craft-libs main into math-ports 2026-11-20 00:40:38 +00:00
Dylan M. Taylor 0ffb1a0abe xlsx, drawingml: track dropped cells and chart data tables/pivot source/first slice angle (#778) (#2465)
* xlsx, drawingml: track dropped cells and chart data tables/pivot source/first slice angle (#778)

* xlsx, drawingml: add unit tests for dropped_cells, ChartDataTable, first_slice_angle, pivot_source (#778)
2026-11-19 19:39:15 -05:00
Dylan M. Taylor 0275c0b107 html, xfdf: extract standalone HTML writer and XFDF annotation/FDF grammar (#778) (#2457)
* html, xfdf: add standalone HTML writer and XFDF annotation/FDF grammar (#778)

* html, xfdf: escape image mime attribute and clarify rich_plain vs direct_text
2026-11-19 19:38:35 -05:00
keithcsqueensu 6c7e2c71d3 craft-math: a dropped character no longer joins a command to the next letters
linear_to_latex separated a control word from a following letter only by
looking at the next input character. A character it then dropped (an
unmatched 〖 or 〗, or a control character) hid the letter after it, so
`\in〗put` and `∈〗put` were written as `\input`, a command the exported
.tex would run on the machine of whoever compiles it. A letter is now
separated whenever the output so far ends in a control word.

Review finding on #1162 (latex_text.rs, the 〗 arm). The control
character case was already on main.
2026-11-20 00:37:18 +00:00
Dylan M. Taylor 6719b207fa craft-pdf: add fonts feature with PDF encodings and Standard-14 metrics (#2454)
* craft-pdf: add fonts feature with ISO 32000-2 Annex D encodings and Standard-14 metrics

* pdf(fonts): call crate::fonts::win_ansi in std14
2026-11-19 19:14:36 -05:00
Dylan M. Taylor ff98d8b93c fix(idml): remove unused imports in model test (#2467) 2026-11-19 19:07:33 -05:00
Terra854 f428c3d36e sqlite: add bounded wire decoding helpers (#2446) 2026-11-19 18:34:01 -05:00
Dylan M. Taylor 01c89f9a23 idml: add reusable designmap schema emission (#778) (#2455)
* idml: separate reusable designmap schema emission (#778)

* test(idml): split designmap schema roundtrip test for clippy
2026-11-19 18:32:24 -05:00
aiongg 0f23b31d1a Merge pull request #2438 from aiongg/update-hdiutil-eagain
craft-update: macOS install tests retry hdiutil while the disk-image helper is busy
2026-11-19 18:17:36 -05:00
FredApps ea9407b350 svg: share compact path command formatting (#778) [skip ci] (#2453) 2026-11-20 06:06:57 +07:00
42e0bd5482 Add a craft-raw decoder comparison example (#2417)
* Add a craft-raw decoder comparison example

* Clean up RAW decoder report test fixtures

* craft-raw: say the report hashes decoded samples and which revisions build it

The digest covers RawImage::data, after any decoder linearization, so the
README now says "decoded samples" and explains that two stored codes that
map to the same value give the same digest.

The copy-into-an-older-checkout instructions now name the first main
revision the example builds on (ecee6933, #1171): older revisions have no
Cfa origin fields.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: FredApps <FredApps@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 05:50:06 +07:00
Dylan M. Taylor f7569cc7ae Merge pull request #2425 from dotCooCoo/fix/file-formats-jpeg-ls
file-formats: register JPEG-LS and tell it from JPEG
2026-11-19 17:46:57 -05:00
pancakeandpancake 352c589d89 RAW-DNG: gate JPEG XL tests on the codec feature (#2381)
The DNG integration target also runs when JPEG XL decoding is disabled.
Gate the five JPEG XL cases and their fixture helpers on the jxl feature
so a DNG-only test run checks the codecs available in that build.

The full JPEG XL regressions remain enabled when jxl is selected.

Co-authored-by: pancake <pancake@nopcode.org>
2026-11-19 17:45:24 -05:00
Mex a559fd3abc fix(mcp-server): reject invalid JSON-RPC versions before dispatch (#2444)
* fix(mcp): validate JSON-RPC versions before dispatch

Reject malformed request envelopes before tool or lifecycle effects. Companion to storytold/gridcraft#4210 after the shared-server migration.

* test(mcp): cover invalid version markers across transports

Actual shared crate: baseline 18 passed and 3 new regressions failed; fixed 21 passed. Repository formatting and strict production Clippy pass.
2026-11-19 17:41:52 -05:00
Terra854 6a5ff3d4fd psd: open merged composites without image resources (#2426) 2026-11-20 05:07:30 +07:00
mmazzieri abaccb0d38 craft-docx: a VML shape in a body table cell keeps Layout in table cell off
`o:allowincell="f"` on a VML shape anchored in a body table cell now sets
`Float::outside_cell`, as `layoutInCell="0"` already does for DrawingML.
Word places such a shape outside its cell, and the cell's text does not wrap
around it. Without the attribute, or with it on, the shape stays in its cell.
The writer already saved `o:allowincell` from `outside_cell`, so the setting
now survives open and save.
2026-11-19 22:33:53 +01:00
Dylan M. Taylor 219c1d0b14 dxf: add shared .lin and .pat text parsers (#2434) 2026-11-19 16:25:57 -05:00