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

Grep help request

Return to Member Forum

  • Author
    Posts
    • #61606
      Gobit
      Member

      And a very merry morning to you all

      I'm laying up a 600-odd page book for a client who went to design school some years ago where it was drilled into her that “Thou shalt never ever have an orphan” (she means runt). She is insisting that every last runt in the book be exterminated irrespective of word or line length, rivers created or insane ragging. The book contains a lot of text-wrapped anchored boxes,diagrams, etc so of course, every time there's a copy change these move creating new runts. Instead of proofing for important things like correlation of diagrams with text, etc she is fixated on these runts.

      To prevent what little brain I have left from exploding I'd like to write the following Find/Change but have not been able to get the language correct:

      Find: Any word preceded by a space and followed by a paragraph mark

      Change: the space to a nonbreaking space

      Is any of you fine folks able to spare a few minutes to write the Grep for me?

      Many thanks n cheers, Gobit

    • #61615

      Tried the suggestions in this? https://forums.adobe.com/message/4098840

    • #61621
      Gobit
      Member

      Hi Jongware

      Hadn't been able to find in the Adobe forums so thanks for pointing that thread out to me.

      Have tried Peter Spiers' GREP but it unfortunately it doesn't quite seem to run properly for me.

      Will post further there.

      Thanks n cheers, Gobit

    • #61622

      “It doesn't work for me” is a bit concise. What does(n't) it do that you would(n't)?

      I'm not sure if it's mentioned in that thread but there are good reasons not to blindly apply your rule to any word at the end of a paragraph. What. if it's quite a long word, coincidentally?

    • #61623
      Gobit
      Member

      Hi Jongware

      The bit which doesn't work is:

      Unfortunately,I can't quite get the GREP to run properly. It works for plain ordinary paragraphs but for some reason it only works randomly in bullet/numbered lists of which I unfortunately have quite a few. Also, if the last sentence of a paragraph contains a footnote marker (again many of these), it changes the last word of the actual footnote but not the paragraph which contains the footnote marker.

      I am desperately trying to convince the client that she needs to look at column width, word length, ragging, overall balance, etc but at this point she is absolutely fixated on runts, be it 3 character or 15 character word. She doesn't care if the second-to-last line of a paragraph only runs half a column width as long as the last line has at least two words, of whatever length, on it. I know! That's why my brain is in explosion mode.

      Cheers, Gobit

    • #61624
      Gobit
      Member

      Quick update

      Peter Spiers, in the forum Jongware pointed me at, has managed to get me a lot further down the track.

      https://forums.adobe.com/message/4098840 for more info.

      Thanks, Gobit

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