Quote:
Originally Posted by JimmXinu
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:
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:
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!