View Single Post
Old 12-17-2023, 12:38 AM   #97
culytera
Zealot
culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.
 
Posts: 131
Karma: 295674
Join Date: Jul 2021
Device: iPhone
Quote:
Originally Posted by shinykari View Post
Is there a regular expression or template I can use in the "Column Built from Other Columns" settings to add a prefix to each tag before it's ported over?

To explain further: I use a combined column to create custom collections on my Kobo that is made up of the fandom, pairing, and character columns. This worked well enough for a while, but now I have too many books and it's become a mess. I'd like to be able to prefix "Pairing:" etc before the tags get put into the custom column, but when I've tried before, it only adds it in front of the first tag, leaving the others alone. So instead of getting "Pairing: Bert/Ernie, Pairing: Big Bird/Oscar," it gives me "Pairing: Bert Ernie, Big/Bird Oscar". Then, in Kobo, there's a shelf called "Pairing: Bert/Ernie" and a shelf called "Big Bird/Oscar."

If this isn't possible to do automatically, is this something I can do in find/replace tags?
I don't know how to replace each entry on the column through Search and Replace, but you can add the prefix for each entry through Fanficfare.

Code:
add_to_extra_valid_entries:,prefixed_ships
include_in_prefixed_ships:ships

replace_metadata:
 prefixed_ships=>^(.*)=>Pairing: \1

add_to_custom_columns_settings:
 prefixed_ships=>#custom_column_for_your_ships
culytera is offline   Reply With Quote