Change Filter List
Adding Filters to the Filter List
New filters can be added to the filter list to perform additional processing steps. The Filter menu group filters by function. To add a new filter, select a menu item from the Filter menus and it will be added, below the currently selected filter.
Filters cannot be added or moved above the File input filter or below the File output filter. It doesn't make sense to put filters before or after these items.
To demonstrate adding new filters, we will add to the filter list we started with in Lesson 1. Let's add a simple search and replace filter - but this time, replacing capital 'T' and replacing with '*':
- Select the Replace filter (replacing 'T' with 't')
- Select Filters Menu\Replace Menu\Find exactly
- A Replace filter is added below the current filter
- Type the capital letter 'T' (without quotes) in the Find section
- Type the letter '*' (without quotes) in the Replace With section
- Ensure the Match Case check box is checked
Click the Trial Run button.
The text will be unchanged from before - the addition of the new filter has not made any difference.
Why? Order is important!
Filters are always applied from top to bottom, corresponding to the way they are shown.
The order that filters are applied is VERY important to TextPipe.
- Switch back to the Filters to Apply tab (remember - you can click the Trial Run button to toggle back)
- Select the Replace [T] with [*] filter
- Click the Up arrow button at the bottom of the window, just to the right of the [Remove All] button
- The Replace [T] with [*] filter is now moved up one position
Click the Trial Run button.
Now the changes are made correctly. The second filter is unnecessary because all capital T's have already been replaced.
An important part of advanced use of TextPipe is understanding how to break a task down into smaller steps. There are thousands of uses for TextPipe's filtering by just combining filters together.
|