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 04-18-2019, 10:03 AM   #121
LittleMissS
Enthusiast
LittleMissS began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Apr 2019
Device: none
Missing SRL

Status: success


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

What is SRL? (Googling is not great for this) I created a mobi without it. Will not having whatever SRL is, be problematic in my mobi?

Should I follow 'Use Add Semantics > Text to mark the SRL.' and if so, How?
I cannot find anything about Semantics.
LittleMissS is offline   Reply With Quote
Old 04-18-2019, 10:23 AM   #122
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,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by LittleMissS View Post
What is SRL? (Googling is not great for this) I created a mobi without it. Will not having whatever SRL is, be problematic in my mobi?
SRL = Start Reading Location. It's an entry that was used to define the beginning of the book. However, Amazon no longer supports it. I.e., you can ignore this warning.
If you want to suppress this message, right-click the first chapter in the Book Browser window, select Add Semantics... > Text and click OK.

To suppress the cover warning add a cover image to the Images folder, right-click it and select Cover Image.

Last edited by Doitsu; 04-18-2019 at 10:25 AM.
Doitsu is offline   Reply With Quote
Advert
Old 04-18-2019, 10:28 AM   #123
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: 6,470
Karma: 84000001
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
Quote:
Originally Posted by LittleMissS View Post
What is SRL? (Googling is not great for this) I created a mobi without it. Will not having whatever SRL is, be problematic in my mobi?
Start Reading Location, the point in the book where it should be the first time a new reader opens it. Amazon has changed their policy so that they set this location themselves for books that they sell, usually to the start of the first chapter, so setting this no longer matters.

Edit: ninja’d
jhowell is offline   Reply With Quote
Old 04-18-2019, 11:30 AM   #124
LittleMissS
Enthusiast
LittleMissS began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Apr 2019
Device: none
Quote:
Originally Posted by Doitsu View Post
SRL = Start Reading Location. It's an entry that was used to define the beginning of the book. However, Amazon no longer supports it. I.e., you can ignore this warning.
If you want to suppress this message, right-click the first chapter in the Book Browser window, select Add Semantics... > Text and click OK.

To suppress the cover warning add a cover image to the Images folder, right-click it and select Cover Image.
Is suppressing it just for my benefit (so I don't get the message) or is it also for the benefit of the the readers, so they don't get confused by getting the message if it would come up on their device?
LittleMissS is offline   Reply With Quote
Old 04-18-2019, 11:46 AM   #125
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,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by LittleMissS View Post
Is suppressing it just for my benefit (so I don't get the message) or is it also for the benefit of the the readers, so they don't get confused by getting the message if it would come up on their device?
The message is a warning that only Sigil KindleGen plugin users will see before KindleGen is executed in the background. (The only popups that Kindle devices and apps will display are dictionary and footnote definitions.)

Last edited by Doitsu; 04-18-2019 at 11:49 AM.
Doitsu is offline   Reply With Quote
Advert
Old 07-14-2019, 04:08 PM   #126
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,583
Karma: 4300000
Join Date: Mar 2015
Device: Kindle, iOS
The KindleGen plugin is giving me some trouble on Sigil 0.9.15, which may be due to the same problem happening with the SVG plugin here. If so, the fix KevinH implemented should take care of it (and I'm hoping that's the case), but I wanted to report this just in case this is useful to anyone.

When I run KindleGen on a book with absolutely no images, it runs fine.

When there are jpgs, I get this:

Spoiler:

Code:
Status: failed

Traceback (most recent call last):
  File "/Applications/Sigil.app/Contents/plugin_launchers/python/launcher.py", line 135, in launch
    self.exitcode = target_script.run(container)
  File "/Users/oda/Library/Application Support/sigil-ebook/sigil/plugins/KindleGen/plugin.py", line 561, in run
    img = Image.open(BytesIO(imgdata)).convert('L')
  File "site-packages/PIL/Image.py", line 2687, in open
OSError: cannot identify image file <_io.BytesIO object at 0x107847780>
Error: cannot identify image file <_io.BytesIO object at 0x107847780>


When all the images are PNG, I get this:

Spoiler:

Code:
Status: failed

Traceback (most recent call last):
  File "/Applications/Sigil.app/Contents/plugin_launchers/python/launcher.py", line 135, in launch
    self.exitcode = target_script.run(container)
  File "/Users/oda/Library/Application Support/sigil-ebook/sigil/plugins/KindleGen/plugin.py", line 542, in run
    cover_def = os.path.basename(cover_href)
  File "posixpath.py", line 146, in basename
TypeError: expected str, bytes or os.PathLike object, not NoneType
Error: expected str, bytes or os.PathLike object, not NoneType


Before I pinpointed this to images, I tried a clean install (deleted KindleGen plugin and preferences folder then added the plugin back in). I expected it to ask me for the filepath to KindleGen on first-run, but instead got the following error message. (I solved it by copying the json file from a backup of my preferences folder, but would have been stuck if I didn't have the backup.)

Spoiler:

Code:
Status: failed

Traceback (most recent call last):
  File "/Applications/Sigil.app/Contents/plugin_launchers/python/launcher.py", line 135, in launch
    self.exitcode = target_script.run(container)
  File "/Users/oda/Library/Application Support/sigil-ebook/sigil/plugins/KindleGen/plugin.py", line 605, in run
    app = Dialog(root, bk)
  File "/Users/oda/Library/Application Support/sigil-ebook/sigil/plugins/KindleGen/plugin.py", line 152, in __init__
    self.initUI()
  File "/Users/oda/Library/Application Support/sigil-ebook/sigil/plugins/KindleGen/plugin.py", line 193, in initUI
    kg_path = findKindleGen()
  File "/Users/oda/Library/Application Support/sigil-ebook/sigil/plugins/KindleGen/plugin.py", line 118, in findKindleGen
    if os.path.isfile(default_osx_path3):
NameError: name 'default_osx_path3' is not defined
Error: name 'default_osx_path3' is not defined


As I said, I'm hoping the fix KevinH implemented for the InsertSVG plugin will solve the image problem, but I wanted to report all this in case it is useful to anyone.

Thank you!
odamizu is offline   Reply With Quote
Old 07-14-2019, 04:51 PM   #127
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,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
The first two problems are related to Pillow and the last one is an actual bug that I'll fix in the next plugin version.

Try the following workarounds:

1. Delete or comment the following section (lines 116-119)

Spoiler:
Code:
        # /Applications/Kindle Previewer 4.app/Contents/MacOS/lib/kindlegen/fc/bin/kindlegen [*** for future versions ***]
        default_osx_path2 = os.path.join('/Applications', 'Kindle Previewer 4.app', 'Contents', 'MacOS', 'lib', 'fc', 'bin', 'kindlegen')
        if os.path.isfile(default_osx_path3):
            kg_path = default_osx_path3


2. Delete or comment out the following section (492-500):

Spoiler:
Code:
        # look for cover image
        cover_id = None
        cover_item = opf_soup.find('item', {'properties' : 'cover-image'})
        if cover_item:
            cover_href = cover_item['href']
            cover_id = bk.href_to_id(cover_href)
            cover_def = os.path.basename(cover_href)
        else:
            plugin_warnings += '\nWarning: Cover not specified (cover-image property missing).'


3. Delete or comment out the following section (lines 555-569)

Spoiler:
Code:
    #------------------------------
    # check minimum cover width 
    #------------------------------
    img = None
    if cover_id and os.path.splitext(bk.id_to_href(cover_id))[1][1:].upper() != 'SVG':
        imgdata = bk.readfile(cover_id)
        img = Image.open(BytesIO(imgdata)).convert('L')
        width, height = img.size
        if width < 500:
            plugin_warnings += '\nWarning: The cover is too small: ' + str(width) + ' x ' + str(height)
        # check recommended dpi
        if prefs['check_dpi'] == True:
            xdpi, ydpi = img.info['dpi']
            if (int(xdpi) or int(ydpi)) < 300:
                plugin_warnings += '\nInfo: Amazon recommends 300 dpi cover images. Your image has: ' + str(int(xdpi)) + ' x ' + str(int(ydpi)) + ' dpi.'

3. Make sure to also uncheck the Generate Thumbnail option in the GUI.

With these changes in place you should be able to run the plugin again.
Doitsu is offline   Reply With Quote
Old 07-14-2019, 07:28 PM   #128
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: 667
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by Doitsu View Post
SRL = Start Reading Location. It's an entry that was used to define the beginning of the book. However, Amazon no longer supports it. I.e., you can ignore this warning.
If you’re loading the azw/mobi on your kindle via usb, the kindle does respect the SRL you set in Sigil. It’s the page you see the first time you open it and where you go if you choose “Goto Beginning”.

I would prefer that this be the cover, but that’s not allowed, so I usually make it the title page. Amazon would make it probably the first page of chapter 1.

I use kindlegen to check on whether and where the SRL, TOC and cover have been set, then abort and adjust them if necessary. Faster than looking in the OPF where they are listed or hovering over the file list and checking likely files.

Last edited by AlanHK; 07-14-2019 at 07:41 PM.
AlanHK is offline   Reply With Quote
Old 07-15-2019, 01:08 AM   #129
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,583
Karma: 4300000
Join Date: Mar 2015
Device: Kindle, iOS
Quote:
Originally Posted by Doitsu View Post
... Try the following workarounds ... With these changes in place you should be able to run the plugin again.
Excellent! Thank you so much!
odamizu is offline   Reply With Quote
Old 07-21-2019, 01:30 AM   #130
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,583
Karma: 4300000
Join Date: Mar 2015
Device: Kindle, iOS
Updated KindleGen plugin working perfectly on 0.9.16. Thank you KevinH for the Pillow fix and thank you Doitsu for the new version with bug fix!

Quote:
Originally Posted by Doitsu View Post
The first two problems are related to Pillow and the last one is an actual bug that I'll fix in the next plugin version.
odamizu is offline   Reply With Quote
Old 11-11-2019, 02:24 AM   #131
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,583
Karma: 4300000
Join Date: Mar 2015
Device: Kindle, iOS
nevermind, it's not you, it's me

Last edited by odamizu; 11-11-2019 at 03:26 AM.
odamizu is offline   Reply With Quote
Old 04-15-2020, 09:29 AM   #132
AlaVander
Enthusiast
AlaVander can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterAlaVander can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterAlaVander can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterAlaVander can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterAlaVander can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterAlaVander can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterAlaVander can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterAlaVander can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterAlaVander can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterAlaVander can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterAlaVander can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 25
Karma: 12676
Join Date: Jan 2020
Device: none
I don't know if you are still maintaining this plugin, I want your help. Because when generating a kfx file, it will automatically add page numbers to books. You know, most of the time, page numbers are meaningless. But I can't find an option to turn it off, how can I solve this problem?
AlaVander is offline   Reply With Quote
Old 04-15-2020, 11:27 AM   #133
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,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by AlaVander View Post
But I can't find an option to turn it off, how can I solve this problem?
You can fix this by editing plugin.py. Please change the following:
Spoiler:
Code:
                # assemble command line parameters
                if prefs['add_asin'] == True:
                    if isosx:
                        args = [mac_calibre_debug_path, '-r', 'KFX Output', '--', '-a', asin, '-p', '0', epub_path, kfx_path]
                    else:
                        args = ['calibre-debug', '-r', 'KFX Output', '--', '-a', asin, '-p', '0', epub_path, kfx_path]
                else:
                    if isosx:
                        args = [mac_calibre_debug_path, '-r', 'KFX Output', '--', '-p', '0', epub_path, kfx_path]
                    else:
                        args = ['calibre-debug', '-r', 'KFX Output', '--', '-p', '0', epub_path, kfx_path]


to:

Spoiler:
Code:
                # assemble command line parameters
                if prefs['add_asin'] == True:
                    if isosx:
                        args = [mac_calibre_debug_path, '-r', 'KFX Output', '--', '-a', asin, epub_path, kfx_path]
                    else:
                        args = ['calibre-debug', '-r', 'KFX Output', '--', '-a', asin, epub_path, kfx_path]
                else:
                    if isosx:
                        args = [mac_calibre_debug_path, '-r', 'KFX Output', '--', epub_path, kfx_path]
                    else:
                        args = ['calibre-debug', '-r', 'KFX Output', '--', epub_path, kfx_path]
Doitsu is offline   Reply With Quote
Old 04-15-2020, 09:34 PM   #134
AlaVander
Enthusiast
AlaVander can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterAlaVander can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterAlaVander can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterAlaVander can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterAlaVander can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterAlaVander can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterAlaVander can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterAlaVander can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterAlaVander can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterAlaVander can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterAlaVander can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 25
Karma: 12676
Join Date: Jan 2020
Device: none
This is useful, thank you very much.
AlaVander is offline   Reply With Quote
Old 05-27-2021, 10:08 AM   #135
uiop_on
Junior Member
uiop_on began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2021
Device: Kindle Paperwhite
Hi, I previously used Sigil + kindlegen in the past and it worked great, really excellent and thanks for the development work.

I'm coming to reinstall it on a new PC and having a bit of trouble. Here's the steps so far:
- Windows 10 64-bit
- Installed Sigil (v1.5.1 - ok)
- Installed Amazon Kindle Previewer 3 (v3.53.0 - ok)
- Downloaded kindlegen from GitHub (kindlegen-3.1.1.zip - ok)
- in Sigil: Edit > Preferences > Plugins:
- tick 'Use bundled python'
- click 'Add Plugin', select the zip file from windows downloads folder
= "Error: Plugin not a valid Sigil plugin."

I'm sure there's probably something obvious I've missed, any reason why the plugin won't install?

Cheers.
uiop_on 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 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 05:39 PM.


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