mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-10 12:20:12 -06:00
* ODT gap 19: a document keeps its language when styles are rewritten The default language was only ever saved by copying the file's own styles back. Adding numbering or creating a style writes them from the model, which never stated it, so LibreOffice showed the document in its own default language. Import ignored it too, so such a document was proofed as English and the styles WordCraft adds said en-US. - Read the language from Standard, else the default paragraph style - Write it in the model-written default style - A file stating none has none, rather than en-US from new documents Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ODT: a language keeps its script, and a style with no parent the default style's language (gap 19) sr-Latn-RS was written as fo:country="Latn" with RS dropped, and fo:script wasn't read, in all three of the language attributes. A style with no parent took Standard's language when it differed from the default style's. Found by CodeRabbit on this PR, as were the added assertions and doc comments. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ODT: the language written is Normal's, as WordCraft has it (gap 19) The default style took its language from the defaults, though WordCraft's document language is Normal's: a Word file with a French Normal over en-US defaults saved as English. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Gap 19: docs status lines are main's, with this change in front Merging main had kept this branch's older status lines in ROADMAP.md and docs/file-format-parity.md, which set main's 2026-11-08 date back and dropped main's newer entries and the parity doc's CLI path note. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: FredApps <FredApps@users.noreply.github.com>