Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 12-20-2021, 08:38 PM   #1
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,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?
Attached Thumbnails
Click image for larger version

Name:	em.jpg
Views:	503
Size:	27.9 KB
ID:	190941  

Last edited by Karellen; 12-20-2021 at 09:40 PM.
Karellen is online now   Reply With Quote
Old 12-20-2021, 10:38 PM   #2
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: 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.
DNSB is offline   Reply With Quote
Old 12-21-2021, 02:43 PM   #3
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 12,387
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Quote:
Originally Posted by Karellen View Post
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.
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.
Quoth is offline   Reply With Quote
Old 12-21-2021, 06:08 PM   #4
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,304
Karma: 12587727
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Karellen View Post
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.
That's old info.

HTML4 (wrongly) deprecated <i> + <b>, but HTML5 reintroduced them.

Now all 4 have their uses.

Quote:
Originally Posted by DNSB View Post
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.


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.
<em> is easy. You use that for emphasizing words.

<i> is used when the text itself is italics, for presentational reasons. Things like:
  • Book Titles
  • Ship names
  • "Foreign" words/terms
  • Math variables (x, y, z, ...)

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!
Sometimes the person's name is formatted bold. Any special reason why it's bold? Nope. That's just the common transcript formatting.

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>
Anyway, read through those 2 threads DNSB linked to. I go into extreme detail + give examples on all the differences.

Quote:
Originally Posted by Quoth View Post
It's a philosophical/political thing that some claim is about accessibility.
It is about Accessibility + the broader ecosystem (Internationalization).

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>:
  • "As Tex wrote in Example Book Title... the USS Cole was far from home."

If you wrongly used <em>, it might say these louder:
  • "As Tex wrote in EXAMPLE BOOK TITLE... the USS COLE was far from home."

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:
  • Arabic
    • extra lines above/below, different fonts, or extra stretched-out lettering.
  • Hebrew
    • bolder, underline, or larger gaps between letters (letter-spacing).
  • Chinese/Japanese/Korean
    • extra dots/symbols around characters.

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:
Originally Posted by Quoth View Post
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!
It depends on what tools you are using.

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.
Tex2002ans is offline   Reply With Quote
Old 12-21-2021, 06:32 PM   #5
lomkiri
Zealot
lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.
 
lomkiri's Avatar
 
Posts: 148
Karma: 1451628
Join Date: Jul 2021
Device: N/A
Quote:
Originally Posted by Tex2002ans View Post
Here's the basic difference:
Very interesting, and quite logical. Thank you for this point of view !
lomkiri is offline   Reply With Quote
Old 12-22-2021, 01:34 AM   #6
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,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.

Karellen is online now   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 05:41 AM.


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