View Single Post
Old 06-30-2017, 12:31 PM   #18
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,621
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Toxaris View Post
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 View Post
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).
DiapDealer is offline   Reply With Quote