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 05-17-2021, 10:35 AM   #1051
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,498
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
Version 1.52.0 - 17 May 2021

Detect Kindle Previewer versions up to 3.52.1. Version 3.52.1 removes YJImageLayoutEnhancer.

Better preserve the formatting of books from Standard Ebooks by allowing <br> elements with display:none styling. That styling was being removed by the plugin as part of the work around for a different problem.

Eliminate unnecessary Kindle Previewer conversion retries for unsupported book types such as comics.
jhowell is offline   Reply With Quote
Old 05-20-2021, 08:33 PM   #1052
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,498
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
Amazon has released Kindle Previewer version 3.53.0. It is compatible with the current version of this plugin.
jhowell is offline   Reply With Quote
Advert
Old 05-21-2021, 09:23 PM   #1053
Jaws
JCL Punch-Card Collector
Jaws began at the beginning.
 
Posts: 43
Karma: 10
Join Date: Jun 2014
Location: Antarctica
Device: Aggressively Device Independent
Quote:
Originally Posted by jhowell View Post
That doesn’t work. It has to be a visible character or it is removed.
I don't have a recent (post-2015!) Kindle so I cannot test this on a current device, but the workaround I've used before in both straight-HTML (web page) applications and epubs is to define a one-point-line-height style and set the font color equal to the background. That "fools" the parser — that is definitely a "displaying" element between the <br/>s! — and it's easy to make into a simple cut-and-paste.

Here's one way to implement it, in HTML/epub code intended as input (and it also makes epubs work, since "number of paragraphs" can create problems):
<br/><span class="fnnewpar">.</span><br/>
and, in the stylesheet:
.fnnewpar {font-size: 1pt; line-height: 1pt; color: white}

One could also code this inline if there are only a few footnotes in the book, leaving the stylesheet alone:
<br/><span style="font-size: 1pt; line-height: 1pt; color: white">.</span><br/>
but that is a little more prone to errors and typos, and harder to deal with when proofreading.

Both methods work on a variety of .epub readers. So, over to you Kindle users for field testing...
Jaws is offline   Reply With Quote
Old 05-22-2021, 07:58 AM   #1054
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,498
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
Quote:
Originally Posted by Jaws View Post
I don't have a recent (post-2015!) Kindle so I cannot test this on a current device, but the workaround I've used before in both straight-HTML (web page) applications and epubs is to define a one-point-line-height style and set the font color equal to the background. That "fools" the parser — that is definitely a "displaying" element between the <br/>s! — and it's easy to make into a simple cut-and-paste.
Doing that better hides the period, but it is not completely effective because KFX renderer is designed to try to make text more readable. For example, setting the text color to white does not hide it because the renderer adjusts colors for contrast against the current background color.

Even if the period is hidden the result will be footnote paragraphs with a full line of spacing between them, which is unlikely to match the formatting of the rest of the book. Further tweaks to the styling could improve this, but the result will probably not be consistent across the various Kindle apps, devices, and formats.

Doing this is fine for someone's own use, but if the intent is to format a book for publishing on the Kindle platform then it is best for now to avoid having multi-paragraph footnotes.
jhowell is offline   Reply With Quote
Old 05-23-2021, 07:56 AM   #1055
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,498
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
Back to the original question...

Quote:
Originally Posted by replicant View Post
recently i started reading a book that has long footnotes and somehow the popups show only one paragraph of text (some footnotes have more than one parapragh). if the footnote has more than one <p> tag (thus another paragraph) the popup won't show it.

do you happen to know a way to fix that without having to remove the additional <p> tags?
I played around with this a bit more and came up with a hack that allows pop-up footnotes with multiple paragraphs in KFX format. The trick it to put a hidden border around the paragraphs that make up the footnote. This causes the KFX converter to group them together into a single block that will display in the footnote pop-up. Here is an example:

Code:
<p>This footnote example uses the aside element with the epub:type attribute and bi-directional
hyperlinks.<sup><a id="source" href="#ft-1-1" epub:type="noteref">1</a></sup></p>

...

<aside epub:type="footnote" style="border-style: hidden">
<p id="ft-1-1"><a epub:type="noteref" href="#source">1.</a> This is the footnote text.</p>
<p>This is another paragraph in the same footnote.</p>
</aside>
I tested it using current software. There is no guarantee that it will work in books converted by older or newer versions of the Kindle Previewer or displayed on older or newer versions of the KFX renderer. This works somewhat by chance so it would not be a great idea to rely on it in a published book.
jhowell is offline   Reply With Quote
Advert
Old 05-25-2021, 08:48 PM   #1056
Jaws
JCL Punch-Card Collector
Jaws began at the beginning.
 
Posts: 43
Karma: 10
Join Date: Jun 2014
Location: Antarctica
Device: Aggressively Device Independent
Question

Quote:
Originally Posted by jhowell View Post
Doing that better hides the period, but it is not completely effective because KFX renderer is designed to try to make text more readable. For example, setting the text color to white does not hide it because the renderer adjusts colors for contrast against the current background color. {...}
I did say it was a workaround that I couldn't test on a recent Kindle...

Would using the HTML nonbreaking-space entity work better for Kindle users? Substituting & nbsp; (without the space) for the period works on the old Kindle that I have access to, including when the background is a different color. It works perfectly for .epubs and web-viewed HTML, and according to the old .mobi spec I looked at should work for .azw and .kfx (but like I said, I can't test it on anything that wouldn't qualify as a special deal from Honest Al's Used Cars).

Another alternative might be the Unicode en-space character U+2002 (& #8194; again without the space), but entering that can be tricky depending on the native keyboard setup on the machine used to edit the file so I defaulted to an entity designation. Same caveat: I can't test this on current equipment; I'm just suggesting it as a workaround that will be easy to modify later (because the code is so easy to search for and unlikely to overlap anything else).

The issue with a "full line space between" does not show up on the older Kindle that I'm using, or Kindle-for-PC. So I'm not sure about that...

Last edited by Jaws; 05-25-2021 at 08:52 PM.
Jaws is offline   Reply With Quote
Old 05-25-2021, 09:30 PM   #1057
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,498
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
Quote:
Originally Posted by Jaws View Post
Would using the HTML nonbreaking-space entity work better for Kindle users?
Not for KFX format. It seems that two line breaks separated by non-breaking spaces are turned into a new paragraph in that format.

At this point I am done trying things out. If someone else does some testing of various alternatives perhaps other workable alternatives could be found.
jhowell is offline   Reply With Quote
Old 06-04-2021, 01:52 PM   #1058
devil2trap
Member
devil2trap began at the beginning.
 
Posts: 11
Karma: 10
Join Date: May 2021
Device: kindle paperwhite
Mobi or ePub conversion to Kfx which one is better?

Hi Jhowell,

Bro, first of all, I wanna thank you a lot for the KFX plugin. It really enhances the reading experience. Jhowell, I just have one question whether it is better to convert the book from epub to kfx OR from (mobi or azw3) to Kfx for Kindle reading. Does output quality get affected in any way or it remains the same irrespective of input format?

For instance, I have the same book in two formats in good quality
1) Epub size 10MB
2) Mobi size 6 MB

And I want to convert them into KFX format (for Kindle reading). So which one should I prefer or it doesn't matter.
devil2trap is offline   Reply With Quote
Old 06-05-2021, 08:53 PM   #1059
Axymeus
Junior Member
Axymeus began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jun 2021
Device: Kindle PaperWhite
Hello. I'm encountering an error when converting one of my EPUB with KFX Plugin. I've had no issue with my previous conversions and I can't pinpoint what exactly is different with this one. This is the output I'm getting

calibre, version 5.6.0
ERROR: KFX conversion failed: <p><b>Cannot convert</b><br><br><b>Conversion error:</b> Kindle Previewer error: Error:E00150: Internal error occured. java.lang.NullPointerException Exception in thread "main" java.lang.Exception: Failing conversion as the file was gracefully handled at com.amazon.adapter.common.app.EpubAdapterApp.b(Unk nown Source) at com.amazon.adapter.common.app.EpubAdapterApp.main( Unknown Source)</p>

Any help would be much appreciated thank you.
Axymeus is offline   Reply With Quote
Old 06-06-2021, 06:57 AM   #1060
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,033
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by devil2trap View Post
Hi Jhowell,

Bro, first of all, I wanna thank you a lot for the KFX plugin. It really enhances the reading experience. Jhowell, I just have one question whether it is better to convert the book from epub to kfx OR from (mobi or azw3) to Kfx for Kindle reading. Does output quality get affected in any way or it remains the same irrespective of input format?

For instance, I have the same book in two formats in good quality
1) Epub size 10MB
2) Mobi size 6 MB

And I want to convert them into KFX format (for Kindle reading). So which one should I prefer or it doesn't matter.
Use ePub as the source format.
JSWolf is offline   Reply With Quote
Old 06-06-2021, 07:35 AM   #1061
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,033
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Axymeus View Post
Hello. I'm encountering an error when converting one of my EPUB with KFX Plugin. I've had no issue with my previous conversions and I can't pinpoint what exactly is different with this one. This is the output I'm getting

calibre, version 5.6.0
ERROR: KFX conversion failed: <p><b>Cannot convert</b><br><br><b>Conversion error:</b> Kindle Previewer error: Error:E00150: Internal error occured. java.lang.NullPointerException Exception in thread "main" java.lang.Exception: Failing conversion as the file was gracefully handled at com.amazon.adapter.common.app.EpubAdapterApp.b(Unk nown Source) at com.amazon.adapter.common.app.EpubAdapterApp.main( Unknown Source)</p>

Any help would be much appreciated thank you.
I suggest you try the latest Calibre, latest Kindle Previewer, and the latest version of the plugin. I cannot say this will work, but then it's a starting point instead of at least an older version of Calibre.
JSWolf is offline   Reply With Quote
Old 06-06-2021, 09:45 AM   #1062
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,498
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
Quote:
Originally Posted by devil2trap View Post
Jhowell, I just have one question whether it is better to convert the book from epub to kfx OR from (mobi or azw3) to Kfx for Kindle reading. Does output quality get affected in any way or it remains the same irrespective of input format?
It is usually better to convert from either EPUB or KF8 (azw3) since these support more rich formatting features, such as drop caps, that are not supported in MOBI format. MOBI is based on a very old HTML standard.

The provenance of files should also be considered. For example an EPUB that was created by conversion from MOBI format will convert no better than the original MOBI. Conversion can remove formatting in some cases, but it won't add it back in.
jhowell is offline   Reply With Quote
Old 06-06-2021, 09:50 AM   #1063
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,498
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
Quote:
Originally Posted by Axymeus View Post
Kindle Previewer error: Error:E00150: Internal error occured. java.lang.NullPointerException
That error is caused by a failure of the Kindle Previewer. As JSWolf wrote check that you have the most recent version of the Kindle Previewer (3.53.0) installed. Amazon has fixed many bugs over time.

If that does not help then see the topic "Dealing with Conversion Errors" in the first post in this thread for other suggestions.
jhowell is offline   Reply With Quote
Old 06-06-2021, 11:06 AM   #1064
devil2trap
Member
devil2trap began at the beginning.
 
Posts: 11
Karma: 10
Join Date: May 2021
Device: kindle paperwhite
Quote:
Originally Posted by jhowell View Post
It is usually better to convert from either EPUB or KF8 (azw3) since these support more rich formatting features, such as drop caps, that are not supported in MOBI format. MOBI is based on a very old HTML standard.

The provenance of files should also be considered. For example an EPUB that was created by conversion from MOBI format will convert no better than the original MOBI. Conversion can remove formatting in some cases, but it won't add it back in.
Thanks for the reply Jhowell. I need to know one more thing, you have recommended using the " Tablet" instead of "Kindle" in page setup while conversion. But if I have a kindle paperwhite 3, won't it affect the quality of the page in kindle.
devil2trap is offline   Reply With Quote
Old 06-06-2021, 12:08 PM   #1065
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,498
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
Quote:
Originally Posted by devil2trap View Post
Thanks for the reply Jhowell. I need to know one more thing, you have recommended using the " Tablet" instead of "Kindle" in page setup while conversion. But if I have a kindle paperwhite 3, won't it affect the quality of the page in kindle.
The Output Profile conversion setting is used to determine how much to downsize images so that their resolution is no higher than the screen resolution of the device. This reduces file sizes, but these days e-readers have more storage available than in the past so that is no longer a very important consideration.

There is a downside to doing this in that it will prevent the use of the pinch-to-zoom function to magnify images to show more detail on the reading device.

The Paperwhite 3 output profile downsizes images to no more than 1072x1430 pixels. If you use that profile on a book contains a detailed map you will no longer be able to expand it see the fine detail. And even if you never zoom images, if you ever by a newer Kindle with a higher resolution screen you will need to reconvert your books to take advantage of it.

The Tablet profile essentially does no downsizing, leaving images at their original resolution. I recommend that for the highest quality results.

Last edited by jhowell; 06-06-2021 at 12:13 PM.
jhowell is offline   Reply With Quote
Reply

Tags
kfx, linux, wine


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Conversion Output] KePub Output Plugin jgoguen Plugins 551 07-18-2023 06:22 AM
Conversion output plugins? jgoguen Development 14 08-10-2013 11:19 AM
Output file name after conversion dbellefuil Calibre 2 06-14-2013 04:40 PM
catalogue builder output columns are not in the same order in the output KWhytte Library Management 5 12-04-2012 02:03 AM
Conversion output folders TechieLady Conversion 6 01-19-2012 02:49 AM


All times are GMT -4. The time now is 06:13 AM.


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