Blame | Last modification | View Log | Download
remoair.txt-------------Macro to remove all 'air' from a textfile. All empty lines are removed. All multiple tabs and spaces are replaced by single tabs and spaces. All preceding and trailing tabs and spaces are are removed.A useful preparation before importing texts retrieved from various sources (WWW, CD-roms) into a word processor.Created and contributed by Gerrit Kiers (gkiers@dds.nl)------------------------------------------File name: remoair.tpmDisplay name: Rem&ove all 'air'Author: Gerrit Kiers, January 12 1999Description: Replace all multiple tabs and spaces with single ones and remove all empty linesPlay once.Recorded keystrokes:Ctrl-EndEnterEnterF5: Mark All '^[\t ]*$' [Conditions: Text]MENU: Edit - Cut other - Bookmarked linesEndEnterEnterF8: Replace All ' +' with ' ' [Conditions: Text; RegularE] [Scope: ActiveD]F8: Replace All '\t ' with '\t' [Conditions: Text; RegularE] [Scope: ActiveD]F8: Replace All ' \t' with '\t' [Conditions: Text; RegularE] [Scope: ActiveD]F8: Replace All '\t+' with '\t' [Conditions: Text; RegularE] [Scope: ActiveD]F8: Replace All '^[\t ]+' with '' [Conditions: Text; RegularE] [Scope: ActiveD]F8: Replace All '[\t ]+$' with '' [Conditions: Text; RegularE] [Scope: ActiveD]F8: Replace All '\n\n' with '' [Conditions: Text; RegularE] [Scope: ActiveD]Ctrl-Home.