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 11-22-2019, 02:19 PM   #3841
Tanjamuse
Wizard
Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!
 
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
Thanks, I'll work with the patience

Thanks for a great plugin and quicky reply.
Tanjamuse is offline   Reply With Quote
Old 11-22-2019, 10:46 PM   #3842
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,996
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2019-11-22
- Add plugin option for toolbar button to pop menu.

New option. I'm open to suggestions for the text and tooltip for both the new option and "Default to Update when books selected?"

Click image for larger version

Name:	newoption.png
Views:	397
Size:	205.2 KB
ID:	175076
JimmXinu is offline   Reply With Quote
Advert
Old 11-23-2019, 08:44 AM   #3843
Anyssia
Enthusiast
Anyssia has met Morla.Anyssia has met Morla.Anyssia has met Morla.Anyssia has met Morla.Anyssia has met Morla.Anyssia has met Morla.Anyssia has met Morla.Anyssia has met Morla.Anyssia has met Morla.Anyssia has met Morla.Anyssia has met Morla.
 
Anyssia's Avatar
 
Posts: 25
Karma: 19112
Join Date: Aug 2012
Device: Kobo Libra2
the cover font sizing issue, post solution, how to add it

Quote:
Originally Posted by JimmXinu View Post
Okay, Kovid didn't like my tweak settings idea for addressing the cover font sizing issue. Instead, he added code to Calibre for a different solution while also suggesting another different approach based on viewport relative size units.

Spoiler:
So, here are the suggested options for dealing with the issue raised by Anyssia.

Cover Image

Perhaps the most logical solution is to create an actual cover image. Calibre has a graphical cover generating feature as well as the Generate Cover plugin, both of which can be extensively configured and automatically called from FanFicFare.

Render Page Size

Kovid has added a feature to appear in the next version of Calibre that allows you to put a render size and margins as metadata in the html of the title page using a <meta> tag such as <meta name="calibre-html-render-data" content='{"size": "A6", "margins": [5, 0, 5, 0]}'/>

It could be included after next Calibre update in all your future downloaded title pages in FFF like so:
Spoiler:
Code:
[epub]
titlepage_start:<?xml version="1.0" encoding="UTF-8"?>
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 <title>${title} by ${author}</title>
 <link href="stylesheet.css" type="text/css" charset="UTF-8" rel="stylesheet"/>
 <meta name="calibre-html-render-data" content='{"size": "A6", "margins": [5, 0, 5, 0]}'/>
 </head>
 <body>
 <h3><a href="${storyUrl}">${title}</a> by ${authorHTML}</h3>
 <div>

But this doesn't work until the next Calibre version is out.

Viewport Relative Font Size

Kovid also pointed out that there are now CSS units that scale relative to viewport size(search for vw, vh, etc) that can be used for font size.

This has the advantage of not needing to wait for the next Calibre version to use and possibly also affecting your book reader.

It also has the disadvantage of possibly affecting your book reader. vw/vh/vmin/vmax are CSS3 and may cause problems to the point that: "Some reader programs are very finicky about CSS stylesheets and will ignore the whole sheet if there is an error. ..."

Right now, it looks like the Calibre convert to AZW3 (for Kindle readers) discards the vw/vh/vmin/vmax sizes for that reason.

It could be included right now in all your future downloaded title pages in FFF like so:
Spoiler:
Code:
titlepage_start:<?xml version="1.0" encoding="UTF-8"?>
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 <title>${title} by ${author}</title>
 <link href="stylesheet.css" type="text/css" charset="UTF-8" rel="stylesheet"/>
 <!-- meta name="calibre-html-render-data" content='{"size": "A6", "margins": [5, 0, 5, 0]}'/ -->
 </head>
 <body style="font-size: 3.3vmax;">
 <h3><a href="${storyUrl}">${title}</a> by ${authorHTML}</h3>
 <div>


Conclusion?

Right now, my favorite is the viewport relative font size.

But it does highlight that I haven't done anything in past to make it easier to selectively apply CSS to FFF's generated output. I'll probably be adding HTML class attrs to various tags in a test version shortly. Then a much shorter add_to_output_css setting could be used instead of titlepage_start.

Opinions?
Hi!

Sorry, the last few weeks have been hell on earth and I've only managed to visit the forum again. (I tried answering once but my message seems to have been eaten, apologies if both eventually show up)

Anyway, thank you for looking for a solution!!

I'm not particularly great with this stuff and my google-fu failed me, so:
- I updated to version 4.4 which came out on the 21st. The first solution should be available, right? Where should I add that meta tag, please? I'll after all new FanficFare downloaded stories and updated, right?

- If no, the Viewport thing, where should I add this code, please? And same question, I don't have to edit all books one by one, I hope.

Thank you for your help!
Anyssia is offline   Reply With Quote
Old 11-23-2019, 11:40 AM   #3844
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,996
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2019-11-23
- Failsafe for max_zalgo setting. Closes #449.
JimmXinu is offline   Reply With Quote
Old 11-23-2019, 03:42 PM   #3845
AndersW
Connoisseur
AndersW began at the beginning.
 
Posts: 51
Karma: 10
Join Date: Jun 2014
Device: none
https://www.tgstorytime.com/ isn't picking up the age rating of a story, because the age rating isn't listed unless you go to the table of contents for the story.

Sample: https://www.tgstorytime.com/viewstory.php?sid=5381
AndersW is offline   Reply With Quote
Advert
Old 11-23-2019, 05:39 PM   #3846
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,996
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2019-11-23
- Base_eFiction - Get Rating/Rated from TOC page if not found on print page. Remove from 2 individual adapters.
- Failsafe for max_zalgo setting. Closes #449.

Quote:
Originally Posted by AndersW View Post
https://www.tgstorytime.com/ isn't picking up the age rating of a story, because the age rating isn't listed unless you go to the table of contents for the story.

Sample: https://www.tgstorytime.com/viewstory.php?sid=5381
I assume you are referring to either field titled 'Rated' or 'Type of Change'. The latter is in the site-specific metadata 'typeofchange'.

'Rated' is not captured on that site for exactly the reason you give--it appears only on the TOC page. Turns out this is a common issue with Base_eFiction sites and two of the base_efiction adapters already had code to get it from TOC. I pulled that code up into base_efiction. 16 more efiction sites collect rating now.
JimmXinu is offline   Reply With Quote
Old 11-23-2019, 06:14 PM   #3847
AndersW
Connoisseur
AndersW began at the beginning.
 
Posts: 51
Karma: 10
Join Date: Jun 2014
Device: none
Thank you.
AndersW is offline   Reply With Quote
Old 11-23-2019, 07:44 PM   #3848
Ryune
Enthusiast
Ryune began at the beginning.
 
Posts: 36
Karma: 10
Join Date: Nov 2017
Device: PRS-950, IPhone, Oasis 2
Quote:
Originally Posted by JimmXinu View Post
New Test Version Posted

2019-11-22
- Add plugin option for toolbar button to pop menu.

New option. I'm open to suggestions for the text and tooltip for both the new option and "Default to Update when books selected?"

Attachment 175076
Awesome, thanks.
Ryune is offline   Reply With Quote
Old 11-23-2019, 08:19 PM   #3849
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,996
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2019-11-23
- (Fix incorrect version number.)
- Base_eFiction - Get Rating/Rated from TOC page if not found on print page. Remove from 2 individual adapters.
- Failsafe for max_zalgo setting. Closes #449.
JimmXinu is offline   Reply With Quote
Old 11-23-2019, 08:22 PM   #3850
croonable
Enthusiast
croonable walks where angels fear to fly.croonable walks where angels fear to fly.croonable walks where angels fear to fly.croonable walks where angels fear to fly.croonable walks where angels fear to fly.croonable walks where angels fear to fly.croonable walks where angels fear to fly.croonable walks where angels fear to fly.croonable walks where angels fear to fly.croonable walks where angels fear to fly.croonable walks where angels fear to fly.
 
croonable's Avatar
 
Posts: 46
Karma: 152142
Join Date: Jul 2014
Location: Canada
Device: none
I just going to ask about the incorrect version number.
croonable is offline   Reply With Quote
Old 11-25-2019, 06:02 AM   #3851
MrGarrison
Member
MrGarrison began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Sep 2017
Device: Tablet
I'm having problems downloading specific stories from Stories Online.

<urlopen error [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond>

Anyone else getting this?
MrGarrison is offline   Reply With Quote
Old 11-25-2019, 07:53 AM   #3852
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
Quote:
Originally Posted by MrGarrison View Post
I'm having problems downloading specific stories from Stories Online.

<urlopen error [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond>

Anyone else getting this?
Just tested with no problems.
davidfor is offline   Reply With Quote
Old 11-25-2019, 11:29 AM   #3853
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,996
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by MrGarrison View Post
I'm having problems downloading specific stories from Stories Online.

<urlopen error [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond>
Without knowing the "specific stories" mentioned, I can't test them. You can PM me some URLs if they are NSFW.

I don't see any errors with a few random stories.

If you have been downloading a lot of stories from that site in a short period of time, the site might be blocking you. This FAQ mentions ffnet, but an apply to other sites.

Otherwise, the error most likely indicates a server or network issue. There's seldom anything FFF can do about that.
JimmXinu is offline   Reply With Quote
Old 11-26-2019, 01:50 PM   #3854
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,996
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2019-11-26
- New Site fanfics.me (Russian language site).
JimmXinu is offline   Reply With Quote
Old 11-27-2019, 10:58 AM   #3855
Tanjamuse
Wizard
Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!
 
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
I have the following setting in my PI:

Code:
include_images: true
keep_summary_HTML: true
make_firstimage_cover:false
skip_author_cover:true
Yet it has picked up author cover in this story:

https://www.fanfiction.net/s/13439127/1/

But not in this one:

https://www.fanfiction.net/s/13430586/1/

I've downloaded both today and in the same job.
Tanjamuse 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 12:59 AM.


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