Mobile app version of vmapp.org
Login or Join
Gretchen549

: Making ogoneks with GREP style I followed this solution to make Polish ogoneks in InDesign through GREP style BUT every time I use it, the negative tracking is also be applied to the space

@Gretchen549

Posted in: #AdobeIndesign #Typography

I followed this solution to make Polish ogoneks in InDesign through GREP style BUT every time I use it, the negative tracking is also be applied to the space or next character which immediately follows it. Is there any way to prevent this from happening?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Gretchen549

2 Comments

Sorted by latest first Latest Oldest Best

 

@BetL875

I should have been more explicit in my original answer on this topic. The way you make this work is by using GREP's "Positive Lookahead". Here's an expression that applies a character style to a letter that is followed by an ogonek: [lu](?=˛) In English that means "apply the style to any single upper or lowercase letter that comes immediately before an ogonek, but not to the ogonek itself.

You would have to experiment with the exact negative tracking value for the particular typeface you were using. In my case it was -400 using Myriad Pro at 12 pt.

10% popularity Vote Up Vote Down


 

@Merenda852

Ideally there would be a regular expression that would say something like "if e is followed by ogonek, then style e", because that would only apply the negative tracking to the initial letter. I wasn't able to figure that out, though, so here's a workaround:

Create another character style. You already have one that has your negative tracking; create another one that has a tracking of 0. Apply the negative tracking style to "e˛" or whatever your range of characters is, and then apply the tracking style of 0 to just the ogonek.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme