01-19-2020, 12:36 AM | #736 |
Junior Member
Posts: 7
Karma: 10
Join Date: Nov 2018
Device: Kindle Oasis (2017)
|
Thanks very much for your work!
|
01-22-2020, 09:13 AM | #737 |
Enthusiast
Posts: 25
Karma: 12676
Join Date: Jan 2020
Device: none
|
Thanks very much!But the latest version has some problems.
<br/> are not corresponding to line spacing, but paragraph spacing. The previous version did not have this problem. |
Advert | |
|
01-22-2020, 10:51 AM | #738 | |
Grand Sorcerer
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Quote:
You will need to provide an example that demonstrates the problem if you want me to look into it further. |
|
02-03-2020, 10:24 PM | #739 |
Enthusiast
Posts: 41
Karma: 10
Join Date: Jan 2020
Device: Kobo Libra 2, Kindle Oasis 3
|
Does this support multi-level table of contents entries? I modified an ePub to have sometimes four total levels deep in Calibre, which seemed to work, but the conversion only preserved the top- and second-level links, with deeper entries apparently missing. Not a huge deal, but curious if this is a known limitation of the format or Kindles or your plugin.
|
02-04-2020, 07:36 AM | #740 | |
Grand Sorcerer
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Quote:
|
|
Advert | |
|
02-04-2020, 10:59 AM | #741 |
Enthusiast
Posts: 41
Karma: 10
Join Date: Jan 2020
Device: Kobo Libra 2, Kindle Oasis 3
|
|
02-05-2020, 10:30 PM | #742 |
Enthusiast
Posts: 25
Karma: 12676
Join Date: Jan 2020
Device: none
|
Thanks for the reply.After testing, this is due to some errors in the epub style rather than the plugin.
|
02-06-2020, 12:46 AM | #743 |
Enthusiast
Posts: 25
Karma: 12676
Join Date: Jan 2020
Device: none
|
Besides, what's wrong with this error?
calibre, version 4.9.0 KFX conversion failed: <p><b>Cannot convert shuyi</b><br><br><b>KFX creation error:</b> Unexpected Ion symbols used: $73</p> calibre, version 4.9.0 error: KFX conversion failed: <p><b>Cannot convert shuyi</b><br><br><b>KFX creation error:</b> Unexpected Ion symbols used: $73</p> |
02-06-2020, 09:41 AM | #744 | |
Grand Sorcerer
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Quote:
I will fix this error in the next plugin release, which should be within a week from now. If you need to convert that book sooner you should be able to do so by eliminating that property from the book using the calibre editor. |
|
02-06-2020, 10:39 PM | #745 | |
Enthusiast
Posts: 25
Karma: 12676
Join Date: Jan 2020
Device: none
|
Quote:
|
|
02-07-2020, 01:02 AM | #746 |
Enthusiast
Posts: 25
Karma: 12676
Join Date: Jan 2020
Device: none
|
When I eliminated that property from the book, the plugin works.Looking forward to a new version.
|
02-07-2020, 06:39 AM | #747 |
Junior Member
Posts: 6
Karma: 10
Join Date: Sep 2012
Device: Kindle Keyboard 3G, Kindle Paperwhite [1-4]
|
Workaround for vertical text and ruby
Hi, I would like to share a workaround from my friend, to deal with books with vertical text and/or ruby tags.
Japanese (ja) and Traditional Chinese (zh, zh-tw) books are printed vertically. They also sometimes use special HTML tags called "ruby": https://developer.mozilla.org/en-US/...L/Element/ruby However, for some reason, Kindle Previewer only supports vertical text and ruby tags for Japanese (dc:language=ja) books. If you feed a Chinese book (dc:language=zh or dc:language=zh-tw) with vertical text to Kindle Previewer, it will simply reject it with error message: https://www.mobileread.com/forums/sh...&postcount=456 For ruby tags, Kindle Previewer fails silently if the book does not have dc:language=ja set. Strangely, the requirement of dc:language=ja only exists in Kindle Previewer. A Chinese ePub book with vertical text and ruby tags could be converted to KF8 (.azw3) without any issues with KindleGen. So, to support vertifical text and ruby tags in KFX, one should set xml:lang=ja even for non-Japanese books: Code:
--- a/previewer_prep_epub.py 2020-01-18 07:55:20.000000000 +0000 +++ b/previewer_prep_epub.py 2020-02-07 02:14:33.000000000 +0000 @@ -406,6 +406,11 @@ lang.text = "en" fixed = True + if lang.text.lower().partition(" ")[0] in ["zh", "zh-tw"]: + self.log.info("Changed EPUB language from '%s' to 'ja'" % lang.text) + lang.text = "ja" + fixed = True + if FIX_LANGUAGE_SUFFIX and "-" not in lang.text: current_language_pattern = re.compile(re.escape(lang.text) + "(-.+)?$", re.IGNORECASE) best_language_variant, best_language_count = lang.text, 0 Could we consider add this hack (but maybe not enabled by default) to the KFX output plugin? BTW, calibre currently does not recognize -webkit-writing-mode and -epub-writing-mode and strips these CSS during conversion. So one must use calibre-debug to run KFX Output, instead of using calibre GUI. I have attached a sample Chinese ePub file with vertical text and ruby. After setting the language to "ja" in KFX Output plugin, it could be rendered without issues on Kindle Paperwhite 4. |
02-07-2020, 01:59 PM | #748 | |||
Grand Sorcerer
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Quote:
Quote:
You will need to add <meta name="primary-writing-mode" content="vertical-rl"/> to the <metadata> section of the OPF to enable vertical text conversion. This is proprietary Amazon Kindle metadata and should be safe to add as it should be ignored by anything else. When this is present the plugin will change the Chinese language code to Japanese for conversion and then will change it back within the KFX file produced. Doing that will allow conversion to succeed with vertical text and should also allow Chinese font selection in the resulting file. Quote:
In the mean time you can work around the problem by moving the class to the <body> element instead. The roll out of vertical Japanese in KFX is not yet complete. The Kindle for Android and iOS apps support ruby, but the current e-ink Kindle firmware (5.12.3) uses an older version of the KFX renderer which may still have bugs in ruby support. |
|||
02-07-2020, 05:56 PM | #749 | ||||
Junior Member
Posts: 6
Karma: 10
Join Date: Sep 2012
Device: Kindle Keyboard 3G, Kindle Paperwhite [1-4]
|
Quote:
Quote:
So maybe we could detect the value of page-progression-direction and decide whether the plugin should patch the language code. Or we could just add a function switch and let the user decide if they want this hack. Quote:
Quote:
|
||||
02-12-2020, 05:38 PM | #750 |
Junior Member
Posts: 2
Karma: 10
Join Date: Feb 2020
Device: Kindle Oasis 2 32 Gb 3G + Wifi
|
Languages with KFX?
Hi Guys!
Is Hungarian language somehow supported by kfx? I heard this is the best format, but my books are Hungarian (it's language that use the same arabic latters as English German etc... except it has letters like "á é ő ű ü ö ó" too.). Thanks in advance. |
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 |