Repository navigation
Take core 7.11.0, show text documents as pages - #788
Merged
Merged
Conversation
Text documents now use the core's pagination unless "Fit to screen" is chosen. WebViews before 86 lack replaceChildren, which pagination.js calls after detaching the text, so they keep the margins alone. Text-to-speech speaks what the page's odr.readAloud sends instead of injecting a script per paragraph, and reports the voice's position so the page highlights it. It is offered where the core's translateText is true. Printing waits for odr.chunks.loadAll instead of polling, and the empty-frame prompt goes through HtmlConfig. The core only takes edit envelope version 3 now, which the edit tests write. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FW6WZZdVv7JbM9FVRtHWUP
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FW6WZZdVv7JbM9FVRtHWUP
This was referenced Dec 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Generated with Claude Code
Takes core 7.11.0, turns on its pagination by default and replaces platform code with what the core now does.
Pages
pagination.jscallsreplaceChildrenafter it has detached the text, so the document would be blank there. A fix in the core would let us drop the version check.Text-to-speech
odr.readAlouddecides what is read, highlights the word and scrolls along; the app only speaks. Reading starts at the selection or the current view instead of the top.translateTextis true, so not for images and archives.Smaller replacements
odr.chunks.loadAll()instead of polling.HtmlConfig.editingFramePrompt.CoreTestfollow.Tested on an Android 16 emulator: all 121 Pro device tests pass on the final code. All 120 Lite tests passed before the
translateTextgate was added. Reading aloud, pause and resume, and the print preview were checked by hand.searchNavigationStaysAccessibleAcrossRotationfails now and then on this emulator, onmaintoo.Still to check: typing in the paged view with a physical phone's keyboard. The core's notes list that as not yet validated.