Acceptance Criteria:
- The new Wikimedia OCR should accept Google options through the API like: multiple languages.
HMonroy | |
Apr 15 2021, 2:39 AM |
F34441407: language_input.png | |
May 5 2021, 8:37 AM |
F34435567: multiple_ui_mult.png | |
Apr 30 2021, 1:25 PM |
F34435565: multiple_ui.png | |
Apr 30 2021, 1:25 PM |
Acceptance Criteria:
QA notes: In the web interface, currently you can only enter multiple langs via the URL, i.e. https://ocr-test.wmcloud.org/?langs[]=en&langs[]=fr
Follow-up PR that makes language input in the UI a bit more intuitive: https://github.com/wikimedia/wikimedia-ocr/pull/21
You can see the effect of passing multiple languages here in the returned text:
You can see a slight change in the UI, where the language inputs are a list:
Better UI is merged (single input with tag-style language codes). Live on the test site (only, so far). @dom_walden, not sure if you want to have another look at this.
Thanks. This looks good to me.
When entering languages there is no autocomplete, the user has to know the correct name for the language.
There doesn't seem to be a limit to how many languages you can enter.
When entering languages there is no autocomplete, the user has to know the correct name for the language.
Partially addressed in T282073: Add API endpoint to retrieve supported languages, see comment at T282073#7064537