mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-06 18:51:26 +00:00
Export writes each section's headers and footers into its master page (style:header, -left for even pages, -first for a different first page; an empty element where Word shows nothing), with their automatic styles in styles.xml under names of their own. Word's page-edge header and footer distances become ODF's page margin plus header/footer band height, and import converts back, so headers sit where LibreOffice draws them. Text fields (ODF 1.3 §7: page number and count, date, time, document information, bookmark references) open as WordCraft fields with their shown text as the result, and are written back as ODF fields. Fixed dates and fields without a Word equivalent stay text; Word fields ODF lacks are written as their result. The flow model carries fields only when asked (FlowOpts), so the other formats are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GBVQLyDnrG8Tn1yDQcUabC