Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old Today, 05:03 AM   #1
Siavahda
Addict
Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.
 
Posts: 298
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kobo Clara Colour
How to make alt text visible?

I'm using EPUB, not KEPUB, if that's relevant. I do not know what is relevant info so I apologise in advance if I'm leaving out something very basic!

I'm reading a very experimentally-structured book, and I've just discovered that lots of the images have plot-relevant alt-text. Which is not visible on my Kobo.

(No I have no idea what the publisher/author was thinking.)

Example

Code:
div class="_idGenObjectLayout-1">
			<div id="_idContainer119" class="rasterise">
				<img class="_idGenObjectAttribute-1" src="image/31.jpg" alt="The words 'Ocean Bride&quot; very large and black, in parentheses, set in a collection of broken and mismatched letter forms. Monstrously ugly. Appropriately. "/>
			</div>
		</div>
Applicable CSS
Code:
div._idGenObjectLayout-1 {
	text-align:center;
}
div.rasterise {
	border-color:#000106;
	border-width:0px;
	border-style:solid;
text-align:center;
width:100%;
margin-left:0;
margin-top:1em;
display:inline-block;
object-fit:contain; 
} 
img._idGenObjectAttribute-1 {
	min-width:70%;
	width:70.00%;
}
Ideally what I'd love is some mass find-and-replace I can do to zap all the alt-texts visible, but I realise that might not be an option.
Siavahda is offline   Reply With Quote
Old Today, 02:03 PM   #2
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,931
Karma: 9600930
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
I would convert the alt text into a caption underneath the image.

How many images do you need to convert?
Are all images structured the same as your example?
Karellen is online now   Reply With Quote
Old Today, 03:33 PM   #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: 85,975
Karma: 154365289
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Alt text only displays if the images are not there. Alt text is also used for a program doing TTS to read since it cannot read the images.
JSWolf is offline   Reply With Quote
Old Today, 06:33 PM   #4
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: 56,184
Karma: 183211710
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
Alt text only displays if the images are not there. Alt text is also used for a program doing TTS to read since it cannot read the images.
Since the alt text is relevant to the content, the OP seems to want a way to make it visible. Using figure/caption technique suggested by @Karellen seems like a good idea. If the formatting of the images is consistent, this could likely be done by a regex to extract the alt text and insert it as a caption.

Code:
  <figure class="center">
    <img class="glyphw40" src="../Images/do_not_print_large_jobs.png" alt="The words 'Ocean Bride&quot; very large and black, in parentheses, set in a collection of broken and mismatched letter forms. Monstrously ugly. Appropriately."/>

    <figcaption>"The words 'Ocean Bride' very large and black, in parentheses, set in a collection of broken and mismatched letter forms. Monstrously ugly. Appropriately. "</figcaption>
  </figure>
Note that adding the class center to figure centers both the image and the caption. You could wrap a <p class="center">around the <img> to center only the image as in the first attached image.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2026-12-04 153042.png
Views:	7
Size:	353.4 KB
ID:	227956   Click image for larger version

Name:	Screenshot 2026-12-04 153403.png
Views:	6
Size:	360.5 KB
ID:	227957  
DNSB is offline   Reply With Quote
Reply

Tags
alt text, epub, kobo


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Alt Text in epub Lancelot ePub 3 09-11-2013 04:55 AM
How do you make TOC visible from Kindle Pull Down Menu Julius Caesar Amazon Kindle 3 08-27-2013 10:52 AM
How do you hide/make not-visible sections in CSS/epub? FatDog ePub 2 02-23-2012 06:54 PM
How to make the book format on the reader visible in Calibre MRi Library Management 4 05-10-2011 04:45 PM
How to make image visible? ppharm PDF 2 01-11-2011 07:40 AM


All times are GMT -4. The time now is 08:44 PM.


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