Commit Graph
3383 Commits
Author SHA1 Message Date
Dylan M. Taylor ff142b3ad5 pdf: bounded direct-output classic object and xref framing (#1964) 2026-11-16 20:50:21 -05:00
Dylan M. Taylor 006ed3d965 svg: share bounded simple stylesheet parsing and matching (#1968) 2026-11-16 20:46:05 -05:00
Dylan M. Taylor 472462df9f craft-hdr: direct RGBA decoding and preallocation axis limits (#1961) 2026-11-16 20:36:13 -05:00
Dylan M. Taylor 0e116906d0 Merge pull request #1928 from vangel76/feat/dds-16bit
DDS: normal and height maps keep 16-bit precision when saved
2026-11-16 20:33:10 -05:00
Dylan M. Taylor 3d8e6260f9 Merge pull request #1927 from vangel76/feat/fcproj-v18-raw-settings
FilmCraft projects keep camera raw Source Settings: older builds refuse them instead of dropping them on save
2026-11-16 20:31:29 -05:00
Dylan M. Taylor 8479a1f3bb pkcs7: CMS signing with caller-owned key providers (#1963) 2026-11-16 20:30:05 -05:00
Dylan M. Taylor e2bf53f2bd craft-audio: share non-seeking canonical WAV streaming primitives (#1962) 2026-11-16 20:25:09 -05:00
Dylan M. Taylor ec1523c024 Merge pull request #1809 from batistalucasv/fix/1784-preserve-page-background-bitmap-fill
craft-odf: preserve page background bitmap fill and legacy fallback (#1784)
2026-11-16 20:08:10 -05:00
Dylan M. Taylor 54426ff827 Merge pull request #1858 from dotCooCoo/fix/mjpeg-test-fixed-input
craft-video: the ffmpeg MJPEG round-trip test encodes the same picture every run
2026-11-16 20:01:31 -05:00
Dylan M. Taylor 07a619ef00 Merge pull request #1918 from dotCooCoo/fix/metafile-report-drops
craft-metafile: report what the reader leaves out
2026-11-16 19:53:33 -05:00
Dylan M. Taylor 47d2cf2e62 Merge pull request #1940 from dotCooCoo/perf/ps-number-integer-write
ps: write numbers from their rounded integers instead of the float formatter
2026-11-16 19:50:54 -05:00
Dylan M. Taylor 31f3a32680 Merge pull request #1919 from dotCooCoo/fix/svg-entity-scan-literals
craft-svg: comment markers in a declaration's literal hide no later declaration
2026-11-16 19:49:36 -05:00
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
dotCooCoo a6b7bdce3e ps: write numbers from their rounded integers instead of the float formatter
push_num_places now writes the digits of round(v * 10^places) directly
when that integer is below 2^52 in magnitude, placing the decimal point
and trimming fractional zeros itself. Below 2^52 the integer is exact
and dividing it by 10^places lands within half a decimal step of the
exact quotient, so the text is the same as the formatter's. NaN,
infinities, scaling overflow and larger rounded values take the
existing formatter path unchanged. Requests for more than nine places
are still clamped to nine first.

Tests compare the output with the formatter path for places 0 to 12
over fixed boundary values (negative zero, ties, 1e15, 2^52, f64::MAX,
non-finite values) and about 144,000 values in all (about 48,000
generated, plus the neighboring bit patterns of each). Widening the
limit to 2^54 makes the comparison fail, for example
-1709448349065955.5 at one place.

On 1,200,000 path coordinates at four places (release build, wall
clock on a Linux host running other builds at the same time, seven
alternating runs), the formatter path took 362 to 373 ms and the
integer path 38 to 44 ms.
2026-11-16 14:08:31 -08: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
vangel76 853f630d6d dds: review fixes for 16-bit support
Reword decode16 and DdsCompression::None docs, check the 16-bit buffer
length before narrowing for BC1-BC3, and test typeless DXGI codes, padded
16-bit rows, G16R16 masks and decode16 of BC1.
2026-11-16 21:59:19 +01:00
vangel76 e4d27fc1cd fcproj-format: schema v18 for camera raw Source Settings
A no-op v17 -> v18 step so FilmCraft can save per-clip camera raw
Source Settings (Interpretation::raw) and older builds refuse such
projects instead of dropping the settings on save. Library part of
storytold/filmcraft#1078 (Part of storytold/filmcraft#1065); the MXF
CinemaDNG part already landed in #1145.
2026-11-16 21:58:20 +01:00
Dylan M. Taylor 5ef5134ccc image-codecs: keep stored WebP dimensions independent of EXIF compatibility (#1921) 2026-11-16 15:55:15 -05:00
vangel76 f200f1c91d dds: 16-bit input and output (R16, R16G16, R16G16B16A16; BC4/BC5 fitted to 16-bit values)
encode16 writes 16-bit pixels uncompressed as R16_UNORM, R16G16_UNORM or
R16G16B16A16_UNORM with the DX10 header, and fits BC4/BC5 endpoints and
indices against the 16-bit values; BC1-BC3 round to 8 bits first.
Texture::decode16 reads these formats (and legacy FourCC 36, wide channel
masks, BC4/BC5 interpolated at 16 bits) without losing precision.
2026-11-16 21:53:12 +01: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
dotCooCoo 227ea620b1 craft-metafile: count refused bitmaps and lost pen textures, empty line clips
- A bitmap that the item or byte limit refuses is counted in
  dropped_images once, however many pieces a clip cuts it into.
- An EMF+ pen whose texture brush was not read is counted in
  dropped_images, as a lost texture brush object is.
- An EMF+ clip path or region path whose figures all lie on a line
  encloses no area, so it gives an empty area instead of its bounding
  rectangle.
2026-11-16 12:05:10 -08:00
dotCooCoo 77505bb715 craft-svg: a bracket in an element declaration does not end the subset
XML readers skip an element, attribute list or notation declaration to its
first `>`, quotes and brackets included. The guard's scans now end these
declarations the same way. A `]` inside `<!ELEMENT svg ] >` no longer ends
the internal subset for `too_wide` and `prescan`, and a `[` in one no longer
lets a later `<!--` hide the entity declarations after it from `declared`.
2026-11-16 12:02:58 -08: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
dotCooCoo 01fcf22cb0 craft-svg: comment markers in a declaration's literal hide no later declaration
declared() skipped a comment or CDATA section wherever `<!--` or
`<![CDATA[` appeared, including inside an entity's quoted value, another
declaration's literal or a processing instruction. With
`<!ENTITY c "<!--">` before a large entity, the scan skipped to the end
of the file, the large entity was never recorded, and
entities_expand_past let its references through to the XML reader.

- declared() reads a declaration's quoted literals and a processing
  instruction as text: a comment or CDATA marker there starts nothing,
  and the declarations after it are still read.
- prescan() counts the markup in an entity's value the same way, and a
  comment, CDATA section or instruction that closes inside the value
  still opens and closes no element.
- too_wide() and prescan() find the end of the internal subset past
  quoted literals, comments and instructions, so a `]>` in a value no
  longer ends the document type early.
2026-11-16 11:23:53 -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
dotCooCoo 23317d3284 craft-metafile: report what the reader leaves out
A caller could only tell from skipped_records that part of a file was
not read. Picture now also reports:

- truncated: the parse stopped at a limit that ends it (items, bytes
  kept, SAVEDC depth, clip paths), in the file or in an EMF+ metafile
  image drawn in it.
- dropped_images: images that were not read: bitmaps past a size, byte
  or decode limit or not decodable, EMF+ metafile images that do not
  parse or are nested too deep, and pattern or texture brushes whose
  bitmap was not read. An image with no pixels, or drawn from a source
  rectangle that selects none, is not counted.
- ignored_clips: SELECTCLIPPATH with RGN_OR, RGN_XOR or RGN_DIFF, EMF+
  clips combined with XOR, exclude or complement, EMF+ unions drawn as
  the rectangle around both areas, and EMF+ clip paths and regions
  whose area stands in for the one the file gives, when the clip that
  results can differ from the one the file asks for.
- unplayed_raster_ops: bitmaps drawn as plain copies because their
  raster operation is not SRCCOPY, SRCAND, SRCPAINT or SRCINVERT, and
  operations without a source other than PATCOPY, BLACKNESS and
  WHITENESS.

Behavior changes:

- An EMF+ metafile image adds its own counts, skipped_records included,
  once, the first time it is drawn. A nested picture without a size
  still draws nothing, and its counts are kept.
- A raster operation that takes no source no longer draws the record's
  bitmap. PATCOPY, BLACKNESS and WHITENESS fill the destination in
  STRETCHDIBITS and STRETCHDIB, as they already did in BITBLT,
  STRETCHBLT, DIBBITBLT and DIBSTRETCHBLT. Other such operations
  (DSTINVERT, PATINVERT) are left out and counted.
2026-11-16 11:00:57 -08:00