Word draws markers without their own fill in the automatic palette colour of the
series index, not the explicit line colour. Line and scatter data labels sit to
the right of the point unless c:dLblPos says t, b, l, r or ctr. A vertical-axis
title with rot="0" stays horizontal, wrapped into a strip of at most a quarter of
the chart width, instead of being forced to -90 degrees.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Port from mailcraft: ASN.1 BER and DER (X.690) reader with:
- TLV parsing (tag, length, value)
- BER to DER conversion (indefinite lengths, constructed OCTET STRINGs)
- CMS signed_data content extraction
No external dependencies. Hostile-input bounded reading.
A chart file carried three things that were read but not drawn like Word:
- c:marker/c:symbol was ignored (every marker was a circle): squares, diamonds,
triangles, x, plus, star, dash and dot are drawn now, in the series' c:size;
unknown names fall back to a circle, sizes are clamped to 2..72 points.
- c:dLbls/c:numFmt (not linked to the source) now formats the data labels, on
the series or on the chart type; over-long codes are ignored.
- The vertical axis title is turned -90 degrees (reading upwards) as Word does,
or 90 when the file's bodyPr rot says so. It was always +90.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The model's paragraph alignment is logical (start/end) in right-to-left
paragraphs, but the reader mapped \ql/\qr straight to left/right. For a
\rtlpar paragraph that mirrored the alignment compared to Word.
Word reads a side word that follows \rtlpar as start/end, and one that comes
before it as plain left/right (checked black-box by saving RTF variants to
DOCX). So \rtlpar\qr is start (no explicit alignment), \rtlpar\ql is end, and
\qr\rtlpar is end. The writer already puts the alignment before \rtlpar, so
its output keeps its meaning and is unchanged.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- flush ends the GOP for average bitrate too: the budget of the pictures
the GOP did not get is taken back, so flushed short GOPs no longer
raise the bitrate.
- A lone picture flushed before a second sets the step gets dts = pts - 1,
so decoding times still increase if encoding goes on.
- Presentation times whose decoding time does not fit in an i64 are
refused with BadTimestamp before any state changes.
- Tests: the skip range test uses an f_code that can carry its vector, and
the reconstruction count is checked before comparing pictures.
\rtlpar, \ltrpar, \rtldir and \ltrdir are paragraph formatting words, so
\oldpprops holds them and a tracked direction change keeps the old direction.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A style's \rtlpar/\ltrpar (and \rtldir/\ltrdir) is stored with the style and
found through \sbasedon. A paragraph in the style gets it unless it sets its own
direction; \pard drops the direct direction and the style's stays.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>