Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[presentation] Allow text corrections by users #37

Open
stweil opened this issue Mar 24, 2023 · 2 comments
Open

[presentation] Allow text corrections by users #37

stweil opened this issue Mar 24, 2023 · 2 comments

Comments

@stweil
Copy link
Member

stweil commented Mar 24, 2023

It's easy to make the text area editable by adding the HTML5 contenteditable attribute (see tutorial). An additional button is needed on the client side to submit (HTTP POST) the modified text to the server.

More work has to be done on the server side to synchronise the text lines with the ALTO XML, to store the modified ALTO and to make it available for end users or for internal model improvements.

@stweil
Copy link
Member Author

stweil commented Mar 24, 2023

Steps for implementation:

  1. Add required attribute unconditionally (trivial change).
  2. Add submit button for web page with dummy action on the server side. This is an option, so an instance of Kitodo.Presentation can configure whether OCR results should be editable or not. The submit button and the attribute only exist if editing is enabled.
  3. Add a working action on the server side. Details still open.

@csidirop
Copy link
Member

Fortunately the last point shouldn't be that hard, because the textlayout is preserved, as one can see here:
grafik

@csidirop csidirop moved this from 🆕 New to 🔖 Ready in OCR-D Kitodo.Presentation Jun 29, 2023
@csidirop csidirop moved this from 🔖 Ready to 🏗 In progress in OCR-D Kitodo.Presentation Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🏗 In progress
Development

No branches or pull requests

2 participants