Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 04-15-2025, 06:15 AM   #16
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by ElMiko View Post
<snip>If however, the majority—or a significant plurality—of these TTS programs (particularly those used in ebook platforms) already incorporate semantic differentiation... <snip>
I suspect one of the reasons the TTS feature of a typical e-reading app (e.g. on Android) makes no distinction between <i> and <em> is because of the way the text content to be read aloud is extracted from the epub html. It may be unsophisticated, but by far the simplest and fastest way is to take each html file and use regex to delete all the tags, i.e. everything between a '<' and '>'. Then read aloud everything that remains.

You could test the theory by styling some of the text with CSS 'hidden' or 'display:none' and see how the app handles it.

The only time I hear TTS 'expression' in a typical e-reading app is due to punctuation like '?' or '!'. How good/bad/indifferent this is probably depends, to some extent, on which 'voice' you use to do the reading aloud.

The specialist screen reading apps aimed at visually impaired users are probably much better at interpreting emphasis tags. If/when that tech will filter down to everyday e-reading apps is anyone's guess.
jackie_w is offline   Reply With Quote
Old 04-15-2025, 07:45 AM   #17
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: 79,757
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Turtle91 View Post
You can change how emphasized words are spoken using css assuming the device supports the standards... you can also change how emphasized words are displayed with css.

The defaults of <i>/<em> and <b>/<strong> are the same (italics and bold respectively) but they can be changed. So Wolfe's assertion that there is no difference is a little misleading. There is a semantic difference. <i> is for a visual only presentation (however you want it to look), while <em> is whether the word is supposed to be emphasized (typically when read aloud, but even when you are visually reading the word - I can assign an emphatic voice in my mind while reading...) DNSB gave a good example in #9.

Whether or not anyone has used a device that sufficiently differentiates the semantic coding does not invalidate the difference in coding...

I also choose to code my books with the assumption that meeting accessibility standards, as well as proper use of semantic tags, will just make the books better as/when devices improve their support... I also won't have to go fix the books if a major portion of the world passes laws requiring book producers to follow accessibility standards (like the EU did)....
What is the CSS to change <em> so it's different from <i> when read by TTS but the same visually? Also, what TTS software reads <em> and <i> differently?
JSWolf is online now   Reply With Quote
Advert
Old 04-15-2025, 07:47 AM   #18
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: 79,757
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DNSB View Post
The ePub reader used by one of my neighbours who is legally blind is a Victor (??) Reader Stream device supplied by the CNIB. It does handle quite a bit of semantic content and I used them to test some of accessible ePubs I created.

For me, it was more or less that it took little effort for me to make my ePubs more accessible and I liked the idea of doing so.
Does Victor do anything different with an ePub2 and an ePub3 (with the accessibility info in the OPF)?
JSWolf is online now   Reply With Quote
Old 04-15-2025, 09:48 AM   #19
icallaci
Guru
icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.
 
Posts: 817
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
How many ebooks actually use both <i> and <em> in the same book? Maybe I haven't been paying attention but it seems that either one or the other is used, but not both. So even if TTS software can make a distinction, it doesn't matter, at least currently. I'm curious if anyone has seen both forms used in one ebook.
icallaci is offline   Reply With Quote
Old 04-15-2025, 10:00 AM   #20
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,353
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by JSWolf View Post
What is the CSS to change <em> so it's different from <i> when read by TTS but the same visually?
Same visually, different in voice:
Code:
i {font-style:italic}
em {
  font-style:italic;
  voice-stress: moderate;
}
But it could be different:
Code:
em {
  font-variant:small-caps;
  font-style:normal;
  font-family:serif;
  color:purple;
  text-decoration:underline;
  voice-family: female;
  voice-pitch: medium;
  voice-stress: moderate;
  voice-rate: fast;
  voice-volume: soft;
  pause-after: strong;
  voice-balance: left;
}
Of course these are just examples. You can find more in the CSS Speech Spec (https://www.w3.org/TR/css-speech-1/)

Quote:
Originally Posted by JSWolf View Post
Also, what TTS software reads <em> and <i> differently?
Read the other responses in this thread, and the responses in every other thread where you ask this question.
Turtle91 is offline   Reply With Quote
Advert
Old 04-15-2025, 10:18 AM   #21
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,353
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by icallaci View Post
How many ebooks actually use both <i> and <em> in the same book? Maybe I haven't been paying attention but it seems that either one or the other is used, but not both. So even if TTS software can make a distinction, it doesn't matter, at least currently. I'm curious if anyone has seen both forms used in one ebook.

There are books in the wild that have them....but not many. My guess is that this stems partly from the fact that this is a relatively recent change and the number of books produced since the change is still small compared to books produced up to the time of the change. Mostly it stems from the fact that <i> and <b> were deprecated in favor of <strong> and <em> so publishers either did one or the other. Later, mostly due to accessibility reasons, TPTB un-deprecated <i> and <b> and instead clarified the semantic difference and usage of one over the other. So the relatively low number of books that use both properly can be explained with the saying: "You can't teach an old dog new tricks." and "people don't like to change unless they have to"...
Turtle91 is offline   Reply With Quote
Old 04-15-2025, 01:29 PM   #22
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: 79,757
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by icallaci View Post
How many ebooks actually use both <i> and <em> in the same book? Maybe I haven't been paying attention but it seems that either one or the other is used, but not both. So even if TTS software can make a distinction, it doesn't matter, at least currently. I'm curious if anyone has seen both forms used in one ebook.
I've seen books use <i> or <em> and italic in the CSS.
JSWolf is online now   Reply With Quote
Old 04-15-2025, 01:30 PM   #23
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: 79,757
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Turtle91 View Post
Same visually, different in voice:
Code:
i {font-style:italic}
em {
  font-style:italic;
  voice-stress: moderate;
}
But it could be different:
Code:
em {
  font-variant:small-caps;
  font-style:normal;
  font-family:serif;
  color:purple;
  text-decoration:underline;
  voice-family: female;
  voice-pitch: medium;
  voice-stress: moderate;
  voice-rate: fast;
  voice-volume: soft;
  pause-after: strong;
  voice-balance: left;
}
Of course these are just examples. You can find more in the CSS Speech Spec (https://www.w3.org/TR/css-speech-1/)


Read the other responses in this thread, and the responses in every other thread where you ask this question.
But how many programs support ePub3 speech given that it's new? Also, how many do you think would eventually support CSS speech?
JSWolf is online now   Reply With Quote
Old 04-15-2025, 02:02 PM   #24
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: 46,210
Karma: 168983734
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
What is the CSS to change <em> so it's different from <i> when read by TTS but the same visually? Also, what TTS software reads <em> and <i> differently?
No CSS is needed. If the ePub to speech is standards compliant, the <i> and <em> tags are all that is needed. Visually, both default to using italic unless you deliberately modify that behaviour.

As I mentioned the Victor device does not care if it is reading ePub2 or ePub3. If you are reading ePub3, you can use SSML and a pronunciation lexicon to improve the quality. You may want to take a look at the CSS Speech Module chunk of the ePub3 specification mentioned by @Turtle91 or the CSS Speech article in Daisy's knowledge base articles.

Last edited by DNSB; 04-15-2025 at 02:15 PM.
DNSB is offline   Reply With Quote
Old 04-15-2025, 02:11 PM   #25
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: 46,210
Karma: 168983734
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
But how many programs support ePub3 speech given that it's new? Also, how many do you think would eventually support CSS speech?
SSML has been around for ~15 years. Hardly what I would consider new. And I totally confused by what you are referring to as "CSS speech". Are you referring to the CSS from the CSS Speech specification? Or???

Last edited by DNSB; 04-15-2025 at 02:16 PM.
DNSB is offline   Reply With Quote
Old 04-15-2025, 02:42 PM   #26
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: 79,757
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DNSB View Post
SSML has been around for ~15 years. Hardly what I would consider new. And I totally confused by what you are referring to as "CSS speech". Are you referring to the CSS from the CSS Speech specification? Or???
The CSS Speech in ePub3.

https://www.w3.org/TR/epub-tts-10
JSWolf is online now   Reply With Quote
Old 04-15-2025, 03:02 PM   #27
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: 28,571
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
It's not like everybody didn't foresee this thread going down this particular rabbit-hole, right?

Jon, you have about two more posts to get your already extremely well-known opinions on this subject repeated for the umpteenth time. Then I'm closing it down. This is why we can't have nice things.

Last edited by DiapDealer; 04-15-2025 at 03:09 PM.
DiapDealer is online now   Reply With Quote
Old 04-15-2025, 03:07 PM   #28
ElMiko
Evangelist
ElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileRead
 
ElMiko's Avatar
 
Posts: 448
Karma: 65460
Join Date: Jun 2011
Device: Kindle
@Turtle91 — in your examples you have speech direction specified in the css, which I didn't even know existed! I guess there is a difference between those of us that do this in our pajamas and those that are actually paid to do it...

Couple of questions:
  • Does that css work for other tags (*cough* <i> *cough*), or will it only "work" if it's attached to <em>/<strong>?
  • Is that css necessary to get any stress effect at all, or do the TTS programs that apply semantic rendering automatically apply stress to <em> tags, even in the absence of specific css direction?

EDIT:
@DiapDealer — sorry! didn't realize i was opening a can of worms...
ElMiko is offline   Reply With Quote
Old 04-15-2025, 03:41 PM   #29
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: 46,210
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by ElMiko View Post
@Turtle91 — in your examples you have speech direction specified in the css, which I didn't even know existed! I guess there is a difference between those of us that do this in our pajamas and those that are actually paid to do it...

Couple of questions:

Is that css necessary to get any stress effect at all, or do the TTS programs that apply semantic rendering automatically apply stress to <em> tags, even in the absence of specific css direction?
The <em> and <strong> tags should automatically trigger the stress. The modifications in the CSS can be used to modify the default behaviour.


Quote:
Originally Posted by ElMiko View Post
EDIT:
@DiapDealer — sorry! didn't realize i was opening a can of worms...
Jon seems to believe that if an ePub does not perform optimally with ADE 2, then it should not have been created and he has no fear in repeating his opinions ad infinitum. As in this thread where despite the existence of people whose vision is too poor to allow reading an ePub and so will use a TTS reader, adding semantics and accessibility features does nothing for him personally and so are malum in se.
DNSB is offline   Reply With Quote
Old 04-15-2025, 05:25 PM   #30
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: 28,571
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by ElMiko View Post
@DiapDealer — sorry! didn't realize i was opening a can of worms...
You didn't do a thing wrong.
DiapDealer is online now   Reply With Quote
Reply

Tags
deprecated html elements


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Italics and Bold Karellen Editor 5 12-22-2021 12:34 AM
bold and italics FAMOsa Sigil 7 09-09-2017 12:15 PM
Italics, Bold, Etc. Arekuzanra Amazon Kindle 14 03-09-2014 11:01 PM
iPad "Upgraded" to iBooks 3.2 – Bold fonts are extra-bold, italics are now bold-italic MHC Apple Devices 4 03-03-2014 01:50 PM
Italics html question Amalthia Calibre 3 02-25-2010 01:57 AM


All times are GMT -4. The time now is 10:14 AM.


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