![]() |
#196 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
|
|
![]() |
![]() |
![]() |
#197 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#198 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
|
![]() |
![]() |
![]() |
#199 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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!
|
![]() |
![]() |
![]() |
#200 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,837
Karma: 6120478
Join Date: Nov 2009
Device: many
|
|
![]() |
![]() |
![]() |
#201 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#202 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,736
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#203 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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() KevinH |
![]() |
![]() |
![]() |
#204 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,736
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
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.
|
![]() |
![]() |
![]() |
#205 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,837
Karma: 6120478
Join Date: Nov 2009
Device: many
|
|
![]() |
![]() |
![]() |
#206 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#207 | ||
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
|
Quote:
Quote:
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. |
||
![]() |
![]() |
![]() |
#208 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
![]() |
![]() |
![]() |
#209 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 ![]() |
![]() |
![]() |
![]() |
#210 |
Junior Member
![]() 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! |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |