Copy link to clipboard
Copied
Is there a way to have all grep-styles that have been applied by paragraph styles, converted to manually applied styling?
This is simply to aid in text exporting, as grep styles don't appear to be honoured in any kind of copy/paste, or otherwise automated export to rich text.
Example: copy some text which has been styled by GREP to contain italics, paste into Mac Text Edit, the styles are gone. Any text in the source text that was manually styled transfers correctly.
My aim would be to make these changes, carry out my text exports, then close the file without saving (I don't need to keep the converted styles).
Sure! This so cool Script has only been mentioned twice on this forum since the last 20 years!
By me (in another life)! 😉
(^/)
Copy link to clipboard
Copied
I would have bet against this working, but darn if it doesn't. The problem with GREP and line styles and such is that they are completely dynamic, applying only within the context of the live document. If you look, bolded words don't actually show any character style applied. So I thought any kind of Find/Replace would be fruitless...
But, in a simple test using a GREP style to apply a BOLD character style to designated text... I find the bolded words, as expected, show no style override when selected. But they DO come up as hits for either the character style or the bolding. And a Find/Replace handled them just fine, leaving the directly-applied BOLD even after the GREP style was deleted.
So one method would be to search for the GREP-applied style, substitute a directly applied style, and the text should then cut/paste/export with the style as a native part of the flow and not a phantom, active-only effect. Tedious, but there you go.
Does that make sense?
Copy link to clipboard
Copied
Thanks for this, appreciated. This is more manual than I need given my usage scenario. I'm probably going to have to rethink, or look into scripting it.
Copy link to clipboard
Copied
"Tedious…"!
Not so sure: Adi Ravid wrote his other famous Script "TurnGrepStyles2CharStyles_AdiRavid.jsx" in 2009 [I mean 16 years ago!] that simply does it.
(For memory, he wrote StorySplitter_AdiRavid.jsx too!)
(^/) The Jedi
Copy link to clipboard
Copied
They recently discovered a new text in the Merlin legend, in which the fabulous magician is a shapeshifter who entertains King Arthur and does other formerly things unknown in the written legends.
It was written in Old French, folded, and sewn into the cover of a ca-1500s English register of the goods of a feudal estate that's been on a library shelf for 400 years. It took extremely advanced nondestructive imaging of the folded sheets to create images that could be reprocessed into a readable form. Fabulous stuff, and it's been waiting for discovery for some six hundred years.
All you had to do was know it was there.
Which is kind of the problem with all the elaborate scripts that have been created for the last 20 years, too. 🙂
Copy link to clipboard
Copied
Sure! This so cool Script has only been mentioned twice on this forum since the last 20 years!
By me (in another life)! 😉
(^/)
Copy link to clipboard
Copied
Thanks I'll investigate this!