![]() |
#376 | |
hopeless n00b
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Quote:
By the way, I made a tag rules table for the LOTR tag you linked to in the FFF thread. https://archiveofourown.org/tags/The...R*d*%20Tolkien I think this is probably more helpful to you than my personal tag rules. I don't even wrangle fandoms since I set those manually (easy since everything is A Song of Ice and Fire at the moment). If you still want a copy of mine, I can email it if you PM me your address (it doesn't seem like attachments are allowed in PM). Mind, for your specific example (Assassin's Creed 3 - Fandom >> Assassin's Creed), it should have worked with Tag String Replacement. Mayhaps the old string wasn't exact (curly quotes instead of straight, extra spaces, etc)? Last edited by ilovejedd; 02-16-2019 at 10:21 AM. |
|
![]() |
![]() |
![]() |
#377 |
Deviser
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
I created the "Tag Scrubbing Audit Log" to document what did and did not happen and why. Copy it to the clipboard, and then add it to your post so I can examine it.
DaltonST |
![]() |
![]() |
![]() |
#378 |
Deviser
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Remember that you can use /Regular Expressions/ in some of the scrubbing rules tables, including the Tag Rules Table. Look at the example .csv file in calibre/config/plugins/jobspy/resources.
Example: "/sci.*[f][iy].*/","Fiction:Science","False" DaltonST |
![]() |
![]() |
![]() |
#379 | |
hopeless n00b
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#380 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
Here's the audit log.
If I were to use the Regular Expressions with any version of Buffy The Vampire Slayer how would that go? And would it delete everything else but Buffy in the fandom? |
![]() |
![]() |
![]() |
#381 |
Deviser
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
As the examples show, it matches on the RE and then replaces whatever Tag is matched with the "new tag" value. Or, purges it if that is what you set.
"/.*Buffy.*Vampire.*Slay.*/","Buffy The Vampire Slayer",False So, "/.*Game[ ]of[ ]Thrones.*/" would not match Buffy, and Buffy would not match Game of Thrones. Your .csv files show way too many needless rules because they do not use REs at all. You need to be developing your .csv files using a TEST Library that is a copy of your "real" Library. You just need the metadata.db, not all of the books underneath it. That way, you could refresh your TEST Library's metadata.db easily and quickly to test again. Or, create some custom columns to hold your test data column, and refresh your active custom columns from that using Bulk Edit S&R. That is what I did to develop the Tag Scrubbing tool. Remember to compress your "real" metadata.db using Check Library after you run your rules "for real". DaltonST Last edited by DaltonST; 02-16-2019 at 11:45 AM. |
![]() |
![]() |
![]() |
#382 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
When I run the tag rules it doesn't change the t in the from normal to Capitalized.
For example in Buffy the Vampire Slayer it's supposed to be Buffy The Vampire Slayer. It says it does in the log, but when I look in Calibre it stays the instead of The. |
![]() |
![]() |
![]() |
#383 |
hopeless n00b
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
I do believe tags are not case sensitive. Use either the Tag Capitalization Rules or Bulk Metadata Edit S&R for that.
|
![]() |
![]() |
![]() |
#384 |
Deviser
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Version 1.0.141 Per Library tweak for title_series_sorting
Version 1.0.141 - 2019-02-16 Per Library tweak for title_series_sorting
See the explanatory image. DaltonST Last edited by DaltonST; 02-17-2019 at 10:42 AM. |
![]() |
![]() |
![]() |
#385 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,772
Karma: 30237628
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
![]() Lesson learnt: If you rename a library, don't forget to adjust your per library tweaks. I recently changed a library name from 'Main' to 'Books' and neglected to change job_spy_default_output_format and job_spy_author_sort_copy_method. In an ideal world there would be a reminder in the Library rename dialogue ![]() BR Last edited by BetterRed; 02-19-2019 at 03:49 PM. Reason: Added lesson learnt & punctuation |
|
![]() |
![]() |
![]() |
#386 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
I'm looking through the rules for scrubbing tags, and I'm wondering what to do if I want to add more than one tag based on an existing tag:
Example: Existing tag: Harry Potter - J. K. Rowling New tag: Harry Potter, Books & Litterature Thanks for an otherwise great tool which I hadn't noticed before. |
![]() |
![]() |
![]() |
#387 | |
hopeless n00b
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Quote:
Tag Rules doesn't work for creating multiple tags. It has to be 1:1. As always, do the scrub on a test library or column. |
|
![]() |
![]() |
![]() |
#388 | ||
Deviser
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Tag Combination Rules & Tag Splitting Rules
Actually, there is a Tag Combination Rules table for creating a new Tag from 2 or 3 existing Tags.
Quote:
Added: Also: Tag Splitting Rules. Quote:
Last edited by DaltonST; 02-19-2019 at 10:04 AM. |
||
![]() |
![]() |
![]() |
#389 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
I'm having better luck with Tag Rules instead of String Replacement. I may try the dummy solution or maybe I'll add the tag I need anyway and then use the splitting rules after.
Can I add any character for splitting at? |
![]() |
![]() |
![]() |
#390 |
Deviser
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Yes, several. See the examples in the Tag Splitting Rules .csv file example. The rule first matches using the REGEX, then if the Tag is matched, splits at any of the specified strings that it finds. It does not have to be a simple single character.
The sequence of running the various rules tables is critical. See the ToolTips. Test it in a Test Library. |
![]() |
![]() |
![]() |
Tags |
author aka, author pen name, colors, toolbag, toolbox, tools |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 523 | 07-15-2025 06:45 PM |
[GUI Plugin] Ex Libris | AlPe | Plugins | 87 | 10-10-2020 03:10 PM |
[GUI Plugin] Marvin XD | Philantrop | Plugins | 126 | 01-29-2017 12:48 PM |
Ubuntu/Linux : Command to schedule a job with Calibre.( No GUI ) | DurgaPrasad | Calibre | 0 | 10-16-2013 06:50 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |