mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-07 03:01:32 +00:00
A paragraph nothing changed since it was read (by a fingerprint of how it was modelled) is written with its own markup, unknown elements and attributes included, together with the automatic styles, common styles, font faces, namespaces and package files it names. While no style or list definition changed, styles.xml's office:styles is the file's own (unused list styles, note and line numbering configuration, attributes WordCraft doesn't read); drawing definitions and the default graphic style stay WordCraft's, as drawings are written from the model. Paragraphs holding drawings, comments, tracked changes or ranged marks, or starting a page, are written from the model, as is everything edited. Kept markup lives in memory only (wordcraft_doc::kept, 64 MB at most) and is never part of the document's content. Over the 133-file corpus the round-trip difference in LibreOffice falls from 528k to 191k pixels; 62 files come back pixel-identical (46 before). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GBVQLyDnrG8Tn1yDQcUabC