Re: [libreoffice-users] cannot find and replace paragraph break in writer

2020-03-26 Thread Brian Barker

At 17:34 26/03/2020 -0400, Udvarias Ur wrote:
I have a similar problem. I sometimes, 
especially when copying and pasting text from a 
WEB page, find 2 hard returns one after another. 
How can I search for double hard returns, ¶¶, 
and replace them with single hard returns, ¶.


Don't think of searching for what you are calling 
a "hard return", because it doesn't really exist. 
That pilcrow is just a marker, showing where 
there is a paragraph break; there really is 
nothing there! If you have two consecutive 
paragraph breaks, what you have between them is 
an empty paragraph - and it is this that you need to delete.


Just search for ^$ (caret - dollar) and replace with nothing.

I trust this helps.

Brian Barker


--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy



Re: [libreoffice-users] cannot find and replace paragraph break in writer

2020-03-26 Thread Udvarias Ur

Folks,

My apologies.

Had I checked the URL to the OOo WEB page about regular expressions 
first, I would have found my answer.


There, and I tested this so I know it works, it says that ^$ matches any 
empty paragraph. Replacing it with nothing removes them.


Mr. Edmonds, thank you for your suggestion, maybe the solution from OOo 
will help you.



On 2020-03-26 18:22, Steve Edmonds wrote:

Hi. The way I have done this (because I couldn't work out another way) is;
check regular expressions

Find $
Replace (*) this sequence of 3 characters can be anything but should not
occur in your text.

Find \(\*\)\(\*\)
Replace \n

Find \(\*\)
Replace \n

On 27/03/2020 10:34, Udvarias Ur wrote:

Folks,

These 2 are the same solution.

It works fine when a 'find and replace' is preformed on a single
paragraph mark, i.e. hard return, appears as ¶,is replaced with
anything else.

I have a similar problem.

I sometimes, especially when copying and pasting text from a WEB page,
find 2 hard returns one after another.

How can I search for double hard returns, ¶¶, and replace them with
single hard returns, ¶.


On 2020-03-26 15:56, Steve Edmonds wrote:

Hi.
From
https://ask.libreoffice.org/en/question/32879/is-there-an-easy-way-to-find-a-paragraph-mark-and-replace-it-with-a-line-ending-or-a-space/

referring to
https://wiki.openoffice.org/wiki/Documentation/How_Tos/Regular_Expressions_in_Writer#Tabs.2C_newlines.2C_paragraphs_.5Ct_.5Cn_.24


Tick "Regular expressions" in "Search and replace" dialog. Search for $,
replace with space.

In your case replace with \t

steve

On 27/03/2020 07:01, procuste piziocampte wrote:

Im' using Version: 6.4.1.1 on linux opensuse:
In a writer document I woule like to find paragraph breaks  (A
paragraph
break that can be entered with the Enter or Return key )with a tab
so following the instructions here
file:///usr/lib64/libreoffice/help/en-US/text/shared/01/0211.html?=WRITER=UNIX

I should perform a find/replace:
in find \n and in replace \t
or if it doesnt works
in find \n and in replace \n and then in find \n and in replace \t
checking the regular expression box (only that one)
but it doesn't work, writer gives me the "search key not found"
how can I solve??
manythanks




--
Udvarias Ur

This letter was generated and sent from Thunderbird 60.5.1 on Ubuntu Linux 
16.04.6 LTS.

Cette lettre a été générée et envoyée à partir de Thunderbird 60.5.1 sur Ubuntu 
Linux 16.04.6 LTS.


--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] cannot find and replace paragraph break in writer

2020-03-26 Thread Steve Edmonds
Hi. The way I have done this (because I couldn't work out another way) is;
check regular expressions

Find $
Replace (*) this sequence of 3 characters can be anything but should not
occur in your text.

Find \(\*\)\(\*\)
Replace \n

Find \(\*\)
Replace \n

On 27/03/2020 10:34, Udvarias Ur wrote:
> Folks,
>
> These 2 are the same solution.
>
> It works fine when a 'find and replace' is preformed on a single
> paragraph mark, i.e. hard return, appears as ¶,is replaced with
> anything else.
>
> I have a similar problem.
>
> I sometimes, especially when copying and pasting text from a WEB page,
> find 2 hard returns one after another.
>
> How can I search for double hard returns, ¶¶, and replace them with
> single hard returns, ¶.
>
>
> On 2020-03-26 15:56, Steve Edmonds wrote:
>> Hi.
>> From
>> https://ask.libreoffice.org/en/question/32879/is-there-an-easy-way-to-find-a-paragraph-mark-and-replace-it-with-a-line-ending-or-a-space/
>>
>> referring to
>> https://wiki.openoffice.org/wiki/Documentation/How_Tos/Regular_Expressions_in_Writer#Tabs.2C_newlines.2C_paragraphs_.5Ct_.5Cn_.24
>>
>>
>> Tick "Regular expressions" in "Search and replace" dialog. Search for $,
>> replace with space.
>>
>> In your case replace with \t
>>
>> steve
>>
>> On 27/03/2020 07:01, procuste piziocampte wrote:
>>> Im' using Version: 6.4.1.1 on linux opensuse:
>>> In a writer document I woule like to find paragraph breaks  (A
>>> paragraph
>>> break that can be entered with the Enter or Return key )with a tab
>>> so following the instructions here
>>> file:///usr/lib64/libreoffice/help/en-US/text/shared/01/0211.html?=WRITER=UNIX
>>>
>>> I should perform a find/replace:
>>> in find \n and in replace \t
>>> or if it doesnt works
>>> in find \n and in replace \n and then in find \n and in replace \t
>>> checking the regular expression box (only that one)
>>> but it doesn't work, writer gives me the "search key not found"
>>> how can I solve??
>>> manythanks
>>>
>>


-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] cannot find and replace paragraph break in writer

2020-03-26 Thread Udvarias Ur

Folks,

These 2 are the same solution.

It works fine when a 'find and replace' is preformed on a single 
paragraph mark, i.e. hard return, appears as ¶,is replaced with anything 
else.


I have a similar problem.

I sometimes, especially when copying and pasting text from a WEB page, 
find 2 hard returns one after another.


How can I search for double hard returns, ¶¶, and replace them with 
single hard returns, ¶.



On 2020-03-26 15:56, Steve Edmonds wrote:

Hi.
From
https://ask.libreoffice.org/en/question/32879/is-there-an-easy-way-to-find-a-paragraph-mark-and-replace-it-with-a-line-ending-or-a-space/
referring to
https://wiki.openoffice.org/wiki/Documentation/How_Tos/Regular_Expressions_in_Writer#Tabs.2C_newlines.2C_paragraphs_.5Ct_.5Cn_.24

Tick "Regular expressions" in "Search and replace" dialog. Search for $,
replace with space.

In your case replace with \t

steve

On 27/03/2020 07:01, procuste piziocampte wrote:

Im' using Version: 6.4.1.1 on linux opensuse:
In a writer document I woule like to find paragraph breaks  (A paragraph
break that can be entered with the Enter or Return key )with a tab
so following the instructions here
file:///usr/lib64/libreoffice/help/en-US/text/shared/01/0211.html?=WRITER=UNIX
I should perform a find/replace:
in find \n and in replace \t
or if it doesnt works
in find \n and in replace \n and then in find \n and in replace \t
checking the regular expression box (only that one)
but it doesn't work, writer gives me the "search key not found"
how can I solve??
manythanks




--
Udvarias Ur

This letter was generated and sent from Thunderbird 60.5.1 on Ubuntu Linux 
16.04.6 LTS.

Cette lettre a été générée et envoyée à partir de Thunderbird 60.5.1 sur Ubuntu 
Linux 16.04.6 LTS.


--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] cannot find and replace paragraph break in writer

2020-03-26 Thread Steve Edmonds
Hi.
From
https://ask.libreoffice.org/en/question/32879/is-there-an-easy-way-to-find-a-paragraph-mark-and-replace-it-with-a-line-ending-or-a-space/
referring to
https://wiki.openoffice.org/wiki/Documentation/How_Tos/Regular_Expressions_in_Writer#Tabs.2C_newlines.2C_paragraphs_.5Ct_.5Cn_.24

Tick "Regular expressions" in "Search and replace" dialog. Search for $,
replace with space.

In your case replace with \t

steve

On 27/03/2020 07:01, procuste piziocampte wrote:
> Im' using Version: 6.4.1.1 on linux opensuse:
> In a writer document I woule like to find paragraph breaks  (A paragraph
> break that can be entered with the Enter or Return key )with a tab
> so following the instructions here
> file:///usr/lib64/libreoffice/help/en-US/text/shared/01/0211.html?=WRITER=UNIX
> I should perform a find/replace:
> in find \n and in replace \t
> or if it doesnt works
> in find \n and in replace \n and then in find \n and in replace \t
> checking the regular expression box (only that one)
> but it doesn't work, writer gives me the "search key not found"
> how can I solve??
> manythanks
>


-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] cannot find and replace paragraph break in writer

2020-03-26 Thread Alan B
Try using $ as your search term with the regular expression box checked.

When I use \n to search it finds the ends of lines created with Shift+Enter.

When I use $ to search it finds the ends of lines created with Enter.

LibreOffice 6.3.5.2 on Ubuntu 19.04

On Thu, Mar 26, 2020 at 2:03 PM procuste piziocampte 
wrote:

> Im' using Version: 6.4.1.1 on linux opensuse:
> In a writer document I woule like to find paragraph breaks  (A paragraph
> break that can be entered with the Enter or Return key )with a tab
> so following the instructions here
>
> file:///usr/lib64/libreoffice/help/en-US/text/shared/01/0211.html?=WRITER=UNIX
> I should perform a find/replace:
> in find \n and in replace \t
> or if it doesnt works
> in find \n and in replace \n and then in find \n and in replace \t
> checking the regular expression box (only that one)
> but it doesn't work, writer gives me the "search key not found"
> how can I solve??
> manythanks
>
> --
> To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
> Problems?
> https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
> Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
> List archive: https://listarchives.libreoffice.org/global/users/
> Privacy Policy: https://www.documentfoundation.org/privacy
>


-- 
Alan Boba
CISSP, CCENT, ITIL v3 Foundations 2011

-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] cannot find and replace paragraph break in writer

2020-03-26 Thread Brian Barker

At 19:01 26/03/2020 +0100, Procuste Piziocampte wrote:
In a writer document I would like to find paragraph breaks (A 
paragraph break that can be entered with the Enter or Return key) 
with a tab so following the instructions ... . I should perform a 
find/replace: in find \n and in replace \t or if it doesn't works in 
find \n and in replace \n and then in find \n and in replace \t 
checking the regular expression box (only that one) but it doesn't 
work, writer gives me the "search key not found"


That is because in the search box \n finds *line* breaks (created 
with Shift+Enter), not paragraph breaks.



how can I solve?


If I understand you correctly, try this. First:
o Search for (.)$  (left parenthesis - dot - right parenthesis - dollar).
o Replace with $1\t (dollar - one - backslash - lowercase tee).
The search matches any single character at the end of a paragraph. 
The replace string replaces whatever that character is and adds a tab 
character.


Then:
o Search for $ (dollar).
o Replace with nothing.

There may be more elegant solutions ...

I trust this helps.

Brian Barker


--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy



[libreoffice-users] cannot find and replace paragraph break in writer

2020-03-26 Thread procuste piziocampte
Im' using Version: 6.4.1.1 on linux opensuse:
In a writer document I woule like to find paragraph breaks  (A paragraph
break that can be entered with the Enter or Return key )with a tab
so following the instructions here
file:///usr/lib64/libreoffice/help/en-US/text/shared/01/0211.html?=WRITER=UNIX
I should perform a find/replace:
in find \n and in replace \t
or if it doesnt works
in find \n and in replace \n and then in find \n and in replace \t
checking the regular expression box (only that one)
but it doesn't work, writer gives me the "search key not found"
how can I solve??
manythanks

-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy