Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 03-18-2012, 10:11 AM   #1
Perkin
Guru
Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.
 
Perkin's Avatar
 
Posts: 655
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
Image Alt tag

If an image is missing an img alt tag is supposed to be displayed instead of the image, but it's not getting displayed if the image is missing, is there any way to 'turn it on' ?

Say the html is as follows:
Code:
<img alt="Chapter 1"  src="../Images/ch01.jpg" title="Chapter 1" />
If the image is available, it display all well and good, but if I do a stripped down version, removing all the images (leaving code the same - I know I'll probably get validation errors, but should still work), the alt tag should be displayed in its place.

I would like to get it to do so without having to go through and recode all the image tags.
Perkin is offline   Reply With Quote
Old 03-18-2012, 11:15 AM   #2
Keroberos
Zealot
Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.
 
Keroberos's Avatar
 
Posts: 128
Karma: 238654
Join Date: Aug 2009
Device: Kobo Mini (4GB), Nook Classic wi-fi, iPod Touch (Bluefire Reader)
I think whether the alt attribute displays or not is up to the reader software. According the ePub spec, the alt tag may be used by the reader (as opposed to must), which means it's another thing in the spec that is optional so may or may not be supported. As an alternative, you could try the title attribute (although that's optional too).
Keroberos is offline   Reply With Quote
Old 03-18-2012, 11:50 AM   #3
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,970
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
The thing is, why do we need an alt tag? If the ePub is built properly, the image will be there anyway and display.

Last edited by JSWolf; 03-19-2012 at 04:40 PM.
JSWolf is offline   Reply With Quote
Old 03-18-2012, 11:50 AM   #4
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
In a well-designed reader, you'd be able to enable/disable images and get the image or the alt text... But I know of no reader like this, and probably most readers will just show blank (or crash) if an image file is missing.
Jellby is offline   Reply With Quote
Old 03-18-2012, 01:01 PM   #5
Perkin
Guru
Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.
 
Perkin's Avatar
 
Posts: 655
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
A friend has got a college textbook which has a lot of superfluous pics for fancy text (especially chapter/section headings) which I was hoping could easily be trimmed, but still leave the caption/title as a guide to what it was - there's loads and a few are quite large filesize wise for what's actuall being displayed. In a browser it would be all well and good, but on a handheld reader is just silly.

I'll just run a search and replace and change the img tags to just display whatever is in the alt tag as a span with a class in which fontsize is doubled, then safely remove the images.

On my Sony any missing images are just ignored, and don't display anything, at least it doesn't crash.
Perkin is offline   Reply With Quote
Old 03-18-2012, 01:04 PM   #6
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by JSWolf View Post
The thing is, why do we need an alt tag? If the ePub is built properly, the image will be there anyway and display/
Just how is the image displayed in a text-to-speech system?

And a user may choose not to display images.
Jellby is offline   Reply With Quote
Old 03-19-2012, 10:31 AM   #7
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: 29,800
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by JSWolf View Post
The thing is, why do we need an alt tag? If the ePub is built properly, the image will be there anyway and display/
People do use TTS from time to time for various reason including Poor Vision.
The Alt Tag is read by the speech software and should contain a short summary of the image. ie 'Publisher Logo'
theducks is offline   Reply With Quote
Old 03-19-2012, 12:57 PM   #8
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
That said, it is perfectly legal to have a blank alt tag (alt=""), and it is recommended when the image is purely decorative and does not need any explanation. The alt tag should not be a duplicate or a replacement of a caption.
Jellby is offline   Reply With Quote
Old 01-15-2013, 03:18 PM   #9
FunkeXMix
Enthusiast
FunkeXMix began at the beginning.
 
Posts: 48
Karma: 10
Join Date: Aug 2011
Device: Ipad
Here's couple of annoying requirements from the newest edition of iBookStore Asset Guide 5.1.

For accessibility , the alt attribute for an image must be included; the value must be an appropriate replacement for the image. It should just be what you would have put in the prose if the image was not included , as shown in the following example:

<p>The hillside was covered in poppies.
<img src="images/page1/flowers.jpeg" alt="The poppies are red, orange, and
yellow, and a winding path leads to a house.">
A dog was asleep on the porch.</p>

The following example is not as effective; the alt text only describes the image, instead of being a textual replacement for the image. When reading without the image, the text does not flow as well as the example above.

<p>The hillside was covered in poppies. <img src="images/page1/flowers.jpeg"
alt="A bunch of poppies and a house."> A dog was asleep on the porch.</p>

The following alt attributes are not acceptable: alt="none", alt="nothing", alt="image", or
alt="page 3". Leaving out the alt attribute is also not acceptable. The attribute alt="" is acceptable in cases where the image is decorative and does not have any content or meaning

Personally I wish this was not necessary for iBooks publishing. I mean, if you make a fashion type eBook with lots of images. Visually impaired readers who need alt tags are not even consumers of this type of eBook.

It's just a pointless time consuming addition to the production flow for some type of eBooks.

Last edited by FunkeXMix; 01-15-2013 at 03:54 PM.
FunkeXMix is offline   Reply With Quote
Old 01-15-2013, 04:54 PM   #10
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,970
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I was just looking at Eye of the World in getting it ready for reading. The maps you cannot have an appropriate alt for it. There are other graphics that are just decorations so alt tags should be removed. Apple is losing the plot and going over the deep end here.
JSWolf is offline   Reply With Quote
Old 01-16-2013, 06:17 AM   #11
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by FunkeXMix View Post
Personally I wish this was not necessary for iBooks publishing. I mean, if you make a fashion type eBook with lots of images. Visually impaired readers who need alt tags are not even consumers of this type of eBook.

It's just a pointless time consuming addition to the production flow for some type of eBooks.
It's not an iBooks requirement, it's an XHTML requirement, and ePub requires (sort of) valid XHTML.

As I said above, and as you repeat in your post, alt="" is perfectly valid and recommended in decorative images. But sometimes images are not just decorative, they may be a sample of hand-written text, a strange symbol, or even an illustration that's closely linked to the text ("and this is what he found when he opened the door: [here comes an illustration]"). For those cases you need to provide something meaningful in the alt attribute. For the rest, just use alt="". Apple is not requiring anything new, but they may be providing bad examples.
Jellby is offline   Reply With Quote
Old 04-17-2013, 12:53 AM   #12
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by Jellby View Post
As I said above, and as you repeat in your post, alt="" is perfectly valid and recommended in decorative images. But sometimes images are not just decorative, they may be a sample of hand-written text, a strange symbol, or even an illustration that's closely linked to the text ("and this is what he found when he opened the door: [here comes an illustration]"). For those cases you need to provide something meaningful in the alt attribute. For the rest, just use alt="". Apple is not requiring anything new, but they may be providing bad examples.
In such cases, I believe the alt tag is what allows the text that is shown in image form to become searchable. Very important in a book that uses, for example, pictures of a sign, or handwritten notes, which cannot be coded as plain text and an image is used instead. If it is important to the book, people searching for it will fail to find it -- unless an alt tag gives the text to the search engine of the ereader.
eschwartz is offline   Reply With Quote
Old 04-17-2013, 07:30 PM   #13
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,970
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
A handwritten note can be rendered with an embedded handwriting font.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML Meta tag for cover image URL? MrPLD Conversion 5 01-29-2012 12:15 AM
alt z does not work mmm2m8r Amazon Kindle 1 04-10-2011 02:14 AM
Adding an Owner tag to tag list? Fangles Library Management 1 02-25-2011 02:32 AM
Could somebody help with src and alt, please? GillianMary Sigil 2 10-08-2010 08:12 AM
No Alt-t for time! schulzmc Amazon Kindle 2 02-24-2009 08:48 PM


All times are GMT -4. The time now is 04:06 AM.


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