Programmatic access to author styles
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 83
- Joined: Wed May 20, 2009 1:18 pm
Programmatic access to author styles
Hi,
I have a number of requirements that relate to highlighting in author mode. Some of these have been succesfully implemented using alternative CSS styles sheets, however I see no obvious way of using this mechanism to implement the remaining requirements. An example of such a requiremenst is: 'Citation elements that have been automatically marked-up must be colour coded to indicate the level of certainty of the automatic match'. A brief explanation, a user opens a document and highlights some text and invokes one of my custom Operations which surrounds the selected text with an XML element, the operation then searches through the remainder of the document and identifies other pieces of text as needing the same XML, in each case there is an associated certainty that the new text is a correct match. The user needs to be informed, using text highlighting colours, of the various levels of certainty for each of the automatic matches. We, as far as possible, must avoid neccesitating changes to the document schema.
Have you any recommendations or inform ation that may assist? The ideal solution would be the ability to interact directly with Oxygens styling engine to enable me to create and (re)assign vitual style rules to arbitary elements without modifying the actual CSS or document file themselves; I don't suppose this is possible is it?
Many thanks for any assistance,
Simon.
I have a number of requirements that relate to highlighting in author mode. Some of these have been succesfully implemented using alternative CSS styles sheets, however I see no obvious way of using this mechanism to implement the remaining requirements. An example of such a requiremenst is: 'Citation elements that have been automatically marked-up must be colour coded to indicate the level of certainty of the automatic match'. A brief explanation, a user opens a document and highlights some text and invokes one of my custom Operations which surrounds the selected text with an XML element, the operation then searches through the remainder of the document and identifies other pieces of text as needing the same XML, in each case there is an associated certainty that the new text is a correct match. The user needs to be informed, using text highlighting colours, of the various levels of certainty for each of the automatic matches. We, as far as possible, must avoid neccesitating changes to the document schema.
Have you any recommendations or inform ation that may assist? The ideal solution would be the ability to interact directly with Oxygens styling engine to enable me to create and (re)assign vitual style rules to arbitary elements without modifying the actual CSS or document file themselves; I don't suppose this is possible is it?
Many thanks for any assistance,
Simon.
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Programmatic access to author styles
Post by sorin_ristache »
Hello,
We plan to enhance the Author API for allowing an Author extension to add highlights on text strings of the document. We will provide an AuthorUserHighlighter object that can be used in an Author extension and that can add highlights to the edited Author document, remove highlights and get a list of all current highlights. A custom highlight painter can be set for painting a highlight but a default painter that just underlines a text is also provided by the API. If you want to test an Author build that includes this new API please let us know and we will provide such a build for you.
Regards,
Sorin
We plan to enhance the Author API for allowing an Author extension to add highlights on text strings of the document. We will provide an AuthorUserHighlighter object that can be used in an Author extension and that can add highlights to the edited Author document, remove highlights and get a list of all current highlights. A custom highlight painter can be set for painting a highlight but a default painter that just underlines a text is also provided by the API. If you want to test an Author build that includes this new API please let us know and we will provide such a build for you.
Regards,
Sorin
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Programmatic access to author styles
Post by sorin_ristache »
It will be included in the next version of Oxygen. We are finishing the implementation of this API. If you or other Author extension developers are interested in beta testing it just let us know.
Regards,
Sorin
Regards,
Sorin
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Programmatic access to author styles
Post by sorin_ristache »
I sent the details about the test build to your email address.
Regards,
Sorin
Regards,
Sorin
-
- Posts: 83
- Joined: Wed May 20, 2009 1:18 pm
Re: Programmatic access to author styles
Yes, I have got it and will be looking at it this week, many thanks. I can't guarantee how thorough a workout I will be able to give this feature as it is entirely possible we'll decide we have to go with 10.3 and can't wait for this feature to be releaseed, in which case I am likely to have to stop working with your beta release. If I do get get some feedback, I'll pass it on.
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service