Commit Graph
3361 Commits
Author SHA1 Message Date
Dylan M. Taylor 4f3bf746bb Merge pull request #1886 from Hamza0101/fix/sylk-escaped-characters
craft-csv: decode Excel's character escapes in SYLK text
2026-11-16 19:48:42 -05:00
Dylan M. Taylor 52368e0016 Merge pull request #1913 from scks1/fix/latex-paragraph-breaks
craft-latex: paragraph breaks survive comments, control words and CR line ends (wordcraft#6350, #6365, #6366)
2026-11-16 19:46:09 -05:00
Dylan M. Taylor dd7e62720a Merge pull request #1939 from KenM76/fix/mesh-dropped-warnings
craft-mesh: warn when glTF morph targets or other scenes are left out
2026-11-16 19:44:50 -05:00
Dylan M. Taylor fe39ad9e27 Merge pull request #1916 from scks1/fix/latex-break-star
craft-latex: a starred line break shows no star
2026-11-16 19:42:26 -05:00
Dylan M. Taylor 02f3a449f4 Merge pull request #1912 from scks1/fix/latex-control-space-eol
craft-latex: a backslash before a line end or a tab is a control space (wordcraft#6296)
2026-11-16 19:39:23 -05:00
Dylan M. Taylor 3470eac30a Merge pull request #1946 from keithcsqueensu/wordmodel-para-push
wordmodel: append to a paragraph in O(1) with push_text and push_object
2026-11-16 19:38:31 -05:00
Dylan M. Taylor 1bd2c4974e Merge pull request #1947 from keithcsqueensu/flow-header-row-default
flow: a table with no style has no header row from the default look
2026-11-16 19:38:07 -05:00
Dylan M. Taylor 7780b4f58e Merge pull request #1937 from KenM76/fix/mesh-data-uri
craft-mesh: decode a glTF data URI's percent escapes to bytes
2026-11-16 19:21:22 -05:00
Dylan M. Taylor 4992583846 Merge pull request #1898 from StDenis1980/tinta/upstream-application-name
docx: set_application_name for apps that embed the writer
2026-11-16 19:16:04 -05:00
Dylan M. Taylor 30b1cc52fc Merge pull request #1920 from dotCooCoo/fix/csv-sniff-wide-first-record
fix(csv): count a first record longer than the delimiter sample
2026-11-16 19:12:46 -05:00
Dylan M. Taylor be0b1e6552 cover the Flatpak repository guard and its update command (#1956)
The Flatpak/OCI migration left update_flatpak_app and the refusal to replace a
repository-managed Flatpak without tests. A stand-in flatpak on PATH, in child
processes so the environment stays private, covers every scope flag, both
command shapes, a successful update and Flatpak's error text; the guard test
asserts the refusal happens before anything is downloaded.
2026-11-16 18:22:56 -05:00
Dylan M. TaylorandBrandon Thomas a9efd722b4 Expose bounded BMP header recognition for consumer cutovers (#1929)
* Expose supported BMP header recognition

Port the BMP routing check from LightCraft commit 304180a500d1b3f87c8c841f269d305161d6c8b9, preserving minimum length and DIB allowlist.

* Test BMP routing boundaries and unsupported DIB sizes

---------

Co-authored-by: Brandon Thomas <echelon@gmail.com>
2026-11-16 17:56:38 -05:00
Dylan M. Taylor 778493598f Migrate Flatpak updates to the OCI image and appimage pipeline (#1318) 2026-11-16 17:53:46 -05:00
kiwi4boy d5eddf0cc2 flow: a table with no style has no header row from the default look
flow_table made a table's first row a header row whenever its look had
header_row set, and the look defaults to Word's (header row on). The look
is an option of the table's style (w:tblLook/@w:firstRow), so a table
with no style, or a style the document doesn't have, got a header row
Word never shows: RTF bolded it and marked it \trhdr (repeat on each
page), HTML made it th, and ODT repeated it. Only Repeat as header row
(RowProps::header) makes such a row a header now; styled tables are
unchanged.
2026-11-16 17:16:24 -05:00
kiwi4boy 5541e248e8 wordmodel: append to a paragraph in O(1) with push_text and push_object
Building a paragraph through insert_text/insert_object at its end walked
every run (and insert_object counted every object before the offset) on
each call, so n appends cost O(n^2): one paragraph of 64k runs took
8.5 minutes. push_text and push_object extend the last run or start a
new one, giving the same paragraph as inserting at len().
2026-11-16 17:12:46 -05:00
KenM76andClaude Opus 5.5 511e260d23 craft-mesh: test every scene choice; README names the new warnings
The README's glTF "Not read" line was doubled and listed sparse
accessors and tangents, which are read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 16:55:57 -05:00
KenM76andClaude Opus 5.5 8c1498d1f8 craft-mesh: warn when glTF morph targets or other scenes are left out
A primitive's morph targets are not read, and only one scene becomes the
roots. Both now add a warning: a count of the primitives drawn in their
base shape, and which scene of how many was read.

Closes #1938.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 16:53:23 -05:00
KenM76andClaude Opus 5.5 deaee4e8e1 craft-mesh: decode a glTF data URI's percent escapes to bytes
A base64 body with `%2B`, `%2F` or `%3D` escapes was refused as bad
base64, and a plain body lost every escaped byte that was not UTF-8 to
U+FFFD. Escapes are now decoded to bytes first, then base64 when the URI
says so. `uri_decode` is unchanged for file names.

Closes #1936

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 16:47:28 -05:00
Dylan M. Taylor 892ef9116c ci: accept moved stable rust toolchain pin (#1472) 2026-11-16 16:21:25 -05:00
Dylan M. Taylor c012a1f397 Merge pull request #1682 from vangel76/fix/drawingml-theme-roundtrip-1676
Saving a presentation keeps the theme's system colours, custom colours, theme family id, font panose and default paragraph style
2026-11-16 16:14:28 -05:00
Dylan M. Taylor 68cc642520 Merge pull request #1791 from vangel76/feat/6820-chartex-placeholder
Office 2016 charts with a text-only fallback keep their size instead of collapsing the pages
2026-11-16 16:12:25 -05:00
Dylan M. Taylor 09cae32c45 Merge pull request #1776 from vangel76/fix/gutter-at-top
The "gutter at top" page setting in Word files is now read and saved
2026-11-16 16:11:33 -05:00
Dylan M. Taylor a3c1f3a65b Merge pull request #1580 from vangel76/fix/dwg-field-format-2007
DWG: field formats survive saving an older drawing as DWG 2007 or later
2026-11-16 16:10:56 -05:00
Dylan M. Taylor 5ef5134ccc image-codecs: keep stored WebP dimensions independent of EXIF compatibility (#1921) 2026-11-16 15:55:15 -05:00
FredApps 617a3cea3b Add craft-media-source: MediaSource, open_bytes, and open_reader (#1891) 2026-11-16 15:51:32 -05:00
Dylan M. Taylor 20220807a4 psd: preserve PhotoCraft lenient TySh prefix parsing (#1923) 2026-11-16 15:51:27 -05:00
Dylan M. Taylor 443a2b05ff docx: preserve partial table margins in current and tracked properties (#1924) 2026-11-16 15:51:23 -05:00
Dylan M. Taylor 136c34ae4c ffv1: bound thin-frame border and alpha storage before allocation (#1917) 2026-11-16 14:51:27 -05:00
dotCooCoo 52cca84204 fix(csv): count a first record longer than the delimiter sample
sniff_delimiter reads the first 64 KiB of the text and leaves out a
record cut off at that point (#1209). When the first record is longer
than the sample, no record is counted and the function returns comma,
so a semicolon or tab file with a very wide first row opens as one
column.

When no candidate delimiter finds coherent complete records with a
delimiter in each, a candidate that finds no complete record now
counts the delimiters read so far in the first record. Delimiters
inside quoted fields are not counted. A quote inside a field that does
not start with one makes that record incoherent, and the coherent
candidate is picked. When one of those candidates ends the sample
inside a quoted field, each of them counts only up to that field's
opening quote. The per-candidate loop moved into a scan_delimiter
helper, which runs a second scan over the text before that quote.
2026-11-16 11:29:40 -08:00
Simon Koch-Sultan dca3593452 craft-latex: skip the blanks after a control space
TeX skips the blanks after a control space, `\ ` or `\` and a tab, as it
does after `\` at a line end. The lexer left them to the whitespace branch,
which added a second space, so text taken as written, such as a reference
or an `\item` label, read `one  two`. The control-space branch now skips
them the way the line-end branch does, and a blank line after one still
ends the paragraph.
2026-11-16 14:06:20 -05:00
FredApps 3af718585c Merge pull request #87 from zachshallbetter/feat/cms-constructors
craft-cms: public constructors for matrix/TRC and gray profiles (closes #61)
2026-11-16 19:56:28 +01:00
FredApps 28e1b05e3c Merge pull request #1774 from vangel76/perf/dds-bc45-1766
DDS textures: normal maps and grayscale maps save compressed (BC5/BC4), and DDS saves and opens faster
2026-11-16 19:55:31 +01:00
FredApps 1bc4d093e2 Merge pull request #1890 from storytold/onee/781-compositor-frame
Add craft-color and craft-frame for compositor pictures
2026-11-16 19:54:35 +01:00
FredApps 30cad49e95 Merge pull request #1907 from FredApps/fix/786-psd-consumer-resource-limits
fix(psd): preserve consumer parsing limits and borrow placed pixels
2026-11-16 19:53:51 +01:00
FredApps 0cca4ac66f Merge pull request #1900 from storytold/cutover/packbits-append
stream-codecs: append TIFF PackBits rows without EOD
2026-11-16 19:53:22 +01:00
Dylan M. Taylor 0d6dd8bed8 Merge pull request #1910 from storytold/refactor/timeline-depth-preflight
timeline: share allocation-free XML and JSON nesting preflight
2026-11-16 13:32:41 -05:00
vangel76 b73f8c03ed Merge remote-tracking branch 'upstream/main' into fix/dwg-field-format-2007-tmp 2026-11-16 19:18:25 +01:00
FredApps 3af2280ee3 Merge pull request #1337 from keithcsqueensu/xlsb-tables
craft-xlsx: read the tables of a binary workbook
2026-11-16 19:07:25 +01:00
FredApps a341e86b6d Merge pull request #1709 from dotCooCoo/feat/craft-texture-axis-sampling
craft-texture: add per-axis wrapping and MaterialCraft's stored sampling
2026-11-16 18:37:03 +01:00
Simon Koch-Sultan b974484e03 craft-latex: paragraph breaks survive comments, control words and CR line ends (wordcraft#6350, #6365, #6366)
Three ways the lexer lost a blank line, so two paragraphs ran together:

- A comment took its line end with it, so a blank line right after it
  read as a single line end (wordcraft#6350).
- A control word took the spaces and one line end after it, so a blank
  line right after `\relax` at a line end read as a single line end
  (wordcraft#6366).
- Only LF was a line end. TeX ends a line at LF, CR or CRLF. With CR line
  ends every paragraph break was lost, and a comment or a verbatim
  environment ran to the end of the file and dropped the rest of it; with
  CR or CRLF a control word kept the line end after it as a space
  (wordcraft#6365, #6373, #6374, #6375). The lexer now reads every line
  end as LF.

Each symptom has its own test. The CR fix needs the control-word fix
before it: CRLF files read a blank line after a control word correctly
only because the CR stopped the control word from taking the line end.

Port of storytold/wordcraft#6387, whose files moved here with the LaTeX
reader.
2026-11-16 12:18:30 -05:00
Simon Koch-Sultan 9f73a01143 craft-latex: a backslash before a line end or a tab is a control space (wordcraft#6296)
The control symbol branch took the line end or tab after a `\` as the
symbol's name, and the parser drops unknown commands, so `mid\` at a line
end followed by `line` read as `midline`, and a blank line after it no
longer ended the paragraph. TeX reads `\` before a line end or a tab as a
control space, as for `\ `.

- lex.rs: `\` before a line end (LF or CRLF) or a tab gives `Tok::Cmd(" ")`
  and leaves the line end in place, so a following blank line still ends
  the paragraph and the line end adds no second space.
- parser.rs: an optional argument such as an `\item` label reads a
  control space as a space instead of writing `\ ` back as text.

This also keeps apart, on reopening, a paragraph that ends in two spaces:
export writes its last space as a control space at the line end.

Port of storytold/wordcraft#6298, whose files moved here with the LaTeX
reader.
2026-11-16 12:18:30 -05:00
FredApps 520de5f4b2 cms: integrate main and validate constructor wire boundaries 2026-11-16 18:18:22 +01:00
Dylan M. Taylor 3b597748ab timeline: keep provenance in module docs and personal attribution in Git 2026-11-16 12:07:35 -05:00
FredApps 808df4f186 dds: validate public boundaries and bound fallible decoding 2026-11-16 18:01:22 +01:00
Simon Koch-Sultan c3c19cc917 craft-latex: a starred line break shows no star
`\\*` is a line break that also forbids a page break after it. The lexer
read `\\` as the control symbol and left the `*` as text, so `a\\*b`
showed `a`, a line break, then `*b`, `\\*[3pt]` showed `*[3pt]`, and in
a tabular the next row's first cell started with `*`.

The lexer now takes the star with `\\`, so the parser and the tabular
reader see the line break they already handle, with its optional
spacing argument.
2026-11-16 11:54:29 -05:00
FredApps 692a7fe5c9 ci: run the Windows gate's tests with nextest (#1881)
* ci: run the Windows gate's tests with nextest and link with rust-lld

The Windows leg of the Workspace gate takes 55-100 minutes. About half of that is
cargo test running ~370 test binaries one after another, twice (default and all
features), and another 15-17 minutes per feature set is the uncached test build,
where link.exe links every test executable.

- Windows runs the tests with cargo-nextest (parallel across binaries) and the
  doctests with cargo test --doc. The same tests run; .config/nextest.toml puts
  the tests that relied on in-process mutexes (craft-ui GPU, craft-video h264
  fixtures, craft-print) in one-at-a-time groups.
- Windows links with rust-lld via CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_LINKER.

Linux and macOS legs are unchanged.

* ci: keep link.exe on the Windows gate

The first run with rust-lld built the tests no faster than link.exe at the same
runner speed (14.4 min against 15.1 min on a runner 8% slower at clippy), so the
linker change is not worth its risk. nextest stays.
2026-11-16 11:45:15 -05:00
FredApps 209a40d66c craft-svg: floor declared() name window to a character boundary (#1899)
* svg: floor declared() name window to a character boundary

If the MAX_NAME+1 cut split a UTF-8 character, get(..bound).unwrap_or(rest)
fell back to scanning the entire suffix. Floor the window instead, and
when recording an overlong name extend to the next character boundary so
the key is still longer than MAX_NAME.

* test(svg): assert declared() keys stay bounded after a multibyte cut

The overlong-name refusal alone also passed on the old unwrap_or(rest)
fallback, which recorded the whole suffix. Bound recorded keys to
MAX_NAME+4 so the test fails if the suffix is stored again.
2026-11-16 11:45:10 -05:00
FredApps 24db17142b Merge pull request #1888 from storytold/onee/781-file-reader
media: add a pooled FileReader ByteSource
2026-11-16 17:43:18 +01:00
FredApps cc63a31309 Validate frame alpha depth and correct color metadata contracts 2026-11-16 17:41:25 +01:00
Dylan M. Taylor ce2ec507c2 Merge pull request #1893 from storytold/feat/psd-unpredict-scratch
psd: support caller-budgeted prediction scratch
2026-11-16 11:38:15 -05:00