feat: write the empty Change before a source that starts with inserted text

Where an inserted change run starts at a hyperlink source's first
character and ends before the source does, IDML writes an empty Change
before the source and the first character without one; a paragraph-level
source gets a character range of its own for the deleted text and the
empty Change. The converter now writes the same 1,681 empty changes as
the trustworthy references (385 of 385 in stale pairs).

Deleted text owned by a table cell's terminating return is written as
the cell's last child. All 1,889 deleted-text changes of the trustworthy
pairs are now written.

compare.py (trustworthy pairs), together with the form fields that
follow: TextRange (element not produced) 6,062 -> 758 values,
TextRange (story text differs) 8,417 -> 3,979.
This commit is contained in:
aiongg committed 2026-10-10 07:25:03 +00:00
1 parent b34a8cdbed
commit fd967676ee
3 files changed
+100 -23

No files matched your search

+10 -5
View File
@@ -1689,11 +1689,16 @@ change that crosses character ranges or elements is written as several
`Change` elements. Over all pairs, 6,024 of the 6,027 reference `Change`
elements have an equal `Change` in the output (`Date`, `ChangeType`,
`UserName`, `AppliedDocumentUser`, compared as multisets per pair); the
output has 92 more, from such splits. Where a paragraph-level hyperlink
source starts at an inserted character, InDesign writes an empty
`Change` before the source (1,668 of the 1,681 empty changes in the
research run); the converter writes the inserted text inside the
`Change` instead.
output has 92 more, from such splits. Where a hyperlink source starts
with inserted text, IDML writes an empty `Change` before the source
(`hyperlinks.md`, sources at inserted text).
A deletion owned by the U+000D that ends a table cell, which no
character range holds, is the last child of the `Cell`, after its last
`ParagraphStyleRange` (2 in one trustworthy pair, 1 in a stale pair;
every other deletion of the corpus is owned by a character inside a
range). With it the converter writes all 1,889 deleted-text `Change`
elements of the trustworthy pairs.
**Dates of notes and changes.** IDML writes `CreationDate`,
`ModificationDate` and `Date` as local time of the exporting computer,