![]() |
#9121 |
Member
![]() Posts: 13
Karma: 10
Join Date: Jul 2022
Device: none
|
|
![]() |
![]() |
![]() |
#9122 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,937
Karma: 55949477
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. |
![]() |
![]() |
![]() |
#9123 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,127
Karma: 3386177
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]+[\.:, -]*)? Code:
chapter_title_strip_pattern:^(Chapter *[0-9]+[\.:, -]*)? |
![]() |
![]() |
![]() |
#9124 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,127
Karma: 3386177
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 |
![]() |
![]() |
![]() |
#9125 |
Connoisseur
![]() Posts: 81
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. |
![]() |
![]() |
![]() |
#9126 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,127
Karma: 3386177
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 |
![]() |
![]() |
![]() |
#9127 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,127
Karma: 3386177
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. |
![]() |
![]() |
![]() |
#9128 |
Connoisseur
![]() Posts: 81
Karma: 10
Join Date: Sep 2018
Device: iPad mini
|
thank you!
|
![]() |
![]() |
![]() |
Tags |
fanfiction |
Thread Tools | Search this Thread |
|
![]() |
||||
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 |