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 07-27-2022, 11:59 AM   #1276
Shark69
Zealot
Shark69 ought to be getting tired of karma fortunes by now.Shark69 ought to be getting tired of karma fortunes by now.Shark69 ought to be getting tired of karma fortunes by now.Shark69 ought to be getting tired of karma fortunes by now.Shark69 ought to be getting tired of karma fortunes by now.Shark69 ought to be getting tired of karma fortunes by now.Shark69 ought to be getting tired of karma fortunes by now.Shark69 ought to be getting tired of karma fortunes by now.Shark69 ought to be getting tired of karma fortunes by now.Shark69 ought to be getting tired of karma fortunes by now.Shark69 ought to be getting tired of karma fortunes by now.
 
Shark69's Avatar
 
Posts: 136
Karma: 493152
Join Date: Mar 2012
Location: Spain
Device: Kindle Oasis 2
Hello:
I have recently started with the pluing and I find it very interesting, but I have a question. I am converting a book from epub to azw3 and kfx. Everything is fine, but in ebooks (Kindle Oasis and Kindle Touch), when there is a call to a footer, the line spacing increases in kfx, but not in azw3. If I open the kfx with Kindle Previewer it looks fine.
Attached images of the Kindle Previewer (OK), azw3 (OK) and kfx (increased line spacing).
Do you know the reason?

KFX:


Kindle Previewer:


azw3:
Shark69 is offline   Reply With Quote
Old 07-27-2022, 02:04 PM   #1277
resdinwel
Junior Member
resdinwel began at the beginning.
 
resdinwel's Avatar
 
Posts: 2
Karma: 10
Join Date: Jul 2022
Device: Kindle
Hi, I encountered the following error when trying converting vertical Chinese ebooks:
Code:
Traceback (most recent call last):
  File "calibre_plugins.kfx_output.kfxlib.original_source_epub", line 262, in prepare_for_previewer
  File "calibre_plugins.kfx_output.kfxlib.original_source_epub", line 540, in prepare_opf
TypeError: JobLog.info() takes 2 positional arguments but 3 were given
It seems like a typo:
Code:
--- "KFX Output/kfxlib/original_source_epub.py"
+++ test.py
@@ -540 +540 @@
-                        log.info("Changed EPUB language from '%s' to 'ja' for vertical text conversion", lang.text)
+                        log.info("Changed EPUB language from '%s' to 'ja' for vertical text conversion" % lang.text)
Thank you.
resdinwel is offline   Reply With Quote
Advert
Old 07-27-2022, 02:39 PM   #1278
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: 79,798
Karma: 146391129
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 Shark69 View Post
Hello:
I have recently started with the pluing and I find it very interesting, but I have a question. I am converting a book from epub to azw3 and kfx. Everything is fine, but in ebooks (Kindle Oasis and Kindle Touch), when there is a call to a footer, the line spacing increases in kfx, but not in azw3. If I open the kfx with Kindle Previewer it looks fine.
Attached images of the Kindle Previewer (OK), azw3 (OK) and kfx (increased line spacing).
Do you know the reason?

KFX:


Kindle Previewer:


azw3:
Change the [3] and all other footnote markers to be part of the text. Remove the superscript code. Then convert to KFX. That will make the lines no longer have a larger line height and the tap zone will be larger and easier to see.
JSWolf is offline   Reply With Quote
Old 07-27-2022, 07:43 PM   #1279
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: 7,094
Karma: 91592869
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by dfrincon View Post
some examples?
ebook-convert Shelley-Frankenstein-en.epub Shelley-Frankenstein-en.kfx --extra-css "body, div, h1, h2, h3, h4, h5, h6, p {orphans: 1 !important; widows: 1 !important;}"

Spoiler:

Conversion options changed from defaults:
extra_css: 'body, div, h1, h2, h3, h4, h5, h6, p {orphans: 1 !important; widows: 1 !important;}'
1% Converting input to HTML...
InputFormatPlugin: EPUB Input running
on C:\Test\Shelley-Frankenstein-en.epub
Found HTML cover OEBPS/Text/Cover.xhtml
Parsing all content...
34% Running transforms on e-book...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Removing fake margins...
Removing level div_1 left margin of: 2em
Removing level div_1 right margin of: 2em
Cleaning up manifest...
Trimming unused files from manifest...
Creating KFX Output...
67% Running KFX Output plugin
Software versions: KFX Output 1.63.0, calibre 6.1, Windows-10-10.0.22000-SP0
KFX Output plugin help is available at https://www.mobileread.com/forums/sh...d.php?t=272407
Splitting markup on page breaks and flow limits, if any...
The cover image has an id != "cover". Renaming to work around bug in Nook Color
Successfully converted input format to EPUB
Converting C:\Users\jhowe\AppData\Local\Temp\calibre_7gvrx0xl \zdf5tofp.epub
Converting C:\Users\jhowe\AppData\Local\Temp\calibre_7gvrx0xl \zdf5tofp.epub to KPF
Preparing book C:\Users\jhowe\AppData\Local\Temp\calibre_7gvrx0xl \zdf5tofp.epub for conversion
Added display:inline to 7 br in OEBPS/Text/Chapter05.xhtml
Added display:inline to 8 br in OEBPS/Text/Chapter10.xhtml
Added display:inline to 9 br in OEBPS/Text/Chapter18.xhtml
Added display:inline to 1 br in OEBPS/Text/Chapter25.xhtml
Added display:inline to 1 br in OEBPS/Text/Letter01.xhtml
Added display:inline to 1 br in OEBPS/Text/Title.xhtml
Launching Kindle Previewer 3 (3.66.0) - CLI
**************************************************
Kindle Previewer 3.66.0 Copyright (c) Amazon.com
**************************************************
Checking specified arguments.
Pre-processing in progress.
Processing 1/1 book(s).
Book converted successfully! : C:/Users\jhowe\AppData\Local\Temp\calibre_7gvrx0xl\5v kp8b_w\crw97eafyhey9kizdo8i\zdf5tofp.epub
Post-processing in progress.
Writing output/log files to C:/Users\jhowe\AppData\Local\Temp\calibre_7gvrx0xl\5v kp8b_w\crw97eafyhey9kizdo8i\0000
Successfully converted EPUB to KPF
Converting C:\Users\jhowe\AppData\Local\Temp\calibre_7gvrx0xl \t5p03gta.kpf
Processing container: C:\Users\jhowe\AppData\Local\Temp\calibre_7gvrx0xl \t5p03gta.kpf
Removed 1 KDF SQLite file fingerprint(s)
Features: CanonicalFormat-1, kfxgen.textBlock-1, max_id-825, reflow-style-2
Metadata: ASIN=PTU9O9RY86LVDBOJRFU7T5GWGOYC16WO, asset_id=CR!RLW882HTLKPDMIE2FKMCZO9VZP9F, author="Shelley, Mary W.", book_id=cwRcKfmXTXiLJXqoHieU9g0, cde_content_type=EBOK, content_id=PTU9O9RY86LVDBOJRFU7T5GWGOYC16WO, cover_image=600x800, creator_version=3.66.0, file_creator=KPR, is_sample=False, kfxgen=kfxlib-20220617, language=en, nested_span=enabled, override_kindle_font=False, reading_orders=1, selection=enabled, title=Frankenstein
Successfully converted to KFX
KFX output written to C:\Test\Shelley-Frankenstein-en.kfx
Output saved to C:\Test\Shelley-Frankenstein-en.kfx
jhowell is offline   Reply With Quote
Old 07-27-2022, 09:05 PM   #1280
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: 7,094
Karma: 91592869
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by Shark69 View Post
I have recently started with the pluing and I find it very interesting, but I have a question. I am converting a book from epub to azw3 and kfx. Everything is fine, but in ebooks (Kindle Oasis and Kindle Touch), when there is a call to a footer, the line spacing increases in kfx, but not in azw3. If I open the kfx with Kindle Previewer it looks fine.
I sometimes see that happen depending on the font chosen on the Kindle. I don't have any solution other than trying a different font.
jhowell is offline   Reply With Quote
Advert
Old 07-27-2022, 09:12 PM   #1281
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: 7,094
Karma: 91592869
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by resdinwel View Post
Hi, I encountered the following error when trying converting vertical Chinese ebooks...
Thanks for finding that! It will be fixed in the next release of the plugin.
jhowell is offline   Reply With Quote
Old 07-28-2022, 03:24 AM   #1282
Shark69
Zealot
Shark69 ought to be getting tired of karma fortunes by now.Shark69 ought to be getting tired of karma fortunes by now.Shark69 ought to be getting tired of karma fortunes by now.Shark69 ought to be getting tired of karma fortunes by now.Shark69 ought to be getting tired of karma fortunes by now.Shark69 ought to be getting tired of karma fortunes by now.Shark69 ought to be getting tired of karma fortunes by now.Shark69 ought to be getting tired of karma fortunes by now.Shark69 ought to be getting tired of karma fortunes by now.Shark69 ought to be getting tired of karma fortunes by now.Shark69 ought to be getting tired of karma fortunes by now.
 
Shark69's Avatar
 
Posts: 136
Karma: 493152
Join Date: Mar 2012
Location: Spain
Device: Kindle Oasis 2
Quote:
Originally Posted by JSWolf View Post
Change the [3] and all other footnote markers to be part of the text. Remove the superscript code. Then convert to KFX. That will make the lines no longer have a larger line height and the tap zone will be larger and easier to see.
Quote:
Originally Posted by jhowell View Post
I sometimes see that happen depending on the font chosen on the Kindle. I don't have any solution other than trying a different font.
Thanks both of you. I've found a better solution. If you add this conversion rule in Calibre, the problem is sorted out:
If the property is greater than 20%, change the value to 20%.
That is because in some books, que <sup> property is defined like that:
sup {
font-size: 0.75em;
line-height: 1.2;
vertical-align: super;
vertical-align: 35%;
}
Highier vertical-asign than 20% produces the problem. We can shorten it a little and problem finished.
Shark69 is offline   Reply With Quote
Old 07-28-2022, 04:26 AM   #1283
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 74,040
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Setting a fixed line-height is generally discouraged. The line height ought to be controlled by the user settings in the reading software.
pdurrant is online now   Reply With Quote
Old 07-28-2022, 11:03 AM   #1284
Shark69
Zealot
Shark69 ought to be getting tired of karma fortunes by now.Shark69 ought to be getting tired of karma fortunes by now.Shark69 ought to be getting tired of karma fortunes by now.Shark69 ought to be getting tired of karma fortunes by now.Shark69 ought to be getting tired of karma fortunes by now.Shark69 ought to be getting tired of karma fortunes by now.Shark69 ought to be getting tired of karma fortunes by now.Shark69 ought to be getting tired of karma fortunes by now.Shark69 ought to be getting tired of karma fortunes by now.Shark69 ought to be getting tired of karma fortunes by now.Shark69 ought to be getting tired of karma fortunes by now.
 
Shark69's Avatar
 
Posts: 136
Karma: 493152
Join Date: Mar 2012
Location: Spain
Device: Kindle Oasis 2
Quote:
Originally Posted by pdurrant View Post
Setting a fixed line-height is generally discouraged. The line height ought to be controlled by the user settings in the reading software.
You're right
Shark69 is offline   Reply With Quote
Old 07-30-2022, 07:14 AM   #1285
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: 7,094
Karma: 91592869
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Version 1.64.0 - 30 Jul 2022

Allow conversion of Bengali language books.

Fix bug introduced in version 1.63.0 of this plugin that prevented the conversion of vertical Chinese language books.
jhowell is offline   Reply With Quote
Old 08-23-2022, 03:58 PM   #1286
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: 7,094
Karma: 91592869
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Amazon has released Kindle Previewer version 3.67.0. It is compatible with the current release of this plugin.
jhowell is offline   Reply With Quote
Old 08-28-2022, 01:50 AM   #1287
ZeFilozofur
Junior Member
ZeFilozofur began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2022
Device: Kindle 8th Gen
Error while converting

hullo again! I was just trying to convert an epub the other day and received this error:
calibre, version 6.3.0
ERROR: KFX conversion failed: <p><b>Cannot convert The Hero Of Olympus</b><br><br><b>Conversion error:</b> E24010: Hyperlink not resolved in toc (One possible reason can be that the link points to a tag with style display:none):C:\Users\narla\AppData\Local\Temp\49 9925a3-353f-43a6-8c1d-3c04c9060a97\cTemp\mTemp\mbp_7E6_8_1C_B_D_15_38F_1 A3C_3ECC_1\1\1\.html_split_004#</p>

Anything i can do to resolve this?
Thanks in advance
ZeFilozofur is offline   Reply With Quote
Old 09-20-2022, 11:03 AM   #1288
MituButChi
Junior Member
MituButChi began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jun 2022
Device: Kindle Paperwhite 3
Thank you for your plugin. It works really well for me.

I have some question though: Now I have a manual column of page number, but when I convert a book, I have to go to KFX Output setting to check the "Create approximate page numbers" and specify it to #pages every single time.

Is there any tweak that I can use to make it the default setting?

Thank you.
MituButChi is offline   Reply With Quote
Old 09-20-2022, 01:03 PM   #1289
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: 7,094
Karma: 91592869
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by MituButChi View Post
Is there any tweak that I can use to make it the default setting?
You can the change defaults for conversion. Go to Preferences, Output Options, KFX Output and set whatever defaults you want. The new defaults will apply for any books that have not been previously converted.
jhowell is offline   Reply With Quote
Old 10-14-2022, 03:32 PM   #1290
ccszotyi
Junior Member
ccszotyi began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Oct 2022
Device: Kindle
KFX files on IOS

Hi Everyone! I've been browsing around the past hours trying to find a solution to transfer my kfx files from my laptop to my kindle app on the Ipad, without success. Is there any method to do so?

I read the first post with some instructions for IOS devices, but it is not clear how the Kindle app would open the files once I transfer them to my device.
ccszotyi 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 588 03-28-2025 02:26 PM
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 09:56 AM.


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