View Single Post
Old 09-13-2018, 04:38 PM   #9
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,391
Karma: 169098492
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by yJan1986 View Post
@DNSB: the book in this screenshot ( https://drive.google.com/open?id=1sQ...iN6ry0WEsuX4n4 ) is my EPUB file, opened with sigil, that creates these problems. It has been converted from the HTML file to EPUB with calibre.
Looking at the file list, it shows two html files. One for the cover image and another that contains the rest of the ebook.

Quote:
Originally Posted by yJan1986 View Post
However, after the second time converting the file, EPUB to EPUB, Sigil complaints about "not well formed HTML", and the images in the file seem to have disappeared from the html view in sigil.
I've seen that happen due to a habit of Sigil's of placing files in subdirectories. This can lead to links to images not being updated properly so they don't point to the Images subdirectory and stylesheet links not pointing to the Styles subdirectory. Again looking at your posted image, Sigil will move your stylesheets into a Styles subdirectory so the 2 visible stylesheet links that currently reads:

Code:
<link href="stylesheet.css" rel="stylesheet" type="text/css"/>
<link href="page_styles.css" rel="stylesheet" type="text/css"/>
would need to be edited to read:

Code:
<link href="../Styles/stylesheet.css" rel="stylesheet" type="text/css"/>
<link href="../Styles/page_styles.css" rel="stylesheet" type="text/css"/>
For images, it's very similar. I don't see an image link in what is visible but I suspect they would look similar to:

Code:
<img alt="" class="glyphw36" src="trdlogo.jpeg"/>
and need to be changed to:

Code:
<img alt="" class="glyphw36" src="../Images/trdlogo.jpeg"/>
I ended up saving searches to clean up both stylesheet and images links.
DNSB is offline   Reply With Quote