![]() |
#16 | ||||
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
|
Quote:
Quote:
Quote:
Quote:
|
||||
![]() |
![]() |
![]() |
#17 | |||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,400
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Then it had a META-INF folder and a container.xml file immediately following the Save. Something else is causing the file to disappear after that.
Quote:
Quote:
Quote:
------------------------------------ I've attached a test epub from which I've manually removed the META-INF folder (and subsequently the container.xml file). DO NOT OPEN IT WITH SIGIL YET!! 1) view the EPUB with your favorite archiving-tool to verify that there is no META-INF folder (but do not change anything). Submit it to the IDPF's online EPUB validator and see the fatal errors due to a missing META-INF/container.xml file. 2) Now open the EPUB with Sigil--and without doing anything else--save the EPUB and close it and Sigil. Do not do anything else to the epub before step 3. 3) Immediately submit the newly saved EPUB to the IDPF's online EPUB validator and report any error messages. View the EPUB with your favorite archiving-tool and verify that the META-INF folder (complete with a container.xml file) have been generated. Last edited by DiapDealer; 06-26-2017 at 02:10 PM. |
|||
![]() |
![]() |
![]() |
#18 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,689
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
@SigilBear: Nobody is denying that there might be a data loss problem with the macOS Sigil version and KevinH specifically pointed out that you might want to change your temp folder location:
Quote:
If so, there might be another problem with Sigil (or third-party apps such as eCanCrusher) and you'll need to follow KevinH's other instructions: Quote:
You also mentioned that you use eCanCrusher to manipulate your epub. What exactly do you use eCanCrusher for? |
||
![]() |
![]() |
![]() |
#19 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,508
Karma: 5703586
Join Date: Nov 2009
Device: many
|
The only thing I can think of is that the Mac OS only removes files/folders from temp that have not be accessed (read or written) to in 48 hours. Upon import if an epub is opened its META-INF and container.xml will only be read once and then never checked again. Whereas the text files that are edited/read and any resources they reference are always being accessed. If you wait a long time without saving, the meta-inf and container.xml may actually get deleted out from under Sigil, whereas the more recently accessed text and resources would still be alright.
So if Sigil recreates a missing META-INF and container.xml upon first load of the damaged epub, but you do some editing and wait long enough without saving (48hours) you might end up with missing pieces. The key is when no saving is done while leaving the app running longer than 48 hours on a Mac, you may run into problems caused by the OS and not Sigil. Sigil can prevent that issue if you give it a safe temp location to use. |
![]() |
![]() |
![]() |
#20 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,508
Karma: 5703586
Join Date: Nov 2009
Device: many
|
One extra point ... as a good general rule, I highly recommend you never leave an editing app running for over 48 hours without saving and closing out. Power failures, disk sleeping, temp space cleaning, and other glitches makes that an unsafe mode of operation for any OS.
|
![]() |
![]() |
![]() |
#21 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,400
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
If you say it's possible, then it's possible. ![]() Last edited by DiapDealer; 06-26-2017 at 05:59 PM. |
|
![]() |
![]() |
![]() |
#22 | ||
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
|
Quote:
/var/folders/2c/yq8lzqzx2qxc3ktwxk2jcgfh0000gn/T I have to go back and reread what KevinH wrote. Is it OK as is, or do I need to actually change it? If so, I should probably make it a more sane path, like Documents/Epubs/temp, right? Quote:
Let me see if I can recreate the path to my ePub and type it into Terminal... |
||
![]() |
![]() |
![]() |
#23 | |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
|
Quote:
I typically have two or three browsers open, along with Dreamweaver, Photoshop, iTunes, Numbers, Sigil and half a dozen other programs. Why would I want to close everything, then spend five or ten minutes getting re-oriented after lunch? Things generally work, aside from specific bugs that pop up from time to time - like my problem with Sigil. If I have too many programs open, then I run out of memory, so I have to manage that. I'm having another problem with Apache, PHP or something like that, but it doesn't appear to have anything to do with the number of programs that are open, nor has anyone been able to solve it. It doesn't appear to be related to my Sigil problems. |
|
![]() |
![]() |
![]() |
#24 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
|
Another good tip. I was under the impression that Sigil saves automatically. I do get a message "Save?" when closing a project sometimes, but most of my changes seem to take effect automatically, or so I thought.
|
![]() |
![]() |
![]() |
#25 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
|
For anyone following this thread, here's the correct path format for a Mac:
unzip -t /users/sigilbear/Documents/epubs/Symbols/Geobop3.0.epub And this is the message I got: No errors detected in compressed data of /users/sigilbear/Documents/epubs/Symbols/Geobop3.0.epub. |
![]() |
![]() |
![]() |
#26 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,508
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Sigil does not save automatically.
You should always save your epub manually as only you know when it is time to save versus revert to an earlier saved version. What version of Sigil are you using? Sigil 0.9.8 has been changed and it should no longer show you the path inside temp and should show a placeholder. To set an new temp directory, first save any open epub documents. Then create a Sigil specific temporary folder someplace in your home directory, or in Documents or whereever you want. Give it a name like Sigil_temp with no spaces in it. Then use that preference setting to enter the full path to your just created Sigil specific temp folder and then after applying your changes, exit out of Sigil. Note that you should never open that Sigil_temp folder or touch any of the files in it when Sigil is open. Sigil will always clean up after itself once you exit from the program. If Sigil ever crashes, it will not get a chance to clean up after itself. In that hopefully rare case you can manually empty the contents of Sigil_temp but do not move it or rename it otherwise Sigil will be unable to find it on start-up and should revert back to the standard Mac temp folder and your problems will return. |
![]() |
![]() |
![]() |
#27 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,508
Karma: 5703586
Join Date: Nov 2009
Device: many
|
No errors is good but if you look at the list of files you can see if META-INF is there and if container.xml is as well. You should also get to see the modification date/time of each file in the zip folder.
That should tell you if the epub was post-processed by any other program. Quote:
Last edited by KevinH; 06-26-2017 at 09:50 PM. Reason: fix funny typo BR pointed out! |
|
![]() |
![]() |
![]() |
#28 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
|
Great tips! I created a temp folder @ Documents/Sigil_temp, and it was populated as soon as I modified an ePub and saved it. I have Sigil 0.9.8, by the way.
I should spend some more time getting familiar with Calibre, but I'm used to Sigil, which I find amazingly easy to use in general. I'm still trying to figure out why anyone would use InDesign. I got it for free since I have an Adobe subscription, but when I saw the difference between InDesign and Sigil, I just about had a heart attack. ![]() |
![]() |
![]() |
![]() |
#29 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,644
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
![]() |
![]() |
![]() |
#30 | |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
|
Quote:
I work on my projects 24 hours a day. I spend much of my time in WiFi cafes. When it's time to go to work, I get my laptop out again as soon as I get on the bus. I do the same thing when I'm in the break room at work. And on the bus home. And before I go to bed. And if I wake up in the middle of the night. If I'm working on a project that requires going back and forth between Dreamweaver, Photoshop and Sigil, and maybe back and forth between various Photoshop files or epubs, I don't always have time to save every single file in every single program before I go to sleep - or when I suddenly discover that we've arrived at the last bus stop and I have about ten seconds to get off the bus. And if I'm working with a really big Photoshop file that takes a while to save, then the situation is even more challenging. In general, my Mac has been very reliable. If something really bad happens and I have to force close a program or, even worse, if my laptop crashes, the files are generally still there when I reopen it. Photoshop and Numbers are really good about that, and I can save all my Dreamweaver files instantaneously. Of course, if you just write novels or pulp fiction and don't have to work with images or spreadsheets or do a lot of research, then you have the luxury of saving your Sigil file every ten seconds. ![]() |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
container.xml problems | SigilBear | Sigil | 4 | 06-11-2017 09:43 PM |
Some files.html & toc.xhtml (also Cover.xhtml) | chaot | Workshop | 23 | 02-13-2017 12:20 PM |
Container methods, various scenarios | jackie_w | Development | 15 | 11-09-2015 02:32 PM |
Recreating my Library on my server takes weeks now | mohataj | Calibre | 9 | 09-12-2015 11:17 PM |
Recreating library on new computer? | jeather | Calibre | 5 | 01-31-2013 02:22 PM |