Loading ...
Sorry, an error occurred while loading the content.
 

Re: [Clip] Re: add commas in address string

Expand Messages
  • Art Kocsis
    ... with a comma ... letter with a comma ... Mike, Whenever I have a one-off project such as this that does not lend itself to a simple clip I find it is much
    Message 1 of 25 , Jul 2, 2011
      At 07/01/2011 06:06, Mike Breiding wrote:
      > Postal code: I need to replace the space in front of the first number
      with a comma
      > State abbreviation: I need to replace the space in front of the first
      letter with a comma
      > City : I need to replace the space in front of the first letter with a comma

      At 07/01/2011 11:21, Mike Breiding wrote:
      >I would still like to get this right as I have another list of addresses
      >See: http://epicroadtrips.com/parks_list/
      >It was extracted from PDF and is a bit of a mess.

      Mike,

      Whenever I have a one-off project such as this that does not lend itself to
      a simple clip I find it is much more efficient to just manually convert the
      file to a fixed field format by making use of NTB's block edit functions.
      Your parks_list file would only take about 5-10 minutes to convert. (In
      fact, writing this response took much longer than it would have taken to
      convert the entire file!<g>)

      In essence:

      - First I convert (via simple clips), all tabs to spaces and
      all \R to \r\n (RegEx replace statement)
      - Next, starting from the left, I insert (via S&R), a large number
      of spaces in front of each desired field
      - Next, I find the longest entry in the left most field and set the cursor
      a few spaces beyond that col position on the last row and SHFT-Click
      at the beginning of the first row.
      -Then right click and select "Cut Block" then "Left Align", move the cursor
      to the start of line 1 and right click "Paste Block". (The Left Align
      is a little trick to quickly align the next field for the entire file
      as it is already selected.)
      - Repeat for the next left-most variable length field.

      After all fields have been converted, it is now simple to insert any field
      separator desired, re-arrange, extract or delete fields, etc. In your case,
      change all "| " to ", " and delete all multiple spaces.

      For small numbers of lines, instead of the block cut & paste, I set the
      cursor just beyond the longest entry but on the first line and use a simple
      clip to do multiple CNTL-DEL, DOWN-ARROWs (about 5 or 10 per invocation).

      ^!Keyboard CTRL+DELETE
      ^!Keyboard Down
      ^!Keyboard CTRL+DELETE
      ^!Keyboard Down
      ^!Keyboard CTRL+DELETE
      ^!Keyboard Down
      etc

      I put all three clips (tabs, new lines, Del&Down) on my toolbar for one
      click operation and include the right click functions in my Shortcut Menu
      (View | Options | Shortcut Menu)

      An example in gory detail follows:
      (Alternately, Since there are a lot of long lines, download the example
      file from:
      http://www.box.net/shared/998tzn0qhdi23hbvgtku)

      Comments on the RegEx pattern used:
      Even though the \K removes the preceding pattern from the capture,
      the "(...)" still counts as a subpattern.
      The leading \R is a work around for the mishandling of "^" and
      requires an initial empty line
      It would REALLY be nice if the "^" operator worked as per spec
      instead of being ignored by NTB! Then ^(.*?\|){4}\K(.*?$) would
      be the preferred pattern and not require an initial empty line.


      Sample extract from http://epicroadtrips.com/parks_list/ (long lines)
      --------------------------------------------------------
      BANDELIER|NM|Jason Lott|15 Entrance Road|Los
      Alamos|NM|87544-9508|505-672-3861|505-672-9714
      BIG BEND|NP|Bill Wellman|P.O. Box 129|Big
      Bend|TX|79834-0129|432-477-2251|432-477-1172
      BIG HOLE|NB|Stephen Black|P.O. Box 237; 16425 Highway 43
      West|Wisdom|MT|59761-0137|406-689-3155|406-689-3151
      BIG SOUTH FORK|NR&RA|Stennis Young|4564 Leatherwood
      Road|Oneida|TN|37841|423-569-9778|423-569-5505
      BLUE RIDGE PARKWAY|PW|Phil Francis|199 Hemphill Knob
      Road|Asheville|NC|28803|828-271-4779|828-271-4117
      HERBERT HOOVER|NHS|Cheryl Schreier|P.O. Box 607; 110 Parkside Drive|West
      Branch|IA|52358-0607|319-643-2541|319-643-5367

      After spaces insertion before address field (after 3 "|"s)
      using: "\R(.*?\|){3}\K(.*?$)" >> " $2"
      BANDELIER|NM|Jason Lott| 15 Entrance Road|Los
      Alamos|NM|87544-9508|505-672-3861|505-672-9714
      BIG BEND|NP|Bill Wellman| P.O. Box 129|Big
      Bend|TX|79834-0129|432-477-2251|432-477-1172
      BIG HOLE|NB|Stephen Black| P.O. Box 237;
      16425 Highway 43 West|Wisdom|MT|59761-0137|406-689-3155|406-689-3151
      BIG SOUTH FORK|NR&RA|Stennis Young| 4564
      Leatherwood Road|Oneida|TN|37841|423-569-9778|423-569-5505
      BLUE RIDGE PARKWAY|PW|Phil Francis| 199
      Hemphill Knob Road|Asheville|NC|28803|828-271-4779|828-271-4117
      HERBERT HOOVER|NHS|Cheryl Schreier| P.O. Box
      607; 110 Parkside Drive|West Branch|IA|52358-0607|319-643-2541|319-643-5367

      After Cut Block, Left Align & Paste Block:
      BANDELIER|NM|Jason Lott| 15 Entrance Road|Los
      Alamos|NM|87544-9508|505-672-3861|505-672-9714
      BIG BEND|NP|Bill Wellman| P.O. Box 129|Big
      Bend|TX|79834-0129|432-477-2251|432-477-1172
      BIG HOLE|NB|Stephen Black| P.O. Box 237; 16425 Highway 43
      West|Wisdom|MT|59761-0137|406-689-3155|406-689-3151
      BIG SOUTH FORK|NR&RA|Stennis Young| 4564 Leatherwood
      Road|Oneida|TN|37841|423-569-9778|423-569-5505
      BLUE RIDGE PARKWAY|PW|Phil Francis| 199 Hemphill Knob
      Road|Asheville|NC|28803|828-271-4779|828-271-4117
      HERBERT HOOVER|NHS|Cheryl Schreier| P.O. Box 607; 110 Parkside Drive|West
      Branch|IA|52358-0607|319-643-2541|319-643-5367


      Repeating for spaces insertion before city field (after 4 "|"s)
      using: "\R(.*?\|){4}\K(.*?$)" >> " $2"
      BANDELIER|NM|Jason Lott| 15 Entrance
      Road| Los
      Alamos|NM|87544-9508|505-672-3861|505-672-9714
      BIG BEND|NP|Bill Wellman| P.O. Box
      129| Big
      Bend|TX|79834-0129|432-477-2251|432-477-1172
      BIG HOLE|NB|Stephen Black| P.O. Box 237; 16425 Highway 43
      West|
      Wisdom|MT|59761-0137|406-689-3155|406-689-3151
      BIG SOUTH FORK|NR&RA|Stennis Young| 4564 Leatherwood
      Road| Oneida|TN|37841|423-569-9778|423-569-5505
      BLUE RIDGE PARKWAY|PW|Phil Francis| 199 Hemphill Knob
      Road|
      Asheville|NC|28803|828-271-4779|828-271-4117
      HERBERT HOOVER|NHS|Cheryl Schreier| P.O. Box 607; 110 Parkside
      Drive| West
      Branch|IA|52358-0607|319-643-2541|319-643-5367

      After Cut Block, Left Align & Paste Block:
      BANDELIER|NM|Jason Lott| 15 Entrance
      Road| Los Alamos|NM|87544-9508|505-672-3861|505-672-9714
      BIG BEND|NP|Bill Wellman| P.O. Box
      129| Big Bend|TX|79834-0129|432-477-2251|432-477-1172
      BIG HOLE|NB|Stephen Black| P.O. Box 237; 16425 Highway 43
      West| Wisdom|MT|59761-0137|406-689-3155|406-689-3151
      BIG SOUTH FORK|NR&RA|Stennis Young| 4564 Leatherwood
      Road| Oneida|TN|37841|423-569-9778|423-569-5505
      BLUE RIDGE PARKWAY|PW|Phil Francis| 199 Hemphill Knob
      Road| Asheville|NC|28803|828-271-4779|828-271-4117
      HERBERT HOOVER|NHS|Cheryl Schreier| P.O. Box 607; 110 Parkside
      Drive| West Branch|IA|52358-0607|319-643-2541|319-643-5367
    • Mike Breiding - Morgantown WV
      Interesting. Your thorough explanation has caused me to look at this more carefully. I will give your method a try and see what I end up with. I am sure I will
      Message 2 of 25 , Jul 3, 2011
        Interesting.
        Your thorough explanation has caused me to look at this more carefully.
        I will give your method a try and see what I end up with.
        I am sure I will have more questions.

        Thanks for taking the time to write this up.
        -Mike
        ==========================

        On 7/2/2011 9:40 PM, Art Kocsis wrote:
        > At 07/01/2011 06:06, Mike Breiding wrote:
        > > Postal code: I need to replace the space in front of the first number
        > with a comma
        > > State abbreviation: I need to replace the space in front of the first
        > letter with a comma
        > > City : I need to replace the space in front of the first letter with
        > a comma
        >
        > At 07/01/2011 11:21, Mike Breiding wrote:
        > >I would still like to get this right as I have another list of addresses
        > >See: http://epicroadtrips.com/parks_list/
        > >It was extracted from PDF and is a bit of a mess.
        >
        > Mike,
        >
        > Whenever I have a one-off project such as this that does not lend itself to
        > a simple clip I find it is much more efficient to just manually convert the
        > file to a fixed field format by making use of NTB's block edit functions.
        > Your parks_list file would only take about 5-10 minutes to convert. (In
        > fact, writing this response took much longer than it would have taken to
        > convert the entire file!<g>)
        >
        > In essence:
        >
        > - First I convert (via simple clips), all tabs to spaces and
        > all \R to \r\n (RegEx replace statement)
        > - Next, starting from the left, I insert (via S&R), a large number
        > of spaces in front of each desired field
        > - Next, I find the longest entry in the left most field and set the cursor
        > a few spaces beyond that col position on the last row and SHFT-Click
        > at the beginning of the first row.
        > -Then right click and select "Cut Block" then "Left Align", move the cursor
        > to the start of line 1 and right click "Paste Block". (The Left Align
        > is a little trick to quickly align the next field for the entire file
        > as it is already selected.)
        > - Repeat for the next left-most variable length field.
        >
        > After all fields have been converted, it is now simple to insert any field
        > separator desired, re-arrange, extract or delete fields, etc. In your case,
        > change all "| " to ", " and delete all multiple spaces.
        >
        > For small numbers of lines, instead of the block cut & paste, I set the
        > cursor just beyond the longest entry but on the first line and use a simple
        > clip to do multiple CNTL-DEL, DOWN-ARROWs (about 5 or 10 per invocation).
        >
        > ^!Keyboard CTRL+DELETE
        > ^!Keyboard Down
        > ^!Keyboard CTRL+DELETE
        > ^!Keyboard Down
        > ^!Keyboard CTRL+DELETE
        > ^!Keyboard Down
        > etc
        >
        > I put all three clips (tabs, new lines, Del&Down) on my toolbar for one
        > click operation and include the right click functions in my Shortcut Menu
        > (View | Options | Shortcut Menu)
        >
        > An example in gory detail follows:
        > (Alternately, Since there are a lot of long lines, download the example
        > file from:
        > http://www.box.net/shared/998tzn0qhdi23hbvgtku)

        <SNIP>
      • Don
        ... And A-PDF Extractor thus uses positioning to solve that. Give it a try. I do some pretty complex extractions. This should probably go off topic if it
        Message 3 of 25 , Jul 3, 2011
          On 7/2/2011 10:22 AM, Axel Berger wrote:
          > Don wrote:
          >> Use a pdf extractor -- great program -- can preserve spacing when
          >> extracting.
          >
          > The problem is, there are no spaces in PDF, just letters and places
          > where to put them. So as letters usually don't touch any extractor
          > including copying out of Acrobat Reader has to guess, whether there is
          > just the normal distance between adjacent letters or an extra space
          > there. Of course some programs, often using dictionaries and other help,
          > are better at guessing than others.
          >
          > Axel

          And A-PDF Extractor thus uses positioning to solve that. Give it a try.
          I do some pretty complex extractions. This should probably go off
          topic if it continues so I'll copy there, but it will preserve the
          "non-existent" spacing by using the relative positions of the content.
          It then has some positioning meta data which I clean with a simple clip.
          I like it a lot and I use it "back and forth" with notetab to extract
          content.
        • John Shotsky
          Don, thinking I might be able to use A-PDF Extractor, I tried it out. If you have any hyphens or dashes in your source document, they are all converted to the
          Message 4 of 25 , Jul 3, 2011
            Don, thinking I might be able to use A-PDF Extractor, I tried it out. If you have any hyphens or dashes in your source
            document, they are all converted to the word 'minus' in the output text. While that 'could' be fixed with a big global
            F/R, it would then also remove any valid cases of the word 'minus' at the same time. I did mention it to their tech
            support.

            Here are a couple of extracted text lines:
            Cover and cook on high for 30minus45 minutes
            1 scallion minusminus thinly sliced
            10 green onions, cut into 3minusinch pieces

            I tried all of the various output methods, but this is not affected by any user options. This test was done on a 112
            page document with hundreds to thousands of hyphens in the pdf text. Not ONE hyphen remained in the output.

            Regards,
            John
            -----Original Message-----
            From: ntb-clips@yahoogroups.com [mailto:ntb-clips@yahoogroups.com] On Behalf Of Don
            Sent: Friday, July 01, 2011 19:41
            To: ntb-clips@yahoogroups.com
            Subject: Re: [Clip] Re: add commas in address string

            > I would still like to get this right as I have another list of
            > addresses I need to convert to .CSV
            > See: http://epicroadtrips.com/parks_list/
            > It was extracted from PDF and is a bit of a mess.
            > Thanks to all.
            > -Mike

            Use a pdf extractor -- great program -- can preserve spacing when extracting.


            ------------------------------------

            Fookes Software: http://www.fookes.com/
            NoteTab website: http://www.notetab.com/ NoteTab Discussion Lists: http://www.notetab.com/groups.php

            ***
            Yahoo! Groups Links
          • Dave
            Hi have you tried the free version of PDF http://www.tracker-software.com/ ??? THANKYOU DAVE ... From: John Shotsky To:
            Message 5 of 25 , Jul 4, 2011
              Hi
              have you tried the free version of PDF http://www.tracker-software.com/
              ???
              THANKYOU DAVE

              ----- Original Message -----
              From: "John Shotsky" <jshotsky@...>
              To: <ntb-clips@yahoogroups.com>
              Sent: Monday, July 04, 2011 3:06 AM
              Subject: RE: [Clip] Re: add commas in address string


              > Don, thinking I might be able to use A-PDF Extractor, I tried it out. If
              > you have any hyphens or dashes in your source
              > document, they are all converted to the word 'minus' in the output text.
              > While that 'could' be fixed with a big global
              > F/R, it would then also remove any valid cases of the word 'minus' at the
              > same time. I did mention it to their tech
              > support.
              >
              > Here are a couple of extracted text lines:
              > Cover and cook on high for 30minus45 minutes
              > 1 scallion minusminus thinly sliced
              > 10 green onions, cut into 3minusinch pieces
              >
              > I tried all of the various output methods, but this is not affected by any
              > user options. This test was done on a 112
              > page document with hundreds to thousands of hyphens in the pdf text. Not
              > ONE hyphen remained in the output.
              >
              > Regards,
              > John
              > -----Original Message-----
              > From: ntb-clips@yahoogroups.com [mailto:ntb-clips@yahoogroups.com] On
              > Behalf Of Don
              > Sent: Friday, July 01, 2011 19:41
              > To: ntb-clips@yahoogroups.com
              > Subject: Re: [Clip] Re: add commas in address string
              >
              >> I would still like to get this right as I have another list of
              >> addresses I need to convert to .CSV
              >> See: http://epicroadtrips.com/parks_list/
              >> It was extracted from PDF and is a bit of a mess.
              >> Thanks to all.
              >> -Mike
              >
              > Use a pdf extractor -- great program -- can preserve spacing when
              > extracting.
              >
              >
              > ------------------------------------
              >
              > Fookes Software: http://www.fookes.com/
              > NoteTab website: http://www.notetab.com/ NoteTab Discussion Lists:
              > http://www.notetab.com/groups.php
              >
              > ***
              > Yahoo! Groups Links
              >
              >
              >
              >
              >
              > ------------------------------------
              >
              > Fookes Software: http://www.fookes.com/
              > NoteTab website: http://www.notetab.com/
              > NoteTab Discussion Lists: http://www.notetab.com/groups.php
              >
              > ***
              > Yahoo! Groups Links
              >
              >
              >
            • Eb
              Hi Flo, As a bit of trivia, while Wikepedia is correcet, we do indeed have nine digits in our postal code, hardly anyone knows what the last four digits are
              Message 6 of 25 , Jul 4, 2011
                Hi Flo,

                As a bit of trivia, while Wikepedia is correcet, we do indeed have nine digits in our postal code, hardly anyone knows what the last four digits are (except bulk mailers, who are required to use all nine digits in order to get the so-called "presorted-by-zip-code" discounts in mailing fees).

                The five-digit-only use will most likely remain in wide-spread use until those of us, who learned the original five digit sysytem in the 60's (?), are long gone, (or (whisper) until the post office starts to charge extra for not using all nine digits, or worse, does not deliver mail without it).


                Result: if one is to write software or clips to deal with zip codes (US Postal Codes), one will have to deal with both possibilities.



                Cheers


                Eb



                --- In ntb-clips@yahoogroups.com, "flo.gehrke" <flo.gehrke@...> wrote:
                >
                > --- In ntb-clips@yahoogroups.com, Mike Breiding - Morgantown WV <mike@> wrote:
                > >
                > >
                > > Postal code:
                > > I need to replace the space in front of the first number with a comma
                > >
                > > State abbreviation:
                > > I need to replace the space in front of the first letter with a comma
                > >
                > > City :
                > > I need to replace the space in front of the first letter with a comma
                > >
                > >
                > > 125 N. Main Street City ST 11111
                > >
                > > Then I will paste into Excel
                >
                > I looked it up in Wiki and found that the US Postal Code is a nine-digit ZIP code, separated with '-' between position #5 and #6, and there are two spaces between state code and ZIP code -- isn't it?
                >
                > That is, in order to change a list of addresses like...
                >
                > 1500 E. Main Ave Springfield VA 22262-1010
                > 1500 E. Main Ave Springfield VA 22262-1010
                > 1500 E. Main Ave Springfield VA 22262-1010
                >
                > to...
                >
                > 1500 E. Main Ave,Springfield,VA,22262-1010
                > 1500 E. Main Ave,Springfield,VA,22262-1010
                > 1500 E. Main Ave,Springfield,VA,22262-1010
                >
                > you could try...
                >
                > ^!Replace "(?x-i)\x20{1,2} ( ((?=\d{5}-\d{4}$)) | ((?=[[:upper:]]{2},\d{5}-\d{4}$)) | ((?=\w{1,},[[:upper:]]{2},\d{5}-\d{4}$)) )" >> "," WARS
                > ; End of long line
                > ^!IfError End
                > ^!Goto Skip_-2
                >
                > It's written in Extended Mode to make the subpatterns more visible.
                >
                > Maybe it's more readable if we split the long alternation into three command lines...
                >
                > ; Match two spaces in front of ZIP code
                > ^!Replace "\x20{2}(?=\d{5}-\d{4}$)" >> "," WARS
                > ; Match one space in front of state code
                > ^!Replace "(?-i)\x20(?=[[:upper:]]{2},\d{5})" >> "," WARS
                > ; Match one space in front of city
                > ^!Replace "(?-i)\x20(?=\w{1,},[[:upper:]]{2},\d{5})" >> "," WARS
                >
                > Regards,
                > Flo
                >
              • John Shotsky
                As far as I can see, the free version can t export text. The only save option is pdf, and the only export option is image . Removed. Regards, John From:
                Message 7 of 25 , Jul 4, 2011
                  As far as I can see, the free version can't export text. The only save option is pdf, and the only export option is
                  'image'. Removed.



                  Regards,

                  John



                  From: ntb-clips@yahoogroups.com [mailto:ntb-clips@yahoogroups.com] On Behalf Of Dave
                  Sent: Monday, July 04, 2011 06:29
                  To: ntb-clips@yahoogroups.com
                  Subject: Re: [Clip] Re: add commas in address string





                  Hi
                  have you tried the free version of PDF http://www.tracker-software.com/
                  ???
                  THANKYOU DAVE

                  ----- Original Message -----
                  From: "John Shotsky" <jshotsky@... <mailto:jshotsky%40comcast.net> >
                  To: <ntb-clips@yahoogroups.com <mailto:ntb-clips%40yahoogroups.com> >
                  Sent: Monday, July 04, 2011 3:06 AM
                  Subject: RE: [Clip] Re: add commas in address string

                  > Don, thinking I might be able to use A-PDF Extractor, I tried it out. If
                  > you have any hyphens or dashes in your source
                  > document, they are all converted to the word 'minus' in the output text.
                  > While that 'could' be fixed with a big global
                  > F/R, it would then also remove any valid cases of the word 'minus' at the
                  > same time. I did mention it to their tech
                  > support.
                  >
                  > Here are a couple of extracted text lines:
                  > Cover and cook on high for 30minus45 minutes
                  > 1 scallion minusminus thinly sliced
                  > 10 green onions, cut into 3minusinch pieces
                  >
                  > I tried all of the various output methods, but this is not affected by any
                  > user options. This test was done on a 112
                  > page document with hundreds to thousands of hyphens in the pdf text. Not
                  > ONE hyphen remained in the output.
                  >
                  > Regards,
                  > John
                  > -----Original Message-----
                  > From: ntb-clips@yahoogroups.com <mailto:ntb-clips%40yahoogroups.com> [mailto:ntb-clips@yahoogroups.com
                  <mailto:ntb-clips%40yahoogroups.com> ] On
                  > Behalf Of Don
                  > Sent: Friday, July 01, 2011 19:41
                  > To: ntb-clips@yahoogroups.com <mailto:ntb-clips%40yahoogroups.com>
                  > Subject: Re: [Clip] Re: add commas in address string
                  >
                  >> I would still like to get this right as I have another list of
                  >> addresses I need to convert to .CSV
                  >> See: http://epicroadtrips.com/parks_list/
                  >> It was extracted from PDF and is a bit of a mess.
                  >> Thanks to all.
                  >> -Mike
                  >
                  > Use a pdf extractor -- great program -- can preserve spacing when
                  > extracting.
                  >
                  >
                  > ------------------------------------
                  >
                  > Fookes Software: http://www.fookes.com/
                  > NoteTab website: http://www.notetab.com/ NoteTab Discussion Lists:
                  > http://www.notetab.com/groups.php
                  >
                  > ***
                  > Yahoo! Groups Links
                  >
                  >
                  >
                  >
                  >
                  > ------------------------------------
                  >
                  > Fookes Software: http://www.fookes.com/
                  > NoteTab website: http://www.notetab.com/
                  > NoteTab Discussion Lists: http://www.notetab.com/groups.php
                  >
                  > ***
                  > Yahoo! Groups Links
                  >
                  >
                  >





                  [Non-text portions of this message have been removed]
                • Axel Berger
                  ... I always use the command line tools from XPDF http://www.foolabs.com/xpdf/home.html They do all they are menat to and quite reliably. I mostly notice lost
                  Message 8 of 25 , Jul 4, 2011
                    John Shotsky wrote:
                    > Don, thinking I might be able to use A-PDF Extractor, I tried it out.

                    I always use the command line tools from XPDF
                    http://www.foolabs.com/xpdf/home.html

                    They do all they are menat to and quite reliably. I mostly notice lost
                    spaces when copying and pasting from the Acrobat reader and can't say,
                    if pdftotext is less prone to them. In principle it is rather difficult
                    as said and forces progress to guess. some willbe better at guessing
                    than others.

                    Axel
                  • Dave
                    Hi just copy and paste any amount of text you want ?? THANKYOU DAVE M ... From: John Shotsky To: Sent:
                    Message 9 of 25 , Jul 5, 2011
                      Hi
                      just copy and paste any amount of text you want ??
                      THANKYOU DAVE M

                      ----- Original Message -----
                      From: "John Shotsky" <jshotsky@...>
                      To: <ntb-clips@yahoogroups.com>
                      Sent: Tuesday, July 05, 2011 6:20 AM
                      Subject: RE: [Clip] Re: add commas in address string


                      > As far as I can see, the free version can't export text. The only save
                      > option is pdf, and the only export option is
                      > 'image'. Removed.
                      >
                      >
                      >
                      > Regards,
                      >
                      > John
                      >
                      >
                      >
                      > From: ntb-clips@yahoogroups.com [mailto:ntb-clips@yahoogroups.com] On
                      > Behalf Of Dave
                      > Sent: Monday, July 04, 2011 06:29
                      > To: ntb-clips@yahoogroups.com
                      > Subject: Re: [Clip] Re: add commas in address string
                      >
                      >
                      >
                      >
                      >
                      > Hi
                      > have you tried the free version of PDF http://www.tracker-software.com/
                      > ???
                      > THANKYOU DAVE
                      >
                      > ----- Original Message -----
                      > From: "John Shotsky" <jshotsky@... <mailto:jshotsky%40comcast.net>
                      > >
                      > To: <ntb-clips@yahoogroups.com <mailto:ntb-clips%40yahoogroups.com> >
                      > Sent: Monday, July 04, 2011 3:06 AM
                      > Subject: RE: [Clip] Re: add commas in address string
                      >
                      >> Don, thinking I might be able to use A-PDF Extractor, I tried it out. If
                      >> you have any hyphens or dashes in your source
                      >> document, they are all converted to the word 'minus' in the output text.
                      >> While that 'could' be fixed with a big global
                      >> F/R, it would then also remove any valid cases of the word 'minus' at the
                      >> same time. I did mention it to their tech
                      >> support.
                      >>
                      >> Here are a couple of extracted text lines:
                      >> Cover and cook on high for 30minus45 minutes
                      >> 1 scallion minusminus thinly sliced
                      >> 10 green onions, cut into 3minusinch pieces
                      >>
                      >> I tried all of the various output methods, but this is not affected by
                      >> any
                      >> user options. This test was done on a 112
                      >> page document with hundreds to thousands of hyphens in the pdf text. Not
                      >> ONE hyphen remained in the output.
                      >>
                      >> Regards,
                      >> John
                      >> -----Original Message-----
                      >> From: ntb-clips@yahoogroups.com <mailto:ntb-clips%40yahoogroups.com>
                      >> [mailto:ntb-clips@yahoogroups.com
                      > <mailto:ntb-clips%40yahoogroups.com> ] On
                      >> Behalf Of Don
                      >> Sent: Friday, July 01, 2011 19:41
                      >> To: ntb-clips@yahoogroups.com <mailto:ntb-clips%40yahoogroups.com>
                      >> Subject: Re: [Clip] Re: add commas in address string
                      >>
                      >>> I would still like to get this right as I have another list of
                      >>> addresses I need to convert to .CSV
                      >>> See: http://epicroadtrips.com/parks_list/
                      >>> It was extracted from PDF and is a bit of a mess.
                      >>> Thanks to all.
                      >>> -Mike
                      >>
                      >> Use a pdf extractor -- great program -- can preserve spacing when
                      >> extracting.
                      >>
                      >>
                      >> ------------------------------------
                      >>
                      >> Fookes Software: http://www.fookes.com/
                      >> NoteTab website: http://www.notetab.com/ NoteTab Discussion Lists:
                      >> http://www.notetab.com/groups.php
                      >>
                      >> ***
                      >> Yahoo! Groups Links
                      >>
                      >>
                      >>
                      >>
                      >>
                      >> ------------------------------------
                      >>
                      >> Fookes Software: http://www.fookes.com/
                      >> NoteTab website: http://www.notetab.com/
                      >> NoteTab Discussion Lists: http://www.notetab.com/groups.php
                      >>
                      >> ***
                      >> Yahoo! Groups Links
                      >>
                      >>
                      >>
                      >
                      >
                      >
                      >
                      >
                      > [Non-text portions of this message have been removed]
                      >
                      >
                      >
                      > ------------------------------------
                      >
                      > Fookes Software: http://www.fookes.com/
                      > NoteTab website: http://www.notetab.com/
                      > NoteTab Discussion Lists: http://www.notetab.com/groups.php
                      >
                      > ***
                      > Yahoo! Groups Links
                      >
                      >
                      >
                    • John Shotsky
                      That would only be 112 copies and pastes for one of my documents. Just a little easier to Save As Text . Besides, this thread was about pdf to text
                      Message 10 of 25 , Jul 5, 2011
                        That would only be 112 copies and pastes for one of my documents. Just a little easier to 'Save As' 'Text'. Besides,
                        this thread was about pdf to text exporting that retained column information. Most PDF tools can actually save text, but
                        most of them don't do it very well. A-PDF would be perfect, except for its glaring text error of spelling out the word
                        'minus' instead of producing a '-'. Their feedback is that they don't have an earlier version, and they don't have an
                        update. In other words minusminus they aren't going to fix it any time soon.



                        Regards,

                        John





                        From: ntb-clips@yahoogroups.com [mailto:ntb-clips@yahoogroups.com] On Behalf Of Dave
                        Sent: Tuesday, July 05, 2011 06:19
                        To: ntb-clips@yahoogroups.com
                        Subject: Re: [Clip] Re: add commas in address string





                        Hi
                        just copy and paste any amount of text you want ??
                        THANKYOU DAVE M

                        ----- Original Message -----
                        From: "John Shotsky" <jshotsky@... <mailto:jshotsky%40comcast.net> >
                        To: <ntb-clips@yahoogroups.com <mailto:ntb-clips%40yahoogroups.com> >
                        Sent: Tuesday, July 05, 2011 6:20 AM
                        Subject: RE: [Clip] Re: add commas in address string

                        > As far as I can see, the free version can't export text. The only save
                        > option is pdf, and the only export option is
                        > 'image'. Removed.
                        >
                        >
                        >
                        > Regards,
                        >
                        > John
                        >
                        >
                        >
                        > From: ntb-clips@yahoogroups.com <mailto:ntb-clips%40yahoogroups.com> [mailto:ntb-clips@yahoogroups.com
                        <mailto:ntb-clips%40yahoogroups.com> ] On
                        > Behalf Of Dave
                        > Sent: Monday, July 04, 2011 06:29
                        > To: ntb-clips@yahoogroups.com <mailto:ntb-clips%40yahoogroups.com>
                        > Subject: Re: [Clip] Re: add commas in address string
                        >
                        >
                        >
                        >
                        >
                        > Hi
                        > have you tried the free version of PDF http://www.tracker-software.com/
                        > ???
                        > THANKYOU DAVE
                        >
                        > ----- Original Message -----
                        > From: "John Shotsky" <jshotsky@... <mailto:jshotsky%40comcast.net> <mailto:jshotsky%40comcast.net>
                        > >
                        > To: <ntb-clips@yahoogroups.com <mailto:ntb-clips%40yahoogroups.com> <mailto:ntb-clips%40yahoogroups.com> >
                        > Sent: Monday, July 04, 2011 3:06 AM
                        > Subject: RE: [Clip] Re: add commas in address string
                        >
                        >> Don, thinking I might be able to use A-PDF Extractor, I tried it out. If
                        >> you have any hyphens or dashes in your source
                        >> document, they are all converted to the word 'minus' in the output text.
                        >> While that 'could' be fixed with a big global
                        >> F/R, it would then also remove any valid cases of the word 'minus' at the
                        >> same time. I did mention it to their tech
                        >> support.
                        >>
                        >> Here are a couple of extracted text lines:
                        >> Cover and cook on high for 30minus45 minutes
                        >> 1 scallion minusminus thinly sliced
                        >> 10 green onions, cut into 3minusinch pieces
                        >>
                        >> I tried all of the various output methods, but this is not affected by
                        >> any
                        >> user options. This test was done on a 112
                        >> page document with hundreds to thousands of hyphens in the pdf text. Not
                        >> ONE hyphen remained in the output.
                        >>
                        >> Regards,
                        >> John
                        >> -----Original Message-----
                        >> From: ntb-clips@yahoogroups.com <mailto:ntb-clips%40yahoogroups.com> <mailto:ntb-clips%40yahoogroups.com>
                        >> [mailto:ntb-clips@yahoogroups.com <mailto:ntb-clips%40yahoogroups.com>
                        > <mailto:ntb-clips%40yahoogroups.com> ] On
                        >> Behalf Of Don
                        >> Sent: Friday, July 01, 2011 19:41
                        >> To: ntb-clips@yahoogroups.com <mailto:ntb-clips%40yahoogroups.com> <mailto:ntb-clips%40yahoogroups.com>
                        >> Subject: Re: [Clip] Re: add commas in address string
                        >>
                        >>> I would still like to get this right as I have another list of
                        >>> addresses I need to convert to .CSV
                        >>> See: http://epicroadtrips.com/parks_list/
                        >>> It was extracted from PDF and is a bit of a mess.
                        >>> Thanks to all.
                        >>> -Mike
                        >>
                        >> Use a pdf extractor -- great program -- can preserve spacing when
                        >> extracting.
                        >>
                        >>
                        >> ------------------------------------
                        >>
                        >> Fookes Software: http://www.fookes.com/
                        >> NoteTab website: http://www.notetab.com/ NoteTab Discussion Lists:
                        >> http://www.notetab.com/groups.php
                        >>
                        >> ***
                        >> Yahoo! Groups Links
                        >>
                        >>
                        >>
                        >>
                        >>
                        >> ------------------------------------
                        >>
                        >> Fookes Software: http://www.fookes.com/
                        >> NoteTab website: http://www.notetab.com/
                        >> NoteTab Discussion Lists: http://www.notetab.com/groups.php
                        >>
                        >> ***
                        >> Yahoo! Groups Links
                        >>
                        >>
                        >>
                        >
                        >
                        >
                        >
                        >
                        > [Non-text portions of this message have been removed]
                        >
                        >
                        >
                        > ------------------------------------
                        >
                        > Fookes Software: http://www.fookes.com/
                        > NoteTab website: http://www.notetab.com/
                        > NoteTab Discussion Lists: http://www.notetab.com/groups.php
                        >
                        > ***
                        > Yahoo! Groups Links
                        >
                        >
                        >





                        [Non-text portions of this message have been removed]
                      • John Shotsky
                        I, for one, always use all 9 digits. (And I m from before there were even 5 digits!) The first five get you to an area, the last 4 get to your house, apt, etc.
                        Message 11 of 25 , Jul 5, 2011
                          I, for one, always use all 9 digits. (And I'm from before there were even 5 digits!) The first five get you to an area,
                          the last 4 get to your house, apt, etc. If the 9 digits are present, your mail can be delivered even without a full
                          address present.



                          Regards,

                          John



                          From: ntb-clips@yahoogroups.com [mailto:ntb-clips@yahoogroups.com] On Behalf Of Eb
                          Sent: Monday, July 04, 2011 12:55
                          To: ntb-clips@yahoogroups.com
                          Subject: [Clip] Re: add commas in address string





                          Hi Flo,

                          As a bit of trivia, while Wikepedia is correcet, we do indeed have nine digits in our postal code, hardly anyone knows
                          what the last four digits are (except bulk mailers, who are required to use all nine digits in order to get the
                          so-called "presorted-by-zip-code" discounts in mailing fees).

                          The five-digit-only use will most likely remain in wide-spread use until those of us, who learned the original five
                          digit sysytem in the 60's (?), are long gone, (or (whisper) until the post office starts to charge extra for not using
                          all nine digits, or worse, does not deliver mail without it).

                          Result: if one is to write software or clips to deal with zip codes (US Postal Codes), one will have to deal with both
                          possibilities.

                          Cheers

                          Eb

                          --- In ntb-clips@yahoogroups.com <mailto:ntb-clips%40yahoogroups.com> , "flo.gehrke" <flo.gehrke@...> wrote:
                          >
                          > --- In ntb-clips@yahoogroups.com <mailto:ntb-clips%40yahoogroups.com> , Mike Breiding - Morgantown WV <mike@> wrote:
                          > >
                          > >
                          > > Postal code:
                          > > I need to replace the space in front of the first number with a comma
                          > >
                          > > State abbreviation:
                          > > I need to replace the space in front of the first letter with a comma
                          > >
                          > > City :
                          > > I need to replace the space in front of the first letter with a comma
                          > >
                          > >
                          > > 125 N. Main Street City ST 11111
                          > >
                          > > Then I will paste into Excel
                          >
                          > I looked it up in Wiki and found that the US Postal Code is a nine-digit ZIP code, separated with '-' between position
                          #5 and #6, and there are two spaces between state code and ZIP code -- isn't it?
                          >
                          > That is, in order to change a list of addresses like...
                          >
                          > 1500 E. Main Ave Springfield VA 22262-1010
                          > 1500 E. Main Ave Springfield VA 22262-1010
                          > 1500 E. Main Ave Springfield VA 22262-1010
                          >
                          > to...
                          >
                          > 1500 E. Main Ave,Springfield,VA,22262-1010
                          > 1500 E. Main Ave,Springfield,VA,22262-1010
                          > 1500 E. Main Ave,Springfield,VA,22262-1010
                          >
                          > you could try...
                          >
                          > ^!Replace "(?x-i)\x20{1,2} ( ((?=\d{5}-\d{4}$)) | ((?=[[:upper:]]{2},\d{5}-\d{4}$)) |
                          ((?=\w{1,},[[:upper:]]{2},\d{5}-\d{4}$)) )" >> "," WARS
                          > ; End of long line
                          > ^!IfError End
                          > ^!Goto Skip_-2
                          >
                          > It's written in Extended Mode to make the subpatterns more visible.
                          >
                          > Maybe it's more readable if we split the long alternation into three command lines...
                          >
                          > ; Match two spaces in front of ZIP code
                          > ^!Replace "\x20{2}(?=\d{5}-\d{4}$)" >> "," WARS
                          > ; Match one space in front of state code
                          > ^!Replace "(?-i)\x20(?=[[:upper:]]{2},\d{5})" >> "," WARS
                          > ; Match one space in front of city
                          > ^!Replace "(?-i)\x20(?=\w{1,},[[:upper:]]{2},\d{5})" >> "," WARS
                          >
                          > Regards,
                          > Flo
                          >





                          [Non-text portions of this message have been removed]
                        • Eb
                          I have no defense for not using all 9 digits, other than that the PO has never officially issued me a plus four number . Besides, the PO places bar codes on
                          Message 12 of 25 , Jul 7, 2011
                            I have no defense for not using all 9 digits, other than that the PO has never officially issued me a plus four number <g>.

                            Besides, the PO places bar codes on all letters, if the originator didn't. This bar code seems to take precedence over zip+four.


                            Cheers,


                            Eb

                            --- In ntb-clips@yahoogroups.com, "John Shotsky" <jshotsky@...> wrote:
                            >
                            > I, for one, always use all 9 digits. (And I'm from before there were even 5 digits!) The first five get you to an area,
                            > the last 4 get to your house, apt, etc. If the 9 digits are present, your mail can be delivered even without a full
                            > address present.
                            >
                            > ...
                          Your message has been successfully submitted and would be delivered to recipients shortly.