View Single Post
Old 07-09-2023, 02:51 PM   #8616
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,985
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Hmmm. Two very similar questions at once.

AO3 names things a bit differently than FFF does, so AO3's freeformtags, ao3categories go into FFF's genre while AO3's fandoms go into category.

For historical reasons, FFF populates Calibre's Tags column with all the metadata entries listed in the include_subject_tags setting. By default, that is extratags, genre, category, characters, ships, status. There is no one 'tags' metadata entry by default. But nothing stops you from making one, if you want.

Quote:
Originally Posted by chicleeblair View Post
...
What I’m trying to figure out is how to get some of the freeformtags into the tags (subjecttags) without pulling all of them. e.g. if the fic was tagged “AU” and I used add_replace_metadate to change that to “Alternate Universe,” can I then get that into the primary tags column?
chicleeblair - Your short answer is probably something like:
Code:
[archiveofourown.org]
include_subject_tags:freeformtags 
include_metadata_post:
 freeformtags==Value You Want 
 freeformtags==Other Value You Want
See InExcludeMetadataFeature.

A slightly longer answer, if you want to keep the full freeformtags list for title pages is to make a copy:
Code:
[archiveofourown.org]
# declare a new metadata entry
add_to_extra_valid_entries:,tagsiwant

# what goes in it
include_in_tagsiwant:freeformtags 

# put it into subjects tags
include_subject_tags:tagsiwant

# limit what it contains
include_metadata_post:
 tagsiwant==Value You Want 
 tagsiwant==Other Value You Want
Quote:
Originally Posted by beigedaniel2 View Post
...
I am trying to use the replace_metadata function to replace only words that appear in tags from ao3.

I tried using just the following:
Code:
replace_metadata:
  Polyamory=>Poly
but that replaced it even in the title, which I didn't want. I only want the imported tags (that show up in Calibre's default Tags column) to be changed.
This one is simpler: You didn't restrict the replacement, so it applies to everything. Instead, use:
Code:
replace_metadata:
  genre=>Polyamory=>Poly
# or maybe
  fandoms,freeformtags,ao3categories=>Polyamory=>Poly
See ReplaceMetadata for more details.
JimmXinu is offline   Reply With Quote