Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Re: Re: One button text processing (OT)

by bm (Hermit)
on Jul 15, 2003 at 11:02 UTC ( [id://274357]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: One button text processing
in thread One button text processing

Also, I use UltraEdit in Windows which also has limited text processing capabilities

I beg to differ on that one...I am using version 10 and I find it to be as feature rich as I need. No Emacs sure but still a professional editor...what can't you automate?

  • Upper case: Alt F5
  • Capitalise: F5
  • Advanced->configuration->key mapping
  • ...

    Having said that, I like your utility.. :-)

    • Comment on Re: Re: Re: One button text processing (OT)
  • Replies are listed 'Best First'.
    Re: Re: Re: Re: One button text processing (OT)
    by nysus (Parson) on Jul 15, 2003 at 12:15 UTC
      I'm not knocking UE. It's all a part-time programmer like me needs. But I highly doubt a power programmer would use it. That being said, UE has shortcomings. For example, I don't see a way to do sentence case. And it's RE engine isn't capable of knocking out any heavy duty search and replace functions.

      $PM = "Perl Monk's";
      $MCF = "Most Clueless Friar Abbot Bishop Pontiff";
      $nysus = $PM . $MCF;
      Click here if you love Perl Monks

        But I highly doubt a power programmer would use it

        why do you say that? Because it it proprietory? Because it has a graphical interface?

        For example, I don't see a way to do sentence case

        Try selecting the word you want to capitalise and hit the F5 key. But this is not something you really need when editing code....UE is designed with editing code in mind.

        And it's RE engine isn't capable of knocking out any heavy duty search and replace functions.

        :-) But have you looked??

        Do Ctrl - F to bring up the Find dialogue, hit the 'Help' button to bring up the help for text searching. This brings up the 'simple' regular expressions (eg - ^p for a crlf). Halfway down the page there is a link to 'Full regular expressions'. You can choose *nix or UE syntax, and the regex features are extensive: I would wager more than you will ever need.

        I am not sure what a power programmer is, but this fulltime programmer has no complaints with UE after 4 years - 2 years of using Emacs before that - <aside> "which is a nice OS, but lacks a good text editor" :-) (anon) </aside>. I now use UE to edit my *nix files across samba!

        I recommend that you take a good long look at the feature set of UE - or upgrade to the latest version.

        Hope this helps.

          Well, by converting to sentence case, I mean changing only the first letter after a period to caps, not the first letter in every word to caps. I'm sorry, UE just doesn't do that. And how about programming UE to NOT lowercase the first letter in words like (Monday|Tuesday|Wednesday|Thur.|Wed.|Fri.), etc. to lowercase in a chunk of text. Or how about programming it to NOT capitalize words like 'the' or 'a' when not found at the beginning of line or sentence? With something like Vim, you could pipe the text to some Perl program to handle that kind of thing for you.

          And, yes, I deal with stuff like this all the time when editing/revising content formatted with HTML (not that I would ever use UE to edit HTML in the first place) and so I do need custom, heavy duty regular expressions. And that brings me back to the major reason I wrote this program: Dreamweaver, which I use to edit HTML all the time, is almost totally useless for what I need.

          Yes, I have version 10 of UE and I have seen, and used on occasion, the "advanced" RE syntax it uses. You are right, UE suits my purposes 99 times out of 100 when I'm coding and I'm glad it suits yours. I didn't mean to insult anyone when saying UE probably isn't suited for "hard core" programmers. I'm sorry if you somehow found this offensive.

          $PM = "Perl Monk's";
          $MCF = "Most Clueless Friar Abbot Bishop Pontiff";
          $nysus = $PM . $MCF;
          Click here if you love Perl Monks

    Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Domain Nodelet?
    Node Status?
    node history
    Node Type: note [id://274357]
    help
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this?Last hourOther CB clients
    Other Users?
    Others lurking in the Monastery: (4)
    As of 2024-04-20 02:24 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found