Auto-applied Conditions not showing up in Text Editor
Posted: Wed Oct 13, 2021 2:05 pm
Here's the situation. I have a PDF document that goes through several iterations. Additions and deletions between versions are marked as green underlined text and red line-through text, respectively, typically using spans or paragraph styles. What I would like to do for the final 'clean' version is remove the formatting from the added text and completely remove the deleted text from the document. So far I've basically been going through the document and manually removing styles and deleting text. Because of the various styles used in the document I have over a dozen separate styles for the added text and another dozen or so for deleted text, making a regular expression or other type of global search and replace kind of difficult to come up with (for me, at least).
One thought I came up with is to add a Condition tag to each of the styles used to format the deleted text, e. g., mc-conditions: "Formatting. ToBeRemoved". That way, every piece of to-be-deleted text will have a specific condition applied to it so I could then use the "Find Elements" capability in Flare to find and delete all the content with that condition tag applied. The problem is that the tag does not consistently appear in the topic when viewed in Text Editor. If I right-click on the span or paragraph and select "Conditions...", the ToBeRemoved tag is shown to be applied and if the project is built with that condition set to be excluded, it behaves as expected. But a search for the condition tag itself in the topic comes up empty.
I have found that sometimes opening and closing the topic causes the tag to appear. Reapplying the condition works as well, but neither of those processes are something I want to go through with the several dozen topics and hundreds of instances I have in the project.
Anyone know how to the auto-applied condition tags to consistently appear in the topic?
Thanks.
One thought I came up with is to add a Condition tag to each of the styles used to format the deleted text, e. g., mc-conditions: "Formatting. ToBeRemoved". That way, every piece of to-be-deleted text will have a specific condition applied to it so I could then use the "Find Elements" capability in Flare to find and delete all the content with that condition tag applied. The problem is that the tag does not consistently appear in the topic when viewed in Text Editor. If I right-click on the span or paragraph and select "Conditions...", the ToBeRemoved tag is shown to be applied and if the project is built with that condition set to be excluded, it behaves as expected. But a search for the condition tag itself in the topic comes up empty.
I have found that sometimes opening and closing the topic causes the tag to appear. Reapplying the condition works as well, but neither of those processes are something I want to go through with the several dozen topics and hundreds of instances I have in the project.
Anyone know how to the auto-applied condition tags to consistently appear in the topic?
Thanks.