As in, if I paste a block of text into Libre Writer that is 10 setences (for example) how can I add a paragraph break after each setence in one go?
Thanks.
As in, if I paste a block of text into Libre Writer that is 10 setences (for example) how can I add a paragraph break after each setence in one go?
Thanks.
Line break? Paragraph break?
Different things!
Henry then replied: “With what shall I fix it, dear Liza?”, but Liza didn’t answer again, and only shouted: “Keep still now!”.
How many sentences?
Sorry, I meant paragraph break. No specific amount of sentences.
Also. Do you know how I just remove text between [ ] in a file?
E.g. Hi.[check page 2]How are you?[check page 4]I’m okay.[Check page 6]
To become -
Hi. How are you? I’m okay.
Thanks alot.
See my comment below the answer by @anon73440385.
Generally: Regular expressions (“RegEx”) are a very powerful means as well in Writer
as also in Calc
- and, of course, next to everywhere if available (implemented) at all.
They have their origin in the mathematical classification of syntaxes, but developed into a rather elaborate tool in the practice of everyday IT.
If you expect to need them often now, you should be prepared to “suffer” some studies and training, including lots of “trial and error”.
My preferred guide to RegEx is Regular Expression Tutorial - Learn How to Use Regular Expressions. The “flavor” coming with LibreOffice is ICU RegEx. (And: I’m not the definite expert!)
Quoting @Lupp (myself):
Line break? Paragraph break?
Different things!
This is no longer understandable since the OriginalQuestioner edited his topic - and I can no longer edit my old comment above.
The software of this site is well capable of creating inconsistencies now and then,
Alas! That’s how it is.
line break paragraph break
would have been an option.
Sorry, I edited after you pointed out my error. I have asked one more question below.
I have asked one more question below.
That’s ok - but why this causes you to declare a correctly answered question (related to what has been originally asked) as unanswered, is not.
Hopefully, I have fixed that now. Thanks.
Hello,
you may use Edit -> Find & Replace
Use the following procedure:
Edit -> Find & Replace
\b\.[ ]
(please note the space character after the .
(dot) - square brackets used for visualization are in fact not required).\n
[x] Current selection only
[x] Regular expressions
Replace All
Note This solution requires sentences to be finished by a full stop immediately after the last word of the sentence (no space before the full stop) followed by a space.
I strongly recommend to test on a copy of your document.
Thanks. But I seem to have a problem. If the sentence ends with a ? or ! it doesn’t work.
Change to the following:
Find \b([\.?!])[ ]
Replace $1\n
Thanks! That works.
Also. Do you know how I just remove text between [ ] in a file?
E.g. Hi.[check page 2]How are you?[check page 4]I’m okay.[Check page 6]
To become -
Hi. How are you? I’m okay.
Thanks alot.
Again: RegEx enabled.
Search for: \[[^\]]*\]
Replace with: (a single space.)
Generally:
New question ==> New topic.
Thanks. One last question on the matter. What if it it is ( ) and not [ ] ?
Try \[[^\]]*\]|\([^\)]*\)
in Search
and a single space again in Replace
for both variants.
Thank you.
Is your question solved or not?