Take the 2-minute tour ×
Graphic Design Stack Exchange is a question and answer site for professional graphic designers and non-designers trying to do their own graphic design. It's 100% free, no registration required.

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?

share|improve this question
    
Who are you asking? What is an ogunek? What steps are you referring to? –  DA01 Aug 29 '12 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! –  Virginia Norey Aug 29 '12 at 16:39
1  
If you can reference the other question (via a link) that would certainly help clarify things. –  DA01 Aug 29 '12 at 16:42
    
the original sequence of steps was posted by Alan Gilbertson. –  Virginia Norey Aug 29 '12 at 16:43
    
show 2 more comments

2 Answers

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.

share|improve this answer
    
Thanks...my knowledge of regular expressions is pretty limited :) –  Brendan Sep 4 '12 at 12:47
add comment

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

share|improve this answer
    
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. –  Virginia Norey Aug 29 '12 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. –  Alan Gilbertson Sep 1 '12 at 0:04
    
@VirginiaNorey, see Alan's answer...his should serve you better. –  Brendan Sep 4 '12 at 12:47
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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