Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 03-18-2016, 08:01 AM   #1
arthurattwell
Member
arthurattwell is on a distinguished road
 
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.)
arthurattwell is offline   Reply With Quote
Old 03-18-2016, 08:20 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: 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.
DiapDealer is offline   Reply With Quote
Advert
Old 03-19-2016, 12:57 PM   #3
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,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.
DiapDealer is offline   Reply With Quote
Old 03-20-2016, 07:51 AM   #4
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,569
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by DiapDealer View Post
It assumes the XML file is already named correctly. If it's not, it probably won't function correctly.
I mispoke. The name of the selected xml file is immaterial. It's always added with the correct name.
DiapDealer is offline   Reply With Quote
Old 03-21-2016, 12:51 PM   #5
arthurattwell
Member
arthurattwell is on a distinguished road
 
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.
arthurattwell is offline   Reply With Quote
Advert
Old 03-21-2016, 01:28 PM   #6
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,569
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by arthurattwell View Post
@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.
I'll get it added to the index. Just wanted to make sure it worked as expected first.
DiapDealer is offline   Reply With Quote
Old 03-21-2016, 07:05 PM   #7
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,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.
DiapDealer is offline   Reply With Quote
Old 03-23-2016, 04:08 AM   #8
arthurattwell
Member
arthurattwell is on a distinguished road
 
Posts: 12
Karma: 56
Join Date: Dec 2008
Device: None
@DiapDealer: Brilliant, thanks!
arthurattwell is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 12:41 AM.


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