https://issues.apache.org/ooo/show_bug.cgi?id=121391

            Bug ID: 121391
        Issue Type: DEFECT
           Summary: Extension to XSmartTagRecognizer interface
    Classification: Code
           Product: api
           Version: AOO350-dev
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: code
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Created attachment 79945
  --> https://issues.apache.org/ooo/attachment.cgi?id=79945&action=edit
This patch contains the extensions mentioned in the description.

For a Writer extension, we're traversing a document using the Java text
iteration API. The text is extracted and sent to a server backend for
linguistic analysis. This server returns a report containing corrections for
the current document which the extension needs to map back into the document.
All of this is based on XTextRange objects. 

In order to highlight these corrections within document, we are using smart
tags. But with the existing XSmartTagRecognizer interface it's not possible to
determine reliably the absolute position of  the text that is to be processed
in the recognize method of the interface. To be able to do that we would need
an XTextRange object as argument. This, of course, would require a change of
the XTextMarkup interface so that it also supports committing markup for
XTextRanges.

In the attached file, you find a patch that adds this functionality. It would
be really great if you could review these changes and provide feedback for
improvements or if you think that we have missed something essential. WE think
that this addition could be beneficial to other extensions as well.

Thank you very much and have a nice weekend.

Best,
Robert

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

Reply via email to