Page 1 of 1

Mass addition of symbols

Posted: Wed Aug 05, 2020 4:08 am
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

Re: Mass addition of symbols

Posted: Wed Aug 05, 2020 10:50 am
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

Re: Mass addition of symbols

Posted: Wed Aug 05, 2020 12:52 pm
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 1506 times
Syed

Re: Mass addition of symbols

Posted: Wed Aug 05, 2020 1:48 pm
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.

Re: Mass addition of symbols

Posted: Wed Aug 05, 2020 7:41 pm
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

Re: Mass addition of symbols

Posted: Thu Aug 06, 2020 9:28 am
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.