Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

GREP space

Return to Member Forum

  • Author
    Posts
    • #34232

      I have a client that wants double spacing after each period in his book. It currently has a single space. Can any one share a GREP expression that will change a single space to a double space with out affection things like abbreviated words or Dr. and such?
      Any help would be greatly appreciated.
      jh

    • #34253
      Justin Sligh
      Member

      Jamie,

      Instead of adding an additional physical whitespace character, you should consider providing the desired space through your paragraph styles.

      Create a grep style using:
      (?<=[[:punct:]]) (?=\u)

      The associated character style will control the width of your spaces. You can set the horizontal setting to 200 percent to double the size.

      We then need to take care of the Mr., Ms., Mrs. You can do so by creating a second grep style using:
      Dr\. |Mr\. |Ms\. |Mrs\.

      Take note of the space after each dot. The associated character style should have the horizontal setting set to 100 percent. In order to override the previous grep style, ensure that this one is placed above the previous.

      I was unable to use a negative lookbehind that included multiple entries. I am sure a grep guru could provide an example of how to do this in a single grep style.

    • #34267

      Thanks for this. I appreciate the quick response.

Viewing 2 reply threads
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads