11-18-2019, 07:57 AM | #706 | |
Grand Sorcerer
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Quote:
I expect that the widows and orphans properties in CSS will be obeyed properly in the next Kindle firmware release. The Kindle for iOS, Android, and Fire apps all handle them as expected in their latest releases. Also, as theducks wrote, the correct value should be "1" to allow widows/orphans. In my testing using "0" also works the same for Amazon/KFX creation, but I would not rely on that. |
|
11-21-2019, 07:31 PM | #707 |
Junior Member
Posts: 6
Karma: 10
Join Date: Jan 2012
Device: Oasis 2, pw2, sony prs 505
|
I'm getting epub to kfx:
calibre, version 4.3.0 ERROR: KFX conversion failed: <p><b>Cannot convert Das dunkle Herz des Waldes</b><br><br><b>Conversion error:</b> Kindle Previewer error: Error:E00813: Unknown failure occurred during processing</p> epub to mobi to kfx works any tipps? Last edited by user105; 11-21-2019 at 07:33 PM. |
Advert | |
|
11-21-2019, 08:36 PM | #708 | |
Grand Sorcerer
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Quote:
Since the error message is so unhelpful I suggest either skipping KFX for that book or using the version that works via MOBI. You might be able to track down the cause of the problem by trial and error. Selectively deleting parts of the book using the Calibre editor to try to narrow down the source of the error. It may not be worth the effort involved. |
|
11-22-2019, 07:14 AM | #709 | |
Junior Member
Posts: 6
Karma: 10
Join Date: Jan 2012
Device: Oasis 2, pw2, sony prs 505
|
Quote:
thank you for the effort! |
|
11-22-2019, 08:59 AM | #710 |
Grand Sorcerer
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
The error is produced by the Kindle Previewer. Knowing what triggers it might be useful to someone else who encounters the same problem, but it is unlikely to lead to any changes in this plugin.
|
Advert | |
|
12-03-2019, 03:40 PM | #711 |
Junior Member
Posts: 9
Karma: 10
Join Date: Aug 2015
Location: Espirito Santo, Brasil
Device: Moon Reader (Moto G)
|
I couldn't convert to KFX because it was missing a file - a gif, which doesn't make any sense for a book - but I could convert to azw3. Do you know why?
calibre, version 4.5.0 ERRO: KFX conversion failed: <p><b>Cannot convert How to Fail at Almost Everything and Still Win Big</b><br><br><b>Conversion error:</b> Kindle Previewer error: Error:E00001: Cannot find the file name C:\Users\adria\AppData\Local\Temp\calibre_nw0p2q\k c_hqh\eqlf2lcxklyjin3uni4w\0000\conv_resources\con v_tmp\temp\extractedEpub\OEBPS\styles\images\00004 .gif</p> |
12-03-2019, 05:00 PM | #712 |
Grand Sorcerer
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Conversion to KFX is designed by Amazon to fail if the source file contains incorrect or missing content. Conversion to KF8 (azw3) will succeed for just about any book regardless of errors. That's just the way it is.
|
12-07-2019, 10:19 AM | #713 |
Grand Sorcerer
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Version 1.35.0 - 07 Dec 2019
Support additional KFX features. (Fixes "Unexpected Ion symbols used: $46, $784") Prevent incorrect date from being used if the publication date of a book to be converted is undefined. |
12-08-2019, 11:55 AM | #714 |
Wizard
Posts: 1,071
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
CalibreDB and KFX output PI seems to take a long time
I'm using calibredb to extract (copy?) the KFX books to a new single folder:
export --progress --all --dont-save-cover --dont-write-opf --format kfx --single-dir --template "{authors}-{series}{series_index:0>2s|[|]-}{title}" --to-dir "D:\eBooks\KFX" It seems like there's a lot more happening than just the copy and it seems like that if it's embedding the metadata, it takes a lot longer than for the same for an ePub. Is that just a 'side effect' of the plugin or something else? |
12-08-2019, 01:42 PM | #715 | ||
Grand Sorcerer
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Quote:
Quote:
|
||
12-08-2019, 07:31 PM | #716 |
Wizard
Posts: 1,071
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Thanks, but unfortunately I think I do need the metadata updated
I was just wondering since it seems that the KFX part of the calibredb job takes longer than the epub part |
12-13-2019, 05:09 AM | #717 |
Junior Member
Posts: 5
Karma: 10
Join Date: Dec 2019
Device: Kindle Fire HD 10
|
I can't find a repo or any way to make a pull request, so I'll just post here. This is a small fix for when Kindle Previewer is installed in a different folder.
Code:
--- calibre\plugins\KFX Output_old\kfxlib\generate_kpf.py +++ calibre\plugins\KFX Output\kfxlib\generate_kpf.py @@ -464,7 +464,13 @@ } def __init__(self): - self.program_path = os.path.join(windows_user_dir(local_appdata=True), "Amazon", "Kindle Previewer 3") + from _winreg import * + default_path = os.path.join(windows_user_dir(local_appdata=True), "Amazon", "Kindle Previewer 3") + try: + reg_key = OpenKey(ConnectRegistry(None, HKEY_CURRENT_USER),r'Software\Amazon\Kindle Previewer 3') + self.program_path = QueryValueEx(reg_key,None)[0] + except (OSError, WindowsError) as e: + self.program_path = default_path KindlePreviewer.__init__(self) def prepare_java_app_args(self): Moderator Notice
I suspect this is best placed in the KFX Output plugin thread. I only copied the post here in case I'm wrong. Last edited by DoctorOhh; 12-15-2019 at 01:52 AM. |
12-16-2019, 07:32 PM | #718 | |
Grand Sorcerer
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Quote:
Having the plugin automatically detect alternate installation locations for the Kindle Previewer would be useful. I will take a look at this and add it or something similar to the plugin when I have some free time. Thanks for the code contribution. |
|
12-20-2019, 02:58 AM | #719 |
Junior Member
Posts: 5
Karma: 10
Join Date: Dec 2019
Device: Kindle Fire HD 10
|
For some reason I hadn't found this thread in search, oops. Thanks for taking care of it!
FWIW, the "OSError" isn't used in Py2, only WindowsError, it's to future-proof for Py3 (in which 2to3 would change _winreg to winreg automatically, the only other Py3 compatibility concern). |
12-20-2019, 11:36 AM | #720 |
Addict
Posts: 392
Karma: 1008414
Join Date: Jun 2011
Device: Kindle
|
Error using latest plugin and Calibre 4.6:
Code:
calibre, version 4.6.0 ERROR: KFX conversion failed: <p><b>Cannot convert <book name></b><br><br><b>Conversion error:</b> Kindle Previewer error: Error:E00015: Unsupported tag or style was found. Tag: (), HTML Attribute: (), CSS Style: (-webkit-box-shadow=rgb(170, 170, 170) 0px 0px 5px inset).</p> |
Tags |
kfx, linux, wine |
|
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 |