mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-06 18:51:26 +00:00
- ODT variables (`text:variable-set`, `text:variable-get`, §7.4) were read as their text. A set is now Word's SET field, followed by a REF when it is displayed; a get is a REF. They are written back declared (`text:variable-decls`), the sets hidden with a get after them. - The engine now evaluates SET (ECMA-376 §17.16.5.58). It shows nothing and gives its name a value. REF to a name no bookmark has shows that value; a REF before the SET shows the last value set, as Word's bookmark does after an update. This works for Word documents too. - Custom character styles now keep what they turn off under a parent that turns it on (`fo:font-weight="normal"`…), as paragraph styles already do. A LibreOffice document with variables round-trips with the same text, and the saved file validates against the schema. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GBVQLyDnrG8Tn1yDQcUabC