D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Ubuntu 11.10... ? Search and Replace

 

On 26/10/11 16:18, Peter M Le Mare wrote:
> 
> 1) Sorry you to annoy you. I am have forgotten how you make the e-mail
> print at the bottom so I have selected, dragged and dropped. However
> most people complain if I do it this way: I will try to bottom post for
> this list.

The intent is not to bottom post, which is probably worse than top
posting, but to interleave the responses with the relevant part of the
original text so it reads question, then answer, point then counter
point, and trim unneeded text, signatures, and the like.

I think you have to beat up Thunderbird/Icedove these days to do text
only, and such like, but mine seems to be configured, and I'll answer
questions on same off list.

> 2) Thanks for the link. I have studied it and in does give me the
> paragraph symbol and this will be very useful. But I can't find the line
> break which is in webpage texts and e-mails which if you click on the
> 'non-printing characters' button shows up as a long base backwards L and
> an arrow pointing backwards which is the same as the symbol on the
> 'enter' key on most keyboards.

They are newline characters, as a regular expression use "\n" with " "
to get rid of them the same way you do "$" with " " to get rid of of the
end of paragraph markers.

If the two search and replaces are getting a tad tiresome record a macro
of you doing it once and add it as a menu option.

i.e.

Ensure "Record Macro" is available in the "Tools">"Macro" section.

This might mean enabling "unstable features"
(Tools>Options>LibreOffice>General).

Highlight some text.
Start Recording a macro.
Do the two search and replaces on your selected text.
Close search and replace dialog
Stop Recording macro and assign a name like "formatasparagraph"
Assign a new menu item in the edit menu to the macro you recorded.
Rename the new menu item something easy to remember like "Format As
Paragraph".
Test it.

You have extended LibreOffice.

You can figure out how to manage macros, I never really did, but then I
prefer to write text documents, life is too short for wordprocessors.

Oh and "Shift" + "Enter" creates them in LibreOffice if you ever have
the need for more new lines.

 Simon

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq