Copy link to clipboard
Copied
Hello!
I'm pretty familiar with Adobe's search options, including searching for a specific character format, searching for a specific string, or searching for a string + copied character formats, but is there any way to search for a specific string while specifying a single character format?
For example, I'm trying to capture all instances of the word "analyze" that appear in Roman type so that I can conver them to italics.
I can search for "analyz*" using a wildcard search or "\banalyz*\b" using a regexp search, but I can't specify the character style (Roman type) this way. If I copy "analyz" and search for text and character formats on clipboard, it won't capture variations in, for example, font size.
Is there a way to do what I want to do that I'm just not seeing? I was hoping at first that there might be a regexp flag for this, but I can't find anything online...
Thanks!
Matt
Copy link to clipboard
Copied
There isn't in FrameMaker itself (one of the few times Word is better). Klaus may have added it to his super-duper find/change utility he's been working on. Reminds me, I should see if that's been updated ...
Copy link to clipboard
Copied
Super-duper find/change utility you say? 🙂
Copy link to clipboard
Copied
Sorry, Lin, FMfindRepl does not have the required function... Even worse, I have left out the search for arbitrary character formats (not catalogued).
And what does "Roman" mean in the context of format?
Copy link to clipboard
Copied
I should have said "Regular" with respect to angle. Sorry for the confusion!
Copy link to clipboard
Copied
Well, pooh. Is it even possible in a script to combine a search for letters with a search for a paragraph or character tag?
Copy link to clipboard
Copied
IMHO the case could be solved in a script - we have all the required building blocks:
It is not currently availabele as a 'ready to use' script - but Rick Quatro obviously could provide this - but not for free (in contrast to me he needs the money, but I have currently no time for such an effort).
Copy link to clipboard
Copied
You should be able to export your file to MIF, use (any text editor...I use NotePad++) to search for the MIF string that has your character format. Change as needed, then open the file again in Fm.
Copy link to clipboard
Copied
«I'm trying to capture all instances of the word "analyze" that appear in Roman type so that I can conver them to italics.»
This morning during shaving I imagined an extension to my evolving FMfindRepl script. I always try to first find an UI for the case - how to tell the script what I want:
The idea is to add a second line in the Find what field starting with &&& and a space after it. Then the text to be found (which in this example is a RegEx).
The primary Find object is a Character Tag (a catalogued style) which is selected from the drop-down list (x-title). If you are looking for an arbitrary character format, just create a catalogue entry from it (e.g. zzz) which you can remove from the catalogue after the work.
After finding the text in a defined character format you want to change the character format - not the text. You would select this also from a drop down list (which contains the same items at the one on top).
→ I will try to develop this starting towards the end of next week ...
For more than reason I will not try to develop this...
The task could be achieved like this:
Copy link to clipboard
Copied
I have a script that could be modified to do what you want. See Textformatter at http://frameexpert.com/store/index.html.