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 09-09-2022, 05:10 PM   #1
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 772
Karma: 1537886
Join Date: Sep 2013
Device: Kobo Forma
Remove Italic Tags from Selection?

Is there some way to remove italic tags (<i> and </i>, but this could apply to other tags as well) from a selected group of paragraphs in the Editor?

I ask because almost all the time, the author/publisher italicizes things with those tags in the HTML instead of with a css style. So far, the only things I've come up with are manually selecting each tag pair and deleting them, or marking the selection and running a Regex search/replace on the marked text:
Code:
find: (<p[^>]*>)<i>(.+?)</i>([\.\?]+)?</p>
replace: \1\2\3</p>

Last edited by enuddleyarbl; 09-11-2022 at 06:51 PM. Reason: better code for finding all-italic paragraphs
enuddleyarbl is offline   Reply With Quote
Old 09-09-2022, 05:51 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,981
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Diaps Toolbag (plugin)
Outright delete or Modify (assign different)
theducks is offline   Reply With Quote
Old 09-09-2022, 06:31 PM   #3
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,611
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Quote:
Originally Posted by enuddleyarbl View Post
I ask because almost all the time, the author/publisher italicizes things with those tags in the HTML instead of with a css style.
What is wrong with that?
Karellen is offline   Reply With Quote
Old 09-09-2022, 06:49 PM   #4
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 772
Karma: 1537886
Join Date: Sep 2013
Device: Kobo Forma
@theducks: Unless I'm missing something with Diap's Toolbag, it can only change all the stuff on a given page (EDIT: sorry, the current HTML file) or all the stuff in the whole book (all the files). I just need to remove those tags from specific clumps of text on a page.

@Karellen: Usually, I've no problem with things like <i>, <em>, <b> and <strong> in the HTML. But, where there are clumps of text that should be treated as a syntactic whole (i.e., a quote at the top of a chapter, a poem, a letter, etc.), I'd like to apply a CSS class to handle the formatting. It's possible the styling embedded in the content will conflict with that present in the class.

If the <i> tags were only around small bits of text like ship names or foreign words, that's probably not a problem. I think I could use another class to override their italics to something like bold:
Code:
i i {
  font-style: normal;
  font-weight: bold;
}
But, if I included something like that where large swaths of text are italicized, all I'd end up with is large swaths of text bolded.

Last edited by enuddleyarbl; 09-09-2022 at 07:25 PM. Reason: missed a word
enuddleyarbl is offline   Reply With Quote
Old 09-09-2022, 11:03 PM   #5
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: 45,640
Karma: 168959522
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
That really sounds like something where it would be easier just to make the changes manually. You could search for the <i>blah blah blah</i> text and either replace or find next. Unless there is something very specific that you can use to select the chunks of text you want to remove the italics from, there are no good ways to automatically make the changes.
DNSB is offline   Reply With Quote
Old 09-10-2022, 09:26 AM   #6
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 772
Karma: 1537886
Join Date: Sep 2013
Device: Kobo Forma
Yep. That's what I was afraid of. As it is, unless the number of paragraphs in a the block of text is big enough (say, for instance, 4 lines of a poem or more), I just manually delete the tags. If there are more, I'll go through the select, mark, type regex, replace, unmark dance.
enuddleyarbl is offline   Reply With Quote
Old 09-10-2022, 02:48 PM   #7
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,544
Karma: 145863177
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 enuddleyarbl View Post
Yep. That's what I was afraid of. As it is, unless the number of paragraphs in a the block of text is big enough (say, for instance, 4 lines of a poem or more), I just manually delete the tags. If there are more, I'll go through the select, mark, type regex, replace, unmark dance.
There's also no need to make these changes. So the simplest solution is to let them be.
JSWolf is online now   Reply With Quote
Old 09-10-2022, 03:15 PM   #8
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: 45,640
Karma: 168959522
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Jon, in your opinion, there is no reason to remove those italics. Sadly, it would appear that enuddleyarbl has their own opinion which disagrees with yours. His ebook, his formatting.
DNSB is offline   Reply With Quote
Old 09-10-2022, 04:07 PM   #9
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,544
Karma: 145863177
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
Jon, in your opinion, there is no reason to remove those italics. Sadly, it would appear that enuddleyarbl has their own opinion which disagrees with yours. His ebook, his formatting.
There is no need. That's a fact. There's a want to do it. That's also a fact.

I never said there's no reason. I said there's no need. There isn't a need. There's a want. A need would be if it wasn't working or causing some sort of display problem.

Some of the things I do when editing an eBook are not needed to be done but are done because I want to do them.
JSWolf is online now   Reply With Quote
Old 09-10-2022, 09:09 PM   #10
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 772
Karma: 1537886
Join Date: Sep 2013
Device: Kobo Forma
I guess it's not a needful thing, but in case some other person wants to do something similar, I'm starting to look at this from a different direction. Instead of working with the <i>/</i> pair and the text in between, I've decided to look for the whitespace between adjacent italicized paragraphs:
Code:
find: </i>([\.\?]?</p>\s+?<p[^>]*>)<i>
replace: \1
I'm assuming if there are consecutive entire paragraphs italicized, there's probably some kind of semantic block involved. Once I find the start of such a block, I can remove the intervening </i> and <i> pairs with "Replace and Find" and leave only the single starting and ending pair. I can probably work with that more easily.

Last edited by enuddleyarbl; 09-11-2022 at 06:35 PM. Reason: initial code didn't handle classless paragraphs & punctuation
enuddleyarbl is offline   Reply With Quote
Old 09-11-2022, 05:23 AM   #11
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 enuddleyarbl View Post
If the <i> tags were only around small bits of text like ship names or foreign words, that's probably not a problem. I think I could use another class to override their italics to something like bold:
Code:
i i {
  font-style: normal;
  font-weight: bold;
}
One trick that I do when proofing something like this...

I add a temporary background-color:

Code:
i i {
	background-color: red; <---- Add this line.
}
(This would highlight all <i> nested within other <i>s!)

As I skim through the preview of the ebook, the different colors stand out like a sore thumb. This lets me take a much closer look at the (problematic) areas.

When I'm done fixing up all the code, I remove the background-color.

- - -

Side Note: I sometimes use multiple colors for different things:
  • yellow
  • blue
  • orange
  • [...]

Just choose any of the HTML Color Names if you want it easy.

You could then use something like:

Code:
background-color: green;
to let you know you already fixed it!

- - -

Quote:
Originally Posted by enuddleyarbl View Post
[...] where there are clumps of text that should be treated as a syntactic whole (i.e., a quote at the top of a chapter, a poem, a letter, etc.), I'd like to apply a CSS class to handle the formatting. It's possible the styling embedded in the content will conflict with that present in the class.
Pretty good idea.

In that case, I mark with a <div> or <blockquote> plus a class="".

For example:

Code:
<blockquote class="openingquote">
	<p>Some amazing quote.</p>
	<p class="right">—Tex</p>
</blockquote>

<div class="poem">
	<div class="stanza">
		<p class="line">The cow jumped over the moon.</p>
		<p class="line">And Tex jumped over the <em>house</em>!</p>
	</div>
</div>
Then you can easily toggle the italics on/off if needed:

Spoiler:
Code:
blockquote.openingquote {
	font-style: italic; <--- Optional
	margin-top: 1em;
	margin-bottom: 1em;
	margin-left: 10%;
	margin-right: 10%;
}

div.poem {
	font-style: italic; <--- Optional
	margin-top: 1em;
	margin-bottom: 1em;
	margin-left: 3em;
}


What I tend to do is something along these lines:

Search: <i>(.+?)</i>
Replace: <span class="temppoem">\1</span>

and just go through the book on a case-by-case basis.

Combined with that background-color trick above, it makes it much easier to find these spots + fix them up.

- - -

After I'm done, I can then do a:

Search: <span class="temppoem">

and go mass replacing those new <span>s with whatever code I need.

(Usually use Diap's amazing Toolbag to shift to something clean!)

- - -

Quote:
Originally Posted by enuddleyarbl View Post
But, if I included something like that where large swaths of text are italicized, all I'd end up with is large swaths of text bolded.
What does the original book look like?

Italics/Emphasis within italics = Roman (Straight up-and-down, normal text).

So let's say you were reading a Fiction book where all the character's inner thoughts are in italics:

Code:
<p><i class="thoughts">The ghost is going to <em>kill</em> my cat!</i>
Tex doused the door handle in holy water.
<i class="thoughts">Remind me to never read the <i class="booktitle">Necronomicon</i> or go aboard the <i class="shipname">HMS Haunty</i> ever again!</i></p>
These 4 words would all be Roman (= normal text):
  • kill
  • Necronomicon
  • HMS Haunty

Similar to quotes within quotes, where you alternate:
  • “Outer ‘Inner “Double-Inner” Inner’ Outer” (American)
  • ‘Outer “Inner ‘Double-Inner’ Inner” Outer’ (British)

You do the same thing with italics!

Think of it like an ON/OFF switch:
  • 1st layer = ON
  • 2nd layer = OFF
  • 3rd layer = ON

Then if you made all your thoughts be bold instead, you'd toggle the italics back on for those "inner" emphasis + book titles + ship names.

Quote:
Originally Posted by enuddleyarbl View Post
Once I find the start of such a block, I can remove the intervening </i> and <i> pairs with "Replace and Find" and leave only the single starting and ending pair. I can probably work with that more easily.
One more trick I sometimes use:

Search: <i>([^<]{100,})</i>
Replace: <span class="replace">\1</span>

Here's a breakdown of that Regex:
  • <i> = "Look for an italics."
  • (...) = "Stick all this stuff into Group 1."
    • [^<] = "Look for any character that's NOT a less than sign."
    • {100,} = "Look for 100 OR MORE of the previous thing."
      • Adjust # as needed.
  • </i> = "Look for close of italics."

This will find really long italics, while ignoring any italics <100 characters long.

(Sometimes I start with high numbers, like 200, then progressively work my way down.)

Quote:
Originally Posted by enuddleyarbl View Post
I'm assuming if there are consecutive entire paragraphs italicized, there's probably some kind of semantic block involved.
Yeah... every single ebook is going to be completely different.

We can give general principles/guidelines, but there definitely isn't a "one-button press" solution for complicated situations like this.

Like you might have another book with hundreds of different "calibre123" classes that all apply italics, and you'd have to figure out what each one does.

99.99% chance the ebooks aren't super clean with their <i> + <em> markup... especially when dealing with nested cases like this!

- - -

Complete Side Note: If you want the ultimate info on Italics <i> and Emphasis <em>, see my posts in:

If you want even more examples of weird edge-cases like "quotes-within-quotes" or "should the punctuation be in italics?" see:

Last edited by Tex2002ans; 09-11-2022 at 05:48 AM.
Tex2002ans is offline   Reply With Quote
Old 09-11-2022, 09:26 AM   #12
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 772
Karma: 1537886
Join Date: Sep 2013
Device: Kobo Forma
Tex2002ans: Thanks. I especially like the idea of temporarily changing colors of the types of things you're looking for. That should make seeing them much easier.
enuddleyarbl is offline   Reply With Quote
Old 09-11-2022, 12:49 PM   #13
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 772
Karma: 1537886
Join Date: Sep 2013
Device: Kobo Forma
And, of course, it helps a lot now that I've found the Calibre Editor's Saved Search function: Search > Saved Searches (is my face red for not having found that up until now).
enuddleyarbl is offline   Reply With Quote
Old 09-11-2022, 05:45 PM   #14
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 enuddleyarbl View Post
And, of course, it helps a lot now that I've found the Calibre Editor's Saved Search function: Search > Saved Searches (is my face red for not having found that up until now).
Yes, Saved Searches are fantastic.

Here's an example where I explained them in detail:

(I use them in Sigil, not so much in Calibre.)

For example, I have a 12-step Saved Search I use to instantly clean up Finereader HTML/EPUB cruft.

And here's an example EPUB that I used that method on:

Within seconds, I was able to generate a (relatively clean) EPUB from the PDF. Compared to the Archive.org "EPUB" version... mine is wayyyyyy better.
Tex2002ans is offline   Reply With Quote
Old 10-30-2022, 12:40 AM   #15
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,194
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
You can use the Editor Chains plugin to do this. But it is going to be two part process
  1. Mark the tag(s) you want to remove. (Using the first chain attached below).
    This chain will mark tags by adding an attribute to them. First bind the chain to whatever keyboard shortcut you want. After that you can start marking the tags you want to act on. All you need is to have the cursor somewhere inside the tag before clicking the keyboard shortcut.
  2. Run the second chain to make the necessary changes to the tags you previously marked.

Also you can merge adjacent italic tags into one. You can find an example for that in the plugin's thread. It will need modifying to change the name form <span> to <i>.

Notes:
  • To import the chains. go to Editor Chains > Add/modify chains > right click on table > import chain.
  • To bind a chain to a keyboard shortcut. go to Editor Chains > Add/modify chains > Keyboard shortcuts.
  • The first action of the second chain will add a class name "italic" to the parent tag. If you don't want that, edit the chain to remove it.
  • In your case we are already unwrapping the <i> tag, so the marks will go away as will. In other scenarios, we need to add an action to the second chain to remove the marking attribute; I added it anyway as it does not hurt.
  • The "Mark Tag" of the plugin is configurable. So you can make as many mark chains as you want to use for different purposes
Attached Files
File Type: zip mark tag.zip (360 Bytes, 222 views)
File Type: zip Unwrap marked.zip (810 Bytes, 200 views)
capink is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remove all tags at once? al35 Calibre 16 05-30-2024 07:59 AM
Remove all Tags silverraven Library Management 7 02-09-2016 09:00 AM
RFE: Remove remove tags in bulk edit magphil Calibre 0 08-11-2009 10:37 AM
Remove <p> tags? sideburnt Calibre 3 06-11-2009 12:22 PM
PRS-500 Tags for Bold, Italic, Center, Etc. in LRF? EatingPie Sony Reader Dev Corner 9 04-07-2007 01:06 AM


All times are GMT -4. The time now is 06:53 PM.


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