Hi Daniel,
On 05/18/07 16:53, Daniel Beck wrote:
I think this smart tag API is very usefull, specially for integrating
OOo with other components (Wikipedia, eclipse-like quickfix, linguistic
tools ...)
first I'd like to thank you for your feedback. Please find my comments
below.
I have several requests about that API.
* First, I wanted to ask if this API will be available from the whole
OpenOffice.org suite and not only from OOo Writer. The wiki page[1]
suggests that the API is only available for the OOo Writer.
Right now, the first step is to support Smart tags in OOo Writer. The
other applications may follow.
* Again, the description in the wiki states that the recognize() method
decides for each word if it has a specific meaning or not. I can however
imagine many use cases where one would rather assign sequences of words
or even phrases a specified meaning. Think at words like "New York" or
"The Red Hot Chili Peppers". I would also like to highlight salutation
at the end of emails and associate them with some useful actions (e.g.
replace this salutation by an other one)
The wiki page reflects the state of the (rudimentary) OOo 2.2 API. I did
not update the wiki to the OOo 2.3 API yet. Right not, the full
documentation is only available in the idl files.
Of course it is possible to recognize any number of words as a smart
tag. That's one of the differences between the OOo 2.2 and the OOo 2.3
smart tag API.
* Finally, I have a personal request: can the highlighting color of the
words be dependent on the kind of the recognized smart-tag?
Right now this functionality hasn't been implemented in Writer. Anyway,
the API allows to assign a property bag containing any kind of
additional information to a recognized smart tag, see the
commitSmartTag() function. This way a smart tag recognizer might
associate an optional "color" property with a smart tag. Currently the
Writer application does not consider such a property, but the Writer
code can be easily changed to read the "color" property and adjust the
highlighting accordingly.
Thank you for your interest,
Frank
--
Frank Meies (fme) - OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]