Skip navigation
Currently Being Moderated

Adding a Kerning amount to the space between a digit and a quotation mark in GREP

Sep 6, 2012 8:01 AM

Hello,

 

For some reason I am having a problem adding a Kerning amount between a digit and the Quotation mark in GREP.. Here is what I have :

 

 

(?<=\d)\x{0022}

 

I think the problem, is the character style lets me add a tracking amount, but not specify a kerning amount and that is what I really need. I just need a 150 Kern between the digit (sometimes a whole number or a fraction and the double quotation mark.

 

Anyone out there know a good way to do this?

 

thanks

babs

 
Replies
  • Currently Being Moderated
    Sep 6, 2012 8:08 AM   in reply to iBabs2

    I think you actually understand the problem, since it's exactly what you said -- you need to apply tracking to the pair (which I think you probably want to do as a character style that you can apply as a GREP style).

     

    Should work if you change the query to \d\x{0022} I suspect.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 6, 2012 8:37 AM   in reply to Peter Spier

    Almost right.

     

    No, you cannot set kerning in a character style (easily -- I think there was a trick to work around it, but I cannot recall what it was). Yep, you must apply tracking with the GREP style to part of the string. If you set the tracking for both characters, it will also be applied to the second one, making this wider as well.

    Set your GREP to this to prevent it:

     

    \d(?=~")

     

    (where the code ~" is equal to 'straight double quotes only').

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 6, 2012 3:52 PM   in reply to iBabs2

    Fortuitous you all posted this just today. I'm trying to change kerning between a digit and a letter, which I can find in GREP. What you didn't mention was whether you used a replace expression that inserted the kerning. If so, how did you do that? If not, bummer, but at least I can still find the spots where I need to do it manually. Thanks!

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 6, 2012 5:49 PM   in reply to johnmd13

    If you want to adjust the spacing wherever the pair appears, include the query as a GREP style in the paragraph style and define a character style that it applies to do the adjustment. Otherwise, all you need do for find/change would be to add the new formatting in the change format options.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points