FrameMaker MIF: replacing text in specific tags
Posted: Fri Mar 20, 2009 1:56 am
I'm not even sure I can accomplish what I need to in TextPipe Lite... it may be time to upgrade.
I want to change the text that appears in multiple tags. For example, I have tags "Heading 1", "Heading 2", "Chapter Title", and "Figure Caption". I want all the text in these tags to appear in sentence case.
(Except, of course, there are proper nouns I want to exclude, but one problem at a time.)
After spending some time look at how FrameMaker stores information in MIF files, I'm stumped:
If the exact same String appears inside a different PgfTag, I want to leave it alone. However, whenever any string appears with any of the PgfTags that I listed above, I want to alter the text.
This would be so much easier if <PgfTag ended with /PgfTag>.
Anyone have any hints?
I want to change the text that appears in multiple tags. For example, I have tags "Heading 1", "Heading 2", "Chapter Title", and "Figure Caption". I want all the text in these tags to appear in sentence case.
(Except, of course, there are proper nouns I want to exclude, but one problem at a time.)
After spending some time look at how FrameMaker stores information in MIF files, I'm stumped:
Code: Select all
<Para
<Unique 1088218>
<PgfTag `Heading2'>
<ParaLine
<String `Big Fjords vex Quick Waltz Nymph'>
> # end of ParaLine
> # end of Para
This would be so much easier if <PgfTag ended with /PgfTag>.
Anyone have any hints?