mirror of
https://github.com/storytold/indd-utils.git
synced 2026-11-22 02:00:46 +01:00
Inserted text over several text runs is written as a child of its paragraph range, or of the story when it spans paragraph ranges, with the ranges split at its ends, instead of one Change per character range. A character-level hyperlink source whose whole extent is inserted text is written inside the Change. Changes over tables, anchored items or XML markers, and changes that do not nest with a paragraph-level source, keep the per-range form. compare.py, trustworthy pairs: 3,960 of the 3,962 reference Change elements have an equal one in the output (3,969 written); HyperlinkTextSource/Change extras fall from 220 values in 10 documents to 0; 13 more text range starts. Only stories with tracked changes or sources in changes differ in the output.