[scribus] Keep Two Adjacent Words One Space Width Apart

Matt Miller matt.miller at fastmail.com
Mon Feb 15 14:18:24 UTC 2021


On Sun, Feb 14, 2021, at 16:14, Christoph Schäfer wrote:
> 
> 
> > Gesendet: Sonntag, 14. Februar 2021 um 23:52 Uhr
> > Von: "Matt Miller" <matt.miller at fastmail.com>
> > An: scribus at lists.scribus.net
> > Betreff: [scribus] Keep Two Adjacent Words One Space Width Apart
> >
> > My text alignment is "Align Text Justified" but there are some places where I'd like two particular adjacent words to stay exactly one space-width apart, while the rest of the text in that paragraph is justified.  So far the only workaround I've found is to select the two words and set "Manual Tracking" to whatever negative percent value looks good.  I have many places where I'd like this effect, and manual tweaking is a lot of work.  The negative percent I need is different in each case depending on how justification has changed the word spacing of that particular line, so I'm not seeing how to script this.
> > 
> > I think it would be ideal if there were some character that printed as a space but was not considered a word delimiter by the justification algorithm.  I'm open to using any Unicode character out there.  In all cases where I need this effect the two words in question would be the first two words of the Scribus paragraph.
> > 
> > My document is the Bible in traditional two-column pages, where each verse (except the first verse of a chapter) has the verse number as its first word.  If that verse is also considered by the Bible to be the start of a new paragraph (which is not a Scribus paragraph since Scribus sees each verse as a distinct paragraph) then the second word of that verse is the pilcrow character, and in that case I want the pilcrow to not float out into the rest of the justified line.  Instead I want the pilcrow to always be one space width away from the verse number.
> > 
> > Thanks.
> > 
> 
> Hi Matt,
> 
> 
> Here's a possible workaround: Create a character style with text colour 
> "None", then insert any glyph you deem appropriate in terms of its 
> width instead of an empty space, and finally apply that style to the 
> character,
> 
> Example:
> 
> §m& <<-- Select m and apply the character style.
> 
> 
> HTH
> Christoph

That works fine, thanks.  So far the other idea of replacing the space with the mid space is also working and seems to be a bit simpler.  The technique of making a glyph invisible is good to know, though.  I'm just getting started with Scribus and appreciate any ideas.


-- 

  Matt Miller
  mailto:matt.miller at fastmail.com



More information about the scribus mailing list