Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Easily remove in-line Conditional Build Tags?

Enthusiast ,
Oct 24, 2012 Oct 24, 2012

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.

448
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 24, 2012 Oct 24, 2012

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

@petergrainge

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Oct 26, 2012 Oct 26, 2012
LATEST

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.

10-26-2012 10-18-13 AM.jpg

Anyway, I ended up creating my own script in ExtendScript that removes all of a specified CBT in a topic's text.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp