View Single Post
Old 04-18-2015, 01:10 PM   #52
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: 3,949
Karma: 638740
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Voyage
Quote:
Originally Posted by Mieeka View Post
1) Add a Tag "oneshot" when the story is complete and only has 1 chapter.
This appears to work:
Code:
# defaults so is affects everything, but can be overridden by 
# more specific sections.
[defaults]

# 'add_to_' concats on to existing param, thus the leading comma
add_to_extra_valid_entries:,oneshot

# oneshot is a copy of status because status itself isn't a list.
include_in_oneshot:status

# add oneshot to the tags that are included in calibre.
add_to_include_subject_tags:,oneshot

# Change oneshot to ['Completed'] to ['Completed','Oneshot'] only when
# numChapters is exactly 1.
# with ',' instead of '\,' it would be ['Completed'] to 
# ['Completed,Oneshot']--one string instead of two.
add_to_replace_metadata:
 oneshot=>Completed=>Completed\,Oneshot&&numChapters=>^1$
(Personally, I keep a Chapters custom column.)

Quote:
Originally Posted by Mieeka View Post
2) prefix the Extra tags with the category (eg. time travel tag becomes Supernatural.Time Travel
I think you mean category, not 'extra' tags.

There's been discussion before about hierarchical tags--I don't really know any more about them now than I did then. (I will be adding the replace_metadata discussion from that to the project wiki, though.)

For category Supernatural specifically, you can do this:
Code:
add_to_replace_metadata:
 genre=>(.*)=>Supernatural.\1&&category=>Supernatural
I don't have a general solution for <category>.<genre>. Frankly, I don't see the need: do a calibre search for "tags:action and tags:supernatural" and you have the same effect as supernatural.action.

Maybe one of the other hierarchical tags have a better solution?

Quote:
Originally Posted by Mieeka View Post
3) populate the ratings based on the Kudos or reviews E.G ones with 1000 > reviews get 5 stars.
FanFicFare doesn't have any mechanism for populating Calibre's rating column. It would be quite complex because it would have to be configurable for everyone to choose their own break points between stars.

You can make a custom column, populate it with Kudos, reviews, etc and then use Calibre's various features change colors, add icons, etc based on those numbers.
JimmXinu is offline   Reply With Quote