Two ways that come to mind:
1) Use regex to change all of the absolute paths in the original html to relative paths, import the html and images into Sigil in one go (Add Existing) ... save the epub.
2) Add the original html to Sigil. Add all of the original images to Sigil. Use regex to modify all the absolute paths in the html to the relative path that Sigil expects ...save the epub.
Can I ask why the image links in the html use absolute file:/// urls for the src attributes in the first place? It's not a very common practice. Relative paths make everything very portable and easily/quickly relocatable.
|