superscript, subscript, small caps

Questions about XML that are not covered by the other forums should go here.
seagrove
Posts: 8
Joined: Mon Jan 14, 2013 6:28 pm

superscript, subscript, small caps

Post by seagrove »

Using the Author UI, how does a technical writer apply superscript, subscript, or allcaps to a character or set of characters?
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: superscript, subscript, small caps

Post by Radu »

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
seagrove
Posts: 8
Joined: Mon Jan 14, 2013 6:28 pm

Re: superscript, subscript, small caps

Post by seagrove »

Thanks Radu. I am using DITA.
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: superscript, subscript, small caps

Post by Radu »

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: superscript, subscript, small caps

Post by Radu »

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
sorin_carbunaru
Posts: 398
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
Post Reply