04-11-2023, 05:45 AM | #61 |
Resident Curmudgeon
Posts: 75,132
Karma: 132820308
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
And before <em> was a thing, nobody complained that <i> was not read correctly.
|
04-11-2023, 07:19 AM | #62 | |
the rook, bossing Never.
Posts: 11,997
Karma: 88008799
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
Maybe Google are downgrading the Android one because they have a new TTS for making audio books for sale from epubs? I've not tried that. I'm sceptical it can compete with a half decent <em>experienced</em> human reader. TTS has improved since the stupid HTML release that depreciated <i> and <b> and the next release after that admitted you need both <i> and <em> as well as <b> and <strong> because most textual bold and italic in English is just visual. But other languages do need <em> and <strong> and English sometimes need it. HTML does now have both a lot of historic tags and newer tags that are more to do with web pages than ebooks. Some historic tags were because there was no CSS. Later someone decided then they can be used semantically. |
|
Advert | |
|
04-11-2023, 07:21 AM | #63 |
the rook, bossing Never.
Posts: 11,997
Karma: 88008799
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
I gave the Kindle DXG to a partially sighted person and he gave it back.
"No way can I listen to book on that!" |
04-11-2023, 09:13 AM | #64 | |
Addict
Posts: 210
Karma: 5497310
Join Date: Sep 2012
Device: Sony PRS-T2, Kindle
|
A question from a person who knows very little about such things (i.e., me):
Some books contain big chunks of text in italics that are not meant to be stressed. For instance, a novel might commence with a kind of prelude, all italicized, that could go on for several pages. Or a character's thoughts might be italicized, sometimes for a paragraph or more at a time. (I'm not advocating that anybody go wild with italics this way. I find such things a chore to read, and a temptation to skip.) Occasionally, in such expanses of italicized text, a word will emerge that is not in italics, to indicate that it should be stressed. How should this be coded so that a machine reader will emphasize it without changing the appearance of the text? If you enclose the word to be stressed in <em> tags, it will be italicized and appear indistinguishable from the text that surrounds it. If you enclose it in <strong> tags, it will be displayed in bold, instead of in a normal typeface (and I don't know if a machine reader would emphasize it, anyway). Can it be done? Here a brief example, where the italics indicate a character's thoughts, and the word "not" should be stressed: Quote:
|
|
04-11-2023, 09:35 AM | #65 | |
Bookmaker & Cat Slave
Posts: 11,468
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
As "SomeSteve" mentions, there are crap-tons of books that have large swaths of italicized text, meant for (for example) inner dialogue or telepathic communications or what-have-you. That would have no way to emphasize sokme portion of that inner dialogue or whatever, without em, wouldja? Hitch |
|
Advert | |
|
04-11-2023, 09:48 AM | #66 |
Resident Curmudgeon
Posts: 75,132
Karma: 132820308
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
But i there any TTS program that can take a block of italics and read it without emphasis but read any non-italics words emphasized?
|
04-11-2023, 09:55 AM | #67 | ||
the rook, bossing Never.
Posts: 11,997
Karma: 88008799
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
Quote:
<em class="in-italic-block">not</em> The CSS will over-ride default behaviour of the visual rendering engine, but is usually ignored by a TTS system. I've not tested it, but that's what I'd do. I think that can even be done by a Character Style in LO Writer, so that no editing of the epub made by Calibre from an extra Save As in docx is needed. Last edited by Quoth; 04-11-2023 at 10:00 AM. |
||
04-11-2023, 09:59 AM | #68 | |
the rook, bossing Never.
Posts: 11,997
Karma: 88008799
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
That's a separate issue. What is really bad is Random House of Penguins using <em> and <strong> for all italics and bold. |
|
04-11-2023, 10:02 AM | #69 |
Resident Curmudgeon
Posts: 75,132
Karma: 132820308
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
04-11-2023, 10:29 AM | #70 |
A Hairy Wizard
Posts: 3,131
Karma: 18727091
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
SomeSteve:
One way to do that would be to use an <i> to indicate the visual italics and use <em> to indicate an emphasized word or phrase. Code:
CSS: i {font-style:italic} i em {font-style: normal} HTML: <p><i>Aha, so the cow did <em>not</em> jump over the moon!</i></p> Code:
CSS:
div.telepathy {font-style: italic}
div.telepathy em {
background-color: red;
color: green;
text-decoration: underline;
font-variant: small-caps;
font-style: normal;
font-weight: bold;
TTS-voice: stress-the-heck-out-of-it;
**or whatever you want to style your emphasized section**
}
HTML:
<div class="telepathy">
<p>Aha, so the cow did <em>not</em> jump over the moon!</p>
<p>It <em>must</em> have been the spoon!</p>
<p>Because <em>most</em> people realize that emphasis is
<em>NOT</em> just a visual slanting of the letters!!</p>
</div>
Last edited by Turtle91; 04-11-2023 at 12:18 PM. |
04-11-2023, 10:37 AM | #71 | |
Bookmaker & Cat Slave
Posts: 11,468
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
The entire freaking point is to say to the reader, "HEY READER! Here is something that you should pay attention to." The order of things--italics for the entire paragraph, regular face for the book title, or the other way 'round, doesn't matter. What matters is bloody CLARITY. That's what is important. Doing something consistently, conforming your uses thereof to all be the same, is what matters. NOT arguing over this nonsense of whether or not there's some goddamned eBook out there that uses BOTH em and i. Of course they exist--I know that personally. Hitch |
|
04-11-2023, 11:41 AM | #72 |
Addict
Posts: 210
Karma: 5497310
Join Date: Sep 2012
Device: Sony PRS-T2, Kindle
|
Thanks, especially to Quoth and Turtle91, for the explanations and examples.
|
04-11-2023, 12:08 PM | #73 |
A Hairy Wizard
Posts: 3,131
Karma: 18727091
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Just for clarification, when I used the voice stress example above I just made it up...it is not the correct format.
It should be something along the lines of: Code:
voice-stress: strong Cheers! |
04-11-2023, 12:19 PM | #74 | |
Resident Curmudgeon
Posts: 75,132
Karma: 132820308
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
04-11-2023, 02:05 PM | #75 |
A Hairy Wizard
Posts: 3,131
Karma: 18727091
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
How about you read it. Then you can come back with a valid question and/or comment about what is actually happening instead of just being a curmudgeon???
|
Tags |
semantic markup |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Semantic discussion on the phrase "Title Case" | DiapDealer | Sigil | 24 | 11-22-2017 02:48 PM |
Typo in Set Semantic ? | Bertrand | Editor | 1 | 04-06-2016 10:24 AM |
DTBook markup? | frquixote | Calibre | 10 | 03-05-2014 06:17 PM |
Markup for TTS? | jcsalomon | ePub | 4 | 06-19-2013 11:47 AM |
Semantic formating for simple poetry: any comments on my code? | sourcejedi | ePub | 12 | 04-22-2011 06:28 AM |