Page MenuHomePhabricator

Make OCR text editable using Multiline text input widget
Closed, DeclinedPublic

Description

Description:

Replaces the read-only OCR text panel with an editable text input so users can correct OCR errors before approving.

Details and specifics

  • Use Multiline text input widget for the OCR text panel
  • Widget is autosize so it grows with content
  • User edits are tracked so the Approve action saves the edited text not the original
  • Edits persist when the user navigates between pages inside the same session

Possible OOUI components

  • Multiline text input widget

Event Timeline

Hi @Ssein — is this task open for a newcomer to pick up, or is it part of the
Bulk OCR project's planned work? I'd be happy to implement the editable OCR
panel with the OOUI Multiline widget if it's available. Thanks!

Hi @Zaidusyy Thank you for your interest I really appreciate it. This task is part of the Wikisource Bulk OCR Improvement project I am working on for Google Summer of Code 2026 (see parent task T415145). I will be implementing this task as part of the planned GSoC deliverables.

Thanks for explaining, and good luck with your GSoC project
I'll leave this one with you.
Happy to help review or test anything if that's ever useful.

Change #1323863 had a related patch set uploaded (by Ssein; author: Ssein):

[mediawiki/extensions/Wikisource@master] Make the OCR text editable in the feedback dialog

https://gerrit.wikimedia.org/r/1323863

I'm not sure I understand the rationale of this feature: isn't Edit-in-Sequence the way to edit multiple pages quickly? I think Bulk OCR should just be about getting the text into the pages.

Thanks @Samwilson . My thinking this will reduce faulty OCRed texts being inserted into the wiki But edit in sequence is already design for it. I agree with you. let keep Bulk OCR focused on getting the text into the pages and leave editing to Edit in Sequence. I will abandon this patch and the cancel-warning patch T433183 and keep the dialog as a read-only review before saving. Thanks for the guidance!

Change #1323863 abandoned by Ssein:

[mediawiki/extensions/Wikisource@master] Make the OCR text editable in the feedback dialog

Reason:

Abandon per discussion on T433181 Bulk OCR will stay focused on
getting OCR text into pages with editing handled by Edit-in-Sequence.

https://gerrit.wikimedia.org/r/1323863