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

Optical Margin Alignment/Hanging Punctuation with GREP Style Quotes

Return to Member Forum

  • Author
    Posts
    • #14386078
      Marc Dunker
      Member

      Is there a way to hang quotes when OMA isn’t working? I don’t like the quote marks of most body fonts I choose, so I typically create a GREP style to change them to marks I like. OMA works pretty well with the original quotes at 12pt, but I can’t get an alignment with any number I put into OMA. I could do an anchored object, but that would defeat the purpose and be more manual than I want it to be.

    • #14386082
      Steve Davis
      Participant

      Wow, this is something I gave up on a long time ago and would love to find out how.

    • #14386084
      Marc Dunker
      Member

      The best I could come up with on my own was to do an indent then a negative first line indent, but that only works for left-aligned copy. Some is right-aligned in the project I’m working on.

    • #14386085
      David Blatner
      Keymaster

      Hm. That’s odd that optical margin alignment (OMA) isn’t working when you change the font with a grep style. It does work for me. I’m applying a different font with the expression ['"]
      As you said, different fonts require a different value in the Story panel. In general, I have to raise the value a bit, but I can usually find a value where the quotes fall outside the margin pretty well.

      That said, I wonder if some variation on this (crazy) workaround we came up with some years ago would work:

      Turning Off Hanging Punctuation for Quotes in Middle of a Paragraph

    • #14386087
      Marc Dunker
      Member

      Thanks for the comment, David! That is a crazy workaround!

      OMA does move it, but it’s not outside the margin like it should be. OMA stops doing anything at around 60pt, and after 30pt it starts pushing the quote back in.

      I work with primes as well, so I typically call out the left double and right double in my GREPs (~{|~}). I then created a separate tracking modifier and use positive lookaheads to apply tracking to the first left quote at the beginning of the paragraph and another lookahead on the last character of the paragraph to give a little extra space between the quotes.

      I wound up just moving the text frames 3pt toward the page edge and changing the paragraph style to have a 3pt indent with -3pt first line. That coupled with a 12pt OMA, it lines up pretty well. I then added a 3pt indent to all other paragraph styles in the frame. I’m sure I could play with the indent and remove OMA, but I already had it set on each frame.

      These are business card-size layouts, and some of the pages are right-aligned, so I did the opposite and it works on those too.

      If you’re wondering, I try to only use Adobe fonts now, so my header is a 15pt Bio Sans, and the body is 7pt Open Sans. I liked the quotes on Bio Sans, so the character style is 9pt Bio Sans with a -1 baseline shift. The tracking is 100 between the quote marks and text.

    • #14386089
      David Blatner
      Keymaster

      Oh, yes, I have seen OMA fail at larger values. But for what you’re using, I’d think you could keep the values down around 14 or 17 and it should work! Unless the quote marks are really huge.

      But I’m glad you have something that is kind of working for you.

    • #14386110
      Dhafir Photo
      Participant

      Try this trick: Add a space before the quote mark with a large minus number of tracking for the space, e.g. -650

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