Quote:
Originally Posted by Sabardeyn
Personally, I would create a custom column (#ser_initials) and enter the specific name that I want when Saving to Disk. No processing involved. You can control exactly what appears (capitalization, symbols, grouping, etc). Once set, the initials are permanent.
I'm not enough of a RegEx guru (the commands you're using as the 'template' in Code sections 1&2) to help you further. But Code 1's template would be the start to automatically capturing the series initials with the Edit Metadata in Bulk's Search & Replace feature. You would need to tweak it further for capturing and then storing the value into ser_initials.
This would fill the ser_initials custom column with your current, incorrect names... but would save you from lots of manual data entry. Then you could use Edit Series:ser_initials, to fix any errors (like "(Esdlr(dor" being corrected to "Esdlr(Tdor)") for all books with the same series initials at once, and you're good to go thereafter, permanently.
I cannot speak to which of these two methods (your plugboards or my custom column approach) is better or more efficient. I think (no proof!) Plugboards would take more CPU processing cycles while the custom column takes up disk and memory space. But, ATM, I'm using an older, slower PC and CPU cycles are more of an issue for me. Of course, YMMV. 
|
Hello Sabardeyn, wow thanks, I'll have to read this a few times carefully (I'm so not good with this) but I think I understood, yes, doesn't seem too bad as a different approach, basically, use my "bad" regex as a starting point, manually fix the outcome and then I'm good to go!
I'll first try to keep it automatic if I can, but If I'm

I'll def try your option
ah I'm using a 2007 macbook that is still mostly fine, I'm not having big troubles when using calibre, i've only got 3000 or so books on it and even with all the tweaks and custom columns I'm not feeling it slow or anything
Quote:
Originally Posted by Sunlite
Hi glos,
the problem in your initial regex is, that it only matches words with at least two letters.
Therefore 'A ' is not caught and not changed.
You could try to change the '+' in [^\s]+ to '*'.
Then it should catch single letter words, too.
Please, be careful and try it out locally first.
|
Hello Sunlite,
I just tried this, and you're right! I tried it on a "test" library with those few example books that needed fixing..
It did fix the space problem so now I got "TiwIb" "SaM-ey" "ACfBU" etc.

The parenthesis problem is the one remaining but I guess I can live with it, it's not like I have thousands of series with parenthesis...
Thank you for your help!
(both of you) ^_^