View Single Post
Old 10-15-2020, 04:22 PM   #19
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,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Rand Brittain View Post
Is there a way to replace every instance of that particular <span> tag in an ePub, including the closing tag with a <strong> tag, other than doing it all manually?
As a few other users have pointed out, DiapDealer's two plugins are perfect for this.

For Calibre, you could use his Diap's Editing Toolbag.

For Sigil, you could use his TagMechanic.

I wrote some instructions with pictures just a few months ago in:

"How do I change italic <i> shortcut to use <em> instead?"

In order to go from <span class="bold"> -> <b>, you have to use slightly different settings:

Action Type: Modify
Tag name: span
Having the attribute: class
Whose value is (no quotes): bold
Change tag to: b

Quote:
Originally Posted by hobnail View Post
So now I'm confused about the difference between the strong and em tags.
For all the technical details on <i> vs. <em>, <b> vs. <strong>, and <span class="italics"> vs. <i>/<em>, see the famous thread from earlier this year:

"<i>, <em> or <span> for italics?"

<em> = emphasis, like:

Code:
"Don't you know <em>you're</em> supposed to walk the dog today?"
<strong> is meant for "important information", like:

Code:
<strong>WARNING!</strong> Minefield ahead!
Also see MDN's article on it, where they also explain the differences between:

https://developer.mozilla.org/en-US/...Element/strong
Tex2002ans is offline   Reply With Quote