Alan et all,
Don't know how practical, but I thought I would put it out there -
I do a lot of converting of Words docs to html. JT's tidy MS Word command is a godsend, but there are things that I need to search and replace for -- things like empty p tags, apostrophies, quotes, emdshes, etc
I never have (yet) qotten my head around grep/stdn etc, so I end up using search/replace.
My question is whether it would be feasible to convert search/replace macros to their command equivalents, which I could then just append on to msword tidy?
I sent this a few weeks ago and got no response... does my question make any sense at all?
---------- Forwarded message ---------- From: David Clark david.clark@umb.edu Date: Jun 30, 2006 2:50 PM Subject: Macros to commands To: textmate@lists.macromates.com
Alan et all,
Don't know how practical, but I thought I would put it out there -
I do a lot of converting of Words docs to html. JT's tidy MS Word command is a godsend, but there are things that I need to search and replace for -- things like empty p tags, apostrophies, quotes, emdshes, etc
I never have (yet) qotten my head around grep/stdn etc, so I end up using search/replace.
My question is whether it would be feasible to convert search/replace macros to their command equivalents, which I could then just append on to msword tidy?
-- dc ----- David Clark Web Specialist Institute for Community Inclusion (http://www.communityinclusion.org/) david.clark@umb.edu (617) 287-4318
On Jul 14, 2006, at 10:22 AM, David Clark wrote:
My question is whether it would be feasible to convert search/replace macros to their command equivalents, which I could then just append on to msword tidy?
David Clark Web Specialist Institute for Community Inclusion (http://www.communityinclusion.org/) david.clark@umb.edu (617) 287-4318
You want to do a bunch of search and replace actions after running the word specific tidy?
If so, then you can just record a macro for all of it. You don't need to convert the search and replace macros to commands, a single macro should just work for you. Start recording, then run the tidy command, then do your searches and replaces and then end and save the macro.
i'm probably missing something though.
thomas Aylott—subtleGradient
On 14/7/2006, at 16:22, David Clark wrote:
I sent this a few weeks ago and got no response... does my question make any sense at all?
It’s feasible to do a widget to create search’n’replace commands, but a replace macro doesn’t theoretically translate exactly to a command -- so better to just learn how to do it from a command if you need this a lot.
For the records, that would be something like: perl -pe 's/«regexp»/«replacement»/'.