epub to epub conversion problem with regex spanning multiple input files
Hi there,
I am trying to fix some epubs I got, since they can't be used in my Sony PRS-T1. There are many problems, but I managed to write regular expressions to deal with them and got most of the things get straightened out. Now, for some reason the ePub file contains one HTML file for each page (!) of the books, which makes the reader starting a new page everytime, which I find very annoying. So, one of my regular expressions removes everything from the end of one of the </body> HTML file to the beginning of the next <body> element. This works quite nice when I test it in the Search and Replace wizard, but fails on actual conversion.
Now, my question is: Could it be that the conversion engine treats the files one by one? In that case, my regular expression could not match, since it spans files, but in the wizard, the whole ePub is presented as one file, so the expression matches.
Is there maybe an option to switch this behaviour on for conversion?
Any help appreciated,
Ctop
|