View Single Post
Old 09-29-2017, 11:39 AM   #2478
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: 7,043
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by kstar View Post
Bubble sorting....?

Is this conceptually possible within Fanficfare for ships/relationships tag?

My objective is uniformity of the ship tagging order either by Alphabetically or by Preference.
You do realize bubble sort exists primarily as an example of how not to do things in intro computing courses, right?

There's a setting you can turn on to do alphabetical sort of ships. There's no mechanism for Preference ordering beyond what you're already doing.
Code:
## Reorder ships so b/a and c/b/a become a/b and a/b/c. '/' is no
## longer hard coded and can be changed and added to with
## sort_ships_splits.
sort_ships:true

## Each line indicates first a regex that should be used to split each
## ships entry and then, after => the string to use to merge the parts
## back together.  \s == blank space.
## Each part will have replace_metadata with key ships_CHARS applied.
sort_ships_splits:
 [ ]*/[ ]*=>/
 [ ]*&[ ]*=>\s&\s
Quote:
Originally Posted by kstar View Post
Side Note: Removing any "friendships" denoted with ampersand...
My coding didn't work.
You have the first .* reversed (and they aren't needed) and you need to use the HTML entity for &. This should work:
Code:
 
exclude_metadata_pre:
 ships=~&
Quote:
Originally Posted by kstar View Post
May have forgotton to say this before but thank you for Fanficfare. Love the program. Kudos!
JimmXinu is offline   Reply With Quote