mirror of
https://github.com/storytold/indd-utils.git
synced 2026-11-20 01:00:46 +01:00
Buttons, check boxes, radio buttons and multi-state objects list their states in chunk 0x14521 and the items each state shows in chunk 0x14526; their transform is chunk 0x14527. Text boxes, combo boxes and signature fields hold their items in chunk 0x15B. The converter writes the elements with their State elements (type from the state ID), the groups of states named by their type, PathBoundingBox from the items' paths, and the name, description, export value, required flag, text box font and flags from the attribute list (objects.md, form fields). The value files gain the constant values of buttons and multi-state objects. Text boxes anchored in table cells now replace their U+FFFC, so those stories' text matches. compare.py (trustworthy pairs, with the commits before it): coverage 97.92 % -> 98.46 %, story text 37,112 -> 37,129 of 37,150; the form field elements of all 48 documents are written (Button, Group, State, Rectangle and their children about 150,000 values). Extra values from anchored fields without a known object style are avoided by leaving their anchor settings out.