![]() |
#1 |
New York Editor
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,384
Karma: 16540415
Join Date: Aug 2007
Device: PalmTX, Pocket eDGe, Alcatel Fierce 4, RCA Viking Pro 10, Nexus 7
|
Bulk title rename in Calibre?
I just imported 516 volumes into Calibre. They were in Palm PDB format, and originated as HTML that I converted to the Plucker format viewable on a Palm PDA with the Plucker viewer. Calibre happily converted them all to ePub.
The files comprise two series. One series has file names of the form "XXX <Title>", where XXX is a 3 digit number starting with 001. The second has file has file names of the form "AAXXX <Title>", where AA is a two character prefix and XXX is a 3 digit number starting with 001. The naming convention was needed to indicate series order on the Palm device. In ePub, it's not needed. I'd like to do bulk renaming to strip the prefix from the volumes and just leave <title>, since Series order is handled in Calibre metadata and used by the viewer on the Android device I use for eBook viewing. Is there a Calibre function or plugin that can do this? I could export the files and do it on the OS level with a utility, then re-import, but that makes preserving series order problematic. With the original names, I could create a virtual library, sort by name, and tell Calibre to automatically generate Series numbers beginning from 1 and get the correct numbering. Without the prefixes, it appears I'd have to do it manually, and I don't want to update series data one by one for 516 volumes. If I tell Calibre to auto-generate numbers, order is based on the time the file was actually added, which may not be the order for the series. (I discovered that after import, and it was why I had to create a virtual library and sort by name to get the correct sequence. While the volumes were imported in series order, the volumes were not all added in the order they were imported.) I don't see anything in the Calibre manual about this, and no extant plugins appear to do it. Am I missing something? Thanks in advance, ______ Dennis |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,057
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 Search and replace in REGEX mode will do this
BACKUP YOUR LIBRARY, this will rename all those book files (title folders)and can take a bit of time, have the computer running from the mains if battery powered. Here you go The optional space between the prefix and title is handled with the \s* |
![]() |
![]() |
![]() |
#3 | |||
New York Editor
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,384
Karma: 16540415
Join Date: Aug 2007
Device: PalmTX, Pocket eDGe, Alcatel Fierce 4, RCA Viking Pro 10, Nexus 7
|
Thank you. I was assuming a regex search and replace if I exported and used an OS level utility.
Quote:
Quote:
I understand about time: when I asked Calibre to convert from PDB to ePub, it took a while, and I watched my CPU peg at 100% usage as multiple Calibre worker processes were involved. Quote:
Thanks again. ______ Dennis |
|||
![]() |
![]() |
![]() |
#4 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,057
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Dennis,
Calibre will do its normal, Copy the file to the new location, then delete the old folder. How long this takes??? Depends a bit on you HW. I always load my advice with cautions, so the user does not expect instantaneous completion, nor abort. I would guess 3 per second for an idea (does not include the Metadata backup file job queued in background) |
![]() |
![]() |
![]() |
#5 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,057
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
BTW, the first step is a generic search for titles that need TLC.
WARNING there are titles that start with numbers, be sure to NOT include those in the group for BULK metadata S&R Once you have done the initial batch(es), I expect future runs to be manual and run in a few minutes |
![]() |
![]() |
![]() |
#6 | ||
New York Editor
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,384
Karma: 16540415
Join Date: Aug 2007
Device: PalmTX, Pocket eDGe, Alcatel Fierce 4, RCA Viking Pro 10, Nexus 7
|
Quote:
But meanwhile, long running tasks are things I queue before going to bed. Stuff like this is likely to occupy enough of the system that trying to do other things while it's running is problematic, so start it and do something else like sleep. Quote:
______ Dennis |
||
![]() |
![]() |
![]() |
#7 | ||
New York Editor
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,384
Karma: 16540415
Join Date: Aug 2007
Device: PalmTX, Pocket eDGe, Alcatel Fierce 4, RCA Viking Pro 10, Nexus 7
|
Quote:
Quote:
This is a longer term project, now that I have an approach to take. The files are converted on on my viewing device. Cleaning up titles is a when I get to it housekeeping item, because I'm fussy about details like that. ______ Dennis |
||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Change Bulk Rename Prefix? | MerlinMama | Editor | 8 | 11-21-2017 04:05 AM |
Bulk Tag Rename | Bokononist | Library Management | 3 | 04-10-2015 08:30 PM |
Title bulk edit match - to remove series info from title | Rob557 | Library Management | 30 | 12-09-2014 06:06 AM |
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 |