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

Grep or Nested style

Community Beginner ,
Apr 04, 2024 Apr 04, 2024

Copy link to clipboard

Copied

I want to create a Grep/Nested style within inDesign of this text.
The text up to ___ should always be bold. This can be 1-2-3-4 words, everything after that regular.
And the ___ should be replaced with a space.

 

Submitted:
AADORP___Herv. Aakerk 10.00 ** **.
AAGTEKERKE ZELHEM___Ger. Gem. 18.30 , March 29, 19.00 Rev. A.P. Baaijens
AALBURG ZELHEM ARNHEM___Herv. Reformed Church 10.00 Rev. A.J.

 

This is what I want to have:
AADORP Herv. Aakerk 10.00 ** **.
AAGTEKERKE ZELHEM Ger. Gem. 18.30 , March 29, 19.00 Rev. A.P. Baaijens
AALBURG ZELHEM ARNHEM Herv. Reformed Church 10.00 Rev. A.J.

 

Any ideas?

TOPICS
How to

Views

308

Translate

Translate

Report

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

Community Expert , Apr 10, 2024 Apr 10, 2024

So watched an amazing match last night, crazy goals and scorelines. 

I am back at the computer this morning. 

I have built some basic style for you to copy and follow

The first one has a style setup for you to change yourself

The second one I have the style setup 

 

So on the first one - you can to adjust the Paragraph Style to add the Nested Styles
And then adjust the Underscore character style.

Your Test styles are in a folder called Test.

 

 Attached is your test file to show how it's done.
As no

...

Votes

Translate

Translate
Community Expert ,
Apr 04, 2024 Apr 04, 2024

Copy link to clipboard

Copied

If you find and replace the underlines with
_+ 

Then change it to a different type of space - like a Flush Space

~f 

EugeneTyson_0-1712235929907.png

 

 

Then a Nested Style can format the text up to the Flush Space
Only catch here is to Copy the flush space from the text

and paste into the highlighted area

This way - any time you insert a flush space

it will automatically go Bold

 

EugeneTyson_1-1712236056270.png

 

 

Votes

Translate

Translate

Report

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 ,
Apr 04, 2024 Apr 04, 2024

Copy link to clipboard

Copied

I would replace the underlines with an End Nested Style Here character then use that as a trigger for the style change.

Screenshot 2024-04-04 at 10.14.09 AM.pngScreenshot 2024-04-04 at 10.14.24 AM.png

Votes

Translate

Translate

Report

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 ,
Apr 04, 2024 Apr 04, 2024

Copy link to clipboard

Copied

Yeh you can do that too - does the exact same thing. 

Any character that can trigger the nested style would work.

Votes

Translate

Translate

Report

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 Beginner ,
Apr 10, 2024 Apr 10, 2024

Copy link to clipboard

Copied

Thanks for the replies. I would like to see this as an automatic process. So I am posting a text like this:

AADORP___Herv. Aakerk 10.00 **.

AAGTEKERKE ZELHEM___Ger. Gem. 18.30 , March 29, 19.00 Rev. A.P. Baaijens

AALBURG ZELHEM ARNHEM___Herv. Reformed Church 10.00 Rev. A.J.

 

And without doing a search and replace o.i.d. I want to get this:

AADORP Herv. Aakerk 10.00 ** **.

AAGTEKERKE ZELHEM Ger. Gem. 18.30 , March 29, 19.00 Rev. A.P. Baaijens

AALBURG ZELHEM ARNHEM Herv. Reformed Church 10.00 Rev. A.J.

Votes

Translate

Translate

Report

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 ,
Apr 10, 2024 Apr 10, 2024

Copy link to clipboard

Copied

Nested styles cannot delete text, only format it. You could minimize it's size by adjsting the horizontal scale to a very small amount and adding some negative tracking while also changing the text color to None, but to actually delete it you must use find/change.

Votes

Translate

Translate

Report

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 ,
Apr 10, 2024 Apr 10, 2024

Copy link to clipboard

Copied

Then have a character style for the underscores, and set the character colour to none.

 

The decrease the tracking to your liking 

Then add it into sequence for the nested style

 

Bold up to 1 underscore

Underscore up to 1 letter

 

 

 

 

Votes

Translate

Translate

Report

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 Beginner ,
Apr 10, 2024 Apr 10, 2024

Copy link to clipboard

Copied

Is it possible to create an inDesign file and send it to me with the styles in it? I have never worked with Grep/ nested styles so I am searching.

Votes

Translate

Translate

Report

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 ,
Apr 10, 2024 Apr 10, 2024

Copy link to clipboard

Copied

I could but watching champions league football at the moment 😂 

 

I made screenshots earlier, follow same as before

Create

2 character styles - bold and underscore

 

On the underscore option leave it as is don't change it have it as basic as when you make it change it later

 

Then in the paragraph style add the nested style

 

Bold up to 1 underscore (type the _)

Underscore up to 1 letter

 

The go to your underscore character style 

Change th colour to none

 

Then reduce the tracking or horizontal scaling until you like it.

 

 

Votes

Translate

Translate

Report

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 ,
Apr 10, 2024 Apr 10, 2024

Copy link to clipboard

Copied

So watched an amazing match last night, crazy goals and scorelines. 

I am back at the computer this morning. 

I have built some basic style for you to copy and follow

The first one has a style setup for you to change yourself

The second one I have the style setup 

 

So on the first one - you can to adjust the Paragraph Style to add the Nested Styles
And then adjust the Underscore character style.

Your Test styles are in a folder called Test.

 

 Attached is your test file to show how it's done.
As noted - you can't delete text with Styles - you can only 'hide' text.

 

Copying and pasting the text to another application or anything like that will copy over the underscores.

Votes

Translate

Translate

Report

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 Beginner ,
Apr 16, 2024 Apr 16, 2024

Copy link to clipboard

Copied

LATEST

Thanks! It really helps me.

Votes

Translate

Translate

Report

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