The symptom is that a temporary file left in output folder, which cannot be deleted unless TextPipe is closed.
Code: Select all
Comment...
| Split into separate USFM files
|
| 2012-10-17
| Added a formfeed (\f) before each \id after line 2
|
| 2010-02-25
| Changed the split pattern to \f and "At pattern"
| Changed the split counter to start at 1
|
| This solved the following problem:
| A zero length file was created with filename 00_*.usfm
|
| Possible further enhancement:
| Add \id XXX before \id MAT to increment the file number
| How to include the book ID in the split filename?
|
|--Restrict lines:Line 2 .. line END - 1
| |
| +--Perl pattern [^(\\id)] with [\f$1]
| [X] Match case
| [ ] Whole words only
| [ ] Case sensitive replace
| [ ] Prompt on replace
| [ ] Skip prompt if identical
| [ ] First only
| [ ] Extract matches
| Maximum text buffer size 4096
| [ ] Maximum match (greedy)
| [ ] Allow comments
| [ ] '.' matches newline
| [X] UTF-8 Support
|
+--Split at pattern ^\f, filename %2.2d_%f.usfm, number 1 count 1