Scribus Forums

Scribus => Layout Issues => Topic started by: Ewac on December 21, 2021, 07:24:55 AM

Title: Preventing single word lines
Post by: Ewac on December 21, 2021, 07: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?
Title: Re: Preventing single word lines
Post by: rocking on February 27, 2022, 07: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.
Title: Re: Preventing single word lines
Post by: Nermander on February 28, 2022, 09: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.
Title: Re: Preventing single word lines
Post by: elbitjusticiero on March 02, 2022, 10: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.
Title: Re: Preventing single word lines
Post by: Nermander on March 03, 2022, 07: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.
Title: Re: Preventing single word lines
Post by: AdmFubar on March 05, 2022, 07: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.
Title: Re: Preventing single word lines
Post by: amair on March 06, 2022, 08: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
Title: Re: Preventing single word lines
Post by: Ewac on March 08, 2022, 07: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.