![]() |
#16 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 67
Karma: 136594
Join Date: Jan 2013
Location: Hong Kong
Device: Kindle DX, Paperwhite, Paperwhite II, and Voyage
|
Question
Would installing X11 (iMac running El Capitan, Sigil 0.9.0) affect the ability to run this plugin?
I downloaded the plugin to my downloads folder, and followed the instructions above to the letter...all was well, and the plugin worked as advertised. I then separately downloaded Kindle Previewer to view the results, but in order to get Kindle Previewer to run, I had to update Java, and download X11, per the instructions here - http://www.amazon.com/forum/kindle%2...x2KDW3X9NV83MC Again, all was good - Kindle Previewer ran as advertised. I then uninstalled the plugin, and moved the zip file to its final resting place (in a folder in the Applications folder, rather than in the downloads folder) and reinstalled it, but now I can't get it to run. Plugins-->Output-->KindleGen brings up the Plugin Runner window as it should. Clicking Start brings up the window (I notice the "Application" menu at the top of the screen changes from Sigil to Python) the to select the Kindlegen location (I want to select the Kindlegen_v0.2.2.zip file here, correct, or am I being an idiot?). I select this, click on "Open" and nothing happens (I left it for 30 mins just in case things were running incredibly slow). This window stays open. Selecting it a second time, and clicking Open again results in some text flashing in the Plugin Runner window, but much too fast for me to be able to read it, and then Status: success KindleGen not selected Press OK to close the Plugin Runner Window I checked the ini file and there has been no path to the Kindlegen executable written (I don't know if running the plugin the first time writes the path in here or not), and I also checked the permissions for the folder to ensure it was able to be written to. The only thing that changed between the first time I ran it (when it was in the downloads folder) and the second time was the location of the Kindlegen.zip, and the fact that I updated Java and installed X11. I have tried starting from scratch a few times now, removing all plugins (I have FlightCrew as well, which runs OK), quitting out of Sigil, restarting my machine, and trying to install again, all with the same outcome. Am I being an idiot somewhere, or do I have genuine issue? If the former, I apologise. If the latter does anyone have any idea where, and how to fix it please? |
![]() |
![]() |
![]() |
#17 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,662
Karma: 23468403
Join Date: Dec 2010
Device: Kindle PW2
|
In order run KindleGen, you only need the kindlegen binary, which comes with KindlePreviewer and is also available as a separate download. kindlegen itself doesn't require Java; it's only needed for KindlePreviewer
By default the Plugin looks for the KindleGen binary (kindlegen) in: Code:
/Applications/Kindle Previewer.app/Contents/MacOS/lib/kindlegen
Quote:
Quote:
I'd recommend the following: 1. Select Plugins > Manage Plugins and delete the Kindlegen plugin and reinstall it. 2. Download the standalone OSX kindlegen version and unzip it to a folder of your choice. (You only need to extract one file: kindlegen.) 3. Run the KindleGen plugin and select the kindlegen file that you extracted in step 2. |
||
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 67
Karma: 136594
Join Date: Jan 2013
Location: Hong Kong
Device: Kindle DX, Paperwhite, Paperwhite II, and Voyage
|
Worked a treat.
Awesome. Thank you Doitsu. |
![]() |
![]() |
![]() |
#19 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 855
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
|
I have now used the kindlegen plugin on over 100 documents and would up tweaking the plugin.py just a little more to remove more characters from the title for the filename:
# replace unwanted characters in book title title = re.sub('[/|\u2019|\u201C|\u201D|\u2024|\u2025|\u2026|\?|<|>| \\\\|:|;|\.|,|\+|=|!|&|\*|\||\"|\^|\'|\s]+', '_', dc_title.group(1)) title = title.strip("_") You might want to consider updating your script as well, and you can probably improve on my tweaks. I was surprised by the unicode in some of the document titles and think there might be a better way to deal with this, perhaps using ranges to remove non-alphabetics? In fact, I am starting to wonder if perhaps the best bet might be to invert the sense and define a list of permitted characters and translate/trim anything else. Dave |
![]() |
![]() |
![]() |
#20 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,662
Karma: 23468403
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
I'll have a closer look at your suggestions and might add a couple of characters to be removed from file names. For example, even though spaces are valid in Windows/Linux/OSX file names they usually need to be escaped. OTOH, typographical quotation marks shouldn't cause any problems. |
|
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 77,956
Karma: 142032074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#22 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,330
Karma: 5568878
Join Date: Nov 2009
Device: many
|
JSWolf,
Quote:
It certainly can not hurt to run anything through Flightcrew. Please stop injecting this comment each time after flightcrew is mentioned anyplace in Sigil. In fact FlightCrew will catch many types of common errors and provide a nicer error code many times to help the user. Then instead of just complaining about things ... file an actual bug report at the new Flightcrew github site and include a clear test case that Flightcrew calls wrong when it is not, or a clear test case of something it misses completely that it should catch that epubcheck 2 actually catches. KevinH |
|
![]() |
![]() |
![]() |
#23 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 77,956
Karma: 142032074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Ok, I'll have a go at FC and see what it missed that ePubcheck 4 catches.
|
![]() |
![]() |
![]() |
#24 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,179
Karma: 201721072
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
![]() |
![]() |
![]() |
#25 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 855
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
|
I have a puzzle related to this plugin I am trying to sort out. I used this plugin to create a mobi file from an epub and loaded that file onto my Kindle 3 WiFi. I am having no problems reading the book, but if I hit "Goto" there is no table-of-contents available despite there being one in the original epub. In order to see if this was somehow left out by kindlegen I used the companion kindleimport plugin on the mobi file and was a bit surprised to see the table of contents was imported!
So it seems as if there is something peculiar about the generated mobi file that my K3 doesn't like even though the plugins have no problems with it. Obviously I can read the book without the table of contents, but it is annoying. Dave |
![]() |
![]() |
![]() |
#26 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,662
Karma: 23468403
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
This will add the following line to the opf <guide> section: Code:
<reference type="toc" title="Table Of Contents" href="Text/TOC.xhtml"/> |
|
![]() |
![]() |
![]() |
#27 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 67
Karma: 136594
Join Date: Jan 2013
Location: Hong Kong
Device: Kindle DX, Paperwhite, Paperwhite II, and Voyage
|
Question
Doitsu,
Just a question. Each time I run the Kindlegen plugin, I notice this error - "Info(pagemap):I8000: No Page map found in the book" - in the output, no matter what the book is or what I have done to it.. It's not a major, because as far as I can see, it doesn't seem to affect anything, but just wondering what this pertains to, and whether there is something else I should be doing in Sigil. I can't see any page map generation option in Sigil. I am asking purely for my edification. |
![]() |
![]() |
![]() |
#28 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,662
Karma: 23468403
Join Date: Dec 2010
Device: Kindle PW2
|
That message comes directly from KindleGen; you can ignore it, unless you're trying to generate a Kindle book with "real page numbers" from an epub with either an Adobe pagemap or an NCX pagelist in it.
|
![]() |
![]() |
![]() |
#29 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 67
Karma: 136594
Join Date: Jan 2013
Location: Hong Kong
Device: Kindle DX, Paperwhite, Paperwhite II, and Voyage
|
Quote:
Makes sense. Thanks. |
|
![]() |
![]() |
![]() |
#30 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 855
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
|
I'm encountering a problem with the output of this plugin on my Kindle (KT2) running 5.6.5 firmware. Now that the jailbreak is available for that release I have done so and installed the screensaver hack. This is working fine with the .mobi output of the plugin, but the .azw3 output is not operating properly.
The author of the screensaver hack has determined the problem, but it will need to be addressed here as it involves missing information in the file. Please see the thread: https://www.mobileread.com/forums/sho...postcount=1829 Help. Dave |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
epubcheck plugin for Sigil | Doitsu | Plugins | 533 | 10-24-2024 04:32 PM |
[Plugin] PunctuationSmarten Sigil plugin | DiapDealer | Plugins | 138 | 07-11-2023 12:22 PM |
[Plugin] KindleImport Sigil plugin | DiapDealer | Plugins | 187 | 07-04-2022 11:11 AM |
font change sigil to mobi with kindlegen | wyatt650 | Sigil | 4 | 09-05-2013 11:49 AM |
Sigil to Kindlegen -- No Table of Contents | paul-b | Sigil | 70 | 05-03-2012 05:57 PM |