| 
			
			 | 
		#1 | 
| 
			
			
			
			 Hedge Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | |
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,292 
				Karma: 1428263 
				Join Date: Dec 2016 
				Location: Goiânia - Brazil 
				
				
				Device: iPad, Kindle Paperwhite, Kindle Oasis 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 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> Code: 
	\1 Find: Code: 
	<TAG.*?>(.*?)</TAG> Code: 
	\1  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Resident Curmudgeon 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,782 
				Karma: 150249619 
				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 07:08 AM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | |
| 
			
			
			
			 Hedge Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 802 
				Karma: 19999999 
				Join Date: May 2011 
				Location: UK/Philippines 
				
				
				Device: Kobo Touch, Nook Simple 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 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.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 Hedge Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#6 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,292 
				Karma: 1428263 
				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.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 Well trained by Cats 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,267 
				Karma: 61916422 
				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.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 Hedge Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 802 
				Karma: 19999999 
				Join Date: May 2011 
				Location: UK/Philippines 
				
				
				Device: Kobo Touch, Nook Simple 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Editing tags log history | Amalthia | Calibre | 3 | 08-19-2018 10:42 AM | 
| Editing fbreader tags on fire? | taratears | Amazon Fire | 0 | 03-19-2015 03:49 PM | 
| Editing Tags Hierarchy | enonod | Library Management | 5 | 11-29-2013 05:59 AM | 
| editing tags in my posts ? | Joebill | Feedback | 4 | 01-10-2010 04:47 PM | 
| Editing metadata tags | thibaulthalpern | 9 | 03-19-2009 05:17 PM | |