Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-22-2017, 02:14 PM   #76
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
The plugin size is now fixed at 330 px high, suitable for 220 dpi or lower, where it will fill the 1.5" high "grid view" slot. But on 300 dpi like the PW-3, you need 450. While changing the code in plugin.py works, it is lost when the plugin is updated.

So can this be made a preference, and preferably in the gui?
Also, when launching the plugin, the gui displays links for the starting point, the cover file and the TOC.

However, while it has a setting to "Add fake ASIN", it does not indicate if there is already one set in the epub, or what it is. Since there are several formats for these in the OPF: EPUB2, EPUB3, AMAZON, MOBI-ASIN; I'd like to see what the ASIN will be read as in the end; or if the syntax is wrong and a random one will be generated. In the latter case, display the string that will be used.
Ideally: have the "Fake ASIN" be settable from the GUI and written into the epub.

Motivation:
When working on a book file I will almost always load several different versions on the Kindle to check. With the random ASIN, each will have a differently named thumbnail, sdr folder and AZW. Deleting a file from the Kindle GUI only deletes the book file (AZW/MOBI), not the other files.
With a fixed ASIN, I just have to upload the AZW (unless I've changed the cover, which is rare). The info in the sdr folder works, though bookmarks may be off.

So these redundant folders and images remain, and with the random names from the ASIN, aren't obvious in the file listing for manual deletion. I've got 100 or so books on my Kindle now and it's not too hard to find them, but I have room for thousands, and cleaning them up then would be rather tedious.
I know these files are not harmful, but hate to see junk pile up from every time I've loaded, paged through and deleted a book to replace with a revised one.

Last edited by AlanHK; 10-22-2017 at 02:19 PM.
AlanHK is offline   Reply With Quote
Old 10-24-2017, 05:27 PM   #77
Doitsu
Grand Sorcerer
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: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by AlanHK View Post
The plugin size is now fixed at 330 px high, suitable for 220 dpi or lower, where it will fill the 1.5" high "grid view" slot. But on 300 dpi like the PW-3, you need 450. While changing the code in plugin.py works, it is lost when the plugin is updated.
The latest version allows you to change the thumbnail size via the GUI.

Quote:
Originally Posted by AlanHK View Post
Ideally: have the "Fake ASIN" be settable from the GUI and written into the epub.
The latest version will display the ASIN that'll be used, if the Add fake ASIN option is checked, however, you won't be able to change it via the GUI.

If you want to add a custom ASIN, simply define a clip with the following contents:

Code:
    <dc:identifier opf:scheme="MOBI-ASIN">B001234567</dc:identifier>
and insert it before running the plugin.

BTW, you can tell by the length of the ASIN its most likely origin:
  1. ASIN: B001234567 (a genuine ASIN added by the user or Calibre)
  2. ASIN: 52d5b24103ac (a 12 character hex number generated by the plugin)
  3. ASIN: 20c486dd-6a45-4c9c-bb86-ce68590ef015 (a UUID generated by Calibre)
Doitsu is offline   Reply With Quote
Advert
Old 10-25-2017, 01:26 AM   #78
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by Doitsu View Post
The latest version allows you to change the thumbnail size via the GUI.
The latest version will display the ASIN that'll be used, if the Add fake ASIN option is checked, however, you won't be able to change it via the GUI.
Thanks! Working well.

Quote:
If you want to add a custom ASIN, simply define a clip with the following contents:
Code:
<dc:identifier opf:scheme="MOBI-ASIN">B001234567</dc:identifier>
I've been doing that. I make a short mnemonic "ASIN" so I can ID the associated files easily: e.g. "MOBYDICK".
But while it mostly works, sometimes there are problems, e.g xmlns:opf not defined, so "opf:scheme" does not work.
Seeing the ASIN in the plugin tells me that it's correct or not immediately, instead of waiting for the compilation to finish when I see I have a random ASIN and have to fix the OPF and do it again.

Last edited by AlanHK; 10-25-2017 at 05:03 AM.
AlanHK is offline   Reply With Quote
Old 11-28-2017, 02:05 AM   #79
odamizu
just an egg
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: 1,586
Karma: 4300000
Join Date: Mar 2015
Device: Kindle, iOS
Here's a little quirk.

I started with a valid ePub2. When I ran the KindleGen plug-in, it picked up the ASIN just fine from:
Code:
<dc:identifier opf:scheme="MOBI-ASIN">B123456789</dc:identifier>
Then I ran the ePub2 through the ePub3-itizer plug-in and got a valid ePub3. The identifier was converted to:
Code:
<dc:identifier>urn:mobi-asin:B123456789</dc:identifier>
When I ran the KindleGen plug-in, it failed to pick up the ASIN.

Changing "urn-mobi-asin" to "urn-MOBI-ASIN" fixed the problem.

Can the KindleGen plug-in be revised to recognize lower case "urn-mobi-asin" — or should I post in the ePub3-itizer thread and request that it convert the identifier to upper case instead of lower case?

Many thanks!
odamizu is offline   Reply With Quote
Old 11-28-2017, 04:32 AM   #80
Doitsu
Grand Sorcerer
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: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by odamizu View Post
Can the KindleGen plug-in be revised to recognize lower case "urn-mobi-asin" — or should I post in the ePub3-itizer thread and request that it convert the identifier to upper case instead of lower case?
I've updated the plugin to look for "urn-mobi-asin" in epub3 books.
Doitsu is offline   Reply With Quote
Advert
Old 11-28-2017, 09:49 AM   #81
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
As an aside, the urn prefix values themselves are supposed to be case insensitive. So whatever is interpreting the opf should see "urn:mobi-asin" exactly the same as it sees "urn:MOBI-ASIN" and in its canonical form it should be lowercase.

I once looked that up in the spec just to make sure.
KevinH is online now   Reply With Quote
Old 11-28-2017, 12:01 PM   #82
odamizu
just an egg
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: 1,586
Karma: 4300000
Join Date: Mar 2015
Device: Kindle, iOS
Thanks for the quick work, @Doitsu!

Running more tests, I've found:

ePub3 now works with lower-case urn:mobi-asin/urn:amazon but no longer works with upper-case urn:MOBI-ASIN/urn:AMAZON.

ePub2 works with upper-case opf:scheme="MOBI-ASIN"/"AMAZON", but does not work witih lower-case opf:scheme="mobi-asin"/"amazon".

Not a biggie for me to edit this manually, but if the plug-in could be updated to case-insensitive, that would be great.

Thanks!
odamizu is offline   Reply With Quote
Old 11-28-2017, 05:18 PM   #83
Doitsu
Grand Sorcerer
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: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by KevinH View Post
As an aside, the urn prefix values themselves are supposed to be case insensitive.
Quote:
Originally Posted by odamizu View Post
Not a biggie for me to edit this manually, but if the plug-in could be updated to case-insensitive, that would be great.
I made the ASIN search case-insensitive for epub2 and epub3 books.
Doitsu is offline   Reply With Quote
Old 11-28-2017, 11:45 PM   #84
odamizu
just an egg
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: 1,586
Karma: 4300000
Join Date: Mar 2015
Device: Kindle, iOS
Quote:
Originally Posted by Doitsu View Post
I made the ASIN search case-insensitive for epub2 and epub3 books.
Awesome! Thank you muchly!
odamizu is offline   Reply With Quote
Old 12-09-2017, 02:48 PM   #85
msh2050
Enthusiast
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: 27
Karma: 122330
Join Date: Sep 2017
Device: ipad , Kindle PW3
please suddenly I get this error with all books

Status: failed


************************************************** ***********
Warning: Missing TOC guide item. Use Add Semantics > Table of Contents to mark the TOC.
Warning: Missing SRL guide item. Use Add Semantics > Text to mark the SRL.
Warning: Cover not specified (cover metadata missing).
************************************************** ***********

Running KindleGen ... please wait
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\****\AppData\Local\sigil-ebook\sigil\plugins\KindleGen\plugin.py", line 551, in run
result = kgWrapper(*args)
File "C:\Users\****\AppData\Local\sigil-ebook\sigil\plugins\KindleGen\plugin.py", line 117, in kgWrapper
process = Popen(list(args), stdout=PIPE, stderr=PIPE)
File "subprocess.py", line 947, in __init__
File "subprocess.py", line 1224, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
Error: [WinError 2] The system cannot find the file specified

Last edited by msh2050; 12-10-2017 at 02:51 AM.
msh2050 is offline   Reply With Quote
Old 12-09-2017, 03:35 PM   #86
Doitsu
Grand Sorcerer
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: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
This error is usually displayed, if the Kindlegen binary couldn't be found, or couldn't be executed because it was either locked by another process, e.g. Kindle Previewer, or blocked by an Antivirus program.

Try the following:

1. Uninstall the KindleGen plugin.
2. Select Edit > Preferences > Open Preferences Location.
3. Double-click the plugins_prefs folder and delete the KindleGen preferences folder.
4. Re-install KindleGen.

If this doesn't help, temporarily disable your Antivirus program before running the plugin.
Doitsu is offline   Reply With Quote
Old 12-10-2017, 03:01 AM   #87
msh2050
Enthusiast
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: 27
Karma: 122330
Join Date: Sep 2017
Device: ipad , Kindle PW3
Quote:
Originally Posted by Doitsu View Post
This error is usually displayed, if the Kindlegen binary couldn't be found, or couldn't be executed because it was either locked by another process, e.g. Kindle Previewer, or blocked by an Antivirus program.

Try the following:

1. Uninstall the KindleGen plugin.
2. Select Edit > Preferences > Open Preferences Location.
3. Double-click the plugins_prefs folder and delete the KindleGen preferences folder.
4. Re-install KindleGen.

If this doesn't help, temporarily disable your Antivirus program before running the plugin.
Thanks a lot.
It worked for me
msh2050 is offline   Reply With Quote
Old 12-10-2017, 09:56 AM   #88
exaltedwombat
Guru
exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.
 
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
Is there any benefit in this plugin over dropping the epub file into Kindle Previewer? Serious question, not a snark!

Last edited by exaltedwombat; 12-10-2017 at 09:58 AM.
exaltedwombat is offline   Reply With Quote
Old 12-10-2017, 10:45 AM   #89
msh2050
Enthusiast
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: 27
Karma: 122330
Join Date: Sep 2017
Device: ipad , Kindle PW3
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 suggest you to merge this script with your plugin.
msh2050 is offline   Reply With Quote
Old 12-10-2017, 11:15 AM   #90
Doitsu
Grand Sorcerer
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: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
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?
My KindleGen plugin is primarily intended for KDP authors and book designers. All other users are better off simply using Calibre.
Besides negmarg.py apparently depends on the Calibre API and I simply don't have the time (and skills) to rewrite it for the Sigil API.
Doitsu is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
epubcheck plugin for Sigil Doitsu Plugins 502 02-20-2024 06:58 AM
[Plugin] PunctuationSmarten Sigil plugin DiapDealer Plugins 138 07-11-2023 11:22 AM
[Plugin] KindleImport Sigil plugin DiapDealer Plugins 187 07-04-2022 10:11 AM
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 04:44 PM.


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