Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

9. Using GREP with fonts

From: InDesign: 10 Things to Know About GREP

Video: 9. Using GREP with fonts

In this document, I can see that the logo for the store Bliss No. 5 has a circle around the 5. When I zoom in on the text up here, I see that there is no such circle on these 5s. But wouldn't that be kind of cool to have a little text treatment here where the 5 has a circle around it? I'm going to show you how I can use GREP Styles to put that circle there. The first thing I'm going to do is replace that 5 with an n. Why an n? Well, I just happen to know that in the Wingdings 2 font the n looks like a 5 with a circle around. I just happen to know that. So I'm going to replace the 5 with an n here. So I'll open my Paragraphs Styles panel and I'll double-click on the Body style to create a new GREP Style. Select the GREP Style tab, now I'll click New GREP Style.

9. Using GREP with fonts

In this document, I can see that the logo for the store Bliss No. 5 has a circle around the 5. When I zoom in on the text up here, I see that there is no such circle on these 5s. But wouldn't that be kind of cool to have a little text treatment here where the 5 has a circle around it? I'm going to show you how I can use GREP Styles to put that circle there. The first thing I'm going to do is replace that 5 with an n. Why an n? Well, I just happen to know that in the Wingdings 2 font the n looks like a 5 with a circle around. I just happen to know that. So I'm going to replace the 5 with an n here. So I'll open my Paragraphs Styles panel and I'll double-click on the Body style to create a new GREP Style. Select the GREP Style tab, now I'll click New GREP Style.

You can see I already have a couple of GREP Styles in this Paragraph Style, but I'm going to create a new GREP Style, which will apply a new Character Style called let's say wingdings, might as well, and this is going to apply the Wingdings font. Actually Wingdings 2 to be precise. Maybe make it a little bit bigger than the text around it, something like that and click OK. Now, I don't want this to apply to that numbers in here. I want it to apply to the letter n but not just any n. Only n's that comes after an o. right? So I'm going to use a Positive Lookbehind and it's going to look for the text no.

and of course I need to escape that period out with a backslash and then it's going to search for the character n. We can test this out by turning on the Preview checkbox and immediately you see that what was an n is now a 5 with a circle around it. So this is pretty cool. Because now any time I want to use that logo, that little type treatment, I can simply replace the 5 with an n. Let's see another example of this. I will zoom back out to this spread in window and I'm going to jump to the next spread in this document and zoom in to 400% on this text in the lower left corner. Now, this is an interesting problem because in this particular font, the l, it's a lowercase l and the number 1, the digit 1, look very, very similar.

I can't even tell the difference between these. So is this 1lb or llb, or I don't know what. So I'm going to actually use GREP Styles to change the number 1 into a different font that looks similar, but is different from the lowercase l. Let's go ahead and do that. I'll double-click on this Paragraph Style now, go to GREP Style and create a new GREP Style, which is going to be a style which applies let's say Myriad for 1, for the digit 1. All I'm going to do here is apply Myriad Pro to this particular character and the character that I want is not all digits, just the digit 1. It's easy.

I just have to type 1 in here and it will just look for the number 1 to apply Myriad to. Let's go ahead and click OK and we can immediately see that that's a 1 and that's an lb, this is a 1. I also see that there is an error in here because this was supposed to be all digits, 5 digits, and someone snuck in a lowercase l instead. So I'll hit 1 and that cleans it up. So you can see that using GREP Styles to apply a different font to one or more characters can really save you a lot of time.

Show transcript

This video is part of

Image for InDesign: 10 Things to Know About GREP
InDesign: 10 Things to Know About GREP

12 video lessons · 6625 viewers

David Blatner
Author

 

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ .

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed InDesign: 10 Things to Know About GREP.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member ?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferences from the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Learn more, save more. Upgrade today!

Get our Annual Premium Membership at our best savings yet.

Upgrade to our Annual Premium Membership today and get even more value from your lynda.com subscription:

“In a way, I feel like you are rooting for me. Like you are really invested in my experience, and want me to get as much out of these courses as possible this is the best place to start on your journey to learning new material.”— Nadine H.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.