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 11-14-2020, 04:27 AM   #1
Thasaidon
Hedge Wizard
Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.
 
Thasaidon's Avatar
 
Posts: 802
Karma: 19999999
Join Date: May 2011
Location: UK/Philippines
Device: Kobo Touch, Nook Simple
Editing and Tags Question

This relates to spot edits after using regex to make the bulk of changes.

Example

<h3 class="msonormal"><b class="calibre1">VIII</b></h3>

Let us say I want to remove the heading tags. Is there a way to delete the opening and closing tags in one go, rather than deleting the opening tag then deleting the closing tag.

In Sigil I can put my cursor on the text choose (say) the h1 icon on the toolbar and it will change the "h3"s into "h2"s..

Calibre Editor just places the new tags around what is highlighted, which is fine, but it would be useful to have a similar Remove Tag function.

I have checked the manual searched the forums but did not find a way of doing this.
Thasaidon is offline   Reply With Quote
Old 11-14-2020, 06:00 AM   #2
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,211
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by Thasaidon View Post
This relates to spot edits after using regex to make the bulk of changes.

Example

<h3 class="msonormal"><b class="calibre1">VIII</b></h3>

Let us say I want to remove the heading tags. Is there a way to delete the opening and closing tags in one go, rather than deleting the opening tag then deleting the closing tag.

In Sigil I can put my cursor on the text choose (say) the h1 icon on the toolbar and it will change the "h3"s into "h2"s..

Calibre Editor just places the new tags around what is highlighted, which is fine, but it would be useful to have a similar Remove Tag function.

I have checked the manual searched the forums but did not find a way of doing this.
The Editor has two options: you can select some text, then ADD the tags around it, like you described, or you can CHANGE the tag to H1, H2, H3..., p.

To ADD a tag, use the "</>" icon. To CHANGE the paragraph to heading, and vice versa, use the "H" icon; this option will change both opening and closing tags.

As for removing tags, I think you have to use regex for that.
In a general way:

Find:
Code:
<TAG class="XXX">(.*?)</TAG>
Replace:
Code:
\1
TAG is the tag you want to remove, and XXX the class name. If you want to remove all the TAGs, no matter what class, then you do this:

Find:
Code:
<TAG.*?>(.*?)</TAG>
Replace:
Code:
\1
thiago.eec is offline   Reply With Quote
Advert
Old 11-14-2020, 06:04 AM   #3
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,743
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Try Diaps Editing Toolbag plugin. It may allow you to do what you want without the risk of a regex error.

Last edited by JSWolf; 11-14-2020 at 06:08 AM.
JSWolf is offline   Reply With Quote
Old 11-14-2020, 06:34 AM   #4
Thasaidon
Hedge Wizard
Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.
 
Thasaidon's Avatar
 
Posts: 802
Karma: 19999999
Join Date: May 2011
Location: UK/Philippines
Device: Kobo Touch, Nook Simple
Quote:
Originally Posted by JSWolf View Post
Try Diaps Editing Toolbag plugin. It may allow you to do what you want without the risk of a regex error.
Thanks for the info Jon .

I will give it a try.

The only problem I with Calibre is that it is so large with so many features it can be hard to find what you want and even more to remember it.
Thasaidon is offline   Reply With Quote
Old 11-14-2020, 07:07 AM   #5
Thasaidon
Hedge Wizard
Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.
 
Thasaidon's Avatar
 
Posts: 802
Karma: 19999999
Join Date: May 2011
Location: UK/Philippines
Device: Kobo Touch, Nook Simple
Hi Jon

I could not find the H icon so I looked in configure toolbars.

Lo and Behold, there it was!

I also noticed there was a "Remove Tag" icon. I added both to the appropriate menus.

While I was in there I went through each toolbar and checked what icons were on it and what were availanle and rejigged my toolbars.

It would probably pay us all to revisit what we "think" we know because we will probably find a lot we have forgotten.

Thanks very much Jon that was very helpful
Thasaidon is offline   Reply With Quote
Advert
Old 11-14-2020, 07:21 AM   #6
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,211
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
I have the H icon on my menu (probably I have added it a long time ago), but I didn't have the Remove Tag (added now), that's why I thought there was no such option.
thiago.eec is offline   Reply With Quote
Old 11-14-2020, 10:54 AM   #7
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: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Toolbars are customizable. I remove those I won't use because I use the Stylesheet (span.xyz). I also move the bars (Left top Right) as to how I use them. I am right handed,my mouse pars off the right, so a 'short move to the right bar', where I also keep my book browser since I use that a whole lot )

Make your Sigil layout 'YOURS", for a smoother work flow.
theducks is online now   Reply With Quote
Old 11-14-2020, 07:23 PM   #8
Thasaidon
Hedge Wizard
Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.
 
Thasaidon's Avatar
 
Posts: 802
Karma: 19999999
Join Date: May 2011
Location: UK/Philippines
Device: Kobo Touch, Nook Simple
Quote:
Originally Posted by thiago.eec View Post
I have the H icon on my menu (probably I have added it a long time ago), but I didn't have the Remove Tag (added now), that's why I thought there was no such option.
Snap!
Thasaidon is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Editing tags log history Amalthia Calibre 3 08-19-2018 09:42 AM
Editing fbreader tags on fire? taratears Kindle Fire 0 03-19-2015 02:49 PM
Editing Tags Hierarchy enonod Library Management 5 11-29-2013 04:59 AM
editing tags in my posts ? Joebill Feedback 4 01-10-2010 03:47 PM
Editing metadata tags thibaulthalpern PDF 9 03-19-2009 04:17 PM


All times are GMT -4. The time now is 05:54 PM.


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