![]() |
#1 |
Member
![]() Posts: 12
Karma: 56
Join Date: Dec 2008
Device: None
|
Editing the META-INF folder in Sigil
Currently Sigil doesn't let you edit/add to the META-INF folder (presumably because that shouldn't be necessary).
Might that change in future? Or does anyone know of a plugin that makes this easy? (DiapDealer had one some years back that required an active Python install.) In my case, it would be great to be able to drop my `com.apple.ibooks.display-options.xml` in there, without having to edit the epub archive separately. (My clients require the Apple XML.) |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,569
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Ah... I remember that! I was cheating the "Open With" feature to make some rudimentary python plugins possible. Man, those were the days!
![]() Let me look and see if it's doable with the current plugin framework. Shouldn't be too hard to slap something together that could accomplish that, if so. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,569
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
@arthurattwell: See if this proof-of-concept plugin works for you. It's rough and there's not a lot of error checking, but if it works, we can talk about how best to proceed.
Right now, it works by selecting an external xml file with a file dialog and adding it to the META-INF folder. It assumes the XML file is already named correctly. If it's not, it probably won't function correctly. We can decide later what's best in that regard. As always, Sigil shows the file in its 'Misc' folder, but it's definitely in the META-INF folder if you extract and look. This plugin can now be found in its own thread in the Sigil Plugins subforum: https://www.mobileread.com/forums/sho...d.php?t=272241. Last edited by DiapDealer; 03-21-2016 at 07:07 PM. |
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,569
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
![]() |
![]() |
![]() |
#5 |
Member
![]() Posts: 12
Karma: 56
Join Date: Dec 2008
Device: None
|
@DiapDealer: Thank you! Wow, that was fast. And the plugin works a treat. My problem solved.
I hope it gets added to the plugin index, I'm sure others will find this useful. |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,569
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
|
|
![]() |
![]() |
![]() |
#7 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,569
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I'm removing the attachment from this thread, as I've created a new thread for this plugin in Sigil's Plugins subforum https://www.mobileread.com/forums/sho...d.php?t=272241.
The version there is slightly more polished but has very few functional differences. New versions will be available there from now on. |
![]() |
![]() |
![]() |
#8 |
Member
![]() Posts: 12
Karma: 56
Join Date: Dec 2008
Device: None
|
@DiapDealer: Brilliant, thanks!
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
META-INF/container error | afpeter | ePub | 9 | 07-23-2013 01:04 AM |
META-INF folder not displayed | Dan__ | Sigil | 2 | 02-26-2013 12:33 PM |
NEED HELP!!! - META-INF/container.xml is missing | soulmenj | ePub | 2 | 07-12-2011 10:49 PM |
Add xml in META-INF | Sylver | Sigil | 5 | 04-26-2011 03:17 AM |
error when editing meta data | tom233 | Calibre | 1 | 10-06-2010 03:28 AM |