|
|
#11521 | |
|
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,183
Karma: 5006097
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
Code:
## words_added is only used in logpage because it's the only
## place we know the previous version's word count.
if 'words_added' in (self.getConfigList("logpage_entries") + self.getConfigList("extra_logpage_entries")):
new_words = self.story.getMetadata('numWords')
old_words = oldvalues.get('numWords',None)
if new_words and old_words:
self.story.setMetadata('words_added',commaGroups(unicode(int(new_words.replace(',',''))-int(old_words.replace(',','')))))
|
|
|
|
|
|
|
#11522 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,204
Karma: 1000000
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
|
Quote:
Code:
logpage_entries: numChapters,numWords Code:
logpage_entries: numChapters,numWords,words_added However the only entries listed are these ones: Code:
logpage_entries: dateCreated,datePublished,dateUpdated,numChapters,numWords,status,series,title,author,description,category,genre,rating,warnings Thanks, Amalthia I was never opposed to adding words_added to the logpage entries. |
|
|
|
|
|
|
#11523 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,204
Karma: 1000000
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
|
Hi,
Just an update, after adding "words_added" to the logpage_entries, the word count is now showing up in my custom column. That was the last missing piece to making this work. Thanks again for all your help and patience in answering my questions. Amalthia |
|
|
|
|
|
#11524 |
|
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Dec 2025
Device: Kobo Aura One
|
Question...
Getting a slightly annoying issue with a story where this: "This world was merely modeled<em> </em>after the game she knew, not identical to it." ends up removing that em tag completely when downloaded through FFF, so the words don't have a space between them. Is there a way to prevent this? |
|
|
|
|
|
#11525 | |
|
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,183
Karma: 5006097
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
Code:
add_to_keep_empty_tags:,em Code:
## By default, empty tags are removed as part of cleaning up the ## source HTML. However, a few tags should be kept even if empty. ## (Whitespace only, including is considered empty.) This ## setting can adjust which tags are kept. keep_empty_tags:p,td,th |
|
|
|
|
![]() |
| Tags |
| fanfiction |
|
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 |