The samples test's WMF reader took a polygon's points and a rectangle's
sides at fixed offsets, so a record shorter than its count read on into
the next one. Each record is now sliced to its stated size and skipped
when its values don't fit.
The outline matcher merged neighbouring vertices within the pen's
tolerance before comparing, so a narrow rectangle drawn with a wide pen
lost the corners of its short edges. Only exact repeats are dropped now;
the tolerance is for the comparison.
The footer row's look came from its first run, so an empty footer, date
or slide number placeholder (no runs once normalized) gave none. It now
falls back to the paragraph's end mark. This is the shared helper, so
both paths take it.
PowerPoint 95 point spacing was capped at 4000 pt, but DrawingML holds at
most 1584 and the writer clamps to that, so a larger value changed on
export. It is now capped at 1584.
PowerPoint 95 writes a slide's SlideAtom first. A slide record without
one is what a file cut just after the slide's header leaves; it read as
a blank slide, and import_checked reported nothing lost. It is now left
out, as the PowerPoint 97 path leaves out the slides it lost, and named
by its position.
PowerPoint 95 lays a shape's text out in the box the geometry holds,
turned by the text's own angle (4003 +16, the geometry's own angle in
every probe). Quarter-turns folded into that box don't turn the text: a
shape turned a quarter before its text was typed draws it upright, and
one turned on to 120 degrees after that draws it at 30 (probes wrap-before,
wrap-mix, wrap-arrow, with word wrap set in the Text Anchor dialog).
When the shape's box is turned back, its text is now upright at that
angle, with its insets on the held box's edges. That replaces remapping
the insets: in PowerPoint 16, upright text with these insets breaks into
the same lines at the same places as PowerPoint 95's renderings, while
remapped insets put an up arrow's text 18 pt off. A balloon's body cut is
taken from whichever edge of the held box its tail is on.
Both paths gave a paragraph's end mark the formatting of its first
character. PowerPoint reads it from the character run at the CR (or at
the text's end for the last paragraph): a .ppt PowerPoint 16 saved, with
'AB\rCD' at 24 pt and only the first CR at 40, opens with that paragraph's
endParaRPr at 40. PowerPoint 95 gives the CR a run of its own when it
differs, so its path reads the same position.
A shape turned a quarter before its text was typed holds its box and its
text rectangle turned (probes rot90thentext and rot90arrowtext). The
shape's box is turned back, so the insets now move to the unturned box's
edges with it. A balloon's box is its body, so its bottom inset is now
measured from the body's bottom (balloontext).
The samples test now reads the slide size from each file's DocumentAtom,
matches outlines vertex by vertex in order, reads rectangle records as
outlines too, and fails on a rendering it can't read. Tests that skipped
their checks on a missing slide or shape now fail instead.
A zero-length run counted as one character of coverage, so a few of them
used up the runs read and a real run after them was never reached.
A font list whose only face atom was cut short gave an empty face and
still won over a later list with real faces.
The detector took any root whose first child was a Document, so an empty
Document read as a deck with no slides instead of being damaged. It now
also needs a DocumentAtom long enough for its slide count.
import_checked names the slides that count says are missing, by position,
so a cut-short file no longer reads as whole.
TooOld no longer promises every file before PowerPoint 95: a file that
isn't a compound file is NotPpt, and no earlier file was tried.
Each paragraph is about 4 KB and each run about 2 KB, so a text atom of
nothing but paragraph or line breaks made gigabytes from a megabyte of
file. The document's text now makes at most 65,536 of them together and
leaves the rest out, with a warning.
A master's title placeholder of type 0x0F (a centred title) is in the
title family, but only a plain title set the title style's ruler.
Two tests gave a slide its own colours while it still followed the master's scheme; since the
slide box's flags are read, PowerPoint 95 marks such a slide as not following.
The slide box's bytes at +16 and +17 are whether a slide shows the master's objects and uses the
master's colour scheme: turning the master's objects off on one slide clears the first, and giving
one slide its own scheme clears the second. A slide following the master's scheme now takes the
master's colours rather than the copy it holds.
Paragraph runs give line spacing, space before and space after at +52, +56 and +60: a percentage
of a line, or minus a size in points. Alignment 3 is justified. The text atom's +8 byte holds the
anchoring (top, middle or bottom, and whether it is centred across) and its +4 flags word wrap.
The Environment's 4052 atoms, one per text type, hold the master's styles, five levels each laid
out as the runs are; the title, body and other ones become the master's styles, with the margins
of the ruler the master's title and body name. All of this was learned from files PowerPoint 95
wrote.
Freeforms (3016) now read as custom paths in their box: a move to the
first point and lines to the rest from the 3035 points, closed when the
low byte of the 3017 flag is 1, with the fill, line and shadow of their
format and, when open, the arrowheads of their 3007 atom. Points are
capped at 8192 and never read past their record; a freeform of fewer
than two points is left out. Their format's angle is not read.
Groups (3001) read as groups of their members, which keep their
absolute slide places: the group's box is the union of its members'
and is also its child space. Members are read as the page's objects
are, groups included, nested at most 32 deep, and count towards the
page's object cap.
PowerPoint 95 measures angles counter-clockwise, so every angle is now
negated into DrawingML's clockwise rot. For shape codes of 0 and up the
transform comes from the geometry alone: the byte above the code holds
counter-clockwise quarter-turns and a horizontal mirror made after them,
which become a clockwise rot and a horizontal flip, with the box turned
back after an odd number of quarters. The rectangle, rounded rectangle
and ellipse keep taking the angle from the format, without flips. A
mirrored trapezoid is the outline wide at the top, turned a half-turn
further and unflipped, so its text stays upright; otherwise it is the
trapezoid preset.
Codes 9 to 14, the object model's shapes 13 to 24, read as right arrows
(the arrow and thick arrow, in all four directions), home plate, cube,
balloon and seal, with adjust values matched to what PowerPoint 95 drew.
A code no probe showed is a rectangle with its fill, line and text. The
shadow now falls by the format's offset at +36 and +40, clamped to 10 in,
and is half transparent when +29 says so.
The sample check compares each straight outline against the polygon in
the rendering PowerPoint 95 saved beside its file.
PowerPoint 95 shapes now take their angle and both flips from the format
record (3005 +48 and +52) rather than the geometry, which holds the outline
as drawn: whole quarter-turns are folded into its box, so a box turned an
odd number of them is turned back about its centre. Lines read their width
from the line style (1 to 10 pt), their dots and dashes, and on lines the
start and end arrowheads from the 3007 atom. The shadow colour comes from
+30, with the scheme's shadow slot by default. The trapezoid, wide at the
top, is now its own outline instead of a flipped preset, so a user's flip
applies on top. Shadow offsets are still fixed at 6 pt.
PowerPoint 95's twelve shape codes now read as DrawingML presets with
their adjust values, and lines from their 3015 ends with flips for their
direction. The 3005 format gives each its fill and line colour (an RGB or
a scheme slot, or none), its shadow and a horizontal flip; the angle comes
from 3009 as before. A shape that draws nothing but text stays a text box,
and shapes of unknown codes without text are skipped. The trapezoid is
flipped vertically, as PowerPoint 95 draws it wide at the top. Line widths
and styles, vertical flips and shadow offsets are not read yet.
PowerPoint 95 slides now hold their placeholders and text boxes, each with
its box (converted from master units about the slide's centre) and its text:
paragraphs with their level, alignment, bullet character and the indents of
the text's ruler, and runs with their font, size, bold, italic, underline and
colour, decoded as Windows-1252. Placeholder types use PowerPoint 95's own
numbering. The master's placeholders place the default master's, and its
footer row every layout's, through the overlay the PowerPoint 97 path uses,
now shared. Run tables and text are bounded by the text they cover.
Each master becomes a copy of the caller's default master with its layouts, so a file listing
many masters is held to 256 rather than the slides' 65,536.
PowerPoint 95 files use 16-byte record headers and a single record tree
instead of an edit chain. A stream that starts with that tree now takes
its own path: the slide size, each master as the caller's default master
with the file's colour scheme as its theme, and the slides in order with
their master, layout type and, when they don't follow the master's, a
solid background. Shapes, text, pictures and notes come in later steps,
so the slides are empty. Anything else keeps the PowerPoint 97 path,
whose TooOld error now names PowerPoint 4.0 and earlier.
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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>