Copy link to clipboard
Copied
I'm wondering if there's an easy way to remove all Conditional Build Tags (CBT) inside a topic. Has anyone come up with a quick way to do this?
The problem I'm running into is I want to remove some CBTs on some list items. But it's not easy to remove the CBTs because the right-click menu item to deselect the CBT is grayed out unless I select a certain sub-set of the list just right. Sometimes this even happens on a single sentence. I have to select a part of the sentence and remove that part first and then the other part. It seems due to in-line formatting that's affecting this. I'm hoping there's an easier way. Any scripts out there that do this?
I can probably figure out how to do it in Notepad++ with regular expression pattern matching, but that's a hassle if there's an easier solution.
I'm using RH 9.02.271.
Copy link to clipboard
Copied
If you right click in a paragraph you should see either Remove Attribute or Remove Attributes.
If Remove Attribute and the attribute is a CBT, then Rh will remove it cleanly.
If Remove Attributes, when you click the option you will get a dialog and can select the span tags you want removed.
Not quite what you want but it does work cleanly.
Back up first though just in case you remove too much.
See www.grainge.org for RoboHelp and Authoring tips

Copy link to clipboard
Copied
Thanks Peter. The problem is I'm looking at a Japanese localized project and can't tell what it is I'm removing using the right-click Remove Attribute method.

Anyway, I ended up creating my own script in ExtendScript that removes all of a specified CBT in a topic's text.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more