12-20-2021, 08:38 PM | #1 |
Wizard
Posts: 1,367
Karma: 6794938
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Italics and Bold
Not sure how accurate my info is but...
I have read that the tags <i></i> and <bold></bold> are deprecated and <em></em> and <strong></strong> are the preferred tags to use for italics and bold. If that is correct, then in the Calibre toolbar in the image below, the I and B buttons still use the old tags. Same for ctrl-i and ctrl-b. Is there any way to change the buttons to use the preferred tags? Last edited by Karellen; 12-20-2021 at 09:40 PM. |
12-20-2021, 10:38 PM | #2 |
Bibliophagist
Posts: 40,647
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Why do people keep posting on that topic? Is the Google-fu running weak?
I remember <i>, <b>, <em> & <strong> being discussed to death a decade back. See Italic or Emphasis from June, 2011 for example. For later examples, check Extended <head> chapter: NOT necessary? from 2017 or the <i>, <em> or <span> for italics? thread from 2020. In the latter two, pay special attention to @Tex2002ans' posts. |
12-21-2021, 02:43 PM | #3 |
the rook, bossing Never.
Posts: 12,387
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
They were depreciated and then un-depreciated. It's a philosophical/political thing that some claim is about accessibility. I create ebooks in Calibre from docx input. The wordprocessor never outputs em and strong, it only results in <i> and <b>. There can be associated CSS, and then in the CSS the class used with i or b can perversely use em and strong if you want!
Last edited by Quoth; 12-21-2021 at 02:46 PM. |
12-21-2021, 06:08 PM | #4 | ||||
Wizard
Posts: 2,304
Karma: 12587727
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
HTML4 (wrongly) deprecated <i> + <b>, but HTML5 reintroduced them. Now all 4 have their uses. Quote:
Here's the basic difference: Italics <i> vs. Emphasis <em> Code:
In <i>Example Book Title</i>, Tex said: "I am the <em>greatest</em>." The answer, <em>obviously</em>, is <i>ipso facto</i>. The answer to <i>x</i> + 2 = 5 is <i>x</i> = 3. <i> is used when the text itself is italics, for presentational reasons. Things like:
Bold <b> vs. Strong <strong> Similar case with these (although these are a little odder). An easy example is things like transcripts: Code:
<b>Person A:</b> Is this what you meant? <b>Person B:</b> Yes. That is what I said. <b>A:</b> Are you sure? <b>B:</b> You're goddamn right I'm sure! Where <strong> is more like a "WARNING!" or "IMPORTANT!" or "strong emphasis"-type thing: Code:
The sign said: <strong>Do not feed the monkeys!</strong> Quote:
Remember, websites/ebooks can be read in alternate means like Text-to-Speech or Google Translate. Text-to-Speech (TTS) This can treat/speak <i> vs. <em> differently: If you correctly used <i>:
If you wrongly used <em>, it might say these louder:
Someone listening to the book would notice the difference. But someone visually reading "the surface-level" wouldn't notice anything different... because "they both look italics" to them! Auto-Translation Many languages don't have such a thing as "italics"... and they represent emphasis differently. For example, emphasis in:
Imagine you were a Japanese reader, and after an English->Japanese translate, every single word in your book titles had extra emphasis dots placed on it. That's not correct. - - - Side Note: For extra info on emphasis in other languages, I just ran across this great talk: She mostly shows examples of Hebrew, but she also quickly skims over Cyrillic (Russian) + Hangul (Korean). Side Note #2: Remember: European-based languages tend to have an italics font + emphasis as italics... but the rest of the world doesn't. And it's only by a quirk of history that both italics/emphasis look the same (in English). Not all languages are like that! Quote:
Like I explained in those linked threads: Almost all tools output all one OR all the other. (100% <i>/<b> vs. 100% <em>/<strong>.) Better ones like Toxaris's "EPUBTools" (or DAISY's "WordToEPUB") let you at least choose the option. But there are some tools that can carry over all your properly marked <i> + <em>, although these are extremely rare. Side Note: And 99.9% of people don't even mark up their documents that detailed+correctly in the first place... just like most people not knowing how to use Styles or marking the proper language. If you correctly mark up your documents while producing them though, you can map everything to <i> vs. <em> as needed. (And there will be tools to help speed up this process in the future!) Last edited by Tex2002ans; 12-22-2021 at 12:09 AM. |
||||
12-21-2021, 06:32 PM | #5 |
Zealot
Posts: 148
Karma: 1451628
Join Date: Jul 2021
Device: N/A
|
|
12-22-2021, 01:34 AM | #6 |
Wizard
Posts: 1,367
Karma: 6794938
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Thank you @Quoth and especially @Tex2002ans for your detailed and current answer.
Yes, looks like my info was wrong as I read it had been deprecated, but not been aware it had been un-deprecated. So no need to change the actions of those two italic and bold buttons on the toolbar. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
italics converting to bold in Calibre | mexmax | Conversion | 6 | 04-22-2021 11:33 AM |
Calibre is bold-facing my italics | PrinceofSerendip | Conversion | 0 | 07-03-2019 04:13 PM |
bold and italics | FAMOsa | Sigil | 7 | 09-09-2017 01:15 PM |
Italics, Bold, Etc. | Arekuzanra | Amazon Kindle | 14 | 03-10-2014 12:01 AM |
iPad "Upgraded" to iBooks 3.2 – Bold fonts are extra-bold, italics are now bold-italic | MHC | Apple Devices | 4 | 03-03-2014 02:50 PM |