Author Topic: Preventing single word lines  (Read 720 times)

Ewac

  • Newbie
  • *
  • Posts: 47
  • Karma: 0
  • Scribus User
Preventing single word lines
« on: December 21, 2021, 08:24:55 am »
Hello,
I've been trying to find a setting that would allow me to tell scribus not to create lines with single words. I have text that has justified alignment and hyphenation as settings. I have been going through everything manually to check that at the end of the paragraphs there isn't just one single word or even hyphenated word part and have adjusted hyphenation and line breaks manually.

Is there an automated setting for this that I am not aware of or is it just something that has to be done manually?

rocking

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
  • Scribus User
Re: Preventing single word lines
« Reply #1 on: February 27, 2022, 08:53:20 pm »
There are orphan line settings, but I am unaware of any similar software that will limit a line to a single word.   I don't even know what you would want Scribus to do at that point?  Should it delete characters or words so it fits without have an orphan word?  Or should it add words so the last one is not so lonely?

I think what you are doing (manual review) is really the only way to accomplish your goal.

Nermander

  • Hero Member
  • *****
  • Posts: 1517
  • Karma: 19
Re: Preventing single word lines
« Reply #2 on: February 28, 2022, 10:22:14 pm »
Yes, I was wondering the same, what would you expect Scribus to do if there is a final line with just one word?

I guess once you know that, it would be possible to write a script to do it.

elbitjusticiero

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
  • Scribus User
Re: Preventing single word lines
« Reply #3 on: March 02, 2022, 11:52:23 pm »
In a word processor, if you want to achieve this, you'd hit Shift+Enter instead of Enter in a justified paragraph, and the last line will stretch.

Whether this looks good or not depends heavily on how many words you have in that line.

Also, for single word lines, I wouldn't expect this to work.

Nermander

  • Hero Member
  • *****
  • Posts: 1517
  • Karma: 19
Re: Preventing single word lines
« Reply #4 on: March 03, 2022, 08:13:34 pm »
Scribus already has the option to margin adjust the last line, but that will not work if there is just one word there, needs two words.

AdmFubar

  • Full Member
  • ***
  • Posts: 136
  • Karma: 2
  • Scribus User
Re: Preventing single word lines
« Reply #5 on: March 05, 2022, 08:30:53 am »
            x              (x)                    Quick and dirty solution: Adjust the font size a bit, try shrinking the font in the paragraph by half a point or one point if needed. Most readers wont notice the size difference unless they really are paying attention.

amair

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
  • Scribus User
Re: Preventing single word lines
« Reply #6 on: March 06, 2022, 09:32:22 am »
Hi,

sometimes there could be only some characters on the last line if hyphenation is active. In that case I play with "Text Properties / Advanced Settings", namely "Word Tracking" and "Glyph Extension".

Maybe the OP wants Scribus to also consider the number of characters on the last line while calculating the "Word Tracking" and "Glyph Extension" values for the paragraph lines.
Might be a cool feature, but I think one has always optimize manually.

Best regards,
Andreas

Ewac

  • Newbie
  • *
  • Posts: 47
  • Karma: 0
  • Scribus User
Re: Preventing single word lines
« Reply #7 on: March 08, 2022, 08:16:07 am »
Thanks everyone for the replies!
What I have been doing manually and what I would wish Scribus would do, would be to adjust hyphenation, word tracking and gylph extension in such a way that the last line consists of either a word with a certain minimum amount of characters or two words, but avoiding a short single word or hyphenated word part.
From what I understand there is no feature like that and manual adjustment is the way to go.

 

palmate