![]() |
#61 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 27,818
Karma: 198099188
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Note that if you're talking about old-fashioned mobis, there are no classes to rename. Because neither CSS nor class names are used in their internal markup. KindleUnpack will take those files and produce a single html-ish file you can work with. No need to convert them to htmlz. If you're talking about the newer KF8 files, then calibre edit or KindleUnpack will produce editable markup with the "original" markup and class names. You can still have the issue of multiple HTML files in that case, but I'd like to point out that both calibre's editor and Sigil both have a "Merge" feature (at least I think calibre's editor has that feature ... I know it can Split files) that allows you to combine HTML files without converting.
|
![]() |
![]() |
![]() |
#62 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
I think an excellent solution would be a calibre editor plugin that opens any type of ebook for editing, by first using the Input plugins to unpack the ebook into an OEB directory, then passing the OEB into the editor.
|
![]() |
![]() |
![]() |
#63 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
![]() |
![]() |
![]() |
#64 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 27,818
Karma: 198099188
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
|
|
![]() |
![]() |
![]() |
#65 |
temp. out of service
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,795
Karma: 24285242
Join Date: May 2010
Location: Duisburg (DE)
Device: PB 623
|
I remember having read somewhere that the Kindlegen tool packs (at least parts of) the source epubs into the ebooks. It was mentioned in the context of debloating the books. AFAIR If you used an epub as source it is added as a whole to the contents of the Kindle ebook. If you pointed to a folder of a decompressed epub, only the parts needed for structure are added, so that you don't double the content. Both would explain the preservation of internal names.
|
![]() |
![]() |
![]() |
#66 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 27,818
Karma: 198099188
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
|
|
![]() |
![]() |
![]() |
#67 |
temp. out of service
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,795
Karma: 24285242
Join Date: May 2010
Location: Duisburg (DE)
Device: PB 623
|
Oh, interesting. According to that, kindle books sold directly by the creator are more bloated, as if they were when aquired via amazon?
And - if it is so, is there a way to strip the home brewed ones? |
![]() |
![]() |
![]() |
#68 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
|
![]() |
![]() |
![]() |
#69 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
![]() |
![]() |
![]() |
#70 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
If they are sold directly by the creator, they cannot have been made by kindlegen -- it is against the kindlegen licensing.
Here in the MR library, of course, they aren't sold but freely offered. So kindlegen is permitted for usage. |
![]() |
![]() |
![]() |
#71 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,635
Karma: 23190435
Join Date: Dec 2010
Device: Kindle PW2
|
Kindlestrip is no longer required, if you use KindleGen with the -dont_append_source parameter.
|
![]() |
![]() |
![]() |
#72 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
|
![]() |
![]() |
![]() |
#73 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,019
Karma: 5449552
Join Date: Nov 2009
Device: many
|
Hi All,
Just to add fuel to the fire ... we now have a very rough but working python 2.7 plugin capability already added to Sigil (look for an alpha in two or three weeks or so) that will support "edit", "input", and "output" python plugins and has many of the features of the calibre edit style plugins. The python interpreter itself will not come as part of Sigil (how many python interpreters does one machine really need ... ;-) , but will rely on the user installing ActiveState's Active Python 2.7 release on his machine if they already do not have a working python 2.7 version (Most Mac OS X and Linux users already have python 2.7 installed by default). Once plugins are working, our first order of business will be to add a Sigil KindleUnpack plugin to give Sigil the capability to read non-drm'd Kindle ebooks directly. This is easy to do as it pretty much already exists for calibre. The idea is Sigil KindleUnpack plugin will load the "source" if the source is included in the mobi, otherwise the default epub created from the KF8/AZW3 side of the mobi will be used, but if no KF8, it will decode the old mobi html into more modern xhtml and allow it to be imported. Similarly, using python, we can create an gui interface to kindlegen and run kindlegen as part of an output plugin for Sigil and have it purposefully include the source archive so that nothing is lost in the cycle (mobi -> epub -> mobi). As time allows, there will also be a Python 3 plugin capability and a Lua plugin capability added to Sigil. Our long term plan is to add support to Sigil for as many of the epub 3 features (and metadata) that are supported by current level of WebKit/WebView in Qt 5. So as user_none (the maintainer of Sigil) has said .. development is not dead, it was dormant .... it just needed some volunteers to move it forward. Now development has started again but is moving forward slowly. Hopefully we can gather Cpp volunteers and Python Plugin developers to continue improving it. Hope this will heat up the flames of the debate! Take care, KevinH |
![]() |
![]() |
![]() |
#74 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,019
Karma: 5449552
Join Date: Nov 2009
Device: many
|
Hi,
If anyone is interested in the progress (it is working on Mac OS X and Linux) you can checkout the source from: https://github.com/kevinhendricks/Sigil Hopefully after some code reviews and more testing, binary alpha builds will be made available for interested people. |
![]() |
![]() |
![]() |
Tags |
edit, epub, mobi, mobipocket, sigil |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Release : New Tool to Edit ePubs TOC, Edit with Sigil and keep you TOC | Nigol | ePub | 105 | 10-29-2012 11:40 AM |
RPATHS - edit them by hand? a helpful tool | twobob | Kindle Developer's Corner | 14 | 10-01-2012 08:28 PM |
ePub Validation Fail after Sigil edit | dm1839 | Sigil | 7 | 10-16-2011 07:59 PM |
whishlist: button/command edit in Sigil | booksonthemove | Calibre | 3 | 03-03-2010 06:30 AM |