![]() Ive been playing arround with Grep and Grep-styles for a while and its a really cool feature.ĭavid suggested I should share the file with you so here is my little christmas present to you… hope its a good one. What do you think? Can you think of other cool uses for this excellent feature? The second grep style was (?<=4)z which is “find the letter z, but only when it has the number 4 before it.” To that, I applied my disappear character style. The first one was 4(?=z) which means “look for the character 4 but only when it has the letter z immediately after it.” I applied my bodoni ornaments character style to that. So then I made up a little easy-to-remember code that would never show up in normal text: “4z”. I found the ornament/symbol/glyph I wanted could be typed with the number “4” in Bodoni Ornaments. What if you want some text to convert into a special character? For example, everywhere you type some normal text, you want it to change into a special icon in a particular font. Boom, it’s “gone.”ĭang, I can’t stop at five. Good point! But how to make a character disappear when you can only apply formatting? Make a character style that applies the fill color of None, a tiny point size, and a horizontal scale of 1%. My colleague and co-author Olav Kvern just wrote me, saying, “You really don’t need to find/change typical typewriter text entry errors (double spaces after periods, etc.) anymore–just make a grep style that does it and make it part of your base paragraph style(s).” Wow. Apply a “Fractions” formatting character style to the code \d /\d (which means one or more digits, followed by a slash, followed by one or more digits.) It won’t work if you have commas or decimals in the fractions, but it’s a good start! (Of course, you could make a GREP code to handle those situations, too?)ĥ. I added a little sidebar to that review before it went “to press” that explained that if you are using OpenType fonts that include the Fraction style, you can apply them with a GREP Style. Jamie McKeee reviewed and explained the excellent Fraction script in the recent issue of InDesign Magazine. That shows you all kinds of cool codes for things.Ĥ. Just click the icon to the right of the To Text field. Don’t know how to type an em dash code? No problem. ![]() Make a character style with a 75% (or whatever) horizontal scale. In some fonts, the em dash is just too wide for my tastes. If I don’t want to break “InDesign” on to two lines, I’ll just apply a no-break character style to the GREP code “InDesign” (that’s pretty simple grep, eh? Just type the word!)ģ. I’m tired of setting individual words to “No Break” or changing dictionaries to instruct InDesign not to break words. Apply a character style that applies the OpenType Oldstyle Proportional figure style to all digits in a paragraph.Ģ. Please feel free to comment below with other ways you’re using this cool feature.ġ. Here are 5 more ways I like using GREP Styles. Bob Levine already posted about one way to use them here. Okay, enough with the “how.” Now what about “what”. I encourage you to turn on the Preview checkbox to see how (or if) it works before clicking OK.įive Cool Things You Can Do with GREP Styles For example, the default GREP code \d means “one or more digits in a row.” (That’s another little feature I love in CS4.) Then you can choose a style you’ve already made or choose New Character Style if you haven’t made one yet. To apply a character style, click once on Apply Style and it turns into a character style. To make a new GREP style, click the New GREP Style button: But I find that in general it’s just more useful using GREP Styles inside a paragraph style.) (You can apply a GREP Style to a single paragraph as local formatting by placing the cursor in the paragraph and choosing GREP Styles from the Control panel menu. ![]() To apply a GREP Style to a pararaph, you probably want to edit your paragraph style definition. But there are many things you can do with just that. GREP Styles don’t change text at all they only apply formatting. You can use GREP in the Find/Change dialog box, but only manually - that is, you have to actually do a search and replace each time you want to apply the formatting. For example, you can write “all the words that start with a and end with e” with the code \ GREP, as we’ve discussed, is a way to describe a text pattern using codes. But what are they, how do you make them, and what can you do with them?Ī GREP Style is a way to apply a character style to some text inside a paragraph, based on a GREP pattern. I’ve said it before: It’s probably my favorite new feature, and although it’s small, I think it makes the upgrade very worthwhile. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |