4

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?

7
  • Who are you asking? What is an ogunek? What steps are you referring to?
    – DA01
    Aug 29, 2012 at 16:07
  • There was an earlier question about "How to create a new glyph = letter + ogunek in Indesign" which showed step by step how to create these special letters that appear in the Polish and Lithuanian languages using a grep style. The steps mentioned worked like a charm BUT negative kerning is being applied to the character which immediately follows. I'm new to this site, so I wasn't sure how to pose this question in a way it would make sense or if there was a way to pose this question as another layer to this previous posting! Aug 29, 2012 at 16:39
  • 1
    If you can reference the other question (via a link) that would certainly help clarify things.
    – DA01
    Aug 29, 2012 at 16:42
  • the original sequence of steps was posted by Alan Gilbertson. Aug 29, 2012 at 16:43

2 Answers 2

2

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.

GREP Styles

3
  • okay, thanks—i will definitely try this! I was trying to figure out on my own how I could apply the zero tracking into this equation—i was trying to add some space after the tracked pair, but it wasn't working. Aug 29, 2012 at 18:19
  • @Brendan The regular expression you're referring to, "if [something] is followed by [something else] then [style]" is called "Positive Lookahead". Its complement is "negative lookahead" "if [thing] is not followed by [other thing] then..." GREP also has positive and negative look-behind. They are very useful for esoteric GREP styles. Sep 1, 2012 at 0:04
  • @VirginiaNorey, see Alan's answer...his should serve you better.
    – Brendan
    Sep 4, 2012 at 12:47
2

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: [\l\u](?=˛) 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.

1
  • Thanks...my knowledge of regular expressions is pretty limited :)
    – Brendan
    Sep 4, 2012 at 12:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.