A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » General XP issues or comments
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to find and delete CR/LF quickly.



 
 
Thread Tools Display Modes
  #16  
Old December 5th 15, 09:27 AM posted to microsoft.public.windowsxp.general
J. P. Gilliver (John)
external usenet poster
 
Posts: 5,291
Default How to find and delete CR/LF quickly.

In message , Micky
writes:
[Default] On Fri, 4 Dec 2015 23:10:28 +0000, in
microsoft.public.windowsxp.general "J. P. Gilliver (John)"
wrote:

In message , Micky
writes:
[]
I found \n in the search box. That's LF and replacing it with
nothing got rid of it. There is Replace All, which I havent' seen
iirc since SPF. That's very nice.

There is also \r \t \0 \x and maybe more, one of which must mean CR.

[]
Those sound like high-level-language (like C) escape sequences. From
when I was studying such (over 30 years ago!):

\n means newline; how this is actually implemented depends on the system
you're working under - it can be CRLF, LFCR, just LF, just
CR, or possibly even other sequences.

\r (IIRR!) specifically means the CR character - ASCII code 13 decimal
or D hexadecimal (or 15 octal). (IIRR there's an escape sequence for the
other one too: logic would dictate that it's \l, but I can't remember.)

\t means the tab character (ASCII 8).

\0 means the null character (ASCII 0); used in many high-level languages
to mark the end of a character string, so there needs to be a way of
referring to it if you want to.

\\ means the "\" character itself.


A post I actually understand the first time I reed it. And which I
should be able to remember. Thanks.


Glad to be of service - hope I've remembered them right! (Both my
parents were teachers, so I _hope_ I have some explaining ability!)

All the more important since the Cheat Sheet omits mention of these
sequences.


I presume the "cheat sheet" refers to some particular editor (I think
someone mentioned Notepad++). The above were general principles I
remembered (I hope), and may or may not all apply to any given editor
(or similar). Though if it uses escape sequences of the \ sort, there's
a good chance they do. I think there are others - possibly \g for the
bell character for example?
--
J. P. Gilliver. UMRA: 1960/1985 MB++G()AL-IS-Ch++(p)Ar@T+H+Sh0!:`)DNAf

All I ask is to _prove_ that money can't make me happy.
Ads
  #17  
Old December 5th 15, 12:00 PM posted to microsoft.public.windowsxp.general
J. P. Gilliver (John)
external usenet poster
 
Posts: 5,291
Default How to find and delete CR/LF quickly.

In message , "J. P. Gilliver
(John)" writes:
[]
(or similar). Though if it uses escape sequences of the \ sort, there's
a good chance they do. I think there are others - possibly \g for the
bell character for example?

I thought I'd look.
http://en.cppreference.com/w/cpp/language/escape is a good list (and
says it's \a for the bell), and also has an example that shows why
they're necessary (easily comprehensible even if you don't speak C++ -
it's a single line of code, with its output shown).

https://www.google.co.uk/search?hl=e...sitesearch=&as
_occt=any&safe=images&as_filetype=&as_rights=
- http://bit.ly/1XIOF7K for short - shows several lists; many of them
are based on C and its variants, but are probably universal, since many
editors, compilers, and so on are written in C (and ...) anyway, or are
written in something which eventually has a C compiler at the bottom of
the tree.
--
J. P. Gilliver. UMRA: 1960/1985 MB++G()AL-IS-Ch++(p)Ar@T+H+Sh0!:`)DNAf

Squawk Pieces of eight!
Squawk Pieces of eight!
Squawk Pieces of nine!
SYSTEM HALTED: parroty error!
  #18  
Old December 5th 15, 05:12 PM posted to microsoft.public.windowsxp.general
Reinhard Skarbal
external usenet poster
 
Posts: 28
Default How to find and delete CR/LF quickly.

In article ,
says...

In message , "J. P. Gilliver
(John)" writes:
[]
(or similar). Though if it uses escape sequences of the \ sort, there's
a good chance they do. I think there are others - possibly \g for the
bell character for example?

I thought I'd look.
http://en.cppreference.com/w/cpp/language/escape is a good list (and
says it's \a for the bell), and also has an example that shows why
they're necessary (easily comprehensible even if you don't speak C++ -
it's a single line of code, with its output shown).

https://www.google.co.uk/search?hl=e...sitesearch=&as
_occt=any&safe=images&as_filetype=&as_rights=
- http://bit.ly/1XIOF7K for short - shows several lists; many of them
are based on C and its variants, but are probably universal, since many
editors, compilers, and so on are written in C (and ...) anyway, or are
written in something which eventually has a C compiler at the bottom of
the tree.


Hi
If you like to delete certain characters or to change them so try
tr.exe.
It's a well known unix program (tr stand fr translate).
There are also executeables for windows :
see http://sourceforge.net/projects/unxu...atest/download
DownLoad UnixUtils.zip and unzip it.
Example for : remove all cr :
tr -d "\n" original-textfile.txt changed-testfile
Example for : change all uppercase to lowercase :
tr "ABCDEFGHIJKLMNOPQRSTUVWXYZ" "abcdefghijklmnopqrstuvwxyz" in-file
changed-file
Getting help : tr -help

Kind regards
Reinhard

  #19  
Old December 5th 15, 06:28 PM posted to microsoft.public.windowsxp.general
Micky
external usenet poster
 
Posts: 1,528
Default How to find and delete CR/LF quickly.

[Default] On Sat, 5 Dec 2015 09:27:44 +0000, in
microsoft.public.windowsxp.general "J. P. Gilliver (John)"
wrote:

In message , Micky
writes:
[Default] On Fri, 4 Dec 2015 23:10:28 +0000, in
microsoft.public.windowsxp.general "J. P. Gilliver (John)"
wrote:

In message , Micky
writes:
[]
I found \n in the search box. That's LF and replacing it with
nothing got rid of it. There is Replace All, which I havent' seen
iirc since SPF. That's very nice.

There is also \r \t \0 \x and maybe more, one of which must mean CR.
[]
Those sound like high-level-language (like C) escape sequences. From
when I was studying such (over 30 years ago!):

\n means newline; how this is actually implemented depends on the system
you're working under - it can be CRLF, LFCR, just LF, just
CR, or possibly even other sequences.

\r (IIRR!) specifically means the CR character - ASCII code 13 decimal
or D hexadecimal (or 15 octal). (IIRR there's an escape sequence for the
other one too: logic would dictate that it's \l, but I can't remember.)

\t means the tab character (ASCII 8).

\0 means the null character (ASCII 0); used in many high-level languages
to mark the end of a character string, so there needs to be a way of
referring to it if you want to.

\\ means the "\" character itself.


A post I actually understand the first time I reed it. And which I
should be able to remember. Thanks.


Glad to be of service - hope I've remembered them right! (Both my
parents were teachers, so I _hope_ I have some explaining ability!)

All the more important since the Cheat Sheet omits mention of these
sequences.


I presume the "cheat sheet" refers to some particular editor (I think


I thought I referred the Cheat Sheet before, but maybe that was in my
reply to Paul and Ken, which has been harder to finish.

Cheat Sheet was a one or two page summary, on the Notepad++ webpage,
of afaict all the ++ commands, except it didn't include the \n, \r
etc.

someone mentioned Notepad++). The above were general principles I
remembered (I hope), and may or may not all apply to any given editor
(or similar). Though if it uses escape sequences of the \ sort, there's
a good chance they do. I think there are others - possibly \g for the
bell character for example?

  #20  
Old December 5th 15, 06:32 PM posted to microsoft.public.windowsxp.general
Micky
external usenet poster
 
Posts: 1,528
Default How to find and delete CR/LF quickly.

[Default] On Fri, 04 Dec 2015 15:10:20 -0600, in
microsoft.public.windowsxp.general Paul in Houston TX
wrote:

Micky wrote:
[Default] On Fri, 04 Dec 2015 00:07:46 -0600, in
microsoft.public.windowsxp.general Paul in Houston TX
wrote:

Micky wrote:
I solved the immediate problem by editing the text in Agent and
rocking two of my fingers back and forth between end and delete, so
there is no rush about the answer here, but I still think it's worth
pursuing.


This is one of a number of pdf files, or webpages, which has CR/LF
after every word!!! Sometimes between syllables, and sometimes
between letters like the t and he of the word "the". Why do they do
that?

http://www.merck.com/product/usa/pi_...fosamax_pi.pdf

Is there a simpler way to remove them than going word by word?

I have notepad++ for example, and if I turn something on in View, it
gives a reverse image of CR and LF, but I can't manage to copy either
of them to put them in the Find box.

I have editpad lite, but I can't even figure out how to show the CR/LF
(maybe because it's meant for writing code?)

Eudora has Find but not Replace.

FTR, I'm not even planning on republishing a copyrighted file. I just
want to copy 3 paragraphs of it for my own notes, in a text, non-pdf
file.

What is it that you are trying to do?


Get rid of the Carriage Return and Line Feed on each line.

I don't see control characters except at EOL and can easily
copy and paste into notepad, word, etc.


I can copy and paste it too, but it's hard to read! When I try to do
a few paragraphs, it looks like what's below. For you, did it not
look like this:

HIGHLIGHTS OF PRESCR
IBING INFORMA
TION


I use Foxit 2.2.2129. This is what I see and paste:

HIGHLIGHTS OF PRESCRIBING INFORMATION
These highlights do not include all the information needed to use
FOSAMAX safely and effectively. See full prescribing information
for FOSAMAX.
FOSAMAX® (alendronate sodium) tablets, for oral use
FOSAMAX® (alendronate sodium) oral solution
Initial U.S. Approval: 1995
---------------------------RECENT MAJOR CHANGES ---------------------------
Warnings and Precautions (5.4) 2/2015
----------------------------INDICATIONS AND USAGE----------------------------
FOSAMAX is a bisphosphonate indicated for:
? Treatment and prevention of osteoporosis in postmenopausal
women (1.1, 1.2)
? Treatment to increase bone mass in men with osteoporosis (1.3)
? Treatment of glucocorticoid-induced osteoporosis (1.4)
? Treatment of Paget's disease of bone (1.5)
Etc.


That's interesting. Maybe it's because Foxit is a pdf reader??

It's hard to believe Agent, Eudora, EditPad Lite, and Notepad++ all
inserted CR/LF after almost every word, and the alternative is that
those symbos were there in the pdf file already, and somehow pdf
readers ignore them??? That's hard to believe too.

In my case, being able to display properly in Foxit doesn't help,
because I keep notes of this sort in Eudora, so I can easily send them
to a friend and my brother, a doctor. I wanted regular text format.
That problem got solved last night, but the question in the previous
paragraph is even more interesting!!
  #21  
Old December 5th 15, 07:02 PM posted to microsoft.public.windowsxp.general
Paul in Houston TX[_2_]
external usenet poster
 
Posts: 999
Default How to find and delete CR/LF quickly.

Micky wrote:

That's interesting. Maybe it's because Foxit is a pdf reader??

It's hard to believe Agent, Eudora, EditPad Lite, and Notepad++ all
inserted CR/LF after almost every word, and the alternative is that
those symbos were there in the pdf file already, and somehow pdf
readers ignore them??? That's hard to believe too.

In my case, being able to display properly in Foxit doesn't help,
because I keep notes of this sort in Eudora, so I can easily send them
to a friend and my brother, a doctor. I wanted regular text format.
That problem got solved last night, but the question in the previous
paragraph is even more interesting!!


I used Foxit "Select Text" then pasted the text into windows notepad,
MS Word, and also to this NG string.
All were the same. I did not see and LF's and text was normal.
I do that often for work purposes. Simple, fast, and works well.

  #22  
Old December 6th 15, 01:24 AM posted to microsoft.public.windowsxp.general
Micky
external usenet poster
 
Posts: 1,528
Default How to find and delete CR/LF quickly.

[Default] On Sat, 05 Dec 2015 13:02:52 -0600, in
microsoft.public.windowsxp.general Paul in Houston TX
wrote:

Micky wrote:

That's interesting. Maybe it's because Foxit is a pdf reader??

It's hard to believe Agent, Eudora, EditPad Lite, and Notepad++ all
inserted CR/LF after almost every word, and the alternative is that
those symbos were there in the pdf file already, and somehow pdf
readers ignore them??? That's hard to believe too.

In my case, being able to display properly in Foxit doesn't help,
because I keep notes of this sort in Eudora, so I can easily send them
to a friend and my brother, a doctor. I wanted regular text format.
That problem got solved last night, but the question in the previous
paragraph is even more interesting!!


I used Foxit "Select Text" then pasted the text into windows notepad,
MS Word, and also to this NG string.
All were the same. I did not see and LF's and text was normal.
I do that often for work purposes. Simple, fast, and works well.


I think the mystery deepens. Of course, since
http://www.merck.com/product/usa/pi_...fosamax_pi.pdf
is a pdf file I was looking at it in a pdf reader in the first place,
but wihin a Firefox window, and I'm not sure what program I'm using.

(When I started this thread, since I hope to go back to XP soon, I
didn't think it mattered that I was using Vista, and it didn't matter
wrt Notepad++, but here it might, a little, because I can't find the
list of Associations for every file extension. Sorry for not
mentioning this earlier but it didnt' seem relevant, and maybe it's
not relevant if your version of Firefox also has changed to display
pdf files with no plug-in .)

A recent update*** to Firefox has made the Type of file displayed in
Power Desk** into Firefox HTML Document and made the association with
pdf such that it opens in a Firefox tab. **an enhanced verion of
windows explorer

I think that program is part of Firefox itself. When I right click
on the file and choose Open With, Firefox and Adobe Reader are both
choices, and the Firefox choice says no more than that, Firefox.

Yes, that's part or all of the problem. When I dl the file and read
it in Adobe reader, and copy it from there to Agent, it displays fine.
So either 1) it didn't insert all the CR/LF and the Firefox reader
did, or 2) the CR/LF were in file on the Merck server but Adobe has
sense enough to ignore them and not include them when I copy text from
Adobe. I think it must be choice 1, but why would the Firefox
reader put in all those CR/LF symbols, and how does it manage to
display the file correctly with them there?

Also, I'm 99% sure that once before, maybe before there was a Firefox
PDF reader, a file displayed like this, one word or part of a word per
line

Here's what it looks like copied from Adobe Reader, just fine:
HIGHLIGHTS OF PRESCRIBING INFORMATION
These highlights do not include all the information needed to use
FOSAMAX safely and effectively. See full prescribing information
for FOSAMAX.
FOSAMAXR (alendronate sodium) tablets, for oral use

BTW, the doctor who prescribed Fosamax should have discussed dental
work with me, and then I could have had my dental work done before I
started on the drug. Now it's in my system and by some stories will
never go away, and it makes dental extractions and implants and maybe
other things very dangerous. Probably only less than 1% chance of
osteonecrosis of the jaw, but if you get it, bone comes out of the
flesh, and the whole jaw can crumble, and there is no cure. The
"remedy" is an eventual prothesis for the lower jaw, at iiuc enormous
expense, plenty of pain, taking months or longer to complete.

***BTW, the new version of FF displaying PDF files worked great at
first, loading verrrry quickly, esp. compared to Adobe and Foxit
(which I have in XP), but a newer version of FF has broken it. If I
click on a pdf file in my computer it tries to open in FF but always
fails. If they dont' fix that soon I'll have to change my default.
  #23  
Old December 6th 15, 02:07 AM posted to microsoft.public.windowsxp.general
Paul in Houston TX[_2_]
external usenet poster
 
Posts: 999
Default How to find and delete CR/LF quickly.

Micky wrote:
[Default] On Sat, 05 Dec 2015 13:02:52 -0600, in

I think the mystery deepens. Of course, since
http://www.merck.com/product/usa/pi_...fosamax_pi.pdf
is a pdf file I was looking at it in a pdf reader in the first place,
but wihin a Firefox window, and I'm not sure what program I'm using.

...
I think that program is part of Firefox itself. When I right click
on the file and choose Open With, Firefox and Adobe Reader are both
choices, and the Firefox choice says no more than that, Firefox.

Yes, that's part or all of the problem. When I dl the file and read
it in Adobe reader, and copy it from there to Agent, it displays fine.


Now I understand the problem.
I never, ever, allow a browser or word processor to use a built in pdf viewer.
That goes for IE, FF, and SM and on all my machines and O/S's.
I either have it set for "(download to cache) open with Foxit" or
download, save, then open with Foxit. I deal with estimating and managing
large construction projects, refineries, pipelines and such.
Can't take a chance on a pdf being faulty so always use real pdf software.
Had one yesterday... person used Word 2013 to pdf a file for and it
was unreadable. Had to have the docx sent instead and then used
pdf creator to make a readable pdf.

  #24  
Old December 6th 15, 05:14 AM posted to microsoft.public.windowsxp.general
Paul
external usenet poster
 
Posts: 18,275
Default How to find and delete CR/LF quickly.

Micky wrote:


I think the mystery deepens. Of course, since
http://www.merck.com/product/usa/pi_...fosamax_pi.pdf
is a pdf file I was looking at it in a pdf reader in the first place,
but wihin a Firefox window, and I'm not sure what program I'm using.


That's an important detail.

The parser in Firefox is going to be "second grade" materials.

We weren't seeing the same thing, because we're using
a standalone PDF tool.

I tried your doc in Firefox, copy and paste to Notepad
and it looks dreadful.

*******

HIGHLIGHTS OF PRESCR
IBING INFORMA
TION
These
highlights
do
not
include
all
the
information
needed
to
use
FOSA
MA
X
safely
a
nd
effectively

*******

There was a tool years ago, that used to compare
the baseline of the text in a document, and
that tool could figure out where the
sentences were (it wasn't fooled by emitting the
text in small chunks). Even that tool would give you
this kind of output. If the letters weren't
on the same baseline, the sentences would get
messed up. That tool would occasionally get the
spacing between letters wrong (insert an extra space),
since the math in that environment isn't all that
good.

HIGHLIGHTS OF PRESCRIBING INFORMATION
These highlights do not include all the information needed to use
FOSAMAX safely and effectively. See full prescribing information
for FOSAMAX.

And even my Acrobat 6 manages to do that well on the
lines that don't have "magic escape sequence Symbol font" inserts.

But if I try to "Select All" then Copy/Paste, Acrobat 6
bombs, so there is some sequence in the entire document
that it doesn't really like. I don't think Acrobat DC was
quite as bothered. I managed to finish my Copy/Paste over
on the other machine.

Paul
  #25  
Old December 6th 15, 08:49 AM posted to microsoft.public.windowsxp.general
Micky
external usenet poster
 
Posts: 1,528
Default How to find and delete CR/LF quickly.

[Default] On Sun, 06 Dec 2015 00:14:25 -0500, in
microsoft.public.windowsxp.general Paul wrote:

Micky wrote:


I think the mystery deepens. Of course, since
http://www.merck.com/product/usa/pi_...fosamax_pi.pdf
is a pdf file I was looking at it in a pdf reader in the first place,
but wihin a Firefox window, and I'm not sure what program I'm using.


That's an important detail.


Maybe I shoudl have mentioned it earlier. If so, sorry.

The parser in Firefox is going to be "second grade" materials.

We weren't seeing the same thing, because we're using
a standalone PDF tool.

I tried your doc in Firefox, copy and paste to Notepad
and it looks dreadful.

*******

HIGHLIGHTS OF PRESCR
IBING INFORMA
TION
These
highlights
do


Breaking after every word is strange enough. Breaking after initial
upper-case letters is strange, but breaking in the midle of words is
even stranger. I wonder who is in charge of inserting the breaks.

I keep thinking, And we're supposed to have computer-driven cars????

not
include
all
the
information
needed
to
use
FOSA
MA
X
safely
a
nd
effectively

*******

There was a tool years ago, that used to compare
the baseline of the text in a document, and
that tool could figure out where the
sentences were (it wasn't fooled by emitting the
text in small chunks). Even that tool would give you
this kind of output. If the letters weren't
on the same baseline, the sentences would get
messed up. That tool would occasionally get the
spacing between letters wrong (insert an extra space),
since the math in that environment isn't all that
good.

HIGHLIGHTS OF PRESCRIBING INFORMATION
These highlights do not include all the information needed to use
FOSAMAX safely and effectively. See full prescribing information
for FOSAMAX.

And even my Acrobat 6 manages to do that well on the
lines that don't have "magic escape sequence Symbol font" inserts.

But if I try to "Select All" then Copy/Paste, Acrobat 6
bombs, so there is some sequence in the entire document
that it doesn't really like. I don't think Acrobat DC was


District of Columbia?

quite as bothered. I managed to finish my Copy/Paste over
on the other machine.

Paul

  #26  
Old December 6th 15, 09:40 AM posted to microsoft.public.windowsxp.general
Paul
external usenet poster
 
Posts: 18,275
Default How to find and delete CR/LF quickly.

Micky wrote:
[Default] On Sun, 06 Dec 2015 00:14:25 -0500, in
microsoft.public.windowsxp.general Paul wrote:



HIGHLIGHTS OF PRESCR
IBING INFORMA
TION
These
highlights
do


Breaking after every word is strange enough. Breaking after initial
upper-case letters is strange, but breaking in the midle of words is
even stranger. I wonder who is in charge of inserting the breaks.

I keep thinking, And we're supposed to have computer-driven cars????


They save the good programmers for the cars - I hope.

How the stuff gets broken up, depends on how the publishing tool
"breaks" the words in the first place. If you rely on the power
of the font designs (which you should), then any of our tools would
give complete lines of text. The more they attempt
to break the line into clumps of letters, the worse
some downstream tools are going to do on Copy/Paste.

But like I said, I know of at least one tool (one of the
pstotext programs), that ignores the clumps, looks at
the baseline of each clump, and puts them back together
to resemble a WYSIWYG line of text. So if can be done.
What has probably happened, is the Firefox Copy/Paste thing
is based on something not intended for that purpose. (Come to
think of it, it looks a bit like the behavior of LibreOffice
PDF import.)

Due to the flexibility of PDF, it's actually very hard
to do a perfect job on Copy/Paste. So when I make reference
to "degrees of goodness" here, it's all relative.
PDF is much more expressive (it's like a vector drawing tool)
than similar to a word processor. It should come as no surprise,
that you can make things in PDF world, that cannot be copied
and pasted as Word Processor source material. Adobe Illustrator
is a better match for PDF - maybe you could copy/paste
into Adobe Illustrator.

PDF can render text on spline curves. Try that in a Word Processor
or in Notepad...

http://wiki.scribus.net/wiki/images/...th_default.png

One of my favorites, is this one. It doesn't have spline curves,
but it's still a pretty tricky object.

http://ecee.colorado.edu/~kuester/smith/smith.pdf

Some cheap engineering students, got tired of paying for
Smith Chart paper (the same thought used to go through
our heads too, like Xeroxing the damn stuff). Since PDF
and PostScript are programming languages, it's possible
to do "loops", "conditional statements", and do "programmatic
drawing". So rather than the picture you see on that page being
"drawn" and then "printed", it's basically just a computer program,
written with subroutines and so on. The PostScript program
was quite possibly distilled to make the PDF (using your
Hex Editor you may be able to figure that out). They may have
used pstopdf to do the conversion.

Producer (Aladdin Ghostscript 6.01)

Now, try and wipe your cursor over the text. See how
PDF content can be more complex than regular tool flows ?
When you paste stuff that used to be on curves, how
should that be represented ? This is also a reason
why LibreOffice imports PDF into their Draw tool,
rather than into Writer. Writer (or any typical word
processor) simply cannot represent what is copied. The
tools don't have the same functions or the same capabilities.

I don't think Acrobat DC was


District of Columbia?


I'm not sure where that comes from. Your
guess sounds pretty good to me.

Wikipedia says it stands for "Document Cloud".

Paul
  #27  
Old December 6th 15, 09:36 PM posted to microsoft.public.windowsxp.general
Micky
external usenet poster
 
Posts: 1,528
Default How to find and delete CR/LF quickly.

[Default] On Sun, 06 Dec 2015 04:40:39 -0500, in
microsoft.public.windowsxp.general Paul wrote:


District of Columbia?


I'm not sure where that comes from. Your
guess sounds pretty good to me.

Wikipedia says it stands for "Document Cloud".


Same thing?
  #28  
Old December 6th 15, 10:23 PM posted to microsoft.public.windowsxp.general
Computer Nerd Kev[_2_]
external usenet poster
 
Posts: 29
Default How to find and delete CR/LF quickly.

On 04 Dec 2015, Micky wrote:

[Default] On Fri, 4 Dec 2015 06:36:09 +0000 (UTC), in
microsoft.public.windowsxp.general lid
(Computer Nerd Kev) wrote:

So I can't tell you the exact parameters for the "find"
box, but they are in the notepad++ documentation (something
like "/n" means line break).


https://notepad-plus-plus.org/resources.html has Word and
PDF versions of a Cheat Sheet at the bottom of the page.
However, it doesn't list \n, \r or the other \letters!
But may list everything else.


My XP machine's up and running again.

My old version of notepad++ (V. 5.8.7, Jan 28 2011) includes a
local set of documentation web pages in its installation
folder. They are accessed by clicking on the "?" menu and
selecting "Help Contents" which launches the index in your
default web browser.

The section "Searching" "Normal Search" includes a reference
for the "extended" search commands:


In _Extended_, special character sequences will be interpreted
as special characters such as newline characters. In this
case, you can choose from:

* \\ - Backslash character;
* \t – TAB character;
* \r – CR character;
* \n – LF character;
* \0 – NULL character;
* \x## - Hexadecimal value (between 00 and FF);
* \u#### - Extended hexadecimal value (between 0000 and
FFFF, meant for Unicode characters);
* \d### - Decimal value (between 000 and 255);
* \o### - Octal value (between 000 and 377);
* \b######## - Binary value (between 00000000 and
11111111).


I also found my own process for removing line wrapping. It
includes steps to preserve double line breaks signifying
paragraph breaks:

1. open "Replace" menu (ctl-H) in notepad++ and type "\r\n\r
\n" in "Find What", then "\n\n" in "Replace With". Replace
All.

2. Find "\r\n" and replace with " ". Replace All.

3. Find "\n\n" and replace with "\r\n\r\n". Replace All.

--
__ __
#_ |\| | _#
  #29  
Old December 6th 15, 10:34 PM posted to microsoft.public.windowsxp.general
J. P. Gilliver (John)
external usenet poster
 
Posts: 5,291
Default How to find and delete CR/LF quickly.

In message , Computer Nerd
Kev writes:
[]
My XP machine's up and running again.

(Glad to hear it!)

My old version of notepad++ (V. 5.8.7, Jan 28 2011) includes a
local set of documentation web pages in its installation

[]
* \\ - Backslash character;
* \t – TAB character;
* \r – CR character;
* \n – LF character;
* \0 – NULL character;

[]
It may be LF in your notepad++, but in most situations, \n is unlike the
other escape sequences, in that it is OS-dependent and can represent
more than one character. It means newline, but that could be LF, CR,
CRLF, LFCR, or other sequence.
--
J. P. Gilliver. UMRA: 1960/1985 MB++G()AL-IS-Ch++(p)Ar@T+H+Sh0!:`)DNAf

freedom of speech is useless if nobody can hear you.
-- David Harris -- Author, Pegasus Mail Dunedin, May 2002.
  #30  
Old December 7th 15, 01:40 AM posted to microsoft.public.windowsxp.general
Micky
external usenet poster
 
Posts: 1,528
Default How to find and delete CR/LF quickly.

[Default] On Sun, 6 Dec 2015 22:23:49 +0000 (UTC), in
microsoft.public.windowsxp.general Computer Nerd Kev
wrote:

On 04 Dec 2015, Micky wrote:

[Default] On Fri, 4 Dec 2015 06:36:09 +0000 (UTC), in
microsoft.public.windowsxp.general lid
(Computer Nerd Kev) wrote:

So I can't tell you the exact parameters for the "find"
box, but they are in the notepad++ documentation (something
like "/n" means line break).


https://notepad-plus-plus.org/resources.html has Word and
PDF versions of a Cheat Sheet at the bottom of the page.
However, it doesn't list \n, \r or the other \letters!
But may list everything else.


My XP machine's up and running again.

My old version of notepad++ (V. 5.8.7, Jan 28 2011) includes a
local set of documentation web pages in its installation
folder. They are accessed by clicking on the "?" menu and
selecting "Help Contents" which launches the index in your
default web browser.


I saw that, but I soon got tired and sleepy.

The section "Searching" "Normal Search" includes a reference
for the "extended" search commands:


In _Extended_, special character sequences will be interpreted


Aha, search, normal, extended. "Normal" must be what flummoxed me.

as special characters such as newline characters. In this
case, you can choose from:

* \\ - Backslash character;
* \t – TAB character;
* \r – CR character;
* \n – LF character;
* \0 – NULL character;
* \x## - Hexadecimal value (between 00 and FF);
* \u#### - Extended hexadecimal value (between 0000 and
FFFF, meant for Unicode characters);
* \d### - Decimal value (between 000 and 255);
* \o### - Octal value (between 000 and 377);
* \b######## - Binary value (between 00000000 and
11111111).


Pretty clever, that program.

Dont' 40 or 50% of users know nothing about programs that don't come
with the computer? They don't know what they're missing!


I also found my own process for removing line wrapping. It
includes steps to preserve double line breaks signifying
paragraph breaks:

1. open "Replace" menu (ctl-H) in notepad++ and type "\r\n\r
\n" in "Find What", then "\n\n" in "Replace With". Replace
All.

2. Find "\r\n" and replace with " ". Replace All.

3. Find "\n\n" and replace with "\r\n\r\n". Replace All.


I get it. Clever. I just wanted that drug page to be legible, but if
I wanted a page to look right, you gave the way to do it.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 06:11 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.