Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 05-28-2022, 12:30 PM   #7186
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,974
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
I added an edit check recently that validates custom_columns_settings lines.

Your line "category=>tags" never worked (tags isn't a custom column), but now FFF is telling you about it.
JimmXinu is offline   Reply With Quote
Old 05-28-2022, 12:50 PM   #7187
Tharos
Connoisseur
Tharos began at the beginning.
 
Posts: 66
Karma: 10
Join Date: Jul 2010
Device: Pocketbook InkPad Color 3, Kindle Oasis 2, Moon+ Reader pro
Pointing this out, the error message makes so much sense. And the solution is so simple. Thanks for the help.
Tharos is online now   Reply With Quote
Advert
Old 05-28-2022, 02:32 PM   #7188
boomcpg
Junior Member
boomcpg began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2022
Device: Samsung S21, Moon+ Reader Pro
Filtering calibre standard tags

I was hoping someone here could help me. I'm very new to working with fanficfares personal.ini and would like to setup the tag collecting. I've got 5 costume columns (listed below in the personal.ini excerpt) working correctly but I would like for these column to be the only place that these tags are listed.

Whenever I import a new fic the tags are placed correctly for the custom columns but are also placed in the standard calibre tag column. I'm sure there is way to suppress certain classes of tags from showing in the standard tag column but after three days searching I'm still having problems determining what syntax or command to use. I thought that the include_in_tags command would exclude anything not listed but currently I'm still getting all tag classes add to the standard calibre tag column.

Could someone point me to the right direction to limit what class of tags show up in the standard calibre tag column?

Code:
[defaults]
include_in_tags:ships,extratags,warnings
custom_columns_settings:
 category=>#fandom
 status=>#status
 rating=>#age
 characters=>#characters
 genre=>#genre
boomcpg is offline   Reply With Quote
Old 05-28-2022, 05:50 PM   #7189
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,974
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by boomcpg View Post
Could someone point me to the right direction to limit what class of tags show up in the standard calibre tag column?
You were thinking logically, but for historical reasons, the setting is include_subject_tags, not include_in_tags:
Code:
## entries to make epub subjects and calibre tags
## lastupdate creates two tags: "Last Update Year/Month: %Y/%m" and "Last Update: %Y/%m/%d"
include_subject_tags: extratags, genre, category, characters, ships, status
JimmXinu is offline   Reply With Quote
Old 05-28-2022, 06:33 PM   #7190
boomcpg
Junior Member
boomcpg began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2022
Device: Samsung S21, Moon+ Reader Pro
Quote:
Originally Posted by JimmXinu View Post
You were thinking logically, but for historical reasons, the setting is include_subject_tags, not include_in_tags:
Code:
## entries to make epub subjects and calibre tags
## lastupdate creates two tags: "Last Update Year/Month: %Y/%m" and "Last Update: %Y/%m/%d"
include_subject_tags: extratags, genre, category, characters, ships, status
Thanks. That did the trick. I had seen this section in the default.ini but could never figure out what constituted a subject.
boomcpg is offline   Reply With Quote
Advert
Old 05-28-2022, 07:40 PM   #7191
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,974
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by boomcpg View Post
Thanks. That did the trick. I had seen this section in the default.ini but could never figure out what constituted a subject.
FanFicFare started out as a stand alone project (then named FanFictionDownLoader), not a Calibre plugin.

Epub format uses <dc:subject>...</dc:subject> tags to define whatever random data, the include_subject_tags setting controls what gets put in those tags.

When epubs are imported in Calibre, <dc:subject> tags end up in Calibre's Tags field.

So when I made the plugin version, it made sense to just use include_subject_tags--it basically already worked that way.
JimmXinu is offline   Reply With Quote
Old 05-28-2022, 10:58 PM   #7192
boomcpg
Junior Member
boomcpg began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2022
Device: Samsung S21, Moon+ Reader Pro
Ahh. That makes sense.

I do have one last problem that I have been trying to parse and I suspect that what I am trying to do is not possible.

Fimfiction.net has a genre category called Human for fics that are told from a human or ex-human POV. I would like to change this specific tags class from genre to characters. I have been searching for a command to do this but haven't yet found one. Most of the commands that I have found involve renaming or determining what tags to include from the website. Nothing that I have found can actually change class types.

So just to save some sanity I'll ask. Is there any way for the user to change tag class types or is this beyond the scope of the plug-in design?
boomcpg is offline   Reply With Quote
Old 05-29-2022, 09:54 AM   #7193
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,974
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
FFF has a round-about way of doing that using the replace_metadata split feature:

Code:
[www.fimfiction.net]
add_to_replace_metadata:
 characters=>^(.*)$=>\1\,Human&&genre==Human
This says to replace any and all characters entries with themself plus add Human to the list, but only when genre contains Human. Duplicates are removed automatically.

See wiki page.

Note that this will only work when there is already something in characters.
JimmXinu is offline   Reply With Quote
Old 05-29-2022, 11:03 AM   #7194
boomcpg
Junior Member
boomcpg began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2022
Device: Samsung S21, Moon+ Reader Pro


I would have never found that solution. I thought it would involve some kind of conditional but my amateur coding skills couldn't see this use case from the split metadata feature.

Thanks for all the help and your work on this project.
boomcpg is offline   Reply With Quote
Old 05-30-2022, 04:41 PM   #7195
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,993
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I tried this:

Code:
[https://archiveofourown.org/works/39298212]
strip_chapter_numbers: true
The two existing chapters merged into one, "Book's cover." Did I make a mistake?

EDIT: The chapters are still separate files, just the toc.ncx (and auto-genned ToC page) only shows the first chapter.

Last edited by ownedbycats; 05-30-2022 at 04:58 PM.
ownedbycats is online now   Reply With Quote
Old 05-30-2022, 06:07 PM   #7196
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,974
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
I would suspect that you are using a chapter_title_strip_pattern setting that includes "Chapter *[0-9]+" of some form. It's not in the default, but there is an example in defaults.ini:

Code:
## (Two versions of chapter_title_strip_pattern are shown below.  You
## should only have one uncommented.)
## This version will remove the leading number from:
## "1." => ""
## "1. The Beginning" => "The Beginning"
## "1: Start" => "Start"
## "2, Chapter the second" => "Chapter the second"
## etc
## Leaves unchanged "1.1" or "1"
## Note that your ToC entry(ies) may be empty if the
## chapter_title_strip_pattern removes everything and you don't have
## add_chapter_numbers:true.
chapter_title_strip_pattern:^[0-9]+[\.: -]+(?=[^0-9]|$)

## This version remove leading numbers and 'Chapter 1':
## "Chapter 1" => ""
## "1. Chapter 1" => ""
## "1. Chapter 1, Bob's First Clue" => "Bob's First Clue"
## "Chapter 2 - Pirates Place" => "Pirates Place"
## etc
## Note that your ToC entry(ies) may be empty if the
## chapter_title_strip_pattern removes everything and you don't have
## add_chapter_numbers:true.
#chapter_title_strip_pattern:^([0-9]+[\.: -]+)?(Chapter *[0-9]+[\.:, -]*)?
JimmXinu is offline   Reply With Quote
Old 05-30-2022, 06:22 PM   #7197
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,993
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
The first pattern there worked when I pasted it under the section. Thank you.
ownedbycats is online now   Reply With Quote
Old 05-30-2022, 09:23 PM   #7198
grimorie
Enthusiast
grimorie began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Feb 2017
Device: Kobo Clara HD
Hello! Is it possible to configure the plugin, just for myself, to download from a fanfiction site that's not included in the list?
grimorie is offline   Reply With Quote
Old 05-30-2022, 09:40 PM   #7199
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,974
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
"Configure?" No, not really.

But it is an open source project, so the code is available from the FanFicFare project home or even just in the plugin zip file. Many people have coded support for new sites and contributed back to the project.

What site are you talking about?
JimmXinu is offline   Reply With Quote
Old 05-30-2022, 09:50 PM   #7200
grimorie
Enthusiast
grimorie began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Feb 2017
Device: Kobo Clara HD
Thank you for replying.

Quote:
Originally Posted by JimmXinu View Post
What site are you talking about?
The site is: https://chosentwofanfic.com
grimorie is offline   Reply With Quote
Reply

Tags
fanfiction


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 523 07-15-2025 06:45 PM
[GUI Plugin] Open With kiwidude Plugins 404 02-21-2025 05:42 AM
[GUI Plugin] Marvin XD Philantrop Plugins 126 01-29-2017 12:48 PM
[GUI Plugin] KiNotes -axel- Plugins 0 07-14-2013 06:39 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 04:04 PM.


MobileRead.com is a privately owned, operated and funded community.