Template talk:Transcribe here
OCR button
[edit]
I've been experimenting with a toolbar button with which to get OCR text. It pops up a little dialog box with the image and its text, permitted correction and then insertion into the page (e.g. highlight {{transcribe here}}
before clicking the button). It's at User:Samwilson/GoogleOCR.js; add to your common.js with:
mw.loader.load( 'https://commons.wikimedia.org/w/index.php?title=User:Samwilson/GoogleOCR.js&action=raw&ctype=text/javascript' );
@Pigsonthewing: I think we chatted about this sort of thing at some point? Do you have any ideas of how it could best work.
— Sam Wilson ( Talk • Contribs ) … 03:54, 2 August 2018 (UTC)
- @Samwilson: Thank you. I've installed it, and purged, but I'm not seeing the button. Where exactly should it show? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 16:25, 2 August 2018 (UTC)
- @Pigsonthewing: It should be in the editing toolbar, whenever editing a File page. Do you get any errors in the Javascript console? I'm quite sure there are bugs! :) Thanks for looking at it. — Sam Wilson ( Talk • Contribs ) … 23:48, 2 August 2018 (UTC)
- @Samwilson: Got it. It seems to work well. Thank you again. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 13:54, 3 August 2018 (UTC)
- @Pigsonthewing: It should be in the editing toolbar, whenever editing a File page. Do you get any errors in the Javascript console? I'm quite sure there are bugs! :) Thanks for looking at it. — Sam Wilson ( Talk • Contribs ) … 23:48, 2 August 2018 (UTC)
- @Samwilson: I'm finding the tool really useful, but a little clunky when the image is larger than the available window. Could we have scroll-bars, perhaps? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 20:22, 7 August 2018 (UTC)
- @Pigsonthewing: aw, you mean you don't like the weird scroll effect? :-P I'm going to try to improve it shortly, probably with a scroll-and-pan sort of behaviour. Do you think that'd work? Thanks for using it! — Sam Wilson ( Talk • Contribs ) … 22:59, 7 August 2018 (UTC)
- I'll reserve judgment 'til I can see what you have in mind ;-) Thank you. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 10:22, 8 August 2018 (UTC)
- @Pigsonthewing: aw, you mean you don't like the weird scroll effect? :-P I'm going to try to improve it shortly, probably with a scroll-and-pan sort of behaviour. Do you think that'd work? Thanks for using it! — Sam Wilson ( Talk • Contribs ) … 22:59, 7 August 2018 (UTC)
- @Samwilson: , this is useful. By the way, I couldn't transcribe, say page No. 2 onwards of a pdf. Is there a way? -- Bodhisattwa (talk) 17:40, 23 August 2018 (UTC)
Now that https://ocr.wmcloud.org/ is available, what about generating a link to it? (Unlike the approach in the section above, for this the user doesn't need to add a script.) Best, --Marsupium (talk) 21:00, 3 June 2022 (UTC)
- It would also be great if the language passed as parameter were included in the link to the tool. For example, in File:Göltzschtalbrücke Tafel.jpg the template is used as
{{Transcribe here|de}}
, but when I click on the OCR tool link, English is pre-filled as language (should be German). --2A02:8108:50BF:C694:F840:3E3F:73DC:FBF4 12:52, 14 February 2023 (UTC)- The {{Transcribe here}} template already is trying to have the correct
|lang=
parameter; see Template:Transcribe here/ocr where it's using|1=
as the lang. But the problem is that it's using the user's interface language instead of what's passed in. I made a little fix to the German translation so that it at least points to the right tool URL, but the whole thing needs a rethink and for|1=
to be passed through from the parent template. (If no one gets to it before me, I'll try to do it tomorrow.) — Sam Wilson ( Talk • Contribs ) … 13:18, 14 February 2023 (UTC)
- The {{Transcribe here}} template already is trying to have the correct
Actually i updated the template a little so that the parameter (language) that the parameter that is passed to the template is used. --Arnd 🇺🇦 (talk) 13:26, 14 February 2023 (UTC)
- @Aschroet: Thanks! Looks good now. — Sam Wilson ( Talk • Contribs ) … 23:57, 14 February 2023 (UTC)
- Indeed, works great! Thanks a lot! --Marsupium (talk) 00:07, 15 February 2023 (UTC)