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

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 03-18-2017, 01:52 AM   #1
tobias.wantzen
Junior Member
tobias.wantzen began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Sep 2011
Device: none
Amazon eInk Devices: Hidden Text Possible?

Hello,

there are images with text on them, which should be searchable, in my actual eBook. So I decided to embed the image, set all the image text as HTML text down under it, and hide that text with CSS:
Code:
p.hidden {
	color: #fff;
	visibility: hidden;
	font-size: 1px;
	line-height: 1px;
}
Within EPUB and all KF8 devices everything is fine. But the eInk doesn't work.

Is there any option to make this work? Or: Is there any better workaround, that is good enough for all devices?

Thanks
Tobias
tobias.wantzen is offline   Reply With Quote
Advert
Old 03-20-2017, 03:45 AM   #2
GrannyGrump
Obsessively Dedicated...
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 1,093
Karma: 10731488
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
have you tried adding

display: none



Then you should not have to worry about setting font sizes and color and line height.

(it is better never to set color anywhere, to prevent conflict with the user's choice of colors.
I understand also, that Kindle devices will not honor line-height below 120%. I could be wrong about that though, you should check the Amazon current formatting guidelines)

Last edited by GrannyGrump; 03-20-2017 at 03:53 AM.
GrannyGrump is offline   Reply With Quote
Old 03-20-2017, 03:50 PM   #3
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 16,036
Karma: 83624236
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by tobias.wantzen View Post
Within EPUB and all KF8 devices everything is fine. But the eInk doesn't work.
There's plenty of eInk devices that support KF8. Perhaps you meant it doesn't work in the old mobi-format?
DiapDealer is offline   Reply With Quote
Old 03-21-2017, 12:02 AM   #4
tobias.wantzen
Junior Member
tobias.wantzen began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Sep 2011
Device: none
Yes, I meant the old MOBI. Kindle Previewer 3.9 displays everything fine. Kindle Previewer 2.94, Kindle DX shows the problems.

I tried display: none; and Kindle DX (Previewer 2.94) hides the text. What I couldn't test is the searchability, because it is not working correctly in my Previewer installations. I chose visibility: hidden; over display: none; because of searchability.

Tobias
tobias.wantzen is offline   Reply With Quote
Old 03-21-2017, 12:02 AM   #5
tobias.wantzen
Junior Member
tobias.wantzen began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Sep 2011
Device: none
BTW: Thanks for your suggestions!
tobias.wantzen is offline   Reply With Quote
Advert
Old 03-21-2017, 11:20 AM   #6
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 16,036
Karma: 83624236
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I don't think "display: none", or "visibility: hidden" are supported in the mobi format. In fact, css isn't supported in the mobi format at all. Now that's not to say that the kindlegen conversion process can't massage certain css input into mobi-compliant markup, but I know of no mobi markup (which is essentially HTML 3.2) that will create hidden text that's still searchable. In all likelihood, "display: none" (as well as "visibilty: hidden") will simply cause the text to be left out of the mobi markup entirely after conversion. In short: I strongly suspect that invisible text that can still be searched is simply not possible in the older mobi-only format. But I could be wrong. Is an img tag's alt text searchable in mobi?

Last edited by DiapDealer; 03-21-2017 at 11:28 AM.
DiapDealer is offline   Reply With Quote
Old 03-22-2017, 07:55 AM   #7
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 3,747
Karma: 9814736
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by DiapDealer View Post
Is an img tag's alt text searchable in mobi?
Based on my informal tests, img tag alt text is not searchable in EPUB and MOBI7/AZW3 (tested with ADE 1.7-4.5, Mobipocket Reader, the Kindle for PC app and my PW2.)
I don't think that there's any mainstream epub/mobi app out there that actually supports img tag alt attributes. (Alt attribute values might be read by DAISY compliant apps with TTS support.)
Doitsu is offline   Reply With Quote
Old 03-22-2017, 10:24 AM   #8
jhowell
Wizard
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 1,404
Karma: 12023439
Join Date: Nov 2011
Location: Florida
Device: iPad Air 2, Kindle PW2, Nexus 7, Fire 5th Gen
Most Kindle books are delivered by Amazon in KFX format these days. Based on my testing with Kindle Previewer 3, in conversion to KFX hidden text and image alt text is discarded and so will be unavailable for searching or TTS.


Edit: I was wrong. I retested and found that the alt text for images is actually preserved in KFX. I do not know if it is actually used for anything.

Last edited by jhowell; 03-22-2017 at 03:26 PM. Reason: Correction
jhowell is offline   Reply With Quote
Old 03-26-2017, 05:44 PM   #9
tastyeng
Junior Member
tastyeng ought to be getting tired of karma fortunes by now.tastyeng ought to be getting tired of karma fortunes by now.tastyeng ought to be getting tired of karma fortunes by now.tastyeng ought to be getting tired of karma fortunes by now.tastyeng ought to be getting tired of karma fortunes by now.tastyeng ought to be getting tired of karma fortunes by now.tastyeng ought to be getting tired of karma fortunes by now.tastyeng ought to be getting tired of karma fortunes by now.tastyeng ought to be getting tired of karma fortunes by now.tastyeng ought to be getting tired of karma fortunes by now.tastyeng ought to be getting tired of karma fortunes by now.
 
Posts: 6
Karma: 208038
Join Date: Mar 2016
Device: Too many to name
Quote:
Originally Posted by jhowell View Post
Edit: I was wrong. I retested and found that the alt text for images is actually preserved in KFX. I do not know if it is actually used for anything.
Kindle for PC with NVDA supports reading alt text. Not sure if any other Kindle platforms do.
tastyeng is offline   Reply With Quote
Reply

Tags
hidden text, image & text

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Preparing fonts for eInk devices GERGE General Discussions 24 05-27-2015 08:04 AM
Is it possible to create hidden, searchable highlightable text? Bilingual ePub 11 05-05-2015 05:14 AM
colour eink devices - who cares??? mpd123 General Discussions 47 11-07-2011 12:16 AM
PDF Conversion doesn't see hidden text Bearbait Conversion 3 02-18-2011 02:56 PM
PDFs and Hidden Text Layers aidren enTourage Archive 4 04-14-2010 01:23 PM


All times are GMT -4. The time now is 01:29 AM.


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