Converting Smart Quotes from Word HTML to HTML entities in macros
Submitted by Friday, 13 August, 2004 - 19:02
on
I'm very pleased with jEdit (4.1)... I've been using macros to clean up the "filtered" html that MSWord 2003 generates for a project I'm working on. One problem that I noticed, I can search and replace the weird "smart quotes" and elipses (sp?) that Word uses with HTML entities using the Search and replace dialogue box, but whenever I try to record it as a macro, it stops working. A typical macro, once recorded, looks like this:
SearchAndReplace.setSearchString("“");
SearchAndReplace.setReplaceString("“");
SearchAndReplace.setBeanShellReplace(false);
SearchAndReplace.setIgnoreCase(false);
SearchAndReplace.setRegexp(true);
SearchAndReplace.setSearchFileSet(new CurrentBufferSet());
SearchAndReplace.replaceAll(view);
Any ideas as to what I can do to get it to work as a macro?
SearchAndReplace.setSearchString("“");
SearchAndReplace.setReplaceString("“");
SearchAndReplace.setBeanShellReplace(false);
SearchAndReplace.setIgnoreCase(false);
SearchAndReplace.setRegexp(true);
SearchAndReplace.setSearchFileSet(new CurrentBufferSet());
SearchAndReplace.replaceAll(view);
Any ideas as to what I can do to get it to work as a macro?