View Single Post
Old 02-25-2023, 02:13 AM   #2
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,188
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Thanks for sharing what you're doing with your metadata.

Right now I'm mostly using replace_metadata to normalize the fandom tags, so I can use generate cover to insert fandom covers. Yesterday, I realized I could do something similar with Genre/freeformtags but it's not without risks and if I went at it full speed ahead my lines of code would reach thousands, which is a bit much.

For now, I'm using this to replace genre metadata.

Code:
replace_metadata:
 genre=>.*[Nn]o beta.*=>Not Beta Read
 genre=>.*[Uu]nbeta.*=>Not Beta Read
 genre=>.*[Ss]low [Bb]urn.*=>Slow Burn
 genre=>.*slowburn.*=>Slow Burn
 genre=>.*[Ff]ix[Ii]t.*=>Fix-It
 genre=>^[Ff]ix [Ii]t=>Fix-It
I am flat out removing these freeformtags with this code.

Code:
exclude_metadata_pre:
 warnings==Author Chose Not To Use Archive Warnings
 warnings==No Archive Warnings Apply
 warnings==Graphic Depictions Of Violence
 warnings==Creator Chose Not To Use Archive Warnings
 warnings==Additional Warnings In Author's Note
 freeformtags,genre==Other Additional Tags to Be Added
 freeformtags,genre=~^I .*
 freeformtags,genre=~^[Aa]dditional.*
 freeformtags,genre=~^[Aa]uthor.*
 freeformtags,genre=~^[Aa]nd.*
 freeformtags,genre=~^on .*
 freeformtags,genre=~^[Aa]lso.*
 freeformtags,genre=~^[Aa]lmost.*
 freeformtags,genre=~^NOTE.*
 freeformtags,genre=~^I'm.*
 freeformtags,genre=~^this.*
 freeformtags,genre=~^[Ii]n .*
 freeformtags,genre=~^[Aa] .*
 freeformtags,genre=~^[Aa]t .*
 freeformtags,genre=~^[Ww]ordcount.*
 freeformtags,genre=~^[Ww]ill .*
 freeformtags,genre=~^[Ss]ome .*
 freeformtags,genre=~^[Ss]o .*
 freeformtags,genre=~^[Oo]h .*
 freeformtags,genre=~^[Oo]f .*
 freeformtags,genre=~^[Ww]ell .*
 freeformtags,genre=~^[Tt]here.*
 freeformtags,genre=~^[Aa]ka .*
 freeformtags,genre=~^[Ii]dk .*
 freeformtags,genre=~^[Aa][Ll][Ll] .*
 freeformtags,genre=~^[Ii]t's .*
 freeformtags,genre=~^NOTE.*
 freeformtags,genre=~^[Mm]ore .*
 freeformtags,genre=~^[Ll]ike .*
 freeformtags,genre=~.*[Tt]ags .*
 freeformtags,genre=~^[Bb]ut .*
 freeformtags,genre=~.*because.*
 freeformtags,genre=~^[Hh]e.*
 freeformtags,genre=~^[Ss]he.*
I choose these because the tend to be author's opinions or just random phrases that don't describe the story. Or worse, the author's say something like "more tags to come."

If I thought more author's cared, I'd recommend that they split up their tags to use "Fix-It" "Jedi Order," instead of using "Jedi Order Fix-It." This makes it easier to find all "Fix-It" fics, or all "Jedi Order" you can select on multiple tags in the browser in Calibre. but if they are mushed together it gets lost.

Amalthia
Amalthia is offline   Reply With Quote