[ 
https://issues.apache.org/jira/browse/UIMA-1174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12909584#action_12909584
 ] 

Philip Ogren commented on UIMA-1174:
------------------------------------

One feature that I thought was done well in Knowtator is the find/annotate 
dialog which handles regular expressions.  The code for this is pretty 
self-contained and you might find it useful to look at if you are considering 
adding support for regular expression find and annotate.  The code is licensed 
under MPL and is based on swing - so you maybe can't cut and paste from it.  

http://knowtator.sourceforge.net/api/src-html/edu/uchsc/ccp/knowtator/wizards/FindAnnotateDialog.html#line.72

One thing I liked about it this implementation is that you could tell it to 
only annotate the capturing groups in the regular expression (knowtator 
supports multiple spans for a single annotation) - but this could be modified 
here to allow for one capturing group that is used for the annotation's span.  

> Add Find/Annotate keyboard shortcut
> -----------------------------------
>
>                 Key: UIMA-1174
>                 URL: https://issues.apache.org/jira/browse/UIMA-1174
>             Project: UIMA
>          Issue Type: Improvement
>          Components: CasEditor
>    Affects Versions: 2.3
>            Reporter: Jörn Kottmann
>            Assignee: Jörn Kottmann
>            Priority: Minor
>
> Create a keyboard shortcut to add annotations for all parts of the document 
> which match the current selection.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to