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 04-05-2022, 05:47 PM   #6991
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,980
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by HowWouldIKnow View Post
Scribblehub:
It adds fandom, Words and Views to the end of the Titlepage. How do I add it above Publisher?
The dev who added scribblehub.com put add_to_titlepage_entries:,views, averageWords, fandoms in defaults.ini. It's a little bit hit or miss whether that happened for different sites, or if it was left for the user to add if they want it.

Usually, FFF's category contains the source work for fanfiction, but scribble has both Category and Fandom.

For this case, you need to clear the add_to_ line and set titlepage_entries.

Code:
[www.scribblehub.com]
# clear value from defaults.ini
add_to_titlepage_entries:
# Set specific order for scribblehub.com
titlepage_entries: seriesHTML,category,genre,language,characters,ships,status,datePublished,dateUpdated,dateCreated,rating,warnings,numChapters,numWords,views,averageWords,fandoms,publisher,description
Quote:
Originally Posted by HowWouldIKnow View Post
ao3: Freeform tags shows the same values as the Tags Point.
And in Calibre it adds all the Characters and Fandom tags into the Tags Column, additionally.
What's the difference between "Tags Point" and "Tags Column"? I don't understand what it is you want different, but I will try to explain how it works.

There was a bit of a mismatch between AO3's labeling and what FFF already used, so there can be some confusion.

By default for AO3, FFF's genre contains everything from AO3's "Additional Tags"(FFF's freeformtags) and "Category"(FFF's ao3categories). And FFF's category contains AO3's "Fandom"(fandoms).

Calibre's Tags column is populated using FFF's include_subject_tags setting. By default:
Code:
include_subject_tags: extratags, genre, category, characters, ships, status
To reduce what appears in Tags, set include_subject_tags to something else. Personally, I don't want characters & ships in Tags, so I use:
Code:
[defaults]
include_subject_tags: extratags, genre, category, status
You can set different values for include_subject_tags for different sites or even stories.
JimmXinu is offline   Reply With Quote
Old 04-05-2022, 08:53 PM   #6992
Redshifter
Member
Redshifter began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Feb 2022
Device: iPhone X
GIF Image Size

By messing with my personal.ini file I was able to get it to include GIF instead of JPEG files during conversion. I've come up against two walls.

Is there a way to make the epub resize the gifs to 'fit to screen' whatever device its on? (Obviously without changing the aspect ratio)

During conversion it doesn't include all the gifs. I've decided to save local copies of them to reference, so we'll see how that goes. lol
Redshifter is offline   Reply With Quote
Old 04-05-2022, 09:07 PM   #6993
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,980
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Not sure how you did that--FFF doesn't do conversion to gif. Must be something in convert.

There is, however, a setting in FFF for resizing larger images:
Code:
## Resize images down to width, height, preserving aspect ratio.
## Nook size, with margin.
image_max_size: 580, 725
FYI, Calibre's convert can also resize images depending on Page Setup -> Output Profile. I don't the details except that 'Tablet' doesn't resize.
JimmXinu is offline   Reply With Quote
Old 04-05-2022, 09:29 PM   #6994
jcotton42
Member
jcotton42 began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Mar 2022
Device: Kobo Clara HD
Question Splitting an ongoing story

I'm currently following a 239-chatper fic that is actually 10 "books" in one story on FF.net https://www.fanfiction.net/s/1046513...h-of-Delusions

Is there a good way to split this up into 10 different entries in my Calibre library? If this were a finished story I would just use EpubSplit, but it's not. Chapters are still being posted.
jcotton42 is offline   Reply With Quote
Old 04-05-2022, 10:14 PM   #6995
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,980
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
The easiest way is just live with it: Split off the first 9 while keeping the full story as posted until book 10 is done, then split it off as it's own book. There's duplication, but you mostly get what you want. But I acknowledge that 1M+ word stories can be hard on ereaders.

Alternatively, there is a somewhat undocumented feature you could use: first_chapter (and last_chapter), when set in personal.ini, have the same affect as a chapter range after the URL during download.

Download as is, use EpubSplit to extract the first 9 books to new books, then set in personal.ini:
Code:
[https://www.fanfiction.net/s/10465135/1/Legend-of-Spyro-Path-of-Delusions]
first_chapter:205
You'd probably need to "Update Always" on it the first time to discard chapters 1-204.

I've used first_chapter before for doing exactly this; splitting lengthy stories into parts.

You also need to clear the Identifier:url settings in Calibre--I assume you will already be changing the titles--to avoid updates finding the split off stories.
JimmXinu is offline   Reply With Quote
Old 04-05-2022, 10:59 PM   #6996
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,000
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Code:
## category=>(^Elder Scroll series$|^Elder Scrolls$|Elder Scrolls Online|An Elder Scrolls Legend: Battlespire|Elder Scrolls III: Morrowind|Elder Scrolls IV: Oblivion|Elder Scrolls V: Skyrim)=>The Elder Scrolls
 category=>(.*Elder Scroll.*)=>The Elder Scrolls
While it worked when I tested it on a few random stories, is there any reason I shouldn't use the second line?
ownedbycats is offline   Reply With Quote
Old 04-05-2022, 11:33 PM   #6997
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,980
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ownedbycats View Post
While it worked when I tested it on a few random stories, is there any reason I shouldn't use the second line?
Doesn't seem like it's going to be problem to me. If it were shorter I'd worry about catching something unintended.

Sometimes I see .* be less 'hungry' than I expect it to be. I'd use:
Code:
 category=>^.*Elder Scroll.*$=>The Elder Scrolls
JimmXinu is offline   Reply With Quote
Old 04-06-2022, 12:36 AM   #6998
Redshifter
Member
Redshifter began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Feb 2022
Device: iPhone X
Quote:
Originally Posted by JimmXinu View Post
Not sure how you did that--FFF doesn't do conversion to gif. Must be something in convert.

There is, however, a setting in FFF for resizing larger images:
Code:
## Resize images down to width, height, preserving aspect ratio.
## Nook size, with margin.
image_max_size: 580, 725
FYI, Calibre's convert can also resize images depending on Page Setup -> Output Profile. I don't the details except that 'Tablet' doesn't resize.
When I go to the FFF configuration page it allows me to change my personal.ini. Under the EPUB section I added [convert_images_to:gif] instead of jpeg
Redshifter is offline   Reply With Quote
Old 04-06-2022, 01:08 AM   #6999
jcotton42
Member
jcotton42 began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Mar 2022
Device: Kobo Clara HD
Quote:
Originally Posted by JimmXinu View Post
The easiest way is just live with it: Split off the first 9 while keeping the full story as posted until book 10 is done, then split it off as it's own book. There's duplication, but you mostly get what you want. But I acknowledge that 1M+ word stories can be hard on ereaders.

Alternatively, there is a somewhat undocumented feature you could use: first_chapter (and last_chapter), when set in personal.ini, have the same affect as a chapter range after the URL during download.

Download as is, use EpubSplit to extract the first 9 books to new books, then set in personal.ini:
Code:
[https://www.fanfiction.net/s/10465135/1/Legend-of-Spyro-Path-of-Delusions]
first_chapter:205
You'd probably need to "Update Always" on it the first time to discard chapters 1-204.

I've used first_chapter before for doing exactly this; splitting lengthy stories into parts.

You also need to clear the Identifier:url settings in Calibre--I assume you will already be changing the titles--to avoid updates finding the split off stories.
That worked brilliantly, thanks!

One thing though, when I did an overwrite update on the latest book to trim it down to just the book 10 chapters it overwrote the title. Is there a way to stop that, or will regular updates (i.e. not "overwrite always") not do that in the first place?
jcotton42 is offline   Reply With Quote
Old 04-06-2022, 09:31 AM   #7000
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,980
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Redshifter View Post
When I go to the FFF configuration page it allows me to change my personal.ini. Under the EPUB section I added [convert_images_to:gif] instead of jpeg
I did not remember that was even a thing.

Quote:
Originally Posted by jcotton42 View Post
One thing though, when I did an overwrite update on the latest book to trim it down to just the book 10 chapters it overwrote the title. Is there a way to stop that, or will regular updates (i.e. not "overwrite always") not do that in the first place?
I assume you mean the chapter range in the title. Use this setting to disable it:
Code:
## If a chapter range was given, use this pattern for the book title.
## replace_metadata and include/exclude will be applied *after* this.
## Set to empty value to disable.
title_chapter_range_pattern:${title} (Ch ${first}-${last})
JimmXinu is offline   Reply With Quote
Old 04-06-2022, 10:52 PM   #7001
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,980
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by JimmXinu View Post
Calibre's convert settings for 'Structure detection' is looking for tags with class="chapter". Which starslibrary.net (and all Base eFiction sites ) have marking the <div> tag containing the chapter text. By default (I assume--I don't remember changing that), Calibre is adding a 'pagebreak' there, apparently implemented as a break between files. Which it puts between the chapter title and the chapter text.

Trying to update such an epub gives me "FanFicFare doesn't recognize chapters in existing epub...". Which makes sense--it doesn't match FFF's file structure anymore.
FYI, I've just bumped into a different, but related issue to the one above from late 2021.

Calibre's Convert 'Structure detection' also has a "Insert page breaks before (XPath expression)" which defaults to an XPath of 'any h1 or h2 tag'.

I've just found a story where the author elected to put their own h1 tag titles in each chapter's text--in addition to the site provide chapter titles. Which Convert inserted page breaks before.

For me, it was a minor irritation when my book was converted to AZW3. Someone doing epub->epub like the original problem above would end up with broken epubs as far as FFF update is concerned.

Put / by itself in the "Insert page breaks before (XPath expression)" setting to disable it (from the setting tooltip).
JimmXinu is offline   Reply With Quote
Old 04-08-2022, 10:49 AM   #7002
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,980
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2022-04-08
- Add --mozilla-cookies CLI option.
- use large cover images on royalroad (#823) Thanks sidney!
JimmXinu is offline   Reply With Quote
Old 04-08-2022, 08:38 PM   #7003
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,980
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2022-04-08
- adapter_webnovelcom: Read chapter text from json in <script> tag.
- Update translations.
- Add --mozilla-cookies CLI option.
- use large cover images on royalroad (#823) Thanks sidney!

In response to issue #825 Webnovel - Chapter contents are not being downloaded

I've only tested with a few chapters of a few stories. I won't be surprised if there are further issues.
JimmXinu is offline   Reply With Quote
Old 04-11-2022, 03:42 AM   #7004
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,000
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
mostly out of curiosity: are there any other known sites running on otwarchive that FFF supports?
ownedbycats is offline   Reply With Quote
Old 04-11-2022, 12:08 PM   #7005
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,980
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
squidgeworld.org is the only one we currently support. I don't know of any others off hand.

I'm kinda surprised there hasn't been a bunch of them. I wonder if it's hard to set up.
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 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 11:14 AM.


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