Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-24-2023, 05:50 PM   #9121
gthesob
Member
gthesob began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jul 2022
Device: none
Quote:
Originally Posted by JimmXinu View Post
Should be fixed in the posted test version. Link in my sig text.
Thanks
gthesob is offline   Reply With Quote
Old 11-25-2023, 11:44 PM   #9122
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: 8,188
Karma: 57393709
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I can't quite remember how to do this: How do I remove the ToC numbering only if the title starts with "Chapter"?

I have 2 dozen storyUrl sections for strip_chapter_numbers, hoping to reduce that down a bit.

Last edited by ownedbycats; 11-25-2023 at 11:47 PM.
ownedbycats is offline   Reply With Quote
Old 11-26-2023, 12:21 AM   #9123
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,223
Karma: 3388627
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
defaults.ini says:
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]+[\.:, -]*)?
So something like this maybe:
Code:
chapter_title_strip_pattern:^(Chapter *[0-9]+[\.:, -]*)?
Need to add IVX, etc if you want roman numbers, maybe replace with ^(Chapter *[^ ]+[\.:, -]*)? to get One, Two, etc.
JimmXinu is offline   Reply With Quote
Old 11-26-2023, 01:42 PM   #9124
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,223
Karma: 3388627
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
New Test Version Posted

2023-11-26
- Better handling of &<> entities with stripHTML() and chapter titles. #1019
JimmXinu is offline   Reply With Quote
Old 11-30-2023, 02:02 PM   #9125
chicleeblair
Connoisseur
chicleeblair began at the beginning.
 
Posts: 83
Karma: 10
Join Date: Sep 2018
Device: iPad mini
Is there any way to record the length of an update/chapter? Preferably through FFF so it could be in the TOC or update log for each chapter, but if that's not possible and anyone knows of another way to see it via calibre, I'd appreciate it. Could at least make it a CC.

I mostly use AO3, so even something that only works there would be okay.
chicleeblair is offline   Reply With Quote
Old 11-30-2023, 03:48 PM   #9126
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,223
Karma: 3388627
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Most sites, including AO3, do not report individual chapter length/size.

FFF does have a log page feature that can record the total word count and added word count each update.

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
## If set to 'smart', logpage will only be included if the story is
## status:In-Progress or already had a logpage.  That way you don't
## end up with Completed stories that have just one logpage entry.
#include_logpage: smart

## items to include in the log page Empty metadata entries, or those
## that haven't changed since the last update, will *not* appear, even
## if in the list.  You can include extra text or HTML that will be
## included as-is in each log entry. Eg: logpage_entries: ...,<br />,
## summary,<br />,...
logpage_entries: dateCreated,datePublished,dateUpdated,numChapters,numWords,status,series,title,author,description,category,genre,rating,warnings
By default, log page records total word count (numWords) at each update. You can also add metadata entry words_added to logpage_entries or assign it to a custom column using custom_columns_settings. words_added is calculated from the current updated numWords - numWords from last log page entry. numWords only works when log page is used.
JimmXinu is offline   Reply With Quote
Old 12-01-2023, 02:29 PM   #9127
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,223
Karma: 3388627
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
New Version Released

Version 4.30.0 - 2023-12-01
- Update translations.
- Better handling of &<> entities with stripHTML() and chapter titles. #1019
- SB(but not SV) removed RSS link from thread list title. Closes #1017
- adapter_storiesonlinenet: Allow /n/ as well as /s/ paths
- adapter_storiesonlinenet: Update for chapter URL change for paid subs. See #1014, thanks bpothier!
- adapter_storiesonlinenet: Update for chapter URL change. See #1013
- adapter_fanfictionnet: Only use data-original cover images.
- BrowserCache should ignore usecache flag, that's for BasicCache.
JimmXinu is offline   Reply With Quote
Old 12-04-2023, 10:05 PM   #9128
chicleeblair
Connoisseur
chicleeblair began at the beginning.
 
Posts: 83
Karma: 10
Join Date: Sep 2018
Device: iPad mini
thank you!
chicleeblair is offline   Reply With Quote
Old 12-05-2023, 07:18 PM   #9129
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: 8,188
Karma: 57393709
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Is it possible to preserve the hyperlinks to AO3 tags (characters, relationships, freeform tags) on the titlepage? More out of curiosity than anything, I don't really need to do this.
ownedbycats is offline   Reply With Quote
Old 12-05-2023, 08:14 PM   #9130
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,223
Karma: 3388627
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by ownedbycats View Post
Is it possible to preserve the hyperlinks to AO3 tags (characters, relationships, freeform tags) on the titlepage? More out of curiosity than anything, I don't really need to do this.
This came up just last month.

Quote:
Originally Posted by Egeria View Post
Is there any way to preserve hyperlinks when using FFF with AO3? AO3's native download option (which uses a calibre command to write the epub) results in preserved and select-able links in tags, author ships, etc. But with FFF it's only the text, no link preserved.

TIA,
Egeria
Quote:
Originally Posted by JimmXinu View Post
No. Well, story URL and author URL are, and series URL when it's there.

I'd have to do some substantial rearchitecting to put links on other metadata types.

And it would really only save you one click--story link, then click the tag.
JimmXinu is offline   Reply With Quote
Old 12-06-2023, 02:59 AM   #9131
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: 8,188
Karma: 57393709
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I figured something like that.

New question: Why does this fail to remove the 'summary for the chapter's from the fic?

Code:
[https://archiveofourown.org/works/959950]
exclude_notes:chaptersummary
ownedbycats is offline   Reply With Quote
Old 12-06-2023, 11:13 AM   #9132
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,223
Karma: 3388627
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by ownedbycats View Post
New question: Why does this fail to remove the 'summary for the chapter's from the fic?
I don't see that happening.

Unlike some settings, exclude_notes doesn't apply retroactively to existing chapters because it's implemented in the adapter(download) code instead of the HTML processing code that's also used on existing chapters.

So if you set exclude_notes:chaptersummary after downloading, you'll need to overwrite always, not update always to apply it.

(I thought I was seeing an opposite issue: chapter summary not included in chapter 1. But it turns out I was confused by the author including the same paragraph in the story summary and chapter summary for every chapter except chapter 1.)
JimmXinu is offline   Reply With Quote
Old 12-06-2023, 02:17 PM   #9133
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: 8,188
Karma: 57393709
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Yeah, the identical chapter summaries is why I wanted to remove it.

You were right about it being the wrong update mode - ran an overwrite and that fixed it.
ownedbycats is offline   Reply With Quote
Old 12-11-2023, 12:12 AM   #9134
Alphadesk10
Junior Member
Alphadesk10 began at the beginning.
 
Alphadesk10's Avatar
 
Posts: 4
Karma: 10
Join Date: Dec 2023
Device: Windows 11
Literotica multiple chapter tags update

NEW Question:

What I was looking for was to add the erotica tags on the Literotica website ePubs and JimmXinu helpped me with that on Github issues #1023.

But the issue with that is its only updating the tags of the first chapter and not the entire chapter of that story book ePub.

The entire tags are their in the title page if we look inside the ePub.

Right now I have these additoin codes in the personal.ini file

Code:
[literotica.com]
## Extract more erotica_tags from the meta tag of each chapter
use_meta_keywords: true

keep_in_order_eroticatags:true
custom_columns_settings:
 eroticatags=>#erotica

## Add the chapter description at the start of each chapter.
description_in_chapter: true
Any idea to update all the erotica tags of the book rather than the first chapter.

Please ask if you need additional data.

Thanks in advance.
Alphadesk10 is offline   Reply With Quote
Old 12-11-2023, 09:43 AM   #9135
Alphadesk10
Junior Member
Alphadesk10 began at the beginning.
 
Alphadesk10's Avatar
 
Posts: 4
Karma: 10
Join Date: Dec 2023
Device: Windows 11
Update: Got a workaround

Quote:
Originally Posted by Alphadesk10 View Post
NEW Question:

What I was looking for was to add the erotica tags on the Literotica website ePubs and JimmXinu helpped me with that on Github issues #1023.

But the issue with that is its only updating the tags of the first chapter and not the entire chapter of that story book ePub.

The entire tags are their in the title page if we look inside the ePub.

Right now I have these additoin codes in the personal.ini file

Code:
[literotica.com]
## Extract more erotica_tags from the meta tag of each chapter
use_meta_keywords: true

keep_in_order_eroticatags:true
custom_columns_settings:
 eroticatags=>#erotica

## Add the chapter description at the start of each chapter.
description_in_chapter: true
Any idea to update all the erotica tags of the book rather than the first chapter.

Please ask if you need additional data.

Thanks in advance.
I got a workaround for my issue.

I'm just going to set the update defaulted to overwrite rather than just updating the metadata form the web.

Overwrite is working splendedly.
Alphadesk10 is offline   Reply With Quote
Reply

Tags
fanfiction

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Open With kiwidude Plugins 401 01-03-2023 09:00 AM
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 492 10-25-2022 09:13 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 08:44 AM.


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