superscript, subscript, small caps
Questions about XML that are not covered by the other forums should go here.
-
- Posts: 9421
- Joined: Fri Jul 09, 2004 5:18 pm
Re: superscript, subscript, small caps
Hi,
What type of XML vocabulary are you editing, Docbook, DITA, or a custom XML vocabulary?
Even if for a certain XML vocabulary Oxygen does not have out of the box toolbar actions for adding certain elements, you can either:
1) Press ENTER in the visual Author editing mode and choose the element to insert. For example for DITA you can choose sup and sub to insert superscript and subscript elements.
2) Customize the framework used to edit your specific vocabulary and add toolbar actions which can be used to insert those elements.
For DITA at least I don't think there is such an element in the vocabulary to specify that the text should be in all-caps:
http://docs.oasis-open.org/dita/v1.2/os ... tml#highld
You will probably need to create your own specialization element for this + customization on the publishing part so that you obtain the proper output from it.
Regards,
Radu
What type of XML vocabulary are you editing, Docbook, DITA, or a custom XML vocabulary?
Even if for a certain XML vocabulary Oxygen does not have out of the box toolbar actions for adding certain elements, you can either:
1) Press ENTER in the visual Author editing mode and choose the element to insert. For example for DITA you can choose sup and sub to insert superscript and subscript elements.
2) Customize the framework used to edit your specific vocabulary and add toolbar actions which can be used to insert those elements.
For DITA at least I don't think there is such an element in the vocabulary to specify that the text should be in all-caps:
http://docs.oasis-open.org/dita/v1.2/os ... tml#highld
You will probably need to create your own specialization element for this + customization on the publishing part so that you obtain the proper output from it.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 9421
- Joined: Fri Jul 09, 2004 5:18 pm
Re: superscript, subscript, small caps
Hi,
I added as an improvement request to our issues list the possibility to add custom actions to the DITA toolbar for inserting subscript and superscript out of the box in a future Oxygen version.
In the meantime if you want to try this out yourself, you can go to the Oxygen Preferences->Document Type Association page and edit the DITA document type. In the Author->Actions tab you can duplicate the action used to toggle the Bold element and edit it to set a new ID, Name and description. Then in the place where the ToggleSurroundWithElementOperation operation gets invoked change the first parameter to insert the proper XML element.
After this you can add the new action to the toolbar and DITA-specific menus.
More about framework customizations in the Author Developer Guide:
http://www.oxygenxml.com/doc/ug-oxygen/ ... intro.html
Regards,
Radu
I added as an improvement request to our issues list the possibility to add custom actions to the DITA toolbar for inserting subscript and superscript out of the box in a future Oxygen version.
In the meantime if you want to try this out yourself, you can go to the Oxygen Preferences->Document Type Association page and edit the DITA document type. In the Author->Actions tab you can duplicate the action used to toggle the Bold element and edit it to set a new ID, Name and description. Then in the place where the ToggleSurroundWithElementOperation operation gets invoked change the first parameter to insert the proper XML element.
After this you can add the new action to the toolbar and DITA-specific menus.
More about framework customizations in the Author Developer Guide:
http://www.oxygenxml.com/doc/ug-oxygen/ ... intro.html
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 9421
- Joined: Fri Jul 09, 2004 5:18 pm
Re: superscript, subscript, small caps
Hi,
Starting with Oxygen 16.0 which was released a couple of days ago you will have the possibility to extend a document type configuration in order to automatically benefit of all changes made to the base configuration in your extension.
Regards,
Radu
Starting with Oxygen 16.0 which was released a couple of days ago you will have the possibility to extend a document type configuration in order to automatically benefit of all changes made to the base configuration in your extension.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 416
- Joined: Mon May 09, 2016 9:37 am
Re: superscript, subscript, small caps
Post by sorin_carbunaru »
Hello all,
Just wanted to let you know that the freshly released oXygen 20 comes with predefined Subscript and Superscript actions for DITA and DocBook. They can be found in the menu corresponding to each document type, and they can have shortcuts assigned (https://www.oxygenxml.com/doc/versions/ ... -keys.html). For now we preferred not to add them to the frameworks' toolbars, in order to keep them as compact as possible, but they can also be added there (https://www.oxygenxml.com/doc/versions/ ... olbar.html).
All the best wishes,
Sorin Carbunaru
oXygen XML
Just wanted to let you know that the freshly released oXygen 20 comes with predefined Subscript and Superscript actions for DITA and DocBook. They can be found in the menu corresponding to each document type, and they can have shortcuts assigned (https://www.oxygenxml.com/doc/versions/ ... -keys.html). For now we preferred not to add them to the frameworks' toolbars, in order to keep them as compact as possible, but they can also be added there (https://www.oxygenxml.com/doc/versions/ ... olbar.html).
All the best wishes,
Sorin Carbunaru
oXygen XML
Return to “General XML Questions”
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