Quote:
Originally Posted by Toxaris
I am a bit surprised actually, because if you import a HTML into Sigil all the related files (stylesheets, images, etc) should also be imported automatically and the links adapted. At least that is what I am used to. It could be that this is not the case if you use absolute instead of relative links.
|
It is definitely the absolute file urls that are the difference here. To Sigil, any url that begins with a protocol prefix is treated as an external reference. External reference urls are never updated/adjusted by by Sigil. "http://www.blah.com" is the same as "file:///c:/blah.jpg" in that regard.
Otherwise, as you said, all css and images usually get pulled in automatically with the html.
Quote:
Originally Posted by Toxaris
With RegEx it should be easily fixable.
|
Agreed. Zip, Zap. Absolute is now relative. Two passes at most (one for images and one for audio files).