Mass addition of symbols

Post here questions and problems related to editing and publishing DITA content.
syed
Posts: 76
Joined: Tue Nov 14, 2017 8:34 pm

Mass addition of symbols

Post by syed »

Hi,

There are some non-OASIS tags such as <boxh> (for horizontal line) and <boxv> (for vertical line) to create a Box diagram in the dita file. Output is PDF and HTML.
Example: See figure 1 in https://www.ibm.com/support/knowledgece ... rsort.html

I think in OASIS the only way to add a Box diagram is through symbols.

Is there a way to Find and Replace the tags(boxh and boxv) with symbols across multiple files?

Thanks...
Syed
sorin_carbunaru
Posts: 398
Joined: Mon May 09, 2016 9:37 am

Re: Mass addition of symbols

Post by sorin_carbunaru »

Hello Syed,

It seems to me the "Find in files" action is what you need (see https://www.oxygenxml.com/doc/versions/ ... files.html). Let me know if you encounter any issues when using it.

Regards,
Sorin Carbunaru
Oxygen XML Editor
syed
Posts: 76
Joined: Tue Nov 14, 2017 8:34 pm

Re: Mass addition of symbols

Post by syed »

Hi Sorin,

I was looking at that. However, i don't know what to add in 'Replace with' so that an element is replaced with a symbol. Can you help?
image.png
image.png (18.15 KiB) Viewed 1507 times
Syed
sorin_carbunaru
Posts: 398
Joined: Mon May 09, 2016 9:37 am

Re: Mass addition of symbols

Post by sorin_carbunaru »

Hi,

The text to find is actually the entire element tag (e.g. <boxv>), and the text to replace with can be either the symbol itself (e.g. |), or an XML entity (e.g. &#x7c;). You could use our Character Map (Edit menu > Insert from Character Map) to find out the XML entities to use (check the radio buttons at the bottom of the Character Map dialog, and copy the values from there).

Sorin C.
syed
Posts: 76
Joined: Tue Nov 14, 2017 8:34 pm

Re: Mass addition of symbols

Post by syed »

Thanks Sorin. That should help. We will give it a try.

Can you confirm if by XML entity you mean Character entity - decimal code?

[attachment=0]image.png[/attachment
Attachments
image.png
image.png (36.75 KiB) Viewed 1484 times
sorin_carbunaru
Posts: 398
Joined: Mon May 09, 2016 9:37 am

Re: Mass addition of symbols

Post by sorin_carbunaru »

By "XML entity" I mean any of "Character entity - decimal code" and "Character entity - hexadecimal code". They should both work the same way.
Post Reply