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 08-14-2017, 06:40 PM   #1
Doitsu
Wizard
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: 4,798
Karma: 16220781
Join Date: Dec 2010
Device: Kindle PW2
[Plugin] epub2 output

Updated: December 5, 2019
Current Version: "0.2.7"

This simple plugin will convert most valid commercial epub3 fiction books to valid epub2 books for use with older epub2 apps and readers. (Some post-editing might still be required.)

Note that this plugin is not a full-fledged epub3 converter; it handles only the most frequently used epub3 tags and attributes and won't work with enhanced epub3 books that contain JavaScript, MathML, audio, video or SMIL files.

This plugin does not support non-standard epubs. Select Tools > Restructure Epub to Sigil Norm before running this plugin with Sigil 1.0 and higher.


Installation:

1. Select Manage Plugins from the Plugins menu and select Use Bundled Python, if it isn't already selected.
2. Click Add Plugin and select ePub2_v0.2.7.zip. This will install the epub2 output plugin, which you can select via Plugins > Output > ePub2.

Settings:

The plugin doesn't come with a GUI, but a couple of settings can be changed via ePub2.json entries:

Code:
{
  "delete_epub_type": false,
  "output_dir": "C:\\Users\\User\\Desktop",
  "ncx_from_nav": false
}
delete_epub_type: Change this value to true, if you want the plugin to delete epub:type attributes. (By default, they'll be changed to class attributes.)

output_dir: Change this path, if you don't want the plugin to write epub2 files to the Desktop. (Note that on Windows machines, you'll need to use two backslashes in path names.)

ncx_from_nav: Change this value to true, if you want the plugin to always generate a new toc.ncx file from the Nav xhtml file.

License: GNU General Public License v3 (GPL-3)
Attached Files
File Type: zip ePub2_v0.2.7.zip (12.3 KB, 90 views)

Last edited by Doitsu; 12-05-2019 at 05:22 AM. Reason: New version with better Sigil 1.0 support
Doitsu is offline   Reply With Quote
Old 08-15-2017, 11:08 AM   #2
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: 21,780
Karma: 119866762
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Thanks! I'll get it added to the plugin index later today.
DiapDealer is online now   Reply With Quote
Advert
Old 12-01-2019, 04:59 AM   #3
Heuswaar
Junior Member
Heuswaar began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2016
Device: Sony T2
It don't work anymore

I get the following warning:

Status: failed

Processing content.opf...

ibooks: http://vocabulary.itunes.apple.com/r...xtensions-1.0/ package prefix attribute deleted.
Package updated.

Traceback (most recent call last):
File "D:\Program Files\Sigil\plugin_launchers\python\launcher.py", line 135, in launch
self.exitcode = target_script.run(container)
File "C:\Users\boeke\AppData\Local\sigil-ebook\sigil\plugins\ePub2\plugin.py", line 207, in run
timestamp.string = timestamp.string[0:10]
AttributeError: 'NoneType' object has no attribute 'string'
Error: 'NoneType' object has no attribute 'string'
Heuswaar is offline   Reply With Quote
Old 12-01-2019, 05:19 AM   #4
Doitsu
Wizard
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: 4,798
Karma: 16220781
Join Date: Dec 2010
Device: Kindle PW2
Please check all epub3 books with EpubCheck before running this plugin, because it might fail if the input file is invalid.

The plugin failed because there's no time stamp entry in the .opf file. (Time stamps are mandatory in epub3 files.)

Time stamps look like this:

Code:
    <meta property="dcterms:modified">2019-12-01T10:06:19Z</meta>
To fix this issue, add and delete a space in an HTML file and save the epub with Sigil. This'll add the missing time stamp.
Doitsu is offline   Reply With Quote
Old 12-05-2019, 05:28 AM   #5
Heuswaar
Junior Member
Heuswaar began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2016
Device: Sony T2
Thank You, it now works if i add de date.
Heuswaar is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Plugin] ePub3-itizer - epub3 output plugin for Sigil KevinH Plugins 333 02-23-2020 04:32 PM
[Conversion Output] KePub Output Plugin jgoguen Plugins 324 02-02-2020 05:01 AM
[Plugin] KePub Output djazz Plugins 35 12-22-2019 08:42 PM
HTMLZ output plugin? Toxaris Plugins 12 01-06-2015 08:39 AM
Plugin not customizable: Plugin: HTML Output does not need customization flyingfoxlee Conversion 2 02-24-2012 03:24 AM


All times are GMT -4. The time now is 09:56 PM.


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