3 Replies Latest reply on Jan 11, 2015 9:50 AM by rob day

    Possible to control space after periods and commas?

    supineNY Level 1

      There's a font i'd like to use as a body text font, but sometimes the spaces after periods and commas are inadequate. Is there a way to control this in InDesign? or must this be resolved by manipulating the font in a font editor?

       

       

      thanks

      Kurt Hoffman

        • 1. Re: Possible to control space after periods and commas?
          Peter Spier Most Valuable Participant (Moderator)

          You can dd some tracking to the space using a GREP style nested in your paragraph style. Something like (?<=[,.])\x{0020} should work if you want to add the same amount of tracking after both the period and comma. You'll also need to create a character style that defines the tracking amount to add. You can add other punctuation marks to the class (inside the brackets) if you want to add more space after them as well, or you can define more character styles with different tracking values and use the same positive look-behind with other characters to make different values for each mark.

          • 2. Re: Possible to control space after periods and commas?
            Peter Spier Most Valuable Participant (Moderator)

            The above solution adds the tracking to the space character. You could also do the opposite, look for the punctuation with a positive look-ahead for the space and apply the tracking to the punctuation. That's probably more efficient in terms of execution since there are more spaces that don't follow punctuation that punctuation that isn't followed by a space.

             

            I'm not sure either solution will really work well with justified text.

            • 3. Re: Possible to control space after periods and commas?
              rob day Adobe Community Professional & MVP

              but sometimes the spaces after periods and commas are inadequate...

               

              I'm not sure either solution will really work well with justified text.

               

              When you say sometimes, it sounds like your text is justified and the space after periods is variable. Peter's GREP solutions would track the space after a period but the amount would still be variable when the text  is justified. So you could also look at the Justification setting for the style:

               

              The default Justification setting which allows a significant difference between min and max word spacing, and no difference in letter spacing:

               

              Screen Shot 2015-01-11 at 9.32.09 AM.png

               

              Changing the Word Spacing to 90% | 100% | 120% and the letter spacing to -2% | 0% | 2% creates a more consistent space after the periods.

               

              Screen Shot 2015-01-11 at 9.35.09 AM.png