Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 11-23-2013, 04:04 PM   #1
Epiphany
Junior Member
Epiphany began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2013
Device: none
Help I got stuck trying to convert my book into an epub file.

I used an online free conversion tool to convert my book into an epub file. After submitting my book in an epub file to an online self publisher they sent me back the following message based on the epub file I sent them.

BK00017692.epub/index_split_006.xhtml(15,40224): element "img" missing required attribute "alt"

Can anyone out there help me decode this error and figure out how to fix this so I can proceed to publishing?
Epiphany is offline   Reply With Quote
Old 11-23-2013, 05:14 PM   #2
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by Epiphany View Post
I used an online free conversion tool to convert my book into an epub file. After submitting my book in an epub file to an online self publisher they sent me back the following message based on the epub file I sent them.

BK00017692.epub/index_split_006.xhtml(15,40224): element "img" missing required attribute "alt"

Can anyone out there help me decode this error and figure out how to fix this so I can proceed to publishing?
Yes.

When you embedded your image, you failed to use the alt tag. You can read about the alt tag at W3schools. Basically, the "alt" tag allows someone who is sight-impaired to "hear" the text of the alt tag instead of seeing the image that the alt tag describes.

So, you need to add the alt tag to the image tag in the ePUB. I'd recommend Sigil, if you have not previously used an ePUB editor.

Hitch
Hitch is offline   Reply With Quote
Old 11-23-2013, 07:10 PM   #3
theducks
Well trained by Cats
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: 30,891
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
the alt tag needs to be there. It can be nil (alt="") which is what would be used with a purely decorative image.
For other images use a meaningful description:

alt="Image01" tells nothing informative about the picture
alt="Niagra Falls in winter" now they know what the picture is ABOUT.

alt="Chapter 1" would typically be used for Graphical chapter Numbers
theducks is offline   Reply With Quote
Old 11-24-2013, 02:03 PM   #4
Epiphany
Junior Member
Epiphany began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2013
Device: none
You guys are great to offer me all this help. I did look at Sigil and unfortunately since I have no experience whatsoever with this sort of thing it looked so confusing. I will try again with the information you have given. Not sure if I will meet the deadline though. If only I could afford to pay someone to do it but will not be able to by the deadline of the publisher from which is only offering distribution and will not help me decipher or fix this problem unless I pay them for this service.
Epiphany is offline   Reply With Quote
Old 11-24-2013, 03:52 PM   #5
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Epiphany View Post
You guys are great to offer me all this help. I did look at Sigil and unfortunately since I have no experience whatsoever with this sort of thing it looked so confusing.
This alt fix is simple stuff, it is exactly as Hitch/theducks stated... sadly, this is one of the downfalls of these automatic conversions (they will produce garbage code... causing you much more headaches in the long-run).

If you open up your file in Sigil, and do a search, you should be able to find an "img" tag:

<div><img src="../Images/pg025-TableII.png" /></div>

"src" just tells the HTML the location/filename of the image. As you can see, there is no "alt".

What you want to do is add in an alt:

<div><img alt="Table II. Momentum of World Population" src="../Images/pg025-TableII.png" /></div>

alt can also be completely blank:

<div><img alt="" src="../Images/pg025-TableII.png" /></div>

Quote:
Originally Posted by Epiphany View Post
Not sure if I will meet the deadline though. If only I could afford to pay someone to do it but will not be able to by the deadline of the publisher from which is only offering distribution and will not help me decipher or fix this problem unless I pay them for this service.
Preposterous! This is the tiniest of tiny fixes!!!! When is this deadline?

If you need any more help, feel free to post here, PM me, or email me directly (*insert my MobileRead username* at gmail dot com).

This situation shall be fixed!

Last edited by Tex2002ans; 11-24-2013 at 03:54 PM.
Tex2002ans is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you convert Word file to ePub file? automa ePub 13 08-11-2013 04:52 PM
Stuck trying to convert Borders book to K3 Pingu Amazon Kindle 25 12-13-2010 10:10 PM
How can i convert HTML or txt file to EPUB file ? guguqiaqia ePub 7 05-28-2010 09:15 PM
Howto convert epub file abbyl75 Introduce Yourself 0 12-08-2008 11:28 AM


All times are GMT -4. The time now is 08:42 AM.


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