Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

Convert grep styles somthing more static

Engaged ,
Mar 24, 2025 Mar 24, 2025

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).

TOPICS
How to , Import and export
145
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guide , Mar 26, 2025 Mar 26, 2025

Sure! This so cool Script has only been mentioned twice on this forum since the last 20 years!

 

By me (in another life)!  😉

 

https://community.adobe.com/t5/indesign-discussions/grep-removed-and-applied-character-style/m-p/7099474#M290942

 

(^/)

Translate
Community Expert ,
Mar 24, 2025 Mar 24, 2025

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Mar 26, 2025 Mar 26, 2025

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.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Mar 26, 2025 Mar 26, 2025

"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!)

 

TurnGrepStylesToCharStyles_AdiRavid.jsx_Game.png

 

link: https://www.dropbox.com/scl/fi/6p6cfva3ew53xczm7id6p/TurnGrepStylesToCharStyles_AdiRavid.jsx?rlkey=s...

 

(^/)  The Jedi

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 26, 2025 Mar 26, 2025

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. 🙂

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Mar 26, 2025 Mar 26, 2025
LATEST

Sure! This so cool Script has only been mentioned twice on this forum since the last 20 years!

 

By me (in another life)!  😉

 

https://community.adobe.com/t5/indesign-discussions/grep-removed-and-applied-character-style/m-p/709...

 

(^/)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Mar 26, 2025 Mar 26, 2025

Thanks I'll investigate this!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines