Ask Your Question
0

two intervals after end of sentence

asked 2018-11-30 14:01:22 +0100

jojopara gravatar image

Hello,

I put two intervals beweetn sentence as I think this is more pleasing to the eye. How can I replace the one intervals of an imported text with two?

Thank you.

edit retag flag offensive close merge delete

4 Answers

Sort by » oldest newest most voted
1

answered 2018-12-02 14:22:40 +0100

BigRAl gravatar image

You do not need to change any style or use regular expressions here.

Go to the top of your document and press Ctrl+H. This will open the Find and Replace dialog.
Ensure that 'Regular expressions' is not ticked.

In the Find box type a dot and one space.
In the Replace box type a dot and two spaces.
Click Replace All.
Close the Find and Replace dialog.

edit flag offensive delete link more

Comments

But be careful with shortcuts like "e.g." or others.

ebot gravatar imageebot ( 2018-12-02 14:37:56 +0100 )edit

Good catch @ebot - thanks!

BigRAl gravatar imageBigRAl ( 2018-12-02 15:50:25 +0100 )edit
0

answered 2018-12-02 19:13:06 +0100

Lupp gravatar image

updated 2018-12-02 19:39:57 +0100

===Editing due to the comment by @Mike Kaganski ===
Go to the final part which is about additional spaces.
To replace a single paragraph break by a sequence of two paragraph breaks, you need to use F&R with the option Regular expressions enabled. Enter the single character $ behind Find: and the sequence \n\n (4 characters) behind Replace:. Then order Replace All.
Be sure to understand that you will get two empty paragraphs for each single empty paragraph if there was any.
I do not know a way to double hard line breaks using F&R. The extension AltSearch can do that.
The standard way to get additional distance between paragraphs is to add a Spacing below paragraph to the used paragraph style. (Tab Indents & Spacing)

===See below===

If you actually want to get an additional horizontal space between sentences you need to identify the end of any sentence. Supposing the end of a sentence is marked by (exactly) one of the punctuation characters !.? you can search for ([!\?\.]) and replace with $1 with a space bhind the $1. However, you will then get from He asked, "did you read it?" a He asked, "did you read it? " and this may not be what you want. Things get complicated at that point. ((!"|\."|\?")|[!\?\.]) can help.

edit flag offensive delete link more

Comments

I had made the same mistake, and had do remove my answer afterwards. The OP wants two space chars after each sentence, not two paragraphs after each paragraph...

Mike Kaganski gravatar imageMike Kaganski ( 2018-12-02 19:22:47 +0100 )edit

You really sure? I'm not.

Lupp gravatar imageLupp ( 2018-12-02 19:33:12 +0100 )edit

After all I'm at least sure to have wasted time again. A solution by F&R seems too complicated, imo.

Lupp gravatar imageLupp ( 2018-12-02 19:41:35 +0100 )edit
0

answered 2018-12-01 16:10:15 +0100

jojopara gravatar image

Thank you for your suggestion and comments. However, I do not know how to make use of them with the exception that I leave one space even after the end of the sentence.

Trying to follow the answer: I go to Styles, select Text Body then Edit Style where I do not see a way to add two spaces. There is spacing above and below paragraph.

The first comment helped me. I tried to do it this way but went wrong in some way.

Thank you all.

edit flag offensive delete link more

Comments

This is not an answer to your own question. Please use the tool "add a comment" for posts of this kind.
Please make sure to use the term space only if you actually mean the non-printing little whitespace between two words (e.g.).
If you mean something concerning line wrapping (vertical positioning of text) there are two possibilities being different in a relevant way: NewLine (hard line break) and NewParagraph (paragraph break).
I feel sure you were talking of paragraph breaks.

Lupp gravatar imageLupp ( 2018-12-02 19:01:37 +0100 )edit
0

answered 2018-12-01 16:22:52 +0100

andylyke gravatar image

I'm kind of a stumble - bum when it comes to regular expressions, and don't have my cheat sheet handy, but I believe you can search for the dot character followed by only one space and an alpha character, then replace with dot space space same character.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-11-30 14:01:22 +0100

Seen: 89 times

Last updated: Dec 02 '18