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

Complicated static caption formatting question

Return to Member Forum

  • Author
    Posts
    • #14350578
      Steve Hall
      Member

      My wife is a landscape architect. I am a graphic designer. She gives me a list of trees and plants for 11×17 color image presentation sheets. Each image sheet has 8 or 10 tree or plant images with static captions for each tree or plant. There are often 4 – 6 pages for each presentation.

      I have a directories of images. The file name for each image is the same format:

      Latin; common name; the year the image was added; my wife’s initials if we have many images of the same tree or plant and one is her favorite, and .jpg or png

      For example, a static caption would be:

      Bauhinia blakeana; Hong Kong Orchid Tree-2019-SH.jpg

      The basic static caption formatting sets the font as [for ex:] Roboto light [100] for the latin.

      Then by ‘hand’ I delete things, format the second line, etc.

      Line 1: Bauhinia blakeana [the semicolon is deleted and Line 1 is Roboto 100 (light)]
      Line 2: Hong Kong Orchid Tree [the year and/or initials, and file extension are deleted, and Line 2 is Roboto 400 (bold)]

      My caption setup looks to the Metadata for the file name, then under nested styles – and after a Shift/Return – the font changes to Roboto 400.

      The dash, semi-colon, dash, year, dash, initials, <dot>, and file extension are each deleted by ‘hand’.

      Is there an automated way — using GREP? — to make these edits and deletions?

    • #14350579
      Massimo Carrassi
      Participant

      Grep does not delete text except with find/replace. If you want to do everything with the paragraph style, you can create a “micro” (0.1pt) font style that hides the characters you are not interested in.

    • #14350580
      Dhafir Photo
      Participant

      Try this:
      in Find: ^.+?\K;(.+?)-.+$
      in Change: $1

    • #14350582
      Steve Hall
      Member

      Massimo’s and Dhafir’s replies certainly point out my inadequacies with GREP… LOL

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