![]() |
#211 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,631
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Last edited by DiapDealer; 03-09-2017 at 05:24 PM. |
|
![]() |
![]() |
![]() |
#212 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,735
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
It's also possible to convert docx files to epub3 books with pandoc, but the last time I checked, it broke some hyperlinks. If you get pandoc to work, you could download the stand-alone epubcheck validator and run it after the pandoc conversion. |
|
![]() |
![]() |
Advert | |
|
![]() |
#213 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,767
Karma: 30237628
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@explorabeth - I think Mammoth (DOCX Import PI uses it) can be run from command line - to do conversions en-masse in a script
BR Last edited by BetterRed; 03-09-2017 at 06:45 PM. |
![]() |
![]() |
![]() |
#214 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,817
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Also, This plugin is pretty self-contained in that it really only makes use of very basic calls to access xhtml files, create a nav, modify the content.opf, etc of the current book. I am sure Calibre has similar or better capabilities in their edit plugins. So if someone wanted to port it to Calibre, I would be happy to license it under GPL 2 or GPL 3 so that all can benefit.
Just let me know. |
![]() |
![]() |
![]() |
#215 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,631
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
The problem on Linux seems to be the line: Code:
localRoot.overrideredirect(True) If that line is absolutely needed on Macs, you may want to limit using it on that platform with an "if sys.platform.startswith('darwin')" EDIT: indeed, changing the code to the following makes everything work "normally" on Linux/Windows for me. I assume it would fix the Mac issue as well. Code:
localRoot = tkinter.Tk() localRoot.withdraw() if sys.platform.startswith('darwin'): # 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() Last edited by DiapDealer; 03-12-2017 at 09:15 PM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#216 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,735
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
|
|
![]() |
![]() |
![]() |
#217 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,631
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
What about the taskbar behavior I mentioned concerning that one specific line? Does the file dialog create a new item on your taskbar with the new code? |
|
![]() |
![]() |
![]() |
#218 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,735
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
(Your modified code also worked fine on my Arch Linux machine.) |
|
![]() |
![]() |
![]() |
#219 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,817
Karma: 6000000
Join Date: Nov 2009
Device: many
|
If that extra code is not needed for Windows and Linux (ie. if the old original code works fine even on Linux with different window managers), then restricting just to darwin is fine. I will change that in ePub3-itizer master and use it for the next release.
Thanks |
![]() |
![]() |
![]() |
#220 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,817
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Okay, I pushed that change to ePub3-itizer master. I will wait a week or two to see if any other bugs are reported and then push it out as version 0.3.8.
Version 0.3.6 will continue to work well for Linux and Windows users. Mac users should choose Version 0.3.7, and then all users can update to 0.3.8 when it is released. For all current and previous releases - see the ePub3-itizer github site: https://github.com/kevinhendricks/eP.../master/plugin |
![]() |
![]() |
![]() |
#221 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,631
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Thanks, Kevin!
|
![]() |
![]() |
![]() |
#222 | |
Connoisseur
![]() Posts: 67
Karma: 10
Join Date: Sep 2014
Device: sony prs 2
|
Quote:
running the plugin swiftly runs through the files but the python dialog box for saving is hidden at the back of my screen and i can't click on it there is a spinning beachball. Any suggestions i even updated python to 3.6 |
|
![]() |
![]() |
![]() |
#223 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,817
Karma: 6000000
Join Date: Nov 2009
Device: many
|
What exact version of Sigil and exact version of this plugin are you using? Upgrading to Python 3.6 will not help. The OSX version of Sigil embeds the correct version of Python inside. It will always use that version unless you tell it not to in Plugin Preferences.
The spinning beachball can indicate a system crash of some kind. So I need more information in order to help. |
![]() |
![]() |
![]() |
#224 | |
Connoisseur
![]() Posts: 67
Karma: 10
Join Date: Sep 2014
Device: sony prs 2
|
Quote:
loaded Qt 5.61 OSX Yosemite Plugin Versions 0.37 0.36 0.35 0.34 0.33 0.32 I downloaded the repository. I've tested on ubuntu in parallels with version 8.2 Sigil and that works fine. I've just rerun and got the same failed result on osx and see after cancelling because of the spinning beachball it says launcher process crashed. If there is anything i can do, run a debug version. I am more than willing to help. thank you |
|
![]() |
![]() |
![]() |
#225 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,817
Karma: 6000000
Join Date: Nov 2009
Device: many
|
First stick with plugin version 0.3.7. Stick with Sigil 0.9.7. Make sure you have installed the latest Tk as explained in each Sigil release announcement specifically for Mac Users.
Under Manage plugins, delete all versions of ePub3-itizer. Also make sure the box is checked to use the bundled internal Python. Then go to this thread and or the link provided and download a fresh copy of ePub3-itizer v0.3.7. Use Finder to manually move the plugin Zip folder to your Desktop (This is required for Sierra). Then fire up Sigil and use Manage Plugins to install the eUb3-itizer plugin. Please triplecheck you have checked the box to use the bundled internal python. Load your epub into Sigil and run Flightcrew or eoubcheck to verify your epub is a valid epub2. Then run epub3-tizer on it. If no save as dialog appears, then check the Finder panel to see if a rocket blasting off icon is in the panel, and select that icon if needed to force the save-as dialog to come to the front. If you get a launcher error, then your copy of Sigil is broken. Download a fresh copy (verifying the checksums as directed) and repeat all of the above. Please let me know what problems you run into. KevinH |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |