[scribus] Removing extra spaces??

Peter Nermander peter at nermander.se
Thu Nov 6 07:42:04 UTC 2014


> Or you can just forget my tips on how to remove extra spaces and be happy.
>> I'm not forcing you to use it.
>>
>
> Naturally.  I just brought it up to point out that there are cases where
> for one reason or another your algorithm won't quite do what the user
> really wants.
>

It does what was asked for here: Removes extra spaces.

What you are asking for is "Remove extra spaces, except where there are two
spaces between sentences". The hard part is to detect "between sentences".
Otherwise you could amend my algoritm with a "replace all <period><space>
with <period><em space>. But the sequence <period><space> may be present in
other places than between sentences.

So, my take is that if you want double spaces between sentences, there is
no easy way to remove all other extra spaces.

/Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20141106/fa7aa04f/attachment.html>


More information about the scribus mailing list