I have 4 versions of a software-application. Each with a different name.
So I made 4 conditions: Va (to exclude version A), Vb (to exclude version B) etc.
Everywhere Ithe original name of the application in the helpfile is used, I want to change it to a contionional string, so I can in the target show the right version-name. For version B, I exclude the conditions Va, Vc and Vd to exclude the names. The string is like this:
<MadCap:conditionalText MadCap:conditions="Primary.F_L,Primary.F_A,Primary.F_B">Unit 4 Multivers</MadCap:conditionalText> <![CDATA[ ]]><MadCap:conditionalText MadCap:conditions="Primary.F_A,Primary.F_B,Primary.F_S">Unit 4 Multivers Lite</MadCap:conditionalText> <![CDATA[ ]]><MadCap:conditionalText MadCap:conditions="Primary.F_L,Primary.F_A,Primary.F_S">Unit 4 Multivers Basic</MadCap:conditionalText> <![CDATA[ ]]><MadCap:conditionalText MadCap:conditions="Primary.F_L,Primary.F_B,Primary.F_S">Unit 4 Accounting</MadCap:conditionalText> <![CDATA[ ]]>
Next I tried to find and replace in the scource-code the name of the application (Unit 4 Multivers) for the string above. That didn’t work because the search-program scans the text of a topic more than one time en finds ‘Unit 4 Multivers’ again in the new condition-string.
I changed in the conditional string the words ‘Unit 4 Multivers’ for ‘U4M’ so that 'Replace' should work.
But than it turned out that the conditions worked the other way around. Excluding (for version B) the conditions ‘Va, Vc and Vd’, made that nothing was visible. But excluding condition Vb turned out to work more or less better in showing at some places the right name. So is seems to me that the include/exclude function of the conditions is reversed when you set more than one condition in one text-line.
So, apart from the other known difficulties with the ‘Find and Replace’ in finding word-groups (that is e.g. not finding the word-group when in the code it is divided at the end of a line), I am left with another one. Who knows how to proceed? Any tips or tricks?????
By the way I am talking about more than 1100 replacements in more than 1000 topics in the helpfile, so some kind of working automation is quite welcome.
Thanks in advance,
Tom