11-13-2018, 04:27 PM | #17 | |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Yes that did the trick.
I have now committed the changes needed to master to recognize opf metadata links with relative hrefs and to move the target files properly to Misc (to fit the Sigil conventions), and auto update the link href in the opf but keep the file un-manifested. Because the file is not in the manifest, if you want to edit/change something in the file, you have to use "open with" to edit the linked file as it may be generated with third party software, or be generic xml or json. I have not played around with or tested deleting the file using the BookBrowser commands yet so there will probably be more to do for that but at least from a point of reading them in and then writing them back out Sigil should now handle that case properly. KevinH Quote:
|
|
Advert | |
|
11-13-2018, 05:36 PM | #18 | |
Guru
Posts: 927
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Quote:
Thank you for the quick fix, @KevinH . That's great! |
|
11-13-2018, 06:07 PM | #19 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
This fix is not a full fix. Although I can use open with to edit the linked metadata file, and based on testing, deleting the file works as well, Sigil has no way of adding an unmanifested file of any sort.
So we either need to create an add "un-manifested" file menu item or alternatively a menu item that can take a file in the manifest and un-manifest so that current ways to add files can still be used. We should probably think that through? Perhaps a plugin to add linked metadata resources and remove them would be easiest since this feature is not heavily used. Ideas? Comments? KevinH |
11-13-2018, 06:39 PM | #20 |
Grand Sorcerer
Posts: 27,548
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I've got a plugin that does nothing more than add the iBooks xml file. It could probably be used as a base/template for something like that.
|
Advert | |
|
11-13-2018, 09:02 PM | #21 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Sounds lke a good idea! I think adding menu items to Sigil to deal with un-manifested items would/could cause confusion with novice users especially. Perhaps a plugin is the right way to go here.
|
11-14-2018, 11:56 AM | #22 | |
Guru
Posts: 927
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Quote:
Altough, Sigil should be capable of identifing, by itself, the presence of this structure. Otherwise, if a user do not have the plugin installed, then Sigil would delete the file, just like now. |
|
11-14-2018, 12:01 PM | #23 | |
Grand Sorcerer
Posts: 27,548
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
That's why we're talking about creating the plugin: so that users can create this type of file within Sigil itself. |
|
11-14-2018, 01:08 PM | #24 | |
Guru
Posts: 927
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Quote:
Sigil should detect the linked resource and let it be, even without the plugin (altough it would be necessary for further actions, such as editing the file). |
|
11-14-2018, 01:39 PM | #25 | ||
Grand Sorcerer
Posts: 27,548
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Quote:
Sigil is a long way from allowing user-defined archive structures. As such, there are no guarantees that unmanifested files which aren't specifically allowed by the EPUB specs will survive a Sigil save. This was a one-off fix for your specific issue. Sigil won't delete this spec-compliant, non-manifested file any more (or others if we learn of them). But accommodations aren't going to be made for just any old files that might be included willy-nilly in an EPUB's archive. Sigil currently requires epubs to have a very strict structure. That's not going to change any time soon (even though we all might like it to). That type of functionality is going to require a huge overhaul of Sigil's codebase: something neither of us has the time for right now. Last edited by DiapDealer; 11-14-2018 at 04:25 PM. |
||
11-14-2018, 02:57 PM | #26 | |
Guru
Posts: 927
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Not really my issue. This is formally on the specs.
Quote:
But that's it. I want to say thanks again for the fix, and for the support. I'll let you guys find the best way to handle this. |
|
11-14-2018, 03:31 PM | #27 |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
@thiago.eec Out of curiosity: did you hand-code the Onix file or did you use a custom app? If so which one?
|
11-14-2018, 04:37 PM | #28 | |
Guru
Posts: 927
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Quote:
I used the free trial of ONIXEdit (https://onixedit.com/en-us) to produce a template that fits my needs (mostly novels). When I create a new book, I just adapt the template on Notepad ++. |
|
11-25-2018, 12:13 AM | #29 |
Zealot
Posts: 100
Karma: 1204
Join Date: Jun 2012
Device: Bookari (née Mantano Reader) on Android; Kindle Fire HD
|
Following the discussion on the EPUB lists, seems 3.2 is their way of saying, “3.1 was a mistake; nobody uses it, and for good reason; so let’s find a way that complies with standarization rules to roll everything back to 3.01.”
|
11-27-2018, 06:23 PM | #30 | ||
Guru
Posts: 927
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Quote:
Quote:
|
||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Highlight updated Metadata | Paltieldav | Library Management | 1 | 04-10-2016 08:21 AM |
metadata not being updated | madzharov | Library Management | 4 | 10-18-2013 12:06 PM |
blank TOC page - attribute 'link' not declared for element 'body' | wyatt650 | Sigil | 4 | 04-18-2013 01:41 PM |
updated metadata=updated file? | jomaweb | Calibre | 13 | 01-28-2010 08:12 PM |
Crash on nonexistent "title" metadata element | Valloric | EPUBReader | 3 | 12-10-2009 01:46 PM |