Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 04-10-2015, 02:39 AM   #1
Bokononist
Decadent Monarch
Bokononist began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2015
Location: Most people think it's the center of the universe. To me it seems tangential.
Device: Kindle Paperwhite (1st Version)
Bulk Tag Rename

I only recently discovered Calibre, and I have to say: it's brilliant. It has totally revolutionized not just my ebook collection, but the way I store and organize nearly every instance of the written word in my life. No matter how precise my demands, it seems to respond with a smart UI housing a powerful toolset.

Recently, though, I've been trying to consolidate various unnecessary custom columns into a smaller number of hierarchical columns, and it has proved difficult. Specifically, I need to copy tags from the various #editor, #illustrator (etc.) columns I've made, and write them to a "#credit" column with the name of the column it came from preserved as a hierarchical header. ie:

#editor(Slavoj Žižek, Mike Dulsa), #illustrator(Tom Skad) >>> #credit(Editor.Slavoj Žižek, Editor.Mike Dulsa, Illustrator.Tom Skad)

Thing is, though, and this may just be my very recent introduction to Regular Expressions hampering my vision, but I can't seem to find a way to do this. All columns are of the type "comma separated text, like tags, shown in the browser", although the various role columns are all checked as containing names and the #credit column is not. It's easy enough to use a wild card search and replace to get the tags into the #credit column, but manually editing each and every name tag via the tag browser to file them all into the hierarchy is no real option, and when I attempt to add the "Editor." to the "Replace" field in the search and replace dialog, I get a result like this:

Editor.SEditor.lEditor.aEditor.vEditor.oEditor.jEd itor.ŽEditor.iEditor.žEditor.eEditor.kEditor.Slavo jŽižek

Neither does the tag management window provide a solution... I can group tags into user groups, but this doesn't seem to grant any additional utility to modify the tags contained within the groups.

In the music management application I use, Foobar2000, there's an internal reference language that can be used to manipulate various different tags and other metadata in bulk. To accomplish the result desired above, for exapmple, I could format the credit field with the following string:

"Editor.(%<editor>%)"

This would automatically pull the various comma separated tags from the editor field, prepend "Editor." to each tag, and enter them as comma separated tags in the credit field. Additionally, I could use string modifiers to pull from various fields at once, if I felt like it. ie:

$if(%<editor>%,'Editor.'%<editor>%,)$if(%<illustra tor>%,'Illustrator.'%<illustrator>%,)

Does anyone know if something similar is possible in Calibre?

Last edited by Bokononist; 04-10-2015 at 03:00 AM.
Bokononist is offline   Reply With Quote
Old 04-10-2015, 05:05 AM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,715
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Bokononist View Post
I only recently discovered Calibre, and I have ...

...Does anyone know if something similar is possible in Calibre?
Bokononist - are you aware of the ==>> The calibre template language

BR
BetterRed is offline   Reply With Quote
Advert
Old 04-10-2015, 11:30 AM   #3
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,037
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Bulk mode Metadata edit (2 or more books) has a number of Search type options:

The Calibre Template mode being one.
REGEX being another

Be sure to consider if appending to an existing field (another replace option)

BACKUP your Library. This tool can DESTROY IT in a instant (and make additional 'Milestone' backups as you go)
theducks is offline   Reply With Quote
Old 04-10-2015, 08:30 PM   #4
Bokononist
Decadent Monarch
Bokononist began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2015
Location: Most people think it's the center of the universe. To me it seems tangential.
Device: Kindle Paperwhite (1st Version)
*Facepalm*

This is what fucking with your libraries intoxicated while deprived of sleep gets you. Asking absurdly overcomplicated questions with answers dangling in front of your nose. Thanks for the link!

Ah. Thanks for the tip, I hadn't realized how powerful bulk mode metadata edit was. And yeah, regular backups are the only sane way to go about things in the digital world...

Much thanks for the help.
Bokononist is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bulk fill title with same value (like bulk rename author)? rebl Library Management 1 08-22-2014 12:05 PM
Error when trying to bulk rename files cager Editor 2 04-09-2014 05:08 AM
'Tag & Rename' For Metatags???? antd Reading and Management 0 06-10-2012 12:28 PM
PDOC tag different for bulk and individual James76 Conversion 1 12-14-2011 03:06 AM
Permanent Tag Rename on Import dumalkin Library Management 0 05-28-2011 04:23 PM


All times are GMT -4. The time now is 09:03 AM.


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