Quote:
Originally Posted by stelliferous00
I’ve recently started using Calibre and the FanFicFare plugin, I was wondering if there was a way to get a column set up that ONLY pulls in romantic relationships from the metadata? Essentially just the tags that have the slash instead of all the platonic tags, that include the &. If there's a way to have the romantic and platonic in their own separate columns that would be even better honestly.
|
It's been a while since I've given a detailed answer to one of these and MR's search isn't the greatest for finding past answers.
Since you mentioned "default vs ao3 vs overrides" and & vs / ships, I assume you primarily use AO3.
The standard metadata entry for Relationships is internal named
ships. If you only wanted to keep either romantic(/) or platonic(&) relationships, you could exclude the other from
ships.
To keep both, but in separate lists, at least one needs to be copied to a new custom metadata entry. I'll show a solution that separates both so both get the same treatment.
This assumes you have already created Calibre Custom columns for 'platships' and 'romships'. (All Calibre custom columns have a 'lookup name' that starts with '#' when you
use, but not when you create it.) Types are assumed Text or "Comma separated text, like tags"
You also need need to have checked the box at the bottom of FFF config's Custom Columns tab that says "Allow custom_columns_settings from personal.ini to override".
Code:
[archiveofourown.org]
## extra_valid_entries defines valid custom metadata entries.
## Need to use add_to_ because defaults.ini already defines several
## under [archiveofourown.org]. Yes, the leading , is needed
## See https://github.com/JimmXinu/FanFicFare/wiki/INI-File#add_to_keyword
add_to_extra_valid_entries:,platships,romships
## Labels used if included in titlepage_entries or logpage_entries
platships_label:Platonic Relationships
romships_labels:Romantic Relationships
## essentially copy ships to platships and romships.
## **After** replace_metadata and in/exclude on ships so
## and edits to ships will be applied to both still.
## Use ships.NOREPL to not get ships edits.
include_in_platships:ships
include_in_romships:ships
## Include **only** platships containing & and romships containing /
## & html entity is used for & in FFF entries for historical reasons.
include_metadata_pre:
platships=~&
romships=~/
## not necessary, but can be useful to see this part is working if nothing else
add_to_titlepage_entries:,platships,romships
## put platships & romships into their custom columns.
## Quite a few ini parameters are documented primarily in
## the defaults.ini file
## See https://github.com/JimmXinu/FanFicFare/blob/main/calibre-plugin/plugin-defaults.ini#L345
add_to_custom_columns_settings:
platships=>#platships
romships=>#romships
More wiki pages:
https://github.com/JimmXinu/FanFicFa...eplaceMetadata
https://github.com/JimmXinu/FanFicFa...etadataFeature
https://github.com/JimmXinu/FanFicFa...dataManagement