ABC | Hints&Tips | Overviews | Reference | Glossary | Support | ||
Contents : Technical reference : Advanced reference |
Filter files |
Filter files with the extension flt can be used in SuperMemo to globally process texts in the collection. For example, it is more convenient to do multiple replace text operations with filters that to do it manually with Find and replace on the registry pop-up menu.
Filter files support the filter file specification from SuperMemo 6 and SuperMemo 7; however, you will mostly want to use them in the following circumstances:
Other options are supported for compatibility only and are better accomplished with other functions of the program.
Filter files are text files than can be edited manually. They are made of sections such as [REPLACE], [DELIMITERS], [CUT], etc. Each section contains a list of arguments placed in separate lines. For example, the [REPLACE] section will contain pairs of strings: strings to be replaced and string to be put in place of replaced strings.
This is an exemplary contents of a filter file:
[DELIMITERS]
< > cut
{ } cut
[REPLACE]
histol: histology:
physiol: physiology:
mem: ''
endocr: ''
If you open the text registry with Search : Text, choose Apply filter on the registry pop-up menu and select such a file, the following changes will be made to texts throughout the collection:
Filter files are usually stored in the filters subdirectory