Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 12-10-2017, 02:43 PM   #91
odamizu
maniac
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
Posts: 842
Karma: 1831444
Join Date: Mar 2015
Device: Kindle Oasis1 & Voyage, iOS
Quote:
Originally Posted by exaltedwombat View Post
Is there any benefit in this plugin over dropping the epub file into Kindle Previewer? Serious question, not a snark!
The plug-in allows you to insert a genuine Amazon ASIN. If you sideload the resulting AZW3 onto your Kindle, you will get covers on the Kindle home screen, and it will be treated as a "Book" rather than a "Doc." (However, if you transfer the book using Send-to-Kindle, Amazon will override the ASIN with a new one, so this trick only works with USB-transfer.)

The plug-in will also generate a thumbnail image if you want to manually transfer the cover to your Kindle.

Quote:
Originally Posted by msh2050 View Post
how I can use this with this negative margin script should I make it as azw then import to sigil and lastly export?

https://www.mobileread.com/forums/sh...17&postcount=8
I'm not entirely sure what your goal is or what the negative margin script does, but I adjust margins by inserting the following in the CSS stylesheet:
Code:
@media amzn-kf8 {
	p, h1, h2, h3 {
		margin-left: -20px; 
		margin-right: -20px; 
		}
	}
odamizu is offline   Reply With Quote
Old 12-10-2017, 03:30 PM   #92
msh2050
Member
msh2050 is often consulted by the I Ching.msh2050 is often consulted by the I Ching.msh2050 is often consulted by the I Ching.msh2050 is often consulted by the I Ching.msh2050 is often consulted by the I Ching.msh2050 is often consulted by the I Ching.msh2050 is often consulted by the I Ching.msh2050 is often consulted by the I Ching.msh2050 is often consulted by the I Ching.msh2050 is often consulted by the I Ching.msh2050 is often consulted by the I Ching.
 
Posts: 19
Karma: 122330
Join Date: Sep 2017
Device: ipad , Kindle PW3
Quote:
Originally Posted by odamizu View Post
The plug-in allows you to insert a genuine Amazon ASIN. If you sideload the resulting AZW3 onto your Kindle, you will get covers on the Kindle home screen, and it will be treated as a "Book" rather than a "Doc." (However, if you transfer the book using Send-to-Kindle, Amazon will override the ASIN with a new one, so this trick only works with USB-transfer.)

The plug-in will also generate a thumbnail image if you want to manually transfer the cover to your Kindle.



I'm not entirely sure what your goal is or what the negative margin script does, but I adjust margins by inserting the following in the CSS stylesheet:
Code:
@media amzn-kf8 {
	p, h1, h2, h3 {
		margin-left: -20px; 
		margin-right: -20px; 
		}
	}
msh2050 is offline   Reply With Quote
Old 12-11-2017, 02:22 PM   #93
odamizu
maniac
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
Posts: 842
Karma: 1831444
Join Date: Mar 2015
Device: Kindle Oasis1 & Voyage, iOS
Quote:
Originally Posted by Doitsu View Post
My KindleGen plugin is primarily intended for KDP authors and book designers. All other users are better off simply using Calibre ...
I much prefer the Sigil+Kindlegen plugin combination to Calibre, and I'm not an author or book designer.

Thank you, Doitsu!
odamizu is offline   Reply With Quote
Old 08-27-2018, 03:51 PM   #94
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 4,515
Karma: 14553849
Join Date: Dec 2010
Device: Kindle PW2
New version with KFX support

I've attached a new version with KFX support (courtesy of jhowell's Calibre KFX Output plugin) to the first post.

The new version will also check for embedded CFF/Type 1 (Postscript) fonts, which may not render clearly on all Kindle readers.
Doitsu is offline   Reply With Quote
Old 08-27-2018, 11:34 PM   #95
odamizu
maniac
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
Posts: 842
Karma: 1831444
Join Date: Mar 2015
Device: Kindle Oasis1 & Voyage, iOS
Thank you!
odamizu is offline   Reply With Quote
Old 10-08-2018, 08:14 PM   #96
Crick
Junior Member
Crick began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2016
Device: none
A little problem, I installe kindle preview 3.27 and the new version of the addon but when I tried to convert my epub I got this:

Status: failed

Traceback (most recent call last):
File "C:\Program Files\Sigil\plugin_launchers\python\launcher.py", line 135, in launch
self.exitcode = target_script.run(container)
File "C:\Users\Io\AppData\Local\sigil-ebook\sigil\plugins\KindleGen\plugin.py", line 419, in run
dc_creator = LastFirst(dc_creator).replace(' ', '_')
File "C:\Users\Io\AppData\Local\sigil-ebook\sigil\plugins\KindleGen\plugin.py", line 134, in LastFirst
author_parts = author.split(' ')
AttributeError: 'NoneType' object has no attribute 'split'
Error: 'NoneType' object has no attribute 'split'

I use win 7 and the last version of sigil
Crick is offline   Reply With Quote
Old 10-09-2018, 01:21 AM   #97
AlanHK
Evangelist
AlanHK can extract oil from cheeseAlanHK can extract oil from cheeseAlanHK can extract oil from cheeseAlanHK can extract oil from cheeseAlanHK can extract oil from cheeseAlanHK can extract oil from cheeseAlanHK can extract oil from cheeseAlanHK can extract oil from cheese
 
AlanHK's Avatar
 
Posts: 475
Karma: 1002
Join Date: Apr 2014
Device: PW-3, Android phone
I use the plugin to make AZWs to load on my own Kindle,and that works fine.

When I am making a book to upload to Amazon, I want a joint mode mobi.

I saw no option for that, and have been using the Previewer to make those, and was about to ask if you could make such an option. But I looked at the options again now and see that I can deselect both "Mobi7" and "AZW3"; if I do that I get the joint file.
So maybe you can make that an explicit option "Generate joint mobi" so it's clear that can be done.
(Possibly add "-joint" to the filename to distinguish it from the simple mobi7?)

Unrelated: When running, the output window is empty (except for "Running KindleGen ... please wait") until the end, when all the output appears.
On a big book at max compression, generation can take up to an hour (not often, but it has happened) and it would be reassuring if I could see the output as it was generated, so if for instance there are warnings or non-fatal errors I can abort and fix them rather than waiting for the completion.

Last edited by AlanHK; 10-09-2018 at 01:26 AM.
AlanHK is offline   Reply With Quote
Old 10-09-2018, 03:02 AM   #98
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 4,515
Karma: 14553849
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Crick View Post
A little problem, I installe kindle preview 3.27 and the new version of the addon but when I tried to convert my epub I got this:[...]
The problem was caused by an empty <dc:creator> metadata entry, which I didn't anticipate. I've updated the plugin and attached a new version to the first post.

Quote:
Originally Posted by AlanHK View Post
So maybe you can make that an explicit option "Generate joint mobi" so it's clear that can be done.
Since I clearly mentioned in the plugin description that it'll generate a master mobi file, if no output options are checked, I fail to see the need to add an extra option for this feature. I also won't add "-joint" to the file name.

Quote:
Originally Posted by AlanHK View Post
Unrelated: When running, the output window is empty (except for "Running KindleGen ... please wait") until the end, when all the output appears.
For technical reasons it's not possible to display the messages generated by KindleGen until it's done. I.e., you'll have to live with this limitation. If you want to see KindleGen status messages, you'll need to open a Command Prompt window and manually execute KindleGen. (You can find the KindlGen binary location by opening KindleGen.json with an editor.)

If you have installed Kindle Previewer in the default location, you could use the following command:

Quote:
"%LocalAppData%\Amazon\Kindle Previewer 3\lib\fc\bin\kindlegen.exe" -c2 "c:\my book.epub"
Obviously, you'll need to change the epub path. (You'll need to enclose the path in quotes, if it contains spaces.)
Doitsu is offline   Reply With Quote
Old 10-09-2018, 12:57 PM   #99
AlanHK
Evangelist
AlanHK can extract oil from cheeseAlanHK can extract oil from cheeseAlanHK can extract oil from cheeseAlanHK can extract oil from cheeseAlanHK can extract oil from cheeseAlanHK can extract oil from cheeseAlanHK can extract oil from cheeseAlanHK can extract oil from cheese
 
AlanHK's Avatar
 
Posts: 475
Karma: 1002
Join Date: Apr 2014
Device: PW-3, Android phone
Quote:
Originally Posted by Doitsu View Post
Since I clearly mentioned in the plugin description that it'll generate a master mobi file, if no output options are checked, I fail to see the need to add an extra option for this feature. I also won't add "-joint" to the file name.
OK.
I did finally realise that after about a year of using it. So thought it might be useful to have a reminder in the interface.
Is there no mechanism for help files in plugins? Would be helpful have the description available there with info like that.


Quote:
Originally Posted by Doitsu View Post
For technical reasons it's not possible to display the messages generated by KindleGen until it's done. I.e., you'll have to live with this limitation
Not a big deal. I used to do it with a batch file back when I just coded HTML in a text editor and compiled to mobi, but much prefer to do it in Sigil, even if I bite my nails while it's grinding away. Also it wouldn't make the thumbnail or, I think, use my bogus ASIN.

Last edited by AlanHK; 10-09-2018 at 12:59 PM.
AlanHK is offline   Reply With Quote
Old 10-09-2018, 06:41 PM   #100
Crick
Junior Member
Crick began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2016
Device: none
Quote:
Originally Posted by Doitsu View Post
The problem was caused by an empty <dc:creator> metadata entry, which I didn't anticipate. I've updated the plugin and attached a new version to the first post.
It work now, I was trying it on a blanc page didn't think of the author. Thanks.
Crick is offline   Reply With Quote
Old 11-26-2018, 10:53 PM   #101
toancv
Member
toancv began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Nov 2018
Device: Kindle paperwhite
I have this problem while using kindlegen plugin in Sigil: I can create the vertical ebook (Japanese and Chinese) in azw3 format but when I run the kindlegen plugin to create mobi format, the vertical arrangement all become horizontal.
I also find that the kindlegen will create mobi file without original source file despite whether I tick the option "Don't append source file" or not. Is this a bug? I am using Sigil 0.9.10 and the latest kindelgen plugin 0.5.3.
Can someone help?
Thanks.
toancv is offline   Reply With Quote
Old 11-27-2018, 03:16 AM   #102
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 4,515
Karma: 14553849
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by toancv View Post
when I run the kindlegen plugin to create mobi format, the vertical arrangement all become horizontal.
If you select MOBI, the plugin will actually create a MOBI7 file, which doesn't support vertical alignment. (MOBI7 is the old MOBI file format.)

Quote:
Originally Posted by toancv View Post
I also find that the kindlegen will create mobi file without original source file despite whether I tick the option "Don't append source file" or not.
If you select MOBI, AZW3 or KFX the file won't have attached source files. This is by design. If you want to create a master mobi file that contains both AZW3 and MOBI7 sections and attached source files, don't check any of the post-processing options below the Language drop-down box.
Doitsu is offline   Reply With Quote
Old 11-27-2018, 04:42 AM   #103
toancv
Member
toancv began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Nov 2018
Device: Kindle paperwhite
Thank you very much Doitsu. Your prompt reply solve my problem. I have another problem that when I "send to kindle" vertical books, the cover never displays on my Kindle Paperwhite. Do you know why and have solution for it?

Quote:
Originally Posted by Doitsu View Post
If you select MOBI, the plugin will actually create a MOBI7 file, which doesn't support vertical alignment. (MOBI7 is the old MOBI file format.)


If you select MOBI, AZW3 or KFX the file won't have attached source files. This is by design. If you want to create a master mobi file that contains both AZW3 and MOBI7 sections and attached source files, don't check any of the post-processing options below the Language drop-down box.
toancv is offline   Reply With Quote
Old 11-27-2018, 05:28 AM   #104
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 4,515
Karma: 14553849
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by toancv View Post
I have another problem that when I "send to kindle" vertical books, the cover never displays on my Kindle Paperwhite. Do you know why and have solution for it?
This is a known limitation of Send to Kindle. Use Calibre to transfer books to your Kindle; it'll automatically generate thumbnails.
Doitsu is offline   Reply With Quote
Old 02-20-2019, 04:03 AM   #105
AlanHK
Evangelist
AlanHK can extract oil from cheeseAlanHK can extract oil from cheeseAlanHK can extract oil from cheeseAlanHK can extract oil from cheeseAlanHK can extract oil from cheeseAlanHK can extract oil from cheeseAlanHK can extract oil from cheeseAlanHK can extract oil from cheese
 
AlanHK's Avatar
 
Posts: 475
Karma: 1002
Join Date: Apr 2014
Device: PW-3, Android phone
I installed Sigil .9.12 in WinXPSP3 using the legacy installer.
I have Kindle Previewer 2.94 installed.

Everything else seems to work, BUT when I tried to run Kindlegen 0.53, which was working fine in Sigil 0.9.10, I get this error:

Quote:
Status: failed

Traceback (most recent call last):
File "d:\sigil\plugin_launchers\python\launcher.py" , line 134, in launch
target_script = __import__(script_module)
File "C:\DOCUME~1\Owner\Local Settings\Application Data\sigil-ebook\sigil\plugins\KindleGen\plugin.py", line 11, in <module>
from PIL import Image
File "site-packages\PIL\Image.py", line 94, in <module>
ImportError: DLL load failed: The specified procedure could not be found.
Error: DLL load failed: The specified procedure could not be found.
Uninstalled and reinstalled the plugin, same result.

So far, other plugins are working as before.

line 94 referenced is in the section of plugin.py "find kindlegen binary".

So I guess I need to tell it where Kindlegen is. (I chose a different location than the default.) But I don't get the plugin's window at all, it just starts the "plugin runner", then the error above, and stops.
AlanHK is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
epubcheck plugin for Sigil Doitsu Plugins 185 Yesterday 05:58 AM
[Plugin] PunctuationSmarten Sigil plugin DiapDealer Plugins 74 11-26-2018 02:50 PM
[Plugin] KindleImport Sigil plugin DiapDealer Plugins 151 09-27-2017 05:05 PM
font change sigil to mobi with kindlegen wyatt650 Sigil 4 09-05-2013 10:49 AM
Sigil to Kindlegen -- No Table of Contents paul-b Sigil 70 05-03-2012 04:57 PM


All times are GMT -4. The time now is 07:01 AM.


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