Re: getting rid of multiple consecutive blanks ?

fjmancho <[email protected]> Sun, 25 Oct 2009 18:36:49 +0300
Newsgroups gmane.comp.handhelds.palm.peditors
Message-ID <4607-SnapperMsg89F91E37C70A2167@[172.28.105.27]>
I copy and paste from the web once o twice a week. 
WepPro allows you to select the whole page and paste in memo.

Once in memo I launch pEditTool get rid of the text I dont want (begining and end ) and perform a number of find-replace actions.


1. Multiple FL
  Simple find-replace action (no regexp). 
- Launch pEditTool find-replace 
- Edit text field; input two FL 
- go to replace text fiel; tipe one FL
- run the find replace as many times as you need

2. Unwanted characters (upper part high ascii code)
- regexp on 
- min match on
- TEXT FIELD:        [À-ÿ^]
- TEXT FIELD FOR REPLACEMENT EMPTY



3. My main problem is that division between paragraphs is lost. So that I need to insert LF in between.

- regexp on
- SEARCH TEXT:   (@0:\.|,)(@1:[A-z.])
- REPLACE TEXT: \0 [WHAT EVER NUMBER OF LINES YOU WHANT]\1

It is not perfect. *Usually* the separation between paragraphs is absolutly lost so there is no space between the dot (.) or comma (,) and the next ordinary character (from A to z in the ascii code). If that is the case one or two lines are inserted in between.



I have got those regexp as favorite text in my find-replace pEditTool configuration.



I hope this help



José





 ..... Original Message .......
On Sun, 25 Oct 2009 09:58:13 -0400 Paul Nevai <[email protected]> wrote:
>Hi Voytek:
>
>On Sun, Oct 25, 2009 at 11:40:42PM +1100, Voytek Eymont wrote:
>> 
>> > 1)  Do you refer to horizontal spaces (p32) and tabs (p9) as your
>> > example would suggest, or/and also vertical gaps i.e. linefeeds (p10) and
>> > carriage returns (p13)?
>> 
>> horizontal spaces, yes, tabs, perhaps
>> 
>> search/regep that Paul suggested clears the above ones
>> 
>> LF and CR, yes
>
>See "visibilator" in pedit's manual, do an visibilator job, then do a REGEXP
>search/replace job on the visibilated text, then do an de-visibilator job
>again.
>
>Am I too terse?
>
>All=my=best, Paul 
>



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

Latest pedit/pToolSet/LapTopHack at http://www.osuweb.net/~pc/pca/pc_all.zip
pedit/pToolSet/LapTopHack scripting info/resources at http://www.peditors.com
Peditors Forum http://groups.yahoo.com/group/peditors
Unsubscribe by writing to peditors-unsubscribe-hHKSG33Tihh4sT85+ipIM4ckdKdSAMto@public.gmane.org! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/peditors/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/peditors/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/