Discussion:
[scribus] Removing extra spaces??
Ian Whitfield
2014-11-05 16:31:56 UTC
Permalink
Hi All

I was just wondering if there is a method, (or Macro??), available to
check all the text in a frame and remove any and all extra spaces?

I have just had a session with a difficult batch of text that had lots
of random extra spaces so wondered how to get rid of these easily.

Thanks for any help or suggestions.

IanW
Pretoria RSA.

___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
Gregory Pittman
2014-11-06 00:35:57 UTC
Permalink
Post by Ian Whitfield
Hi All
I was just wondering if there is a method, (or Macro??), available to
check all the text in a frame and remove any and all extra spaces?
I have just had a session with a difficult batch of text that had lots
of random extra spaces so wondered how to get rid of these easily.
Thanks for any help or suggestions.
Yes, it's possible. The Autoquote.py script detects typewriter quotes,
then deletes them and replaces them with typographic quotes.

The en+emdash.py script detects hyphens. A single one is left alone. Two
in a row change to an en dash, 3 in a row to an em dash.

So spaces could certainly be deleted, you just have to figure out the
algorithm for deciding which ones to delete, 2 in a row, something else?

Greg


___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
John Jason Jordan
2014-11-06 02:01:59 UTC
Permalink
Post by Ian Whitfield
I was just wondering if there is a method, (or Macro??), available to
check all the text in a frame and remove any and all extra spaces?
When I first read this question my immediate reaction was to suggest
what I would do if faced with the same problem. I would open the text
in the story editor, select all, and cut to the clipboard. The story
editor is now empty.

I would then open a new, blank LibreOffice/OpenOffice Writer document
and paste the text into it. I would use the search and replace
functions in Writer to search for double spaces and replace with a
single space. When finished I would select all the text, copy to the
clipboard, go back to the story editor in Scribus, and paste it in.

My life is easier if I don't use Scribus as a word processor and I don't
use Writer as a layout application. Please feel free to modify one of
the scripts mentioned above to do the job, but for me search and
replace already exists in LO/OO Writer, so why should I reinvent the
wheel?

___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
JLuc
2014-11-06 08:20:15 UTC
Permalink
Post by John Jason Jordan
Post by Ian Whitfield
I was just wondering if there is a method, (or Macro??), available to
check all the text in a frame and remove any and all extra spaces?
When I first read this question my immediate reaction was to suggest
what I would do if faced with the same problem. I would open the text
in the story editor, select all, and cut to the clipboard. The story
editor is now empty.
I would then open a new, blank LibreOffice/OpenOffice Writer document
and paste the text into it. I would use the search and replace
functions in Writer to search for double spaces and replace with a
single space. When finished I would select all the text, copy to the
clipboard, go back to the story editor in Scribus, and paste it in.
And then your text has no more stle at all
and you have to restore all styles.
Post by John Jason Jordan
My life is easier if I don't use Scribus as a word processor and I don't
use Writer as a layout application. Please feel free to modify one of
the scripts mentioned above to do the job, but for me search and
replace already exists in LO/OO Writer, so why should I reinvent the
wheel ?
Let's hope scribus search and replace dialog will be fixed or improved
so it can be used as easily as you use LO/OO's one.

JL


___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
john Culleton
2014-11-15 21:19:59 UTC
Permalink
On Wed, 5 Nov 2014 18:01:59 -0800
Post by John Jason Jordan
Post by Ian Whitfield
I was just wondering if there is a method,
(or Macro??), available to check all the text
in a frame and remove any and all extra
spaces?
When I first read this question my immediate
reaction was to suggest what I would do if
faced with the same problem. I would open the
text in the story editor, select all, and cut
to the clipboard. The story editor is now empty.
I would then open a new, blank
LibreOffice/OpenOffice Writer document and
paste the text into it. I would use the search
and replace functions in Writer to search for
double spaces and replace with a single space.
When finished I would select all the text, copy
to the clipboard, go back to the story editor
in Scribus, and paste it in.
it might be faster/easier to edit the text in
Gvim.

John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: "Create Book Covers with Scribus"
available at
http://www.booklocker.com/books/4055.html

___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net

Peter Nermander
2014-11-06 06:22:06 UTC
Permalink
Post by Gregory Pittman
So spaces could certainly be deleted, you just have to figure out the
algorithm for deciding which ones to delete, 2 in a row, something else?
That's en easy one: replace each <space><space> with <space>. Repeat until
no replacement is done.

I have a Word macro doing just that, I used it a lot a few years ago when I
was receiving contributions for a magazine. I run my macro manually until
it says "0 replacements were done", but that part can most likely be
automated.

I also had a macro converting "double enter" paragraphs break into real
ones. What it does is that first it replaced all paragraph breaks by line
breaks. Then all <line break><whitespace><line break> were replaced by
<line break><line break> (sometimes the empty line between two paragraphs
have a space or a tab), then all double line breaks were replaced by
paragraph breaks before all remaining line breaks were replaced by a space.

This will however remove any intentional mid-paragraph line break, so care
must be taken to not run it blindly. Usually such mid-paragraph line breaks
can be circumvented by using hard spaces or soft hyphenation instead of a
line break.

/Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20141106/aa2177d7/attachment.html>
___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
Joe Zeff
2014-11-06 07:03:04 UTC
Permalink
Post by Peter Nermander
That's en easy one: replace each <space><space> with <space>. Repeat until
no replacement is done.
Some of us still believe that the period at the end of a sentence needs
to be followed by two spaces, not one.

___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
Chris Bannister
2014-11-08 11:31:30 UTC
Permalink
Post by Peter Nermander
Post by Peter Nermander
That's en easy one: replace each <space><space> with <space>. Repeat until
no replacement is done.
Some of us still believe that the period at the end of a sentence needs to
be followed by two spaces, not one.
Wasn't that just because of fixed width fonts? I believe that practice
today is archaic and unnecessary.

That was from an interesting book that I read, "The Mac is not a typewriter"
--
"If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the
oppressing." --- Malcolm X

___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
Gregory Pittman
2014-11-08 14:11:41 UTC
Permalink
Post by Chris Bannister
Post by Peter Nermander
Post by Peter Nermander
That's en easy one: replace each <space><space> with <space>. Repeat until
no replacement is done.
Some of us still believe that the period at the end of a sentence needs to
be followed by two spaces, not one.
Wasn't that just because of fixed width fonts? I believe that practice
today is archaic and unnecessary.
That was from an interesting book that I read, "The Mac is not a typewriter"
My sense from reading various sources is that things like this were
conventions that individual publishers would establish. One such
convention was following a sentence with an em space, so we're
traditionally talking about proportional fonts as printing typically
used. It was the advent of typewriters that translated this em space to
two monospaces.

As often happens, conventions morph into rules, and I suppose you might
say that a convention at a particular publisher was in essence a rule,
except that over the years conventions are changed.

I think one would have difficulty showing that having a single space
after a sentence makes for any problem with reading. If we consider
typographical gray, double spaces can introduce some unpleasant white
spots dotted through your text, or even lead to rivers. We're reading
web pages all the time, where double spaces don't exist.

At the same time, with all the wide variety and quality of fonts in
existence, I can imagine that there may be some fonts for which a little
extra space might be desirable for appearance's sake and legibility. But
remember, we want to show off Scribus's typographic capabilities*, so
why not use an em space instead of two regular spaces? This is a job a
script could easily accomplish.

Greg

* And we also want to continue, if not resurrect the artful tradition of
typography.

___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
Chris Bannister
2014-11-09 04:55:13 UTC
Permalink
Post by Gregory Pittman
Post by Chris Bannister
Wasn't that just because of fixed width fonts? I believe that practice
today is archaic and unnecessary.
That was from an interesting book that I read, "The Mac is not a typewriter"
My sense from reading various sources is that things like this were
conventions that individual publishers would establish. One such
convention was following a sentence with an em space, so we're
traditionally talking about proportional fonts as printing typically
used. It was the advent of typewriters that translated this em space to
two monospaces.
As often happens, conventions morph into rules, and I suppose you might
say that a convention at a particular publisher was in essence a rule,
except that over the years conventions are changed.
Thanks for the elucidation. :)
--
"If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the
oppressing." --- Malcolm X

___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
Peter Nermander
2014-11-06 07:10:27 UTC
Permalink
Post by Peter Nermander
That's en easy one: replace each <space><space> with <space>. Repeat until
Post by Peter Nermander
no replacement is done.
Some of us still believe that the period at the end of a sentence needs to
be followed by two spaces, not one.
IMHO you should never use double spaces to get a bigger space, instead use
a wider space. (This is also more consistent with how TeX works.)

Unicode contains several suitable spaces.
https://www.cs.tut.fi/~jkorpela/chars/spaces.html

(And in Swedish it has never ever been correct with two spaces after a
period, I think it may be the same for many other languages.)

/Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20141106/fdbef6d9/attachment.html>
___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
Joe Zeff
2014-11-06 07:20:49 UTC
Permalink
Post by Peter Nermander
IMHO you should never use double spaces to get a bigger space, instead use
a wider space. (This is also more consistent with how TeX works.)
That would be a good idea if I were using TeX. I do my composition in
LibreOffice and my page layout in Scribus.

___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
Peter Nermander
2014-11-06 07:25:03 UTC
Permalink
Post by Peter Nermander
IMHO you should never use double spaces to get a bigger space, instead use
Post by Peter Nermander
a wider space. (This is also more consistent with how TeX works.)
That would be a good idea if I were using TeX. I do my composition in
LibreOffice and my page layout in Scribus.
Scribus (and a far as I know also Libre Office) fully supports unicode,
thus you can use EM SPACE for sentence spacing instead of two spaces.

Or you can just forget my tips on how to remove extra spaces and be happy.
I'm not forcing you to use it.

/Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20141106/d055d9a0/attachment.html>
___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
Joe Zeff
2014-11-06 07:36:41 UTC
Permalink
Post by Peter Nermander
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.

___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
Jean-Paul Gendner
2014-11-06 07:41:11 UTC
Permalink
How did you do to enter em spaces, for example in Word or Libre Office?
Thanks in advance,
Jean-Paul

****************
Jean-Paul Gendner
Site : f5bu.fr

-----Message d'origine-----
De : Peter Nermander [mailto:***@nermander.se]
Envoyé : jeudi 6 novembre 2014 08:25
À : Scribus User Mailing List
Objet : Re: [scribus] Removing extra spaces??
Post by Peter Nermander
IMHO you should never use double spaces to get a bigger space, instead use
Post by Peter Nermander
a wider space. (This is also more consistent with how TeX works.)
That would be a good idea if I were using TeX. I do my composition in
LibreOffice and my page layout in Scribus.
Scribus (and a far as I know also Libre Office) fully supports unicode,
thus you can use EM SPACE for sentence spacing instead of two spaces.

Or you can just forget my tips on how to remove extra spaces and be happy.
I'm not forcing you to use it.

/Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.scribus.net/pipermail/scribus/attachments/20141106/d055d9a0/at
tachment.html>
___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net


___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
Peter Nermander
2014-11-06 07:42:04 UTC
Permalink
Post by Peter Nermander
Or you can just forget my tips on how to remove extra spaces and be happy.
Post by Peter Nermander
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>
___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
Joe Zeff
2014-11-06 07:46:31 UTC
Permalink
Post by Peter Nermander
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.
Or, to do it the way I want, have <period><space><space> be a special
case that the macro doesn't change.

___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
Peter Nermander
2014-11-06 07:48:26 UTC
Permalink
Post by Jean-Paul Gendner
How did you do to enter em spaces, for example in Word or Libre Office?
I've never used it (since I've never had the need for it), but according to
Google you can enter any unicode character the following ways:

In Libre Office: Ctrl-Shift-u, 4 digit hex unicode, Enter.

In Windows (including Word): Alt-Numpad+, 4 digit hex unicode while keeping
Alt down, release Alt.

/Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20141106/6f4a0c94/attachment.html>
___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
John Jason Jordan
2014-11-06 08:05:56 UTC
Permalink
On Thu, 6 Nov 2014 08:48:26 +0100
Post by Peter Nermander
Post by Jean-Paul Gendner
How did you do to enter em spaces, for example in Word or Libre Office?
I've never used it (since I've never had the need for it), but
according to Google you can enter any unicode character the following
In Libre Office: Ctrl-Shift-u, 4 digit hex unicode, Enter.
In Windows (including Word): Alt-Numpad+, 4 digit hex unicode while
keeping Alt down, release Alt.
Both Writer and Word have autocorrect functions where you can define a
key sequence that is to be changed to something else. For example, in
Writer I added space-hyphen-space and set up the autocorrect to change
it to space-en-dash-space ('cause I like an en-dash with spaces rather
than the more popular em-dash without spaces).

So if you want an em-dash in Writer just choose a key sequence that you
would not normally type and tell the program to autocorrect it to an
em-dash. No need to enter a hex code every time you need the character.

___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
Peter Nermander
2014-11-06 07:50:55 UTC
Permalink
Or, to do it the way I want, have <period><space><space> be a special case
that the macro doesn't change.
Yes, that would in worst case just leave a few places where they would
manually have to remove extra spaces after a period that is not between
sentences.

So, how is your suggested code to do that?

/Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20141106/76c2e68e/attachment.html>
___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
Joe Zeff
2014-11-06 07:59:31 UTC
Permalink
Post by Peter Nermander
So, how is your suggested code to do that?
It's been decades since I did any coding, I'm not familiar with whatever
language the macros use and I have no need for the macro. As I wrote a
few minutes ago, I was only pointing out a potential corner case. If
you prefer not to take it into account, it will have no effect on my
work flow, so do as you wish.

___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
John Brown
2014-11-06 11:52:45 UTC
Permalink
Post by Peter Nermander
Or, to do it the way I want, have <period><space><space> be a special case
that the macro doesn't change.
Yes, that would in worst case just leave a few places where they would
manually have to remove extra spaces after a period that is not between
sentences.
So, how is your suggested code to do that?
1) Replace <period><space><space> with something-that-does-not-occur-in-your-text.
2) REPEAT
        Replace <space><space> with <space>
    UNTIL there is nothing to replace.
3) Replace something-that-does-not-occur-in-your-text with <period><space><space>.

Regards,
John Brown.


___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
Ian Whitfield
2014-11-06 14:02:24 UTC
Permalink
WOW!! Guess I started something this time!!

Thanks for the replies - I think the answer - for now - is the idea to
run the text through LO Writer first and dig the extra spaces out there.

As somebody said I have to try and stop using Scribus as a
Wordprocessor!! (But it works so much better that way!!)

Thanks once again - appreciated!!

_
°v° IanW
/(_)\ Pretoria RSA
^ ^


___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
Gregory Pittman
2014-11-07 01:22:13 UTC
Permalink
WOW!! Guess I started something this time!!
Thanks for the replies - I think the answer - for now - is the idea to
run the text through LO Writer first and dig the extra spaces out there.
As somebody said I have to try and stop using Scribus as a
Wordprocessor!! (But it works so much better that way!!)
I was hoping you would give us some indication of what you meant by
extra spaces. Two in a row is one situation, but there might be others,
like a space after a period which is followed by a newline.

You can use a text editor like KWrite to remove all sorts of things,
especially when you use regexp methods.
One of the features of scripts like Autoquote.py is that they can leave
everything else intact. What you see when you look at text are the
printable characters, but there are a number of nonprinting characters
also, used to trigger a character style or something else. The script
leaves those alone. If you're dealing with some text in Scribus where
you have applied styles, I'm not sure how these are exported to
LibreOffice, my guess is they aren't.

Greg

___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
Ian Whitfield
2014-11-07 10:52:23 UTC
Permalink
*Thanks Greg*

The main problem I have comes from scanning of old printed documents,
(using YAGF/Tesserect), and then moving the corrected text into Scribus.
I find that the scanning process seems to arbitrarily add extra spaces
between some words and remove the spaces between some words. The latter
is easy to see and pick-up but the former is more difficult - specially
when your Text Style is Justified!!

So for me I was just looking for a way to detect double spaces and
remove one of them. I was also taught that you NEVER put two spaces at
the end of a sentence so it would eliminate that problem for me as well
which I pick-up from eMails and other Wordprocessing documents that I
get sent.

I have started to copy the text into LO Writer now and do a 'Find and
Replace' which works well but is an extra step in the process. I thought
a small Script in Scribus might be able to do this.

Although I know Scribus is NOT a Wordprocessor I do think all the basic
Wordprocessor functions should be present to aid in the work flow.

Thanks - I appreciate the help.

Regards from South Africa

_
°v° IanW
/(_)\ Pretoria RSA
^ ^
Post by Gregory Pittman
WOW!! Guess I started something this time!!
Thanks for the replies - I think the answer - for now - is the idea
to run the text through LO Writer first and dig the extra spaces out
there.
As somebody said I have to try and stop using Scribus as a
Wordprocessor!! (But it works so much better that way!!)
I was hoping you would give us some indication of what you meant by
extra spaces. Two in a row is one situation, but there might be
others, like a space after a period which is followed by a newline.
You can use a text editor like KWrite to remove all sorts of things,
especially when you use regexp methods.
One of the features of scripts like Autoquote.py is that they can
leave everything else intact. What you see when you look at text are
the printable characters, but there are a number of nonprinting
characters also, used to trigger a character style or something else.
The script leaves those alone. If you're dealing with some text in
Scribus where you have applied styles, I'm not sure how these are
exported to LibreOffice, my guess is they aren't.
Greg
___
http://lists.scribus.net/mailman/listinfo/scribus
http://wiki.scribus.net
http://forums.scribus.net
--
___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
Ian Whitfield
2014-11-07 16:09:16 UTC
Permalink
Thanks Richard

You got me thinking..... So I tried the Scribus "Search and Replace" and
selected 'Text', typed two spaces in the first box and one Space in the
second box, (you don't see anything!!) - selected 'Search' and then
'Replace All'. - AND IT WORKED!!!

Thanks - my problem is solved!!
Post by Ian Whitfield
_
°v° IanW
/(_)\ Pretoria RSA
^ ^
___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
Gregory Pittman
2014-11-09 03:07:02 UTC
Permalink
In my tinkering way I have made a script that gives you two
possibilities, changing a double space to an em space, or to a single space.

http://wiki.scribus.net/canvas/Double2emspace.py

As you can see at the bottom of the wiki page, I didn't really like the
end result of an em space between sentences, but perhaps there might be
some nostalgic use someone might have for this.

Greg

___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
john Culleton
2014-11-13 20:56:46 UTC
Permalink
On Sat, 08 Nov 2014 22:07:02 -0500
Post by Gregory Pittman
In my tinkering way I have made a script that
gives you two possibilities, changing a double
space to an em space, or to a single space.
http://wiki.scribus.net/canvas/Double2emspace.py
As you can see at the bottom of the wiki page,
I didn't really like the end result of an em
space between sentences, but perhaps there
might be some nostalgic use someone might have
for this.
Greg
_______________________________________________________
Unlimited Disk, Data Transfer, PHP/MySQL Domain
Hosting http://www.doteasy.com
A little history. Books published prior to
about 1930 in the USA used a little extra space
after comma etc. and more after a full stop. I
have a book published in 1907 where the extra
spacing is clearly visible. When the typewriter
came along the instructions were to put two space
characters after a full stop to emulate this
practice. In the 1930's the extra spacing was
removed by publishers, presumably hoping to save
pages. At that time setting two spaces at the end
of a full stop was deprecated as being
"typewriter spacing."

When TeX was created in about 1971 or
thereabouts the default spacing was a small
extra amount after comma, a little more after
colon and semicolon and two full
ems after a full stop like period, question
mark. To disable this one inserts the command
\frenchspacing


There are two macros in plain TeX and indeed in
all other TeX formats that define \frenchspacing
and \nonfrenchspacing. One can redefine one of the
macros to set more reasonable values for a
particular book. I happen to prefer some extra
space after a punctuation mark, e.g. after a full
stop but not the two full spaces (roughly) that
are the default in TeX. In my view extra space
increases readability, I can't use too much space
however because some purist will scream
"typewriter spacing." And of course Europeans can
always use the unaltered version of
\frenchspacing.

The command that defines the width of each
letter is \sfcode. The default \sfcode for lower
case letters and punctuation is e.g.,
\sfcode'a=1000

The macros are on page 351 of "The TeXBook" for the
curious.

What is the effect on Scribus? By default it
uses the equivalent of \frenchspacing. I don't
propose to change that in my books. But for
long text only books I use TeX anyhow. Scribus is
a different animal.

John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: "Create Book Covers with Scribus"
available at
http://www.booklocker.com/books/4055.html

___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
Joe Zeff
2014-11-13 21:34:36 UTC
Permalink
Post by john Culleton
When the typewriter
came along the instructions were to put two space
characters after a full stop to emulate this
practice.
You do know, don't you, that the typewriter was invented in the 1860's,
and The Adventures of Tom Sawyer (1876) was probably the first book
written using a typewriter? All of this long predates everything in
your history.

___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
Gregory Pittman
2014-11-14 02:54:58 UTC
Permalink
Post by Joe Zeff
Post by john Culleton
When the typewriter
came along the instructions were to put two space
characters after a full stop to emulate this
practice.
You do know, don't you, that the typewriter was invented in the
1860's, and The Adventures of Tom Sawyer (1876) was probably the first
book written using a typewriter? All of this long predates everything
in your history.
You have to consider that with John, everything is another opportunity
to talk about TeX, which as we know, he is quite fond of.

Greg

___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
john Culleton
2014-11-14 21:41:35 UTC
Permalink
On Thu, 13 Nov 2014 21:54:58 -0500
Post by Gregory Pittman
Post by Joe Zeff
Post by john Culleton
When the typewriter
came along the instructions were to put two
space characters after a full stop to
emulate this practice.
You do know, don't you, that the typewriter
was invented in the 1860's, and The
Adventures of Tom Sawyer (1876) was probably
the first book written using a typewriter?
All of this long predates everything in your
history.
You have to consider that with John, everything
is another opportunity to talk about TeX, which
as we know, he is quite fond of.
Greg
_______________________________________________________
Unlimited Disk, Data Transfer, PHP/MySQL Domain
Hosting http://www.doteasy.com
OK. However for printed books in the U.S.the extra
space after punctuation persisted until at least
1923 and probably later. I had one book printed
in the 1860's but it seems to have disappeared.
It had extra space as I recall. I found one book
published as recently as 1960 that had extra
space after each period but that was a reprint of
some Sherlock Holmes stories so perhaps that was
the motive.

I like and use a variety of Open Source programs.
I mention TeX a lot but if you notice my sig
block I advertise a book on a Scribus
application. There are horses for courses and
happily we have a long list of programs to choose
from.
--
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: "Create Book Covers with Scribus"
available at
http://www.booklocker.com/books/4055.html

___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
Chris Bannister
2014-11-15 15:39:58 UTC
Permalink
Post by Joe Zeff
Post by john Culleton
When the typewriter
came along the instructions were to put two space
characters after a full stop to emulate this
practice.
You do know, don't you, that the typewriter was invented in the 1860's,
and The Adventures of Tom Sawyer (1876) was probably the first book
written using a typewriter? All of this long predates everything in your
history.
You have to consider that with John, everything is another opportunity to
talk about TeX, which as we know, he is quite fond of.
So it *wasn't* you who wrote the typewriter practice course? :)
--
"If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the
oppressing." --- Malcolm X

___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
Peter Nermander
2014-11-15 07:57:30 UTC
Permalink
Post by john Culleton
OK. However for printed books in the U.S.the extra
You have to consider that 95% of the people in the world DO NOT live in the
U.S.

/Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20141115/ef74f815/attachment.html>
___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
john Culleton
2014-11-15 15:54:27 UTC
Permalink
On Sat, 15 Nov 2014 08:57:30 +0100
Post by Peter Nermander
Post by john Culleton
OK. However for printed books in the U.S.the
extra
You have to consider that 95% of the people in
the world DO NOT live in the U.S.
/Peter
True enough. My market however is in the USA. On
my only foreign contract things didn't go well.



John Culleton Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: "Create Book Covers with Scribus"
available at
http://www.booklocker.com/books/4055.html

___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
Continue reading on narkive:
Loading...