Template talk:Transcribe here

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

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 ( TalkContribs ) … 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 ( TalkContribs ) … 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)
@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 ( TalkContribs ) … 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)
@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)