From bf894fd343d08d98b4a3ba29887c29b44a0095e8 Mon Sep 17 00:00:00 2001 From: Wylan Swets Date: Sat, 9 May 2026 12:22:24 -0400 Subject: [PATCH] fix: improve KOSync bidirectional position matching accuracy (#1897) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary **Goal:** Fix bidirectional KOSync position matching between CrossPoint and KOReader so that syncing in either direction lands on the correct page with character-level accuracy. **Changes included:** **Download — `toCrossPoint` (server XPath → CrossPoint page)** - **XPath ancestry mode for structured elements**: The previous `ParagraphStreamer` only tracked `

` elements. Replaced with a full ancestor-walking mode that correctly resolves XPaths pointing into `

  • `, `