The help for the Split filter states....
If you wish, you can control the names of the output files. All names are based on the input filename, in the input filename's folder. If you wish to control the output path, you MUST use the output filter.
Code: Select all
Macro name Use %f The input file's filename e.g. 'readme' %e The input file's extension without any period e.g. 'txt' %d The split file counter, starting from 0. %3.3d The split file counter, starting from 0, formatted in a field 3 wide with leading zeros. %5.5d The split file counter, starting from 0, formatted in a field 5 wide with leading zeros. %x The split file counter in hexadecimal.
Another would be to use any global variable as part of the split Filename.
Suppose I have a text file for a whole Bible, and wish to split it into 66 separate files, using a suitable pattern.
Suitable split filenames might be
Clearly the first two characters can be generated by %2.2d
The characters "_XXX.usfm" can either be fixed, or the XXX part derived from the input filename.
But the booknames could best be derived from the split pattern.
Please review this suggestion and advise. Thanks.