Page 1 of 1

superscript, subscript, small caps

Posted: Sat Feb 01, 2014 3:50 pm
by seagrove
Using the Author UI, how does a technical writer apply superscript, subscript, or allcaps to a character or set of characters?

Re: superscript, subscript, small caps

Posted: Mon Feb 03, 2014 12:26 pm
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

Re: superscript, subscript, small caps

Posted: Mon Feb 03, 2014 9:56 pm
by seagrove
Thanks Radu. I am using DITA.

Re: superscript, subscript, small caps

Posted: Tue Feb 04, 2014 12:05 pm
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

Re: superscript, subscript, small caps

Posted: Fri May 23, 2014 4:06 pm
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

Re: superscript, subscript, small caps

Posted: Mon Mar 19, 2018 10:48 am
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