There is no straight-forward way.
Depending on the nature of your GREP Styles used, this could be hard to impossible (without doing it on a case-by-case basis).
I'd suggest an export to PDF and using Acrobat Pro DC to save the PDF as word document.
Here the link to the German language discussion at hilfdirselbst.ch:
The current URL for downloading the script packaged in a zip-file is:
Read (and translate from German) the readme-file before doing anything with it:
Note: Run the script on a duplicate of your original InDesign document.
Many thanks for your quick and helpful responses...
Did you try the script by Hans?
File>export and choose RTF
Note that you have to be active in a text frame to export to RTF.
Here's the guide
Here's a fast way to do with a lot of text frames
if you export to RTF, text with an applied GREP Style will not contain the formatting of the used character styles for that GREP.
Just tested this scenario with InDesign CC 2014.2. I think, even with CC 2015.2 nothing has changed here.
So we first have to "normalize" the paragraph, using character styles or formatting directly without a GREP Style and then export to RTF.
Yes, I have tried the script but it can not run, my Indesign version is CS6.
Can you post the error message, if there is any?
The script should run in CS6.
At first glance I see no properties or methods used, that will forbid this.
To use it, you have to put the script file to the following folder:
Applictions/Adobe InDesign CS6/Scripts/Scripts Panel
You now have direct access to it from inDesign's Scripts Panel.
To start the script, double-click the listed script in the Scripts Panel.
Do not double-click the script file in the folder/file hierarchy of your opertating system.
That's really weird - I must be doing something different than you guys.
I think I had a script that converted the GREP styles and nested styles etc to plain character styles. I'm baffled to where it is now though.
The script TurnGrepStyles2CharStyles does the trick.
Download link is provided here:
Works perfectly in CS6.
There might be issues if you have more than one GrepStyle applied to the same piece of text, though.
yes, it is getting complicated, if a cascade of GREP Styles is used, that adds different formatting to the same character.
and I still didn't find nothing better than disabling one 'conflicting' grep, running the script, and then running another script which re-applies earlier disabled grepstyle through simple find/change applying correct charstyle.
It's all automated to 'one-click button' nevertheless is still damn complicated dirty workaround
Just tested Hans' script with such a small cascade of GREP Styles in the same paragraph style:
GREP Style 1: \d+ => character style: "ColorRed"
GREP Style 2: (m\K2)|(m\K3) => character style: "UsePositionSuperscript"
After running the script, the superscripted and red-colored "2" or "3" are only (EDIT:) red-colored, but not superscripted anymore. superscripted, but not red-colored anymore.
Before running the script DefinitionenAufloesen_501d.js :
After running the script DefinitionenAufloesen_501d.js :
The superscripted numbers 2 and 3 lost the color red.
As I already said, it's a complicated matter…
Just tested Adi Ravid's TurnGrepStyles2CharStyles.jsx on my little example.
It seems to do the better job, but if I copy/paste the text over to a Word document, the color red on the superscripted "2" and "3" is missing as well.
Also tested Harb's script ApplyNestedStyles.jsx, but to no avail:
The superscripted "2" and "3" are missing the color red after pasting into Word.
The reason for all three scripts failing is, that two GREP Styles with two different formattings work on the same characters, the digits 2 and 3, if the character m is preceding the digits. The formatting in Adi Ravid's and Harb's scripts seem to be ok, because both scripts will not strip the GREP Styles from the used paragraph style. So the problem is masked here.
Two different character styles cannot be applied to the same character without using nested styles or GREP Styles.
In cases like cascading formatting, a script should either apply the missing formatting by applying a new character style or by using local formatting. But also this can fail, because there are much more complicated cases of cascading formatting where you can exactly see a format, but even InDesign is not able showing the right property values in the panel, if my memory is right.
You can read about some cases here:
Or read the following post and below (mabye all posts!), if you want to dive deep into the issues: