Skip to content

v2.2.1 — Edit Text that shows you what it can do

Choose a tag to compare

@romizone romizone released this 09 Aug 00:36
· 1 commit to main since this release

A polish release for Edit Text, in response to it not feeling finished. Two separate problems, both fixed.

The mode now changes the page

Choosing Edit Text used to change nothing on screen — it set a mode and wrote a line to the status strip, so there was no way to tell a paragraph the tool would re-wrap from a scan it would refuse, except by trying.

  • Every editable paragraph is outlined the moment the mode opens, and the one under the cursor is picked out more strongly.
  • The I-beam is earned per paragraph rather than worn over the whole page, so the cursor itself tells you where editing is possible.
  • Blocks that cannot be re-wrapped are left bare — tables, contents pages, rotated text. Outlining them and then refusing would be a lie.
  • A page with nothing to edit says so, instead of leaving you double-clicking a scan that will never respond.

The editor looks like the page

The overlay had inherited the dark theme's input styling: a dark rounded field with near-white text sitting on white paper, and 12 pt of padding that shunted the words sideways the moment it opened.

It now takes the paper's colour and the paragraph's own ink, with no padding — the text does not move at all when you double-click, and a hairline is the only sign that typing is live.

Performance

Paragraph detection costs 18 ms a page and is deliberately uncached, so calling it while painting would have spent more than a frame's budget on a single visible page. The outlines are found on an idle timer, visible pages only: a full repaint with outlines drawn is 1.1 ms, and fifty scroll steps trigger no detection at all.

That cache holds geometry for drawing and hit-testing only. Which paragraph an edit actually lands on is still resolved from the document on every double-click, because committing an edit renumbers the page's paragraphs.

Installing

xattr -dr com.apple.quarantine /Applications/PdfRomeo.app

tests/test_edit_text_ui.py adds 39 checks. Full suite: 256 + 139 + 49 + 39 + 43 tool panels + 23 regression + engine smoke, all green.

Full changelog: https://github.com/romizone/pdfromeo/blob/main/CHANGELOG.md