Mass addition of symbols

syed
Posts: 72
Joined: Tue Nov 14, 2017 8:34 pm

Mass addition of symbols

Post by syed » Wed Aug 05, 2020 4:08 am

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: 363
Joined: Mon May 09, 2016 9:37 am

Re: Mass addition of symbols

Post by sorin_carbunaru » Wed Aug 05, 2020 10:50 am

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: 72
Joined: Tue Nov 14, 2017 8:34 pm

Re: Mass addition of symbols

Post by syed » Wed Aug 05, 2020 12:52 pm

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 577 times
Syed

sorin_carbunaru
Posts: 363
Joined: Mon May 09, 2016 9:37 am

Re: Mass addition of symbols

Post by sorin_carbunaru » Wed Aug 05, 2020 1:48 pm

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: 72
Joined: Tue Nov 14, 2017 8:34 pm

Re: Mass addition of symbols

Post by syed » Wed Aug 05, 2020 7:41 pm

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 554 times

sorin_carbunaru
Posts: 363
Joined: Mon May 09, 2016 9:37 am

Re: Mass addition of symbols

Post by sorin_carbunaru » Thu Aug 06, 2020 9:28 am

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