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 09-24-2023, 09:37 PM   #8941
chibimaya92
Junior Member
chibimaya92 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Sep 2023
Device: none
Hello,
i know it was ask again and again but i'm here for fanfiction.net too, well not only but the others sites work fine.
Can i ask help to configure my personal.ini ?
Can i ask help to understand and try to create also my own configuration with my customs columns for AO3 and Ffnet ? I read the others posts about it and i found it really interesting

I'm trying te create a catalog with Calibre and export it on cvs.
I only use AO3 and FFnet for my readings, and i want really specifics columns.
Can i ask here or i need to find another topics for that ?

I already read the FAQs, and try the browser cache and/or the proxy, didn't work at all. I try the browser cache thing on different browser too

I'm really sorry to disturb you again with all of it
chibimaya92 is offline   Reply With Quote
Old 09-24-2023, 09:39 PM   #8942
chicleeblair
Connoisseur
chicleeblair began at the beginning.
 
Posts: 97
Karma: 10
Join Date: Sep 2018
Device: iPad mini
I’m confident that I’ve looked for answers to these two questions and haven’t seen them addressed, at least north that google can tell me, so hopefully they help someone else.

1. My chapterstotal column is text so that it can handle “?”s and when I update anthologies, it collects the total number of chapters in each ePub. Is there a way to get it to sum these like the #chapters column, which is integers?

(I just realized that the “?” could be an issue here, too, but I’m thinking that you could remove them in the case of an “anthology tag” )

2. I have a custom column called “type” made up of permitted values (book, fic, article, short stories, etc.) These map to my fanfic and books virtual libraries. Is there a way that ePubs downloaded by FFF can be marked as “fic” by default?
chicleeblair is offline   Reply With Quote
Old 09-24-2023, 10:34 PM   #8943
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: 11,439
Karma: 81367635
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by chicleeblair View Post
2. I have a custom column called “type” made up of permitted values (book, fic, article, short stories, etc.) These map to my fanfic and books virtual libraries. Is there a way that ePubs downloaded by FFF can be marked as “fic” by default?
Code:
[defaults]
custom_columns_settings: 
## Book type
 "Fanfiction"=>#booktype
ownedbycats is online now   Reply With Quote
Old 09-24-2023, 10:40 PM   #8944
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: 136
Karma: 295674
Join Date: Jul 2021
Device: iPhone
Quote:
Originally Posted by chibimaya92 View Post
Hello,
i know it was ask again and again but i'm here for fanfiction.net too, well not only but the others sites work fine.
Can i ask help to configure my personal.ini ?
Can i ask help to understand and try to create also my own configuration with my customs columns for AO3 and Ffnet ? I read the others posts about it and i found it really interesting

I'm trying te create a catalog with Calibre and export it on cvs.
I only use AO3 and FFnet for my readings, and i want really specifics columns.
Can i ask here or i need to find another topics for that ?

I already read the FAQs, and try the browser cache and/or the proxy, didn't work at all. I try the browser cache thing on different browser too

I'm really sorry to disturb you again with all of it
You can check this thread for some examples, might help you get started.
culytera is offline   Reply With Quote
Old 09-25-2023, 12:43 AM   #8945
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,214
Karma: 5006097
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by chibimaya92 View Post
Can i ask help to configure my personal.ini ?
...
I will help with specific issues when I have time (my time will be limited this week, FYI). But all my general answers are already here or in the wiki.

If they don't help, perhaps someone else can.

Quote:
Originally Posted by chicleeblair View Post
1. My chapterstotal column is text so that it can handle “?”s and when I update anthologies, it collects the total number of chapters in each ePub. Is there a way to get it to sum these like the #chapters column, which is integers?
IMO, chapterstotal isn't very useful. Most incomplete stories have '?' and if any story in an anthology has '?' the sum of chapterstotal could well be less than the sum of numChapters.

chapterstotal is a site specific metadata entry. IE, FFF only collects it for AO3 (and other OTW) sites. In fact, it's derived from chapterslashtotal using add_to_replace_metadata.

From defaults.ini:
Code:
## chapterslashtotal contains 1/3 or 1/1 or 3/? etc as reported by AO3.
## chapterstotal is just the total chapters part after the /
include_in_chapterstotal:chapterslashtotal.NOREPL
add_to_replace_metadata:
 chapterstotal=>^([0-9])+/(.+)$=>\2
If you set a metadata entry (using custom_columns_settings) into a float or integer type custom column, FFF will automatically split the list by commas and sum the values when it's an anthology.

But with the default definition of chapterstotal, that's a problem, because of the '?'.

Here's a brute force approach make chapterstotal the total or current when total is ?
Code:
## chapterslashtotal contains 1/3 or 1/1 or 3/? etc as reported by AO3.
include_in_chapterstotal:chapterslashtotal.NOREPL
add_to_replace_metadata:
 chapterstotal=>((?P<chap>[0-9]+)/\?)|([0-9]+/(?P<totchap>[0-9]+))=>\g<chap>\g<totchap>
Putting that in [defaults] works while doing away with '?' for chapterstotal.

Splitting out a separate copy or putting it under a more specific section should be possible, but I'm too tired right now.
JimmXinu is offline   Reply With Quote
Old 09-25-2023, 08:47 AM   #8946
chibimaya92
Junior Member
chibimaya92 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Sep 2023
Device: none
Quote:
Originally Posted by culytera View Post
You can check this thread for some examples, might help you get started.
Thanks ! I will check that !
chibimaya92 is offline   Reply With Quote
Old 09-25-2023, 02:42 PM   #8947
chicleeblair
Connoisseur
chicleeblair began at the beginning.
 
Posts: 97
Karma: 10
Join Date: Sep 2018
Device: iPad mini
Quote:
Originally Posted by ownedbycats View Post
Code:
[defaults]
custom_columns_settings: 
## Book type
 "Fanfiction"=>#booktype

Wow. That’s painfully simple. Thank you!
chicleeblair is offline   Reply With Quote
Old 09-25-2023, 04:53 PM   #8948
Aliumas147
Junior Member
Aliumas147 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2023
Device: Phone
So is there a way to save as seperate chapters?
Aliumas147 is offline   Reply With Quote
Old 09-26-2023, 11:56 AM   #8949
applegaa
Connoisseur
applegaa has learned how to buy an e-book online
 
applegaa's Avatar
 
Posts: 77
Karma: 76
Join Date: Apr 2019
Device: none
Quote:
Originally Posted by ownedbycats View Post
Code:
[defaults]
custom_columns_settings: 
## Book type
 "Fanfiction"=>#booktype
I've been struggling with attempts to have FFF conditionally set the Status column to "Anthology" for anthologies. I haven't had much luck with what I've tried so far, so I tried modifying the above code.

I also found a wiki entry that had this code:

Code:
[defaults]
generate_cover_settings:
 ${anthology}=>true=>Anthology Cover
I tried to combine the logic from both, resulting in this:

Code:
custom_columns_settings:
 ${anthology}=>true=>"Anthology"=>#status
However, it complains that it's only expecting two values to unpack. Can anybody help me fix this (or show me a better way)?

- Andrew
applegaa is offline   Reply With Quote
Old 09-26-2023, 12:01 PM   #8950
applegaa
Connoisseur
applegaa has learned how to buy an e-book online
 
applegaa's Avatar
 
Posts: 77
Karma: 76
Join Date: Apr 2019
Device: none
PS: I wish there was an [anthology] section in personal.ini we could use for things that we only want to apply to anthologies.
applegaa is offline   Reply With Quote
Old 09-26-2023, 05:40 PM   #8951
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: 11,439
Karma: 81367635
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by applegaa View Post
I've been struggling with attempts to have FFF conditionally set the Status column to "Anthology" for anthologies. I haven't had much luck with what I've tried so far, so I tried modifying the above code.

I also found a wiki entry that had this code:

Code:
[defaults]
generate_cover_settings:
 ${anthology}=>true=>Anthology Cover
I tried to combine the logic from both, resulting in this:

Code:
custom_columns_settings:
 ${anthology}=>true=>"Anthology"=>#status
However, it complains that it's only expecting two values to unpack. Can anybody help me fix this (or show me a better way)?

- Andrew
Yeah, custom column settings are an all-or-nothing thing, no conditionals there. You could probably create a custom entry (mapped to status), do a replace for the anthologies, and then insert that into the column.

I don't seem to have any special handling for anthologies myself (either in personal.ini or my metadata postprocessing) but I only have a few so maybe I just did them manually.

Last edited by ownedbycats; 09-27-2023 at 12:40 AM.
ownedbycats is online now   Reply With Quote
Old 09-28-2023, 09:51 PM   #8952
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,214
Karma: 5006097
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Aliumas147 View Post
So is there a way to save as seperate chapters?
If you mean have FFF automatically save each chapter in a story as an individual book when downloading, no.

You can use EpubSplit (see link in my sig) to very easily split individual chapters into separate books after the fact.

You can put a chapter range after the story URL when you download it to limit which chapters are downloaded, example:
https://www.fanfiction.net/s/11111/1/Title[5-8]

Search also ignore_chapter_url_list and first_chapter / last_chapter.

Quote:
Originally Posted by applegaa View Post
PS: I wish there was an [anthology] section in personal.ini we could use for things that we only want to apply to anthologies.
That might actually be possible now. There have been some changes since the last time I looked at that idea. But it would only be applicable to custom_columns_settings and generate_cover_settings. Everything else would still be controlled per-story.
JimmXinu is offline   Reply With Quote
Old 09-29-2023, 04:50 PM   #8953
zoeli
Junior Member
zoeli began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2023
Device: Kobo Libra 2
I'm new to FFF, I've been following this thread for a while but I can't find a solution to my problem. I download fanfiction from AO3 and everything works perfectly expect for the titlepage that ignores the margins and shows like in the picture below. It only happens in the titlepage, the actual chapters are fine, but it's annoying. Is there anything I can do about it?

Also, some of the fics I download come with an extra 'chapter', the Update Log. Again, it's not the end of the world, but it's annoying that some files have and others don't. Is there anything I can do about this too?
Thank you!

Click image for larger version

Name:	photo_2023-09-29_21-39-57.jpg
Views:	129
Size:	128.4 KB
ID:	204011
zoeli is offline   Reply With Quote
Old 09-29-2023, 09:10 PM   #8954
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: 11,439
Karma: 81367635
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I don't get the margin issue on titlepages on my Kobo Libra H2O.

Do you use any custom CSS?

Additionally: Does anything change if you install Kobo Utilities calibre plugin and use the 'set font' option to change the margins? Note that the book has to be imported to the Kobo database for this to do anything.

Last edited by ownedbycats; 09-29-2023 at 09:36 PM.
ownedbycats is online now   Reply With Quote
Old 09-29-2023, 09:29 PM   #8955
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,214
Karma: 5006097
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by zoeli View Post
I download fanfiction from AO3 and everything works perfectly expect for the titlepage that ignores the margins and shows like in the picture below. It only happens in the titlepage, the actual chapters are fine, but it's annoying. Is there anything I can do about it?
Without knowing what affect you intend, seeing a picture of it doesn't help--it looks perfectly fine to me.

I would speculate that ownedbycats is correct, maybe you have custom CSS that references <body class="fff_chapter"> while title page uses <body class="fff_titlepage">.

I'd have to see an epub with the issue to know for sure.
Quote:
Originally Posted by zoeli View Post
Also, some of the fics I download come with an extra 'chapter', the Update Log.
logpage defaults to off--if it's ever showing up, you must have it turned on for some stories in personal.ini. From defaults.ini:
Code:
## include a Update Log page before the story text.  If 'true', the
## log will be updated each time the epub is and all the metadata
## fields that have changed since the last update (typically
## dateUpdated,numChapters,numWords at a minimum) will be shown.
## Great for tracking when chapters came out and when the description,
## etc changed.
include_logpage: false
JimmXinu 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 527 08-15-2025 02:36 PM
[GUI Plugin] Open With kiwidude Plugins 404 02-21-2025 06:42 AM
[GUI Plugin] Marvin XD Philantrop Plugins 126 01-29-2017 01:48 PM
[GUI Plugin] KiNotes -axel- Plugins 0 07-14-2013 07:39 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 01:27 PM


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


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