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 01-26-2016, 03:15 PM   #961
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,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by MerlinMama View Post
...
I've been able to replace the current 'dateCreated' field with the date in my custom '#packaged' column, but the formatting for the date shows up wrong, no matter what changes I try in the personal.ini file. I would prefer it to be formatted in the same manner as the other entries (datePublished and dateUpdated), which I have as %%B %%d, %%Y.
Date objects passed in from Calibre columns were being converted to strings using the default format. I've added code so you can to *_format settings for those, too. For example with custom date column #custdate:

Code:
extra_titlepage_entries:calibre_cust_custdate
calibre_cust_custdate_format:%%Y-%%m-%%d
New test version posted (direct link)

Apply *_format ini option to date/time types. For calibre_* columns passed in.
Change deprecated has_key() to has_attr() on BS objects.
JimmXinu is offline   Reply With Quote
Old 01-26-2016, 03:23 PM   #962
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,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by readerboy7 View Post
I'm not sure whether to put this question in here or general calibre.
Some old fics (e.g. this) are formatted in such a way that there's a linebreak after every 60ish characters. This is annoying to read when on an e-reader, after downloading it through FFF. Is there a way, using either Calibre or FFF, to remove the linebreaks automatically when downloading/converting?
You can use the FFF personal.ini replace_br_with_p feature while downloading:

Code:
## Some sites/authors/stories use br tags instead of p tags for
## paragraphs.  This feature uses some heuristics to find and replace
## br paragraphs with p tags while preserving scene breaks.
replace_br_with_p: true
For stories you've already downloaded, you can use the Heuristic Processing feature of Calibre's Convert. One of the options is 'Unwrap lines'.

I'm sure there are other methods as well.
JimmXinu is offline   Reply With Quote
Old 01-26-2016, 03:31 PM   #963
readerboy7
Enthusiast
readerboy7 began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Dec 2014
Device: Kindle Paperwhite
When I went to save the file, I got the following error:
Code:
84: Bad Section Name:
[www.twiwrite.net]

95: Bad Section Name:
[www.thewriterscoffeeshop.com]
and it asked me to fix the errors or save anyway. My workaround was to comment out the offending lines. I don't know what the problem with those sites would be since I don't use them, but I thought you might want to know.
readerboy7 is offline   Reply With Quote
Old 01-26-2016, 03:36 PM   #964
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,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by readerboy7 View Post
When I went to save the file, I got the following error:
Code:
84: Bad Section Name:
[www.twiwrite.net]

95: Bad Section Name:
[www.thewriterscoffeeshop.com]
and it asked me to fix the errors or save anyway. My workaround was to comment out the offending lines. I don't know what the problem with those sites would be since I don't use them, but I thought you might want to know.
Those two sites are no longer supported: twiwrite.net went away and thewriterscoffeeshop.com became twcslibrary.net.

If you comment out only the section heading, the lines following it will be included in the previous section, which may cause you problems.
JimmXinu is offline   Reply With Quote
Old 01-26-2016, 04:15 PM   #965
MerlinMama
Evangelist
MerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beauty
 
MerlinMama's Avatar
 
Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
Quote:
Originally Posted by JimmXinu View Post
New test version posted (direct link)

Apply *_format ini option to date/time types. For calibre_* columns passed in.
Change deprecated has_key() to has_attr() on BS objects.
Thanks! Works perfectly!
MerlinMama is offline   Reply With Quote
Old 01-28-2016, 08:24 PM   #966
bornagainpenguin
Junior Member
bornagainpenguin began at the beginning.
 
bornagainpenguin's Avatar
 
Posts: 5
Karma: 10
Join Date: Jan 2010
Device: Nook HD+
Still having issues with Sufficient Velocity, see:

Code:
Status
Title
Author
Comment
URL
Bad
Unknown
Unknown
<urlopen error [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:581)>
https://forums.sufficientvelocity.com/threads/19847/
Have at times in past tried the bleeding edge versions of the plugin and have never successfully downloaded a story from this forum which sucks because some of the Worm fics are exclusive to there. Other forums work great, so thanks for that.

Was trying to get this story:

https://forums.sufficientvelocity.co...m-wh40k.19847/

Last edited by bornagainpenguin; 01-28-2016 at 08:24 PM. Reason: added link from browser
bornagainpenguin is offline   Reply With Quote
Old 01-28-2016, 09:01 PM   #967
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,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by bornagainpenguin View Post
Still having issues with Sufficient Velocity, see:

Code:
<urlopen error [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:581)>
https://forums.sufficientvelocity.com/threads/19847/
Have at times in past tried the bleeding edge versions of the plugin and have never successfully downloaded a story from this forum which sucks because some of the Worm fics are exclusive to there. Other forums work great, so thanks for that.[/url]
Are you the same person who reported the issue on the mail list? And/or a Mac user?
JimmXinu is offline   Reply With Quote
Old 01-28-2016, 10:04 PM   #968
bornagainpenguin
Junior Member
bornagainpenguin began at the beginning.
 
bornagainpenguin's Avatar
 
Posts: 5
Karma: 10
Join Date: Jan 2010
Device: Nook HD+
Quote:
Originally Posted by JimmXinu View Post
Are you the same person who reported the issue on the mail list? And/or a Mac user?
I am not the same person who has complained about this before, but I am a Macbook user.
bornagainpenguin is offline   Reply With Quote
Old 01-29-2016, 10:54 AM   #969
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,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by bornagainpenguin View Post
I am not the same person who has complained about this before, but I am a Macbook user.
Okay, thanks. That makes two people reporting it which changes some of my assumptions.

I've started a new thread asking the general Calibre community and devs to help figure this out.
JimmXinu is offline   Reply With Quote
Old 01-30-2016, 09:58 AM   #970
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,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
SSLV3_ALERT_HANDSHAKE_FAILURE on Mac OS X

The bad news is this is a caused by the OpenSSL library in OS X being out of date. And Apple apparently has no plans to update OpenSSL anymore in their install. Details here.

The good news is Kovid is going to include a copy of OpenSSL in future versions of Calibre on OS X. He's committed the code for it already, so I expect it will be in next Friday's release.

In the meantime, you can still use the FanFicFare web service for SV fics: http://fanficfare.appspot.com/
JimmXinu is offline   Reply With Quote
Old 01-30-2016, 01:51 PM   #971
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,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New test version posted (direct link).

2016-01-30
Adding Word Count post-processing option, like Smarten Punct.
Fix for html5lib handling noscript oddly, noticed with fictionalley.org.
Fix fictionally.ord description so calibre doesn't <code> it.

I found out recently that the Count Pages plugin doesn't include its own word counting code--it calls existing code inside Calibre.

Since that's what I (personally) use Count Pages for, I decided to go ahead and add it directly into FanFicFare, similar to how it can Smarten Punctuation for you by calling the Calibre routines. This Word Count feature does not require the Count Pages plugin.

You can choose to have FFF count words for you 'Yes, always', 'No', or 'Yes, unless found on site' (the default). This happens during background processing and is only done when downloading/updating the ebook. It isn't done during 'Update Calibre Metadata'.

Also, the word count is included in the metadata as if it came from the site at that point. So the 'Only if Word count is missing' option on the Count Pages config tab will never be used if words are counted during processing.

The word count code called by FFF is, in fact, a bit newer than the released version of Count Pages, lifted from a beta version of Count Pages by davidfor. So word counts may not be exactly the same.

To anticipate those who will ask: No, running page counts will not be added the same way--those routines are inside the Count Pages plugin, not Calibre itself.

I also reorganized the 'Basic' settings tab a bit. See attached.
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	322
Size:	63.1 KB
ID:	145947  
JimmXinu is offline   Reply With Quote
Old 01-31-2016, 10:07 AM   #972
firefoxxy
Zealot
firefoxxy began at the beginning.
 
Posts: 105
Karma: 10
Join Date: Nov 2012
Location: Germany
Device: Kobo Libra 2
Hi Jim!

I have two somehow related questions (I think? both have to do with the word count):

I'm not sure I understand this new feature for Count Pages. Do you mean that FFF will count the words and put them on the title page? And if the standard setting (only count if not found on site) is set, this will only be done if there is no wordcount given by the website - I don't understand the 'count during processing' part, sorry...

The second thing is that I would like to have a feature that automatically counts and shows the length of a story with a tag. What I mean is something like this: If a story has up to 1,000 words, I would like to have a tag that says 'drabble', for fics with up to 5,000 words 'short fic' and so on. Is it possible to do something like that with FFF?

Thank you!
firefoxxy is offline   Reply With Quote
Old 01-31-2016, 11:05 AM   #973
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,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by firefoxxy View Post
I'm not sure I understand this new feature for Count Pages. Do you mean that FFF will count the words and put them on the title page? And if the standard setting (only count if not found on site) is set, this will only be done if there is no wordcount given by the website - I don't understand the 'count during processing' part, sorry...
"only count if not found on site" == "will only be done if there is no wordcount given by the website"

I don't know how to make that any clearer.

Quote:
Originally Posted by firefoxxy View Post
The second thing is that I would like to have a feature that automatically counts and shows the length of a story with a tag. What I mean is something like this: If a story has up to 1,000 words, I would like to have a tag that says 'drabble', for fics with up to 5,000 words 'short fic' and so on. Is it possible to do something like that with FFF?
FFF can't really do that as is. (A regexp replace_metadata solution may be possible, but it would be kinda ugly.)

I could add a new feature for it, but how many people would use it? And I'd have to make it all configurable: number of size categories, numbers, names.

Calibre can do some things that are close.

If you have/make a numeric word count column, you could then create a custom column 'built from other columns', I believe, that displays different words depending on the number in the first column.

Personally, I use a Saved Search such as:
tags:completed and #wordcount:>30000 and #wordcount:<60000
JimmXinu is offline   Reply With Quote
Old 01-31-2016, 03:55 PM   #974
firefoxxy
Zealot
firefoxxy began at the beginning.
 
Posts: 105
Karma: 10
Join Date: Nov 2012
Location: Germany
Device: Kobo Libra 2
Ah, thans for explaining the new feature (I think that he 'while processing' part confused me - it just seemed to me that count pages works whether the website gives a word count or not, and I did not look too closely at the title page to see if there was an exact word count or not. Sorry.)

Yes, I can see that using FFF with replace_metadata would be quite messy and not something I could easily work with. There is no need to implement something new for only one person. I'll follow your suggestion and try my hand at a new custom column. Thank you!
firefoxxy is offline   Reply With Quote
Old 01-31-2016, 05:26 PM   #975
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
For the word count and description, have a look at https://www.mobileread.com/forums/sho...67#post2769267. That describes a custom column that is set based on the word count. It uses the standard counts and names story lengths, but that can easily be modified. That will work in the library, but I don't know about getting it on the info page of the story.
davidfor 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 09:42 AM.


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