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 04-11-2016, 08:14 AM   #196
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: 8,837
Karma: 6120478
Join Date: Nov 2009
Device: many
That is an old bug in the Sigil plugin quickparser.py code that doesn't handle comments without a space after the <!-- . It was fixed previously but the fix got lost somehow or never committed properly to master.

I will fix this for the next Sigil release. To temporarily work around it please add single space after the start of the comment "<!--" string.

Thank you for your bug report.

KevinH

Quote:
Originally Posted by AlanHK View Post
I found a weird effect when I converted a file with some commented out code:

Original code:


After conversion:



It has deleted the comment close bracket and also the title of the commented out image link.
So the comment is not closed, the rest of the page disappears, and is invalid.

I would expect whatever I put inside a comment tag should just pass through any conversion.


A lesser annoyance: After the conversion finishes, it asks for a save location and defaults to the top level of "Documents and Settings" every time (I'm using Windows). So I have to click up and down to find the folder I'm working in. Next time it's the same. I would like an option to default save to the same folder as the source, and/or the same folder as used last time.
KevinH is online now   Reply With Quote
Old 04-11-2016, 08:32 PM   #197
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: 8,837
Karma: 6120478
Join Date: Nov 2009
Device: many
The handling of comments in both xhtml and xml have been made more robust. This fix has been committed to Sigil master and will appear in the next release of Sigil.

Thank you for your bug report!
KevinH
KevinH is online now   Reply With Quote
Old 04-11-2016, 09:52 PM   #198
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: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by KevinH View Post
The handling of comments in both xhtml and xml have been made more robust.
Thanks.
AlanHK is offline   Reply With Quote
Old 11-05-2016, 03:01 PM   #199
graycyn
Wizard
graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.
 
Posts: 1,591
Karma: 11722446
Join Date: Aug 2010
Location: NE Oregon
Device: Kobo Sage, Pocketbook Era, Kobo Forma, Kindle Oasis 2
I just tried the plugin for the first time and wish to say THANKS SO MUCH for creating it!
graycyn is offline   Reply With Quote
Old 11-06-2016, 01:31 PM   #200
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: 8,837
Karma: 6120478
Join Date: Nov 2009
Device: many
You are very welcome. I am glad you found it useful.

KevinH

Quote:
Originally Posted by graycyn View Post
I just tried the plugin for the first time and wish to say THANKS SO MUCH for creating it!
KevinH is online now   Reply With Quote
Old 03-06-2017, 11:12 AM   #201
ibu
Addict
ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.
 
Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
I tried to use the plugin with a valid epub2 and Sigil 0.9.7 on macOS.

The plugin starts but doesn't stop. It freezes Sigil. Reproducable.

My epub2 file:
https://www.dropbox.com/s/t47l4dlpc3....testcase.epub
ibu is offline   Reply With Quote
Old 03-06-2017, 11:50 AM   #202
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,736
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by ibu View Post
I tried to use the plugin with a valid epub2 and Sigil 0.9.7 on macOS.

The plugin starts but doesn't stop. It freezes Sigil. Reproducable.

My epub2 file:
https://www.dropbox.com/s/t47l4dlpc3....testcase.epub
It doesn't fail with the Windows and Linux versions.

1. Did you install the macOS version of ActiveTCL 8.6.4.1?
2. If yes, you should see a small rocket icon in the dock that you'll need to click to select the output file name.


Last edited by Doitsu; 03-06-2017 at 11:52 AM.
Doitsu is offline   Reply With Quote
Old 03-06-2017, 12:59 PM   #203
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: 8,837
Karma: 6120478
Join Date: Nov 2009
Device: many
It still will sometimes not appear as anything other than an icon even with the latest tk.

I spent some time searching the web and found the following potential solution:

Code:
    localRoot = tkinter.Tk()
    localRoot.withdraw()
 
    # localRoot is is an empty topmost root window that is hidden by withdrawing it
    # but localRoot needs to be centred, and lifted and focus_force used
    # so that its child dialog will inherit focus upon launch
    localRoot.overrideredirect(True)
    # center on screen but make size 0 to hide the empty localRoot
    w = localRoot.winfo_screenwidth()
    h = localRoot.winfo_screenheight()
    x = int(w/2)
    y = int(h/2)
    localRoot.geometry('%dx%d+%d+%d' % (0, 0, x, y))
    localRoot.deiconify()
    localRoot.lift()
    localRoot.focus_force()

    fpath = tkinter_filedialog.asksaveasfilename(
        parent=localRoot,
        title="Save ePub3 as ...",
        initialfile=fname,
        initialdir=_USER_HOME,
        defaultextension=".epub"
        )
    # localRoot.destroy()                                                                                                       
    localRoot.quit()
If this added code will not hurt anything on Windows or Linux I can add it to the plugin to prevent this type of issue from happening to others.

KevinH
KevinH is online now   Reply With Quote
Old 03-06-2017, 01:46 PM   #204
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,736
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by KevinH View Post
If this added code will not hurt anything on Windows or Linux I can add it to the plugin to prevent this type of issue from happening to others.
For testing purposes I replaced lines 256-266 in plugin.py with your code and it didn't appear to hurt anything on Windows or Linux.
Doitsu is offline   Reply With Quote
Old 03-06-2017, 01:56 PM   #205
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: 8,837
Karma: 6120478
Join Date: Nov 2009
Device: many
Excellent! Thanks!
New version coming soon.

Quote:
Originally Posted by Doitsu View Post
For testing purposes I replaced lines 256-266 in plugin.py with your code and it didn't appear to hurt anything on Windows or Linux.
KevinH is online now   Reply With Quote
Old 03-06-2017, 02:11 PM   #206
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: 8,837
Karma: 6120478
Join Date: Nov 2009
Device: many
New version to hopefully make it clearer to users that the plugin is running as indicated by the File Dialog finally getting focus and not being iconified - especially on MacOSX

Thanks to Doitsu for testing the "fix" on Windows and Linux to make sure it did not break anything.

See the first posting in this thread for the download
KevinH is online now   Reply With Quote
Old 03-06-2017, 02:19 PM   #207
ibu
Addict
ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.
 
Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
Quote:
Originally Posted by Doitsu View Post
It doesn't fail with the Windows and Linux versions.

1. Did you install the macOS version of ActiveTCL 8.6.4.1?
Yes, exactly that version I installed some days ago.
Quote:
Originally Posted by Doitsu View Post
2. If yes, you should see a small rocket icon in the dock that you'll need to click to select the output file name.

Yes, that icon appears.

Edit:
The problem is solved.

The save as dialog does not appear inside Sigil/comes to the foreground.
It only appears, when you start "the rocket" (icon). When you affirm the save as place, the conversion happens.

Thanks for your help!

Last edited by ibu; 03-06-2017 at 02:26 PM.
ibu is offline   Reply With Quote
Old 03-06-2017, 03:13 PM   #208
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: 8,837
Karma: 6120478
Join Date: Nov 2009
Device: many
Or just use the latest version v037 of ePub3-itizer that I just uploaded to try prevent the need to touch the Python icon in the panel at all
KevinH is online now   Reply With Quote
Old 03-06-2017, 03:58 PM   #209
ibu
Addict
ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.
 
Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
Thanks for your helpful plugin Kevin and that incredible fast implementation!
What a really nice forum! So many supporting, engaged and friendly people here! I enjoy it. Even if the English is so poor as mine
ibu is offline   Reply With Quote
Old 03-09-2017, 05:09 PM   #210
explorabeth
Junior Member
explorabeth began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Mar 2017
Device: none
Hello all, forgive me if this belongs on or already exists on another thread, I will gladly take a redirection.

I am in the accessibility field and have to use EPUB3. I know not many people support or are developing for EPUB3. Currently, I am converting from docx to EPUB2 in Calibre and using Sigil to convert EPUB2 to 3. I have a small team helping me with this task for the conversion of hundreds of books.

My goals are to condense the workflow down to 1 software for this process. Is there any way that I can edit or incorporate the epubitizer and epubchecker into a Calibre plugin? Has this already been done?

Thanks for your advice!
explorabeth is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Conversion Output] KePub Output Plugin jgoguen Plugins 588 03-28-2025 02:26 PM
Create a javascript quizz for Epub3 in Sigil BertrandThibaut Sigil 3 01-26-2014 09:04 AM
An epub3 version of Sigil ? apulia03 Sigil 9 11-28-2012 01:07 AM
Plugin not customizable: Plugin: HTML Output does not need customization flyingfoxlee Conversion 2 02-24-2012 02:24 AM
epub3 Sigil Poetry(fixed layout) Giggleton Sigil 7 04-04-2011 12:58 PM


All times are GMT -4. The time now is 09:58 AM.


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