how can one ensure that adding @inputFilename does not corrupt the UTF-8 encoding for the rest of the file?
Example: filename is "44 Oberoù an Ebestel.txt"
Code: Select all
Comment...
| Add id from filename
|
|--Add file header [\\id @inputFilename ]
|
|--Comment...
| Process inserted filename
|
+--Restrict lines:Line 1 .. line 1
|
|--Remove multiple whitespace
|
|--Replace [.txt] with []
| [X] Match case
| [ ] Whole words only
| [ ] Case sensitive replace
| [ ] Prompt on replace
| [ ] Skip prompt if identical
| [ ] First only
| [ ] Extract matches
|
+--Perl pattern [^(\\id) (\d+) (\.+)$] with [$1 $2 $3\r\n\\h $3]
[ ] Match case
[ ] Whole words only
[ ] Case sensitive replace
[ ] Prompt on replace
[ ] Skip prompt if identical
[ ] First only
[ ] Extract matches
Maximum text buffer size 4096
[X] Maximum match (greedy)
[ ] Allow comments
[ ] '.' matches newline
[X] UTF-8 Support