Find and Replace automatic breaks

Learn / Forums / General InDesign Topics / Find and Replace automatic breaks

Viewing 8 reply threads
  • Author
    Posts
    • #90269
      Lily Alayeva
      Member

      Hello!

      I am hoping someone can help me with this. I am trying to figure out a way to find and replace all automatically breaking lines to have a forced line break. In other words, I would like to find lines that end with neither a forced line break or end of paragraph and designate a breaking character to them.

      Is there a way to do this?

      Thanks!
      Lily

    • #90270
      David Blatner
      Keymaster
    • #90271
      Lily Alayeva
      Member

      Thanks for your response. Unfortunately, I need to find all the automatic breaks in already placed copy (to place tabs immediately after) amongst other lines with already forced line breaks, so that doesn’t seem like it will work.

    • #90282
      David Blatner
      Keymaster

      I guess my thought was that you could use that script and then search for the forced line breaks (shift-returns) and insert the tabs or convert to hard returns.

      • #90303

        I’m confused about what is wanted. From my reading of Lily’s posts, I get the idea that Lily wants to find all line breaks (whether a forced return or not) and replace them all with a non-breaking space/character. But also insert tabs??

        I’m not that good with GREP so I don’t even know if it’s possible to search for automatic line breaks.

    • #90304
      Lily Alayeva
      Member

      Hi!

      So this is an example of what I need to do: I have a really long list of names, some that run longer then the column width:

      John Doe The Second

      Indesign takes the name and automatically breaks it as needed:

      John Doe The
      Second

      What I need to find is all the times it does this (without my interference) and so that eventually I can rerag and add a tab to the second line:

      John Doe
      The Second

      The problem is that I have done most of this manually with forced line breaks, but I need to find the few culprits that my eyes have missed. So setting up a script won’t pin the ones that need to be reragged and tabbed.

      Does that make sense? Sorry this is such a specific situation, but its something that seems to come up for me a lot!

      Thanks!!

      • #90307
        David Blatner
        Keymaster

        I’m glad you explained why you want to do this. Maybe there is a cleaner way to do this. Instead of breaking it up and adding tabs, I suggest using a “hanging indent.”

        Set the left indent of the paragraphs to about .5″
        Then set the First Line Indent (that is a different field in the Control panel or the Paragraph panel) to -.5″ (a negative number).

        That makes all subsequent lines indented.

        More on the topic here: https://creativepro.com/how-to-hang-text-in-the-margin.php

    • #90316
      Lily Alayeva
      Member

      Sorry, this still doesn’t address the issue. It is less about the tabs, more about the “find.”

      I will keep looking.

      Thanks!

    • #90328

      What the heck? My post disappeared :(

      TWO posts have now disappeared!

    • #90331

      I think the best you can do is do what David suggests. But I’d also suggest you go to your “indents and spacing” (in your style sheet) and select balance ragged lines. I’m guessing the entries are ragged?

      I don’t think there is a way to search on a line ending, as it’s a built in feature of InDesign and there are no special characters to search on when it comes to that.

      What kind of job are you working on? Is it entirely a list of names and addresses? Epigraph sources?

      Maybe you can post a pic (though you would have to use a image hosting service to do so). I’d mention a few names, but I won’t as maybe that is why my earlier post from a few minutes ago ended up in limbo or was considered spam by the site for some reason.

      Maybe if we had an idea of what your project looks like we might be able to come up with a possible solution.

    • #90352

      First of all, I would never do that with a forced line break or a tab. > Use a character style with ‘no Break’ instead.

      Second, why no script? A script could search for every paragraph with MORE than one line and check, if those paragraphs with two lines have a forced line break already. If not, highlight the lines with a condition.

      Kai

Viewing 8 reply threads
  • You must be logged in to reply to this topic.
>
Notice: We use cookies on our websites to give you a great online experience. If you keep browsing, we'll assume you're ok with this. For more information, see our privacy policy. By closing this banner, you agree to the use of cookies.I AGREENo