7 Replies Latest reply on Jul 22, 2017 8:19 AM by matthew stuart

    Small words on end of lines in paragraphs

    matthew stuart Level 2

      I've recently had a job where in paragraphs I was asked to around to the next line any one, two or three letter words so these words weren't looking like they were out on their own (even if they fell shorter than any line above or below). Never have I been asked to do this before, and I mentioned this to a friend, and he said you can set this in a style sheet or paragraph setting.

       

      Does anybody know anything about this? If so, could you enlighten me please?

       

      BTW: I know you can set a minimum of how many letters fall at the end of a line when using hyphenation by not breaking words under a user defined amount, but I wasn't allowed to use hyphenation.

       

      Thanks.

       

      Mat

        • 1. Re: Small words on end of lines in paragraphs
          SJRiegel Adobe Community Professional & MVP

          Try check-marking Balance Ragged Lines under Indents and Spacing.

          1 person found this helpful
          • 2. Re: Small words on end of lines in paragraphs
            winterm Level 4

            It should work, but not necessary save you from all cases of short 'hanging' words.

            Another possible approach: GREP that searches for whitespace preceded by a 1 or 2 or 3 letter words. Then apply a „No-Break” to the whitespace.

            \b.{1,3}\b\K\s

            You should create NoBreak Char style and implement GREP style in your para style.

            2 people found this helpful
            • 3. Re: Small words on end of lines in paragraphs
              Erica Gamet Adobe Community Professional

              I have a GREP expression I use in paragraph styles...where I apply a "no break" character style to a certain number of characters at the end of a paragraph. To make sure the last 12 characters, for example, don't break, I use .{12}$.

               

              I have a YouTube video explaining it in detail here: How To Eliminate Text Orphans and Widows (Runts)! - YouTube

              1 person found this helpful
              • 4. Re: Small words on end of lines in paragraphs
                matthew stuart Level 2

                Is there a GREP command that applies to the end of each and every line rather than the end of each paragraph?. That would work.

                 

                Currently I have tried things like:

                (\s.{1,3}\s)

                 

                ...but this creates ugly paragraph shapes because you could have a run of one to three character words and they all have the no break style applied. E.g.: 'Is it fun to go ski if you can do it but do not like the cold?' This line doesn't break at all because there are too many one, two and three letter words that are having no breaks applied.

                 

                From what I can tell, there doesn't seem to be a GREP command that looks at the end of each line. Am I right? Please do tell me I'm wrong if you know otherwise, but at the same time as you are telling me I'm wrong, I'd really appreciate you telling me what the command is!

                 

                Thanks for your advice so far.

                • 5. Re: Small words on end of lines in paragraphs
                  Erica Gamet Adobe Community Professional

                  There isn't (as far as I know) a command to tell it end of each line. However, using the $ expression will not only grab end of paragraphs, but also the end of a line where the soft return (shift-return) was used. But it doesn't catch line ending that were generated by ID's paragraph composer. What are you trying to accomplish? Better word spacing per line? Is the Adobe Paragraph Composer checked in your Paragraph panel menu? Also, how are the hyphenation settings?

                   

                  If you do forced line breaks (soft returns), the above GREP expression should still work.

                  1 person found this helpful
                  • 6. Re: Small words on end of lines in paragraphs
                    winterm Level 4

                    Well, that was your original request: to around to the next line any one, two or three letter words.

                    Regex \b.{1,3}\b\K\s does exactly that.

                    I second Erica: there's no regex for the "last character in a line". And I'm not able to see how it could help you if it were.

                    Regarding your sample sentence: it only means that formal letter counting won't work for you. Well, create your own list of the words you don't want to see at the end of a line then.

                    Here's the one "no lines ending with indefinite or definite articles":

                    \b(a|an|the)\b\K\s

                    Feel free to expand the list until you and your client will be satisfied with the result.

                    3 people found this helpful
                    • 7. Re: Small words on end of lines in paragraphs
                      matthew stuart Level 2

                      All I was trying to prevent is small words ending up at the end of each line which overcomes the client asking for those words to be taken around and for me to have to do it before I send to the client. I'd never been asked to do this as a matter of course in 30 years of working as a designer. OK, the odd short word that looked ugly because it's hanging out past lines above and below gets taken around, but not every single word that is short and fits nicely within the paragraph shape!

                       

                      Obviously, doing so many soft returns creates more work when you have to edit a line of text and it falls short of or longer than it's original length, meaning I have to undo and reapply soft line breaks... and having to do it across a 60 page magazine was a little tiresome and easy to miss the odd one or two per page. So, when the client asked me to reduce my invoice for the reason of having to point out taking round short words, I was a bit taken aback, especially when they also claimed I had made ugly paragraph shapes and wanted that taken into account for invoice reduction! Ironically it was the taking around of these words that created the ugly paragraph shapes!!

                       

                      The trouble with taking short words around is it creates rivers down the lefthand side of the paragraph and indeed the column, so you can't win anyway! Better word spacing wasn't an issue really because text aligned left, and hyphenation isn't allowed. I really don't know what their beef is with small words at the end of lines as long as the paragraph shape is aesthetically pleasing and fits with the design... but then, design is so subjective and everybody is a designer nowadays, aren't they ;-)

                       

                      Thanks for all your advice anyway. Next time I'll use a combination of \b(a|an|the)\b\K\s and .{13}$, but the more I tested what I was, asking the more I was convinced it's not possible and the client is just very particular in their wants.