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 01-12-2016, 09:17 PM   #181
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,607
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by tbrosz View Post
P.S. Not sure what "regex" is, but I'll avoid it.
Don't avoid it. Just don't use it to change the filenames in your links!

If you let it, regex will become your friend in so many other ways.
DiapDealer is offline   Reply With Quote
Old 01-12-2016, 11:46 PM   #182
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by tbrosz View Post
P.S. Not sure what "regex" is, but I'll avoid it.
"regex" -- Search and Replace, with powerful pattern matching rules. I assumed that was what you used to modify the link destinations.

http://www.regular-expressions.info/

An amazing tool for editing, with many, many, many, many ways it can help you.
But the problem is, you shouldn't be modifying link destinations without modifying the filenames as well.... regardless of how you do the modifications.
eschwartz is offline   Reply With Quote
Advert
Old 01-30-2016, 12:37 PM   #183
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,805
Karma: 6000000
Join Date: Nov 2009
Device: many
ePub3-itizer v035 now available

See the first post of this thread to download ePub3-itizer_v035.zip

It adds code to allow only epub2 epubs as input to the plugin, support for autostart in the plugin.xml and removes unnedded duplicate code to simplify support.

KevinH
KevinH is offline   Reply With Quote
Old 02-12-2016, 04:32 AM   #184
tinmug
Member
tinmug began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jan 2016
Device: iPad, Kindle Paperwhite
Please excuse my complete and utter ignorance ...

Attempting to run (what was exported as epub 3 from InDesign) your ePub3-itizer in the current build of Sigil, but I run into a string of errors. I have installed Python 3.4 – which appears to be the root of the problem. I don't have the foggiest where to start with getting around this ...

Status: failed

Traceback (most recent call last):
File "/Applications/Sigil.app/Contents/plugin_launchers/python/launcher.py", line 134, in launch
target_script = __import__(script_module)
File "/Users/Me/Library/Application Support/sigil-ebook/sigil/plugins/ePub3-itizer/plugin.py", line 29, in <module>
import tkinter
File "/Applications/Sigil.app/Contents/Frameworks/Python.framework/Versions/3.4/lib/python3.4/tkinter/__init__.py", line 38, in <module>
import _tkinter # If this fails your Python may not be configured for Tk
ImportError: dlopen(/Applications/Sigil.app/Contents/Frameworks/Python.framework/Versions/3.4/lib/python3.4/lib-dynload/_tkinter.so, 2): Library not loaded: /Library/Frameworks/Tcl.framework/Versions/8.6/Tcl
Referenced from: /Applications/Sigil.app/Contents/Frameworks/Python.framework/Versions/3.4/lib/python3.4/lib-dynload/_tkinter.so
Reason: image not found
Error: dlopen(/Applications/Sigil.app/Contents/Frameworks/Python.framework/Versions/3.4/lib/python3.4/lib-dynload/_tkinter.so, 2): Library not loaded: /Library/Frameworks/Tcl.framework/Versions/8.6/Tcl
Referenced from: /Applications/Sigil.app/Contents/Frameworks/Python.framework/Versions/3.4/lib/python3.4/lib-dynload/_tkinter.so
Reason: image not found
tinmug is offline   Reply With Quote
Old 02-12-2016, 05:22 AM   #185
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,731
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
@tinmug: If you have a Mac, you'll have to install ActiveState's ActiveTcl Community Edition.

Last edited by Doitsu; 02-12-2016 at 05:25 AM.
Doitsu is offline   Reply With Quote
Advert
Old 02-12-2016, 07:04 AM   #186
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,607
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
If you exported from InDesign as an EPUB3, you have no need to use the ePub3-itizer plugin. The plugin is only needed to convert epub2s to epub3s.

Neither do you have any need to install Python 3.4 separately to run plugins with the latest Sigil. You only need the ActiveState ActiveTCL that Doitsu mentioned (on Mac only).
DiapDealer is offline   Reply With Quote
Old 02-16-2016, 09:28 AM   #187
tinmug
Member
tinmug began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jan 2016
Device: iPad, Kindle Paperwhite
Quote:
Originally Posted by DiapDealer View Post
If you exported from InDesign as an EPUB3, you have no need to use the ePub3-itizer plugin. The plugin is only needed to convert epub2s to epub3s.

Neither do you have any need to install Python 3.4 separately to run plugins with the latest Sigil. You only need the ActiveState ActiveTCL that Doitsu mentioned (on Mac only).
Thank you kindly for clarifying. And thanks again for your wealth of knowledge Doitsu.
tinmug is offline   Reply With Quote
Old 03-26-2016, 10:57 AM   #188
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,805
Karma: 6000000
Join Date: Nov 2009
Device: many
ePub3-itizer v036 now available

See the first post of this thread to download ePub3-itizer_v036.zip

This is a bug fix release to prevent xml headers from interfering with the plugin's smil related code.

KevinH
KevinH is offline   Reply With Quote
Old 04-06-2016, 03:46 AM   #189
AlPe
Digital Amanuensis
AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.
 
AlPe's Avatar
 
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
Kevin, thank you.
AlPe is offline   Reply With Quote
Old 04-07-2016, 11:43 AM   #190
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,805
Karma: 6000000
Join Date: Nov 2009
Device: many
Hi Alpe
No problems! Sorry it took me so long. I have my volunteer spoon in too many pots so to speak.

Kevin
KevinH is offline   Reply With Quote
Old 04-11-2016, 12:22 AM   #191
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
I found a weird effect when I converted a file with some commented out code:

Original code:
Quote:
<!--<p class="contents"><a href="../Images/ALR30-front.jpg">Front Cover</a></p> -->
<p class="contents"><a href="../Text/ALR30-front.xhtml">Front Cover</a></p>
After conversion:
Quote:
<!--<p class="contents" ><a href="../Images/ALR30-front.jpg"/> <p class="contents"><a href="../Text/ALR30-front.xhtml">Front Cover</a></p>

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.

Last edited by AlanHK; 04-11-2016 at 12:31 AM.
AlanHK is offline   Reply With Quote
Old 04-11-2016, 03:29 AM   #192
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,731
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by AlanHK View Post
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).
This is one thing that I also don't like. I prefer the Desktop folder.
If you'd also rather save epub3 files in the Desktop folder you can easily change this yourself:
  1. Go to the ePub3-itizer folder (Edit > Preferences > Open Preferences Location > plugins > ePub3-itizer).
  2. Locate plugin.py and open it with a text editor.
  3. Go to line #92 and change it from:

    Code:
    _USER_HOME = os.path.expanduser("~")
    to:

    Code:
    _USER_HOME = os.path.join(os.path.expanduser("~"), 'Desktop')
Doitsu is offline   Reply With Quote
Old 04-11-2016, 04:27 AM   #193
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 Doitsu View Post
[*]Locate plugin.py and open it with a text editor.[*]Go to line #92 and change it
Thanks, but how do I make it to a specific folder?
I tried
_USER_HOME = c:\v
since that's the parent folder of where I do most of my books) but that gave a syntax error.
AlanHK is offline   Reply With Quote
Old 04-11-2016, 04:38 AM   #194
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,731
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by AlanHK View Post
Thanks, but how do I make it to a specific folder?
You'll need to change the backslash to a slash or write the backslash twice. Also don't forget to enclose the path in single or double quotes. For example:

Code:
_USER_HOME = 'C:/v'
or

Code:
_USER_HOME = 'C:\\v'
Doitsu is offline   Reply With Quote
Old 04-11-2016, 06:57 AM   #195
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 Doitsu View Post
You'll need to change the backslash to a slash or write the backslash twice. Also don't forget to enclose the path in single or double quotes. For example:
Thanks. That works. Just not familiar with Python syntax.
AlanHK 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 01:17 AM.


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