Re: getting rid of multiple consecutive blanks ?
John Markley <[email protected]> Wed, 28 Oct 2009 17:43:49 -0400
| Newsgroups | gmane.comp.handhelds.palm.peditors |
|---|---|
| Message-ID | <[email protected]> |
Quoting John Markley <[email protected]>: This part of my explanation is wrong - > But there remains a potential problem with LFdelete. > Because SPdelete can run as a REGEXP find, it will identify > two-or-more spaces and will leave single spaces alone. So if you run > it on text that has only single spaces, nothing will happen. *But*, > if you run LFdelete on text that only has single LineFeeds, it will > delete some of those, because even though the find field has two LF's, > that is processed as "one-or-two", non-REGEXP, rather than > two-or-more. It's not "one-or-two", it is just plain two, but not two-or-more. This next part is correct - > The reason I say "some of those" is that you don't always > see LFs in Palm text as empty lines. They can also be whitespace at > the end of a line. So, you can have a line of text with whitespace at > its end, then only one blank line below that, and then another line of > text, but the f&r will read this as two contiguous LFs, because it is, > and delete one resulting in disappearance of the single blank line > that you really didn't want deleted! Since we can't use REGEXP for this, there is no way I can fix it. I am emailing you two copies of your sample memo, one of which I ran LFdelete on once, and one twice. On both I ran SPdelete once. The ColonDelete has serious problems. I was able to make it so times e.g. 09:30 are preserved with a semicolon in place of the colon. But, there is another problem. Some of the text items ending in a colon in your sample memo have several words with spaces between them, such as "Other type of assignment:". Due to the way the Pedit symmetric selector (ESC s) works, the work-arounds I have tried to be able to delete a multi-word string followed by a colon produce other problems. I'm going to need to start over on this one. ~ John ------------------------------------ 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/