Ranges land where text_find says, and a partial export keeps what a
full one does.
Fixed
- Ranges after an equation landed off target (the "range coordinate
mismatch" ofdocs/known-issues.md).text_findoffsets count table
text and tracked deletions but not equations;text_get_rangeand
text_apply_rangewith a range moved there withgoRight(), which steps
over equations too, so every range after one drifted. Positions are now
found by measuring the text, the waytext_findcounts it. - A partial export lost formatting, tables, equations and tracked
changes.text_get_rangewithscoperangeorselectionrebuilt
plain paragraphs in a scratch document. It now exports a copy of the
document cut to the range, like a full export: headings, tables,
[equation: …]and<del>/<ins>come out as they do there. - A replace under change recording garbled the text. The
format-preserving replace used bytext_apply_rangefor plain text went
character by character; with recording on, each
deleted character stays in place and the rest shifted ("closes" replaced
by "ends" read "Deltandses"). With recording on, or when the range holds
an equation, it now replaces in one step, which also reads as one
deletion and one insertion in review. It also positioned itself from the
top of the body, which was wrong for a range in a table cell.