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

Reduce and Replace Font

Return to Member Forum

  • Author
    Posts
    • #33996

      This is my first post. I searched the forum but didn’t see what I was hoping to achieve.

      I create org charts with many names having 2 or more acronyms after the names. To help minimize the amount of text seen on the org chart, I reduce the acronyms by 2.5pts and change the font face. This process can be lengthy based on the amount I have to change. For example: First Last, PE, CFM, LEED AP… I would like to remove the comma after the last name (only) and reduce the acronyms by 2.5pts and change the font face. So if the whole line is Futura Book, I would like to change the acronyms to Futura Light. I wasn’t sure if I needed to create GREP style or a script to achieve this automation task. I can really use anyone’s insight and direction. Thank you in advance.

    • #34271
      Justin Sligh
      Member

      Candi,

      I know this is an old post; however, I have a similar workflow for organization charts in the AEC industry.

      I use a fixed value for my organization charts. You can apply the following grep expression and James Fritz’s guide an on percentage based styles to get the desired result. https://creativepro.com/creating-percentage-based-styles.php

      I will assume that the name, title, and post-nominals are on one line and each individual has a separate text frame. Add a Grep Style with the following expression:

      ,.+

      Your associated character style could be a fixed value or it could apply the aforementioned percentage based styles described in James’ guide.

      In regard to removing the first comma, physically removing it would require a grep find/replace. I don’t think that InDesign’s grep has the ability to match the first instance only. If it did or if there is an expression that can do the same, you could then hide the character. A character style with horizontal scale under the advanced character formats set to 1 percent and the fill color set to none will make the character invisible. My first thought would be to do a Grep Style that looks for all commas that are not preceded by a comma anywhere in a paragraph. Lookaheads can have expressions; unfortunately, lookbehinds are fixed. A grep guru might be able to assist.

      Definitions
      , A comma is a literal value
      . A period refers to any character, including a white space character
      + A plus sign indicates one or many of the previous character

Viewing 1 reply thread
  • You must be logged in to reply to this topic.
Forum Ads