mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-06 18:51:26 +00:00
ODT index marks (`text:alphabetical-index-mark`) were dropped. So References › Update Index on an opened ODT index found no entries and left the old list in place. Now: - a mark at a point is Word's `XE` field, its `text:key1`/`text:key2` the levels above its entry; - a mark over text (`-mark-start` … `-mark-end`, in one paragraph) is an `XE` field whose entry is the marked text, which stays text; - `XE` fields are written back as point marks. Engine: Update rebuilt only lists in WordCraft's own form, a paragraph holding the field. A list held as a field around its entries, as ODT and Word files hold an index, bibliography or table of figures, is now first made the field's own paragraph, then rebuilt. That happens only when the field starts its paragraph, so no document text is replaced. A LibreOffice document with an index mark round-trips pixel-identical, the mark kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GBVQLyDnrG8Tn1yDQcUabC