03-22-2019, 04:59 AM | #16 | |
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
To make a test file.
Quote:
The issue is about how Sigil deals with epub files that have such problems already. If the manifest does not match what is actually in the archive, then I think most people would like to know that, rather than having files silently deleted. It could just give a warning that the named files will be deleted on saving. Or even give an option to add them to the manifest as if they had been imported normally. |
|
03-22-2019, 06:11 AM | #17 |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
What you and some others aren't understanding is that it's not as simple as just "pop a warning when things don't match." In order to warn a user that an unmanifested file exists when opening/saving, Sigil would first have to KNOW there's an unmanifested file when opening/saving. And I can assure you that it does not. And MAKING sigil aware would require an overhaul of the open/save process that is simply not in the cards right now. Sorry. Patches welcome, though. I'll happily code the warning if someone provides the rest.
Sigil isn't deliberately deleting unmanifested files, it's simply failing to SAVE a file it doesn't know exists--couldn't possibly know exists without a double-parsing of the epub (opf manifest and internal archive file list) and file-by-file comparison of the two each and every time an epub is opened/saved. I'm not interested in tackling that. |
03-22-2019, 09:03 AM | #18 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Again, since an epub is a zip file. Unzip the problem epub outside of Sigil. Then open a copy of the epub in Sigil. Navigate to Files->Add->Existing Files... and add any missing files (xhtml, images, fonts, styles) you feel are important but missing in the manifest by visually comparison to the unzipped version.
If you are afraid you might have a problem epub but are unsure, simply run epubcheck on it, which will happily report there are files that are unmanifested. This can all be done right now with no changes to Sigil. If this problem is so very common for you, then create a plugin that can parse the opf and compare it against the files provided in the epub/zip and do what you want. This is not really that hard. If you do not know python, think of it as an excuse to learn or ask for help here. |
03-22-2019, 10:18 AM | #19 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
I really hope I'm not going to offend anyone with this reply ...
Sometimes it's beneficial to have 2 tools which basically do the same job, i.e. Sigil and calibre Editor, because both have some features (and problems ) the other doesn't have. This might be a case in point. If an image is present in an epub but is unmanifested, the calibre Editor will display it in the images file section marked as unmanifested. I'm making no subjective statement about which is "the best epub editor" just that you can't go far wrong if you use each tool for what it does well |
03-22-2019, 10:30 AM | #20 | |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
|
|
03-22-2019, 11:33 AM | #21 | |
Well trained by Cats
Posts: 29,803
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
As for problems with the structure of an EPUB: The Quality Check Plugin (for main Calibre) finds (not fixes) things like un-manifested files, unused images and many more. I tag em for remedial action using my fav tools |
|
03-25-2019, 05:29 AM | #22 | |
Chalut o/
Posts: 410
Karma: 145324
Join Date: Dec 2017
Device: Kobo
|
The problem with KevinH's method is that it assumes that we know before opening the ePub that his <manifest> is broken.
This is the real problem. Afterwards we can still trim the work with Quality Check, but once we have made this list, we must check ALL the library for each addition of books. Personally, I use Sigil a lot to reorganize the content of the ePub (when I have to rework a lot of images inside, Open > Save > Ectract to Folder > Edits images > Return images in the ePub), so a false manipulation is quick to happen. Quote:
You didn't want to take of this feature and I understand, it was marginal and there are probably other more urgent and useful features. Especially if we have to review all the mechanisms for opening and extracting files... yeah, I understand that this is going to be tricky. The problem is now known, added it in the bug tracker in "low priority/very difficult to solve" is all I asked for. Have a good day. |
|
03-25-2019, 09:12 AM | #23 | |||
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Quote:
Quote:
Look, if you run into this issue often, why not do what 3 or 4 of us have already said? Open the thing in Calibre, and manifest any mystery items. THEN put it into Sigil. Or, as Kevin has mentioned--twice now--unzip the ePUB outside of Sigil. Open the file in Sigil, and ADD any items you need to. MANY of us work this way, to add things to an ePUB file that we need, for whatever reason. I think that maybe, maybe, I've seen one other person here, since I joined something like 9 years ago, mention something about Sigil eating unmanifested files. Of course, my memory could just be wrong. If this happens to you often, or if your workflow creates unmanifested items, just use Calibre to get them manifested. It's the work of 2 minutes to do. It seems, quite bluntly, that you're asking Diap and Kev to put in a crapload of work, to create a function that, to the best of my memory, no one else has ever requested. Given that this is volunteer-supported software, IMHO, they need to focus on those things that a) they know require time and effort, to maintain it and b) those things requested by the most people, (aside from the endless "make it like a word processor!" requests). I'm sorry, and I don't mean to get sideways with you here, but afaik, it's NOT a bug. Putting it on the bug tracker implies it is, when it is not. Seriously, if this were happening to me often, I'd take a moment and look at my workflow, and figure out WHY it's happening, and address that. Hitch |
|||
03-25-2019, 12:48 PM | #24 |
Chalut o/
Posts: 410
Karma: 145324
Join Date: Dec 2017
Device: Kobo
|
I didn't create this ePubs, but found it as it is, from "various" sources (I am an archivist)
It was really very rare and it was especially me who was not lucky to have encountered such a problem. As it is precisely rare, random, difficult to perceive and on existing files, it is for me unthinkable to have to check all the books. The problem is not to fix the <manifest> but to know that it must be fixed (I agree that KevinH's method works). What if I save the ePub without knowing that there were non-indexed files.... byebye, the files are losts. I have launched a "Modify ePub" on my entire library, and I would launch a "Quality Check" tonight, but the risk will always be present for the new books that I will import and open in the stride. I agree that given the design and operation of Sigil: 1) It is difficult to qualify his normal bug behaviour. 2) That you are a volunteer on the development of Sigil. 3) That there are other much more useful feature to implemented. 4) That apart from this very specific and rare problem, I have never encountered a bug (ah, once, 9.12: INI + UTF-8 ) For me, the subject is closed. Thank you for answering my problem. Even if it won't be solved, at least I understand the why, and that some avenues of help were given, so I could act accordingly. Last edited by un_pogaz; 03-25-2019 at 01:45 PM. |
03-25-2019, 04:54 PM | #25 | |||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
https://superuser.com/questions/2987...n-os-x-desktop https://apple.stackexchange.com/ques...in-a-directory Sigil refused to even open the "EPUB"s. And epubcheck complained about it: Spoiler:
These Icon files can happen on Mac OSX: Quote:
1. Manually open the EPUB as a ZIP, and delete the Icon files. Sigil opened it fine. OR 2. Open it in Calibre. KevinH's explanation was approximately "even though these have the extension of EPUB, they aren't technically EPUBs", and he also answered this: Quote:
Last edited by Tex2002ans; 03-25-2019 at 05:07 PM. |
|||
03-25-2019, 07:07 PM | #26 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
For the next release, I will look into at least generating a warning about an epub that has unmanifested files outside of the META-INF folder. I do not want to have Calibre BookMark files set off the warning.
How does that sound? KevinH |
05-17-2019, 08:00 AM | #27 |
Chalut o/
Posts: 410
Karma: 145324
Join Date: Dec 2017
Device: Kobo
|
I have seen (with the update of the translation) that the warning of non-indexed files will soon be there.
I just have one small remark to make: I find the message a little too brief. Perhaps it would be necessary to add an additional paragraph on the possible consequences "Some images may not appear and may be deleted from the ePub" But, detail. |
05-17-2019, 08:44 AM | #28 | |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
The existing warning is enough. To those who heed warnings, it will more than suffice. To those who don't, no amount of blathering on about the inherent dangers of continuing will. Besides, using the word "images" in such a warning wouldn't be appropriate at all. ANY unmanifested file will be dropped from the epub, not just images. That message would be confusing to someone who got the warning when opening an epub that didn't have any images: "Oh well heck, I can safely ignore that warning. My epub doesn't have any images anyway!" Besides ... what the new translatable string didn't tell you is that there's more to the message anyway. There's a detail button that will include the file names of all unmanifested files. Last edited by DiapDealer; 05-17-2019 at 09:57 AM. |
|
05-17-2019, 01:47 PM | #29 | |
Wizard
Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
|
Quote:
I have never seen a purchased epub with the issues you are describing |
|
05-24-2019, 02:13 AM | #30 |
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Most of what I use Sigil for is fixing dodgy, imperfect files, usually conversions done in many and various and undocumented ways. The rest is converting my own files from DTP, a system that requires constant tweaking.
Last edited by AlanHK; 05-24-2019 at 02:17 AM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Request for Ideas: Adding Indexed Files | mc3 | Library Management | 0 | 05-04-2012 06:18 PM |
Why is Kindle 3 REINDEXING books that were already indexed? | mypolar | Amazon Kindle | 18 | 11-26-2010 03:46 PM |
Are PDF files indexed in the Kindle 3? | pilluli | Amazon Kindle | 0 | 11-03-2010 02:27 PM |
[Format][SW] How to create an indexed, multimedia file | Warriah | Workshop | 3 | 07-01-2009 02:56 AM |
Indexed notepad | daudi | iRex | 29 | 02-26-2008 01:42 PM |