----boundary-LibPST-iamunique-496135784_-_-
Content-type: text/plain
Look in Helmut's CPC page. Cpc/Search goes quite a
long way (if not all the way) towards this with an
'easy' graphical interface.
I am not an expert, but I think that Babel supports regular
expressions, and thus vertually unlimited power.
Cheers
Robert
>> -----Original Message-----
>> From: Douglas G. Danforth [mailto:danforth{([at]})nowhere.xy>> Sent: 30 July 2003 03:57
>> To: blackbox{([at]})nowhere.xy>> Subject: Repetitive editing
>>
>>
>> *** WARNING ***
>>
>> This mail has originated outside your organization,
>> either from an external partner or the Global Internet.
>> Keep this in mind if you answer this message.
>>
>> Folks,
>>
>> I frequently (more often than one might suppose) come across
>> situations
>> where I must convert text from one form to another. For example
>>
>> DCOSH (dbl) DOUBLE PRECISION
>>
>> becomes
>>
>> Dcosh = "DCOSH" "(" dbl ")" .
>>
>> I can not do this in any kind of repetitive way using the BlackBox
>> editor, that is, at least not to my knowledge.
>>
>> If I were using TvEdit (an old 1970's editor) I could
>> define a macro
>> "/z" (Ctrl-z) that would start at the current location and
>>
>> DCOSH (dbl) DOUBLE PRECISION
>> "cw" (copy word)
>> DCOSH DCOSH (dbl) DOUBLE PRECISION
>> "lw" (lower the case of the word)
>> dcosh DCOSH (dbl) DOUBLE PRECISION
>> "uc" (upper case character)
>> Dcosh DCOSH (dbl) DOUBLE PRECISION
>> ")" (go to start of next word)
>> 'i= "[ESC]' (insert an equals sign and space, revert back to command
>> mode by typing the escape key)
>> Dcosh = "DCOSH (dbl) DOUBLE PRECISION
>> ".)" (go end of current word)
>> 'i"[ESC]' (insert quote, revert to command mode)
>> "s(" (search for a left parenthesis on this line)
>> 'i"[ESC]>i" [ESC]' (put double quotes around parenthesis)
>> Dcosh = DCOSH "(" dbl) DOUBLE PRECISION
>> "s)" (search for right parens)
>> 'i "[ESC]>i"[ESC]' (quote right parens)
>> Dcosh = DCOSH "(" dbl ")" DOUBLE PRECISION
>> "$dc" (infinite delete characters to end of line )
>> Dcosh = DCOSH "(" dbl ")"
>> "i .[ESC]" (end expression with a period)
>>
>> Then any other line of the form
>> FUNCTION (arg) type
>> could be converted by a single keystroke (Ctrl-z, say) to
>> Function = "FUNCTION" "(" arg ")" .
>>
>> My fingers still remember the ease with which one could edit large
>> passages of repetitive text without having them leave the
>> keyboard to
>> touch a mouse.
>>
>> Has anyone implemented a macro capability as an add on to
>> the Blackbox
>> editor?
>>
>> -Doug
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
--------------------------------------------
To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
blackbox-request{([at]})nowhere.xy
To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.
Send any problem reports or questions related to this email list to the list owner at
owner-blackbox{([at]})nowhere.xy
Current posting policy:
a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.
b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.
----boundary-LibPST-iamunique-496135784_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIFxwYXINClxwYXINCkxvb2sgaW4gSGVsbXV0J3Mg
Q1BD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