* rtf: delegate outline lexing and sniffing to craft-rtf (refs storytold/craft-libs#778)
* rtf: delegate sniff_rtf to craft_rtf::is_rtf and keep local outline scanner for hex/huge-indent parity
* Outline RTF: write PowerPoint's \s1-\s9 heading styles; keep empty titles and '- ' titles on open
* Outline RTF: only a stylesheet 'heading N' style is a heading; an inherited title style keeps an explicitly ended empty title
* Outline RTF: engine tests for empty and '- ' titles through file.open and file.openBytes
* test(format): cover deep and Unicode RTF outlines
* test: cover RTF outline edge cases
Keep outline parser and formatting policy local. Preserve exact escaping with explicit compatibility policy and exhaustive scalar/byte oracles. Original text writer and preserved oracle by Nikita Rakitin (beb883d0).
Co-authored-by: Nikita Rakitin <nnnrrr93@gmail.com>
Count an escaped RTF control symbol as one Unicode fallback character and keep parser positions at UTF-8 boundaries. Extend the parser regressions for escaped fallback sequences.
An agent run exporting a deck as an outline got the footer text and the
slide-number field (‹#›) as body lines under each title. PowerPoint's
outline view shows title and body placeholders only, so the text outline,
the RTF outline (Save As ▸ Outline/RTF) and the outline view now skip the
footer-row placeholders as they already skipped the title. Split out of the
frame export PR at review, which asked for all three together.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Found while testing crates/format/src/rtf.rs:301-326 (symbol / text, reached via escape)
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Found while testing crates/format/src/rtf.rs:226 (rtf_to_outline)
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Adds PowerPoint's Outline/RTF save type: slide titles at outline level 0
(bold, larger), body paragraphs indented at their outline level, bold,
italic and underline kept, non-ASCII as \u escapes. RTF outlines (ours,
PowerPoint's or a word processor's, by outline level or indent) open as
a presentation or drop in as slides.
Co-authored-by: Cursor <cursoragent@cursor.com>