|
|
#1 |
|
Member
![]() Posts: 23
Karma: 10
Join Date: Mar 2010
Device: palm tungsten T5
|
COMMENTS batch formatting - SOLVED
I have a huge library and I added books descriptions inside "comments" by copying and pasting description (synopsis) from web pages. So the result is an incredible variety of different styles and fonts (formatting). Is there a way to batch change the comments formatting in order to make them uniform ? ThX by Ippopom PS the "erase formatting" button remove only the fonts attribute... but bakground colors and alignment remain untouched...... Last edited by ippopom; 02-27-2013 at 01:39 PM. |
|
|
|
|
|
#2 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 542
Karma: 1014020
Join Date: Jul 2009
Device: Palm Treo
|
This won't help with the batch formatting but you can avoid the problem in the future by using a text editor (like Windows Notepad) between the web & Calibre. Paste from Web into the text editor then cut from there & paste into Calibre. Running things thru a text editor strips off most attributes like fonts & colors. Alignment depends-it often turns tabs into multiple spaces but will strip most other alignment properties.
|
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,664
Karma: 3473290
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use the search and replace tab in the bulk metadata editor to strip all html tags. Something like
Search: <.*[^>]+> Replace: Remember to backup your library before doing bulk search and replace.
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
|
#4 | |
|
Member
![]() Posts: 23
Karma: 10
Join Date: Mar 2010
Device: palm tungsten T5
|
Quote:
And TnX to Calvin too, I done what you suggested but I have a really massive library so the twice copy paste (to a text editor and inside comments) is a little bit "time wasting". |
|
|
|
|
|
|
#5 |
|
Member
![]() Posts: 23
Karma: 10
Join Date: Mar 2010
Device: palm tungsten T5
|
|
|
|
|
|
|
#6 |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,959
Karma: 2574555
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
Those are REGEX patterns. Select REGEX match mode
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
#7 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 542
Karma: 1014020
Join Date: Jul 2009
Device: Palm Treo
|
Yeah, it's really only worthwhile for the initial entry-and maybe only in Windows where you can keep the Notepad window open beside Calibre, and maybe your Web browser. What I do is find the comments I want to keep in Calibre's download metadata screen. If I like how they're formatted I let Calibre download them-but sometimes I like the comments from one source & the other metadata (like publisher/date) from another. So I highlight the comments in the download window, Ctrl+C to copy to the clipboard, mouse-click to the open Notepad window, back to Calibre & finish the metadata download from whichever source. Then back to Notepad, Ctrl+A to select all, Ctrl+C to copy it, then back to Calibre & highlight whatever's in the comments, then Ctrl+C to paste from notepad. Really only takes a second or so if I don't have to edit anything or search out other sources-not much time at all compared to the time it takes Calibre to find the metadata in the 1st place. But you're right about it being a time waster for comments that have already been entered into Calibre. I'm not an expert with Regular Expressions but I have used them and that's a better approach for modifying Comments 'in place'.
|
|
|
|
|
|
#8 |
|
Member
![]() Posts: 23
Karma: 10
Join Date: Mar 2010
Device: palm tungsten T5
|
ops..... you totally right .... TnX
It work adjusting the expression in this way: <[^>]+>
Last edited by ippopom; 02-26-2013 at 01:46 PM. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Formatting your eBook and keeping Italics (a formatting nuclear option survival tip) | LunaraSeries | Workshop | 6 | 01-04-2012 11:50 AM |
| [Old Thread] Comments section *formatting* | mezme | Calibre | 5 | 08-26-2011 06:22 PM |
| Conversion to Mobi - How to Prevent Formatting marks in Comments | nynaevelan | Calibre | 8 | 01-03-2011 02:10 PM |
| [KOBO] Strip existing formatting to apply my own default formatting to all books | digital_steve | Calibre | 2 | 08-10-2010 06:34 PM |
| Comments - batch add? | mezme | Calibre | 4 | 12-25-2009 11:48 PM |