An editor with better search/replace options...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • SeaPlusPlus

    An editor with better search/replace options...

    I want to convert large files of prose to xhtml and so I need a way to
    remove unwanted line wraps. So, I'm looking for a freebee editor that
    has the capability of searching for a single "carriage return/line feed"
    or "line feed/carriage return" and removing them. I quess what I need is
    an editor that allows non-printable characters in it's search strings.

    Does anyone know of on that will allow this?

    Thank you...

    Rich
  • kaeli

    #2
    Re: An editor with better search/replace options...

    In article <1114788162.bb3 a5b381a3b298cf7 0ea6acc336deb1@ teranews>,
    SeaPlusPlus@hot mail.com enlightened us with...[color=blue]
    > I want to convert large files of prose to xhtml and so I need a way to
    > remove unwanted line wraps. So, I'm looking for a freebee editor that
    > has the capability of searching for a single "carriage return/line feed"
    > or "line feed/carriage return" and removing them. I quess what I need is
    > an editor that allows non-printable characters in it's search strings.
    >
    > Does anyone know of on that will allow this?
    >[/color]

    Sed, VI.... ;)


    --
    --
    ~kaeli~
    To steal ideas from one person is plagiarism; to steal from
    many is research.



    Comment

    • Del Ferguson

      #3
      Re: An editor with better search/replace options...

      SeaPlusPlus wrote:[color=blue]
      > I want to convert large files of prose to xhtml and so I need a way to
      > remove unwanted line wraps. So, I'm looking for a freebee editor that
      > has the capability of searching for a single "carriage return/line feed"
      > or "line feed/carriage return" and removing them. I quess what I need is
      > an editor that allows non-printable characters in it's search strings.
      >
      > Does anyone know of on that will allow this?
      >
      > Thank you...
      >
      > Rich[/color]

      Rich,

      Try NoteTab Pro trial version set for no-wrap to convert the text to
      XHTML and see if that works for you. You should easily see any
      other discrepancies in the browser view. Also, any "off-spring" of
      the original UNIX "vi" should allow you to search for (and
      substitute) special characters. It just requires a knowledge of
      control characters. The second suggested is not recommended unless
      you are truly adventurous.

      Cheers,

      Del Ferguson

      Comment

      • SeaPlusPlus

        #4
        Re: An editor with better search/replace options...

        kaeli wrote:
        [color=blue]
        > In article <1114788162.bb3 a5b381a3b298cf7 0ea6acc336deb1@ teranews>,
        > SeaPlusPlus@hot mail.com enlightened us with...
        >[color=green]
        >>I want to convert large files of prose to xhtml and so I need a way to
        >>remove unwanted line wraps. So, I'm looking for a freebee editor that
        >>has the capability of searching for a single "carriage return/line feed"
        >>or "line feed/carriage return" and removing them. I quess what I need is
        >>an editor that allows non-printable characters in it's search strings.
        >>
        >>Does anyone know of on that will allow this?
        >>[/color]
        >
        >
        > Sed, VI.... ;)
        >
        >[/color]
        Qrs, TU.... :-(

        Thank you... (i guess)...


        Rich

        Comment

        • SeaPlusPlus

          #5
          Re: An editor with better search/replace options...

          > SeaPlusPlus wrote:
          [color=blue][color=green]
          >> I want to convert large files of prose to xhtml and so I need a way to
          >> remove unwanted line wraps. So, I'm looking for a freebee editor that
          >> has the capability of searching for a single "carriage return/line
          >> feed" or "line feed/carriage return" and removing them. I quess what I
          >> need is an editor that allows non-printable characters in it's search
          >> strings.[/color][/color]
          [color=blue][color=green]
          >> Does anyone know of on that will allow this?[/color][/color]

          Del Ferguson wrote:
          [color=blue]
          > Try NoteTab Pro trial version set for no-wrap to convert the text to
          > XHTML and see if that works for you. You should easily see any other
          > discrepancies in the browser view. Also, any "off-spring" of the
          > original UNIX "vi" should allow you to search for (and substitute)
          > special characters. It just requires a knowledge of control
          > characters. The second suggested is not recommended unless you are
          > truly adventurous.[/color]

          Wrap and no-wrap is only how the editor "presents" the text...
          NoteTab'll still wrap a line that contains the cr/lf or lf/cr or
          whatever terminates the line... the question is... will NoteTab search
          for special characters ? ? ? I thought not ! ! !

          <facetious>
          So, I guess I need to get the VT100 out of the cellar and fire up
          RSX11/M in order to use EDT or EDN which worked for me in 1979 because I
          can't find a replacement in 2005... AAARRRGGGHHHH ! ! !
          </facetious>

          Thank you...

          Rich

          Comment

          • Els

            #6
            Re: An editor with better search/replace options...

            SeaPlusPlus wrote:
            [color=blue][color=green]
            >> SeaPlusPlus wrote:[/color]
            >[color=green][color=darkred]
            >>> I want to convert large files of prose to xhtml and so I need a way to
            >>> remove unwanted line wraps. So, I'm looking for a freebee editor that
            >>> has the capability of searching for a single "carriage return/line
            >>> feed" or "line feed/carriage return" and removing them. I quess what I
            >>> need is an editor that allows non-printable characters in it's search
            >>> strings.[/color][/color]
            >[color=green][color=darkred]
            >>> Does anyone know of on that will allow this?[/color][/color]
            >
            > Del Ferguson wrote:
            >[color=green]
            >> Try NoteTab Pro trial version set for no-wrap to convert the text to
            >> XHTML and see if that works for you. You should easily see any other
            >> discrepancies in the browser view. Also, any "off-spring" of the
            >> original UNIX "vi" should allow you to search for (and substitute)
            >> special characters. It just requires a knowledge of control
            >> characters. The second suggested is not recommended unless you are
            >> truly adventurous.[/color]
            >
            > Wrap and no-wrap is only how the editor "presents" the text...
            > NoteTab'll still wrap a line that contains the cr/lf or lf/cr or
            > whatever terminates the line... the question is... will NoteTab search
            > for special characters ? ? ? I thought not ! ! !
            >
            > <facetious>
            > So, I guess I need to get the VT100 out of the cellar and fire up
            > RSX11/M in order to use EDT or EDN which worked for me in 1979 because I
            > can't find a replacement in 2005... AAARRRGGGHHHH ! ! !
            > </facetious>[/color]

            No need. TextPad (free evaluation version)can search and replace
            line-breaks, tabs, spaces. Just need to tick the box that says
            'regular expression'.

            As for wrapping in the editor, TextPad can wrap the lines or leave
            them run 'off the screen', it's your choice.

            --
            Els http://locusmeus.com/
            Sonhos vem. Sonhos vão. O resto é imperfeito.
            - Renato Russo -
            Now playing: The Trammps - Ten Percent

            Comment

            • Eric Kenneth Bustad

              #7
              Re: An editor with better search/replace options...

              In article <1114788162.bb3 a5b381a3b298cf7 0ea6acc336deb1@ teranews>,
              SeaPlusPlus <SeaPlusPlus@ho tmail.com> wrote:[color=blue]
              >I want to convert large files of prose to xhtml and so I need a way to
              >remove unwanted line wraps. So, I'm looking for a freebee editor that
              >has the capability of searching for a single "carriage return/line feed"
              >or "line feed/carriage return" and removing them. I quess what I need is
              >an editor that allows non-printable characters in it's search strings.
              >
              >Does anyone know of on that will allow this?[/color]

              Why is this necessary are part of converting the files to xhtml?


              --
              = Eric Bustad, Norwegian bachelor programmer

              Comment

              • SeaPlusPlus

                #8
                Re: An editor with better search/replace options...

                > In article <1114788162.bb3 a5b381a3b298cf7 0ea6acc336deb1@ teranews>,[color=blue]
                > SeaPlusPlus <SeaPlusPlus@ho tmail.com> wrote:[/color]
                [color=blue][color=green]
                >>I want to convert large files of prose to xhtml and so I need a way to
                >>remove unwanted line wraps. So, I'm looking for a freebee editor that
                >>has the capability of searching for a single "carriage return/line feed"
                >>or "line feed/carriage return" and removing them. I quess what I need is
                >>an editor that allows non-printable characters in it's search strings.[/color][/color]
                [color=blue][color=green]
                >>Does anyone know of on that will allow this?[/color][/color]

                Eric Kenneth Bustad wrote:
                [color=blue]
                > Why is this necessary are part of converting the files to xhtml?[/color]

                I needed to reference xhtml to pose an on-topic question. If I didn't
                say that, you (the 'anal' police) would be posting that my query is
                off-topic and I should be posting to some 'editor' newsgroup.

                OBTW, why do you have 'is and 'are' in the same sentence?

                Thank you... (i think)

                Rich

                Comment

                • Del Ferguson

                  #9
                  Re: An editor with better search/replace options...

                  SeaPlusPlus wrote:[color=blue][color=green]
                  >> SeaPlusPlus wrote:[/color]
                  >
                  >[color=green][color=darkred]
                  >>> I want to convert large files of prose to xhtml and so I need a way
                  >>> to remove unwanted line wraps. So, I'm looking for a freebee editor
                  >>> that has the capability of searching for a single "carriage
                  >>> return/line feed" or "line feed/carriage return" and removing them. I
                  >>> quess what I need is an editor that allows non-printable characters
                  >>> in it's search strings.[/color][/color]
                  >
                  >[color=green][color=darkred]
                  >>> Does anyone know of on that will allow this?[/color][/color]
                  >
                  >
                  > Del Ferguson wrote:
                  >[color=green]
                  >> Try NoteTab Pro trial version set for no-wrap to convert the text to
                  >> XHTML and see if that works for you. You should easily see any other
                  >> discrepancies in the browser view. Also, any "off-spring" of the
                  >> original UNIX "vi" should allow you to search for (and substitute)
                  >> special characters. It just requires a knowledge of control
                  >> characters. The second suggested is not recommended unless you are
                  >> truly adventurous.[/color]
                  >
                  >
                  > Wrap and no-wrap is only how the editor "presents" the text...
                  > NoteTab'll still wrap a line that contains the cr/lf or lf/cr or
                  > whatever terminates the line... the question is... will NoteTab search
                  > for special characters ? ? ? I thought not ! ! !
                  >
                  > <facetious>
                  > So, I guess I need to get the VT100 out of the cellar and fire up
                  > RSX11/M in order to use EDT or EDN which worked for me in 1979 because I
                  > can't find a replacement in 2005... AAARRRGGGHHHH ! ! !
                  > </facetious>
                  >
                  > Thank you...
                  >
                  > Rich[/color]

                  Rich,

                  If you no-wrap text and convert to XHTML in NoteTab, the special
                  character conversions are obvious; however, if you want to do it the
                  "hard" way, I can send you DOS versions of vi, ed, sed, etc. Works
                  for me. You are right, NoteTab does not search special characters.
                  Why bother if XHTML will do all the work? Are you assuming your
                  text is screwed up?

                  Cheers,

                  Del Ferguson

                  Comment

                  • Lauri Raittila

                    #10
                    Re: An editor with better search/replace options...

                    in comp.infosystem s.www.authoring.html, SeaPlusPlus wrote:[color=blue][color=green]
                    > > In article <1114788162.bb3 a5b381a3b298cf7 0ea6acc336deb1@ teranews>,
                    > > SeaPlusPlus <SeaPlusPlus@ho tmail.com> wrote:[/color]
                    >[color=green][color=darkred]
                    > >>I want to convert large files of prose to xhtml and so I need a way to
                    > >>remove unwanted line wraps.[/color][/color][/color]

                    Why they are unwanted?
                    [color=blue]
                    > So, I'm looking for a freebee editor that[color=green][color=darkred]
                    > >>has the capability of searching for a single "carriage return/line feed"
                    > >>or "line feed/carriage return" and removing them. I quess what I need is
                    > >>an editor that allows non-printable characters in it's search strings.[/color][/color][/color]

                    Emacs will do that... This question was asked in alt.html last week...
                    [color=blue][color=green][color=darkred]
                    > >>Does anyone know of on that will allow this?[/color][/color]
                    >
                    > Eric Kenneth Bustad wrote:
                    >[color=green]
                    > > Why is this necessary are part of converting the files to xhtml?[/color]
                    >
                    > I needed to reference xhtml to pose an on-topic question. If I didn't
                    > say that, you (the 'anal' police) would be posting that my query is
                    > off-topic and I should be posting to some 'editor' newsgroup.[/color]

                    Well, why didn't you? As there is not much use remove linefeeds when
                    converting to xhtml. Or any other html...
                    [color=blue]
                    > OBTW, why do you have 'is and 'are' in the same sentence?[/color]

                    plonk.

                    --
                    Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
                    Utrecht, NL.
                    Support me, buy Opera:

                    Comment

                    • Harlan Messinger

                      #11
                      Re: An editor with better search/replace options...

                      SeaPlusPlus wrote:[color=blue][color=green]
                      >> In article <1114788162.bb3 a5b381a3b298cf7 0ea6acc336deb1@ teranews>,
                      >> SeaPlusPlus <SeaPlusPlus@ho tmail.com> wrote:[/color]
                      >
                      >[color=green][color=darkred]
                      >>> I want to convert large files of prose to xhtml and so I need a way
                      >>> to remove unwanted line wraps. So, I'm looking for a freebee editor
                      >>> that has the capability of searching for a single "carriage
                      >>> return/line feed" or "line feed/carriage return" and removing them. I
                      >>> quess what I need is an editor that allows non-printable characters
                      >>> in it's search strings.[/color][/color]
                      >[color=green][color=darkred]
                      >>> Does anyone know of on that will allow this?[/color][/color]
                      >
                      > Eric Kenneth Bustad wrote:
                      >[color=green]
                      >> Why is this necessary are part of converting the files to xhtml?[/color]
                      >
                      > I needed to reference xhtml to pose an on-topic question. If I didn't
                      > say that, you (the 'anal' police) would be posting that my query is
                      > off-topic and I should be posting to some 'editor' newsgroup.[/color]

                      So your question is on-topic and we still don't know why you think you
                      need to remove the carriage returns from the text of the pages.

                      Comment

                      • Eric Kenneth Bustad

                        #12
                        Re: An editor with better search/replace options...

                        In article <1114797063.c88 7feaca18820caf9 71c4ea08f041ab@ teranews>,
                        SeaPlusPlus <SeaPlusPlus@ho tmail.com> wrote:[color=blue][color=green]
                        >> In article <1114788162.bb3 a5b381a3b298cf7 0ea6acc336deb1@ teranews>,
                        >> SeaPlusPlus <SeaPlusPlus@ho tmail.com> wrote:[/color]
                        >[color=green][color=darkred]
                        >>>I want to convert large files of prose to xhtml and so I need a way to
                        >>>remove unwanted line wraps. So, I'm looking for a freebee editor that
                        >>>has the capability of searching for a single "carriage return/line feed"
                        >>>or "line feed/carriage return" and removing them. I quess what I need is
                        >>>an editor that allows non-printable characters in it's search strings.[/color][/color]
                        >[color=green][color=darkred]
                        >>>Does anyone know of on that will allow this?[/color][/color]
                        >
                        >Eric Kenneth Bustad wrote:
                        >[color=green]
                        >> Why is this necessary are part of converting the files to xhtml?[/color]
                        >
                        >I needed to reference xhtml to pose an on-topic question. If I didn't
                        >say that, you (the 'anal' police) would be posting that my query is
                        >off-topic and I should be posting to some 'editor' newsgroup.[/color]

                        I wasn't trying to netcop, just curious. "Line wraps" would be taken
                        as just another bit of white space, so I didn't see why they would be
                        a problem in xhtml.
                        [color=blue]
                        >OBTW, why do you have 'is and 'are' in the same sentence?[/color]

                        Typo. I meant to type ".. necessary as part ..".
                        [color=blue]
                        >Thank you... (i think)[/color]

                        You're welcome...

                        --
                        = Eric Bustad, Norwegian bachelor programmer

                        Comment

                        • Andrew Donaldson

                          #13
                          Re: An editor with better search/replace options...

                          SeaPlusPlus wrote:
                          [color=blue]
                          > the question is... will NoteTab search
                          > for special characters ? ? ?[/color]

                          Yes (the Pro version for sure, at least.)

                          To find/replace a newline, use ^P

                          Notetab also detects and handles different newline formats
                          (Unix/Windows/Mac) automatically. It could also convert your text to
                          (X)HTML automatically too.
                          [color=blue]
                          > I thought not ! ! ![/color]

                          Second thoughts? ;-)

                          Andrew

                          Comment

                          • Del Ferguson

                            #14
                            Re: An editor with better search/replace options...

                            Andrew Donaldson wrote:[color=blue]
                            > SeaPlusPlus wrote:
                            >[color=green]
                            >> the question is... will NoteTab search for special characters ? ? ?[/color]
                            >
                            >
                            > Yes (the Pro version for sure, at least.)
                            >
                            > To find/replace a newline, use ^P
                            >
                            > Notetab also detects and handles different newline formats
                            > (Unix/Windows/Mac) automatically. It could also convert your text to
                            > (X)HTML automatically too.
                            >[color=green]
                            >> I thought not ! ! ![/color]
                            >
                            >
                            > Second thoughts? ;-)
                            >
                            > Andrew[/color]

                            Andrew,

                            I spoke too soon in my reply about NoteTab Pro. I just don't do my
                            text "problems" that way. I convert to XHTML and then look for the
                            obvious formatting problems.

                            Cheers,

                            Del Ferguson

                            Comment

                            • SeaPlusPlus

                              #15
                              Re: An editor with better search/replace options...

                              >>> SeaPlusPlus wrote:
                              [color=blue][color=green][color=darkred]
                              >>>> I want to convert large files of prose to xhtml and so I need a way
                              >>>> to remove unwanted line wraps. So, I'm looking for a freebee editor
                              >>>> that has the capability of searching for a single "carriage
                              >>>> return/line feed" or "line feed/carriage return" and removing them.
                              >>>> I quess what I need is an editor that allows non-printable
                              >>>> characters in it's search strings.[/color][/color][/color]
                              [color=blue][color=green][color=darkred]
                              >>>> Does anyone know of on that will allow this?[/color][/color][/color]

                              Del Ferguson wrote:
                              [color=blue]
                              > If you no-wrap text and convert to XHTML in NoteTab, the special
                              > character conversions are obvious; however, if you want to do it the
                              > "hard" way, I can send you DOS versions of vi, ed, sed, etc. Works for
                              > me. You are right, NoteTab does not search special characters. Why
                              > bother if XHTML will do all the work? Are you assuming your text is
                              > screwed up?[/color]

                              Del,

                              What are you talking about? XHTML won't 'do all the work' now would it?

                              As you can see, in my original question I said... "large files of prose"
                              to "xhtml".

                              There're <carriage return>'s and/or <line feed>'s sprinkled throughout
                              these "large files of prose". I want to, under program control, search
                              them out, then replace or delete them (with extreme prejudice). ;-)

                              Listen, two line breaks in a row can be considered inter-paragraph and
                              one line break standing alone (surrounded by printable text) can be
                              considered intra-paragraph. I want my editor to search out and dispense
                              the appropriate action.

                              I'd like to change all the line break pairs and any space preceeding or
                              succeeding them to become...

                              <space><new line>
                              </p><new line>
                              <new line>
                              <p><new line>

                              and I'd like to change all the single line breaks and any space
                              preceeding or succeeding them to a single word space.

                              Then, voila, I'll have big chunk of the conversion process completed.

                              Thank you...

                              Rich

                              Comment

                              Working...