-
Hello @rsimon I've been developing this R wrapper around annotorious, annotorious-openseadragon (and recogito) https://github.com/DIGI-VUB/recogito For this I've set up a shiny app using https://github.com/DIGI-VUB/recogito which allows to select an area of the image using annotorious-openseadragon (screenshot below) and assign it to the corresponding text chunk. During the process, I have to label the image area with labels POLICE QUESTION / ARRESTED ANSWER. Currently I pass on the labels here https://github.com/DIGI-VUB/recogito/blob/master/inst/htmlwidgets/annotoriousopenseadragon.js#L42 which will be ['QUESTION', 'ANSWER']. Many thanks for the help and for developing annotorious |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi, Yes, exactly. You'd need an editor widget plugin for this. Unfortunately, the plugin API is frankly quite clunky. Things are still fairly easy as long as you are inside a React project. But I assume you'd need a plain JS solution? Anyways, I have some React code for a similar widget here: (It's not exactly the same as the screenshot from Recogito. But does something similar: three buttons that act as a multiple-choice selection; using There's also matchin All of this should be fairly easy to translate into a plain JS widget, if needed. I'm happy to guide & help out with it! |
Beta Was this translation helpful? Give feedback.
-
Ok, that's a start, I indeed need plain JS, but I could also use other buttons from other add-on shiny widgets packages. |
Beta Was this translation helpful? Give feedback.
Hi,
Yes, exactly. You'd need an editor widget plugin for this. Unfortunately, the plugin API is frankly quite clunky. Things are still fairly easy as long as you are inside a React project. But I assume you'd need a plain JS solution?
Anyways, I have some React code for a similar widget here:
https://github.com/machines-reading-maps/mrm-recogito-ui/blob/main/src/widgets/ClassifyWidget.jsx
(It's not exactly the same as the screenshot from Recogito. But does something similar: three buttons that act as a multiple-choice selection; using
classifying
as Web Annotationpurpose
.)There's also matchin
Formatter
function which colors annotation accordingly, and a CSS stylesheet for the buttons.A…