Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 07-22-2011, 12:46 PM   #1
StirlingEditor
Junior Member
StirlingEditor began at the beginning.
 
StirlingEditor's Avatar
 
Posts: 9
Karma: 10
Join Date: Jul 2011
Device: Kindle
Epub validation error (toc)

Hi y'all. First posting here. Feeling a bit shy. *sticks toe in the water gingerly* When I run my near-perfect (no, really!) epub through the validator in Sigil, I get this error message:

Quote:
This resource is present in the OPF <manifest>, but it's not reachable (it's unused).
I'm getting this error on every single one of my little chapter glyphs images (GIFs). I didn't always get this message, so I'm a bit unclear as to where I've taken a wrong turn.

CSS code:
Code:
.crescent{
  	width:30%;
	text-align:center;
   margin-left:auto;
	margin-right:auto;
}
Example in the xhtml files:
Code:
<div class="crescent">
      <strong><img alt="crescent.gif" class="image" src="../Images/crescent_fmt.gif" width="100%" /></strong>
    </div>
StirlingEditor is offline   Reply With Quote
Old 07-22-2011, 02:33 PM   #2
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,651
Karma: 5629001
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by StirlingEditor View Post
Hi y'all. First posting here. Feeling a bit shy. *sticks toe in the water gingerly* When I run my near-perfect (no, really!) epub through the validator in Sigil, I get this error message:



I'm getting this error on every single one of my little chapter glyphs images (GIFs). I didn't always get this message, so I'm a bit unclear as to where I've taken a wrong turn.

CSS code:
Code:
.crescent{
  	width:30%;
	text-align:center;
   margin-left:auto;
	margin-right:auto;
}
Example in the xhtml files:
Code:
<div class="crescent">
      <strong><img alt="crescent.gif" class="image" src="../Images/crescent_fmt.gif" width="100%" /></strong>
    </div>
That message says you have a image file that is not used anywhere in the book.
It may be a name difference if you also get a message about a missing image.

Also. Case sensitive file nemes trip you up: gif and GIF are not the same in all file systems, so the rules are case sensitive checked.
theducks is offline   Reply With Quote
 
Enthusiast
Old 07-22-2011, 02:40 PM   #3
StirlingEditor
Junior Member
StirlingEditor began at the beginning.
 
StirlingEditor's Avatar
 
Posts: 9
Karma: 10
Join Date: Jul 2011
Device: Kindle
Hmm...could it be the _fmt?

Quote:
Originally Posted by theducks View Post
That message says you have a image file that is not used anywhere in the book.
It may be a name difference if you also get a message about a missing image.

Also. Case sensitive file nemes trip you up: gif and GIF are not the same in all file systems, so the rules are case sensitive checked.
Thank you, ducks. What's interesting is that those images show up all over my epub and they show up beautifully when viewed. Given what you've mentioned, I'm wondering if maybe file is confused because somewhere along the way Sigil dumped in a _fmt on the end of all my file names. So when Sigil lists them in my images folder, they look like "crescent_fmt", "crescent_fmt1", "crescent_fmt2", etc., instead of just "crescent.gif" (I use that same image on each chapter-head page).

I don't know why the _fmt is on there or what it means or when it slipped in. Gah!
StirlingEditor is offline   Reply With Quote
Old 07-22-2011, 03:27 PM   #4
StirlingEditor
Junior Member
StirlingEditor began at the beginning.
 
StirlingEditor's Avatar
 
Posts: 9
Karma: 10
Join Date: Jul 2011
Device: Kindle
OMG, I figured it out! That's exactly what it was. The added numbers to the file name "crescent.gif" were added by sigil (or something) and then they weren't being called out in the xhtml files properly. I just tested one file, added the number, and voila! it worked.

Woot! Thanks ducks!
StirlingEditor is offline   Reply With Quote
Old 07-22-2011, 09:04 PM   #5
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,651
Karma: 5629001
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by StirlingEditor View Post
OMG, I figured it out! That's exactly what it was. The added numbers to the file name "crescent.gif" were added by sigil (or something) and then they weren't being called out in the xhtml files properly. I just tested one file, added the number, and voila! it worked.

Woot! Thanks ducks!
Sigil is dumb when converting/processing HTML to XHTML when adding multiple segments with the same filenames. As you found out it adds a digit for each time a another segment is added that has the same image.
Worse, if different sub-folder has HTML files have the same name, Sigil will over-write when it flattens into the Text folder

If the images are the same: REGEX Search and replace crescent\d+.gif with crescent.gif
Then delete the extra (files from the bookbrowser., leaving only crescent.gif
Change first, delete second.
I use the same image on all chapter headings regularly
theducks is offline   Reply With Quote
Reply

Tags
validator error

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Epub validation Error fiona86 ePub 3 06-25-2011 12:57 AM
epub validation error drwinn Workshop 17 03-22-2011 05:10 PM
epub validation error sassanik Sigil 19 12-08-2010 05:46 AM
ePub validation error sk19.gupta Introduce Yourself 6 10-19-2010 10:53 PM
ePub Validation Error mrbillb ePub 6 09-28-2010 02:14 PM


All times are GMT -4. The time now is 09:07 PM.


MobileRead.com is a privately owned, operated and funded community.