superscript, subscript, small caps

Questions about XML that are not covered by the other forums should go here.
seagrove
Posts: 8

superscript, subscript, small caps

Sat Feb 01, 2014 3:50 pm

Using the Author UI, how does a technical writer apply superscript, subscript, or allcaps to a character or set of characters?
Radu
Posts: 5226

Re: superscript, subscript, small caps

Mon Feb 03, 2014 12:26 pm

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/spec/common/hi-d.html#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

Re: superscript, subscript, small caps

Mon Feb 03, 2014 9:56 pm

Thanks Radu. I am using DITA.
Radu
Posts: 5226

Re: superscript, subscript, small caps

Tue Feb 04, 2014 12:05 pm

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/#topics/author-devel-guide-intro.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 5226

Re: superscript, subscript, small caps

Fri May 23, 2014 4:06 pm

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

Return to “General XML Questions”

Who is online

Users browsing this forum: No registered users and 0 guests