Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 02-19-2013, 12:22 PM   #16
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by Toxaris View Post
I support the idea of DiapDealer.
That was the way the original Sigil worked.

Dale
DaleDe is offline   Reply With Quote
Old 02-19-2013, 12:37 PM   #17
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: 27,546
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by theducks View Post
The Lights just went OUT and I have 15 minutes (tops)of UPS time to save and shut down (FWIW hibernate take longer than a shut down on XP)
I see what you're saying, but I can still honestly say I've never really had an OMG-I-need-to-save-it-RIGHT-NOW-come-what-may moment.

Changes/S&R's which can be THAT potentially dangerous/important are always made with a solid working backup in the bag. And thus piddly-poo changes are the only ones that I could possibly lose in that kind of emergency. Worst case... I have to write down that I need to redo that last piddly-poo change and move on.

Quote:
Originally Posted by DaleDe View Post
That was the way the original Sigil worked.
I remember that. Same sort of thing, I guess... except I'm suggesting that the alternate format be the exception rather than the rule. Still a single archive, just one that's allowed to exist in any old heinous state it wants to.

Last edited by DiapDealer; 02-19-2013 at 06:50 PM.
DiapDealer is offline   Reply With Quote
Old 02-19-2013, 12:39 PM   #18
exaltedwombat
Guru
exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.
 
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
Quote:
Originally Posted by DiapDealer View Post
Changes/S&R's which can be THAT potentially dangerous/important are always made with a solid working backup in the bag.
Of course they are. Because you're perfect. I'm not.
exaltedwombat is offline   Reply With Quote
Old 02-19-2013, 12:43 PM   #19
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: 27,546
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Aspire.
DiapDealer is offline   Reply With Quote
Old 02-19-2013, 01:21 PM   #20
exaltedwombat
Guru
exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.
 
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
Quote:
Originally Posted by exaltedwombat View Post
How do I run Pretty Print manually?
Just found it, in the r-click menu.
exaltedwombat is offline   Reply With Quote
Old 02-19-2013, 06:45 PM   #21
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
The .garbage file does nothing to address the fact that if you open a non-well formed EPUB created outside of Sigil (for example you want to fix the file) auto cleaning can potentially cause content to be lost.

Fixing the root cause of the issue that content can be lost is where the focus should be. A .garbage file only works around one possibile situation and doesn't actually solve the issue.

There are only two ways to solve this issue. 1) don't use autoclean because it's un-reliable. 2) Don't autoclean non-well formed files.

I don't like option 2 because you can still have data loss with well-formed content. Which is why I don't like or recommend using Tidy.
user_none is offline   Reply With Quote
Old 02-20-2013, 05:50 AM   #22
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by exaltedwombat View Post
Of course they are. Because you're perfect. I'm not.
ExaltedWombat:

Weren't you one of the folks exhorting for this "save it in whatever bad state it's in" change in the first place, or am I misremembering?

I thought it was a bad idea when I heard it, and I still do. I love much about 7, but not that ecstatic about this bit.

Frankly, I miss the PSO'D (the Pink Screen Of Death). It was a FABULOUS training tool for the habit of saving often. Worked a treat on my newbs. Now they can get away with saving malformed code, which, from my perspective, is not great. I understand the arguments; I just think that this strays dangerously close to "why bother to have an ePUB editor if it's going to act like any old HTML editor, which won't care if your code is crap, either?"

/cranky. I know that the guys can't keep everyone happy. I got a lot in the last two releases that I really love--and Preview rocks--so I'll stop whinging about this one, but...I wish it wasn't in here.

Hitch
Hitch is offline   Reply With Quote
Old 02-20-2013, 06:53 AM   #23
exaltedwombat
Guru
exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.
 
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
Quote:
Originally Posted by Hitch View Post
ExaltedWombat:

Weren't you one of the folks exhorting for this "save it in whatever bad state it's in" change in the first place, or am I misremembering?
Yes, and I stand by it. There are occasions - maybe rare ones - when being able to suspend a session "as is" will be useful.

The price seems to be giving up automatic Pretty Print (did anyone actually choose automatic HTML Tidy?). No great loss?

But users who have developed an efficient Ctrl-S reflex, and relied on Sigil's refusal to save malformed code as protection against PP messing things up, should be warned and educated. At present the manual recommends enabling auto-PP, and doesn't mention the new ability to save bad code.

All it needs is a warning - "with your current settings, proceeding with Save may change your code".

Last edited by exaltedwombat; 02-20-2013 at 06:59 AM.
exaltedwombat is offline   Reply With Quote
Old 02-20-2013, 07:56 AM   #24
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by exaltedwombat View Post
All it needs is a warning - "with your current settings, proceeding with Save may change your code".
This has always been the case. In say 0.5.x if you had an audio tag in a file and that file is well-formed saving would remove the audio tag because auto cleaning runs on save automatically in that version.
user_none is offline   Reply With Quote
Old 02-20-2013, 08:49 AM   #25
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,887
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DiapDealer View Post
Keep in mind that I don't really see the need to "emergency save" invalid code as being very critical at all (as a Sigil feature). Just throwing out ideas in case such a feature is deemed necessary.
I see the need for it. Let's say you are working on an ePub and you do have invalid code, but you have to leave the computer. You do want to save what you have at that time even if it contains invalid code.
JSWolf is offline   Reply With Quote
Old 02-20-2013, 08:55 AM   #26
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,887
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Hitch View Post
ExaltedWombat:

Weren't you one of the folks exhorting for this "save it in whatever bad state it's in" change in the first place, or am I misremembering?

I thought it was a bad idea when I heard it, and I still do. I love much about 7, but not that ecstatic about this bit.

Frankly, I miss the PSO'D (the Pink Screen Of Death). It was a FABULOUS training tool for the habit of saving often. Worked a treat on my newbs. Now they can get away with saving malformed code, which, from my perspective, is not great. I understand the arguments; I just think that this strays dangerously close to "why bother to have an ePUB editor if it's going to act like any old HTML editor, which won't care if your code is crap, either?"

/cranky. I know that the guys can't keep everyone happy. I got a lot in the last two releases that I really love--and Preview rocks--so I'll stop whinging about this one, but...I wish it wasn't in here.

Hitch
But I think that in order to save code that could possibly not be valid, there should be a separate option for that and when that is used, a dialog pops up asking if you are sure you want to do this. I can see the need for this when you don't have the time to fix the code.
JSWolf is offline   Reply With Quote
Old 02-20-2013, 09:26 AM   #27
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: 27,546
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by JSWolf View Post
Let's say you are working on an ePub and you do have invalid code, but you have to leave the computer. You do want to save what you have at that time even if it contains invalid code.
No. I don't. I want to go back to the backup I made just before attempting a risky major change. And I don't let minor changes pile up unsaved. Change... verify success... save. If it's important, you learn not rely on features of a program to save your ass. You just don't leave it up to chance. Period.

Now having said that. If this "save my F'd-up code" feature can be accomplished without interfering with my workflow (i.e. not telling me my code was F'd-up and saving it anyway), then go for it. But I consider it a "feature" that I can't save F'd-up code. Anything that allows me even the opportunity to unwittingly save invalid code, I'd consider quite dangerous.

Last edited by DiapDealer; 02-20-2013 at 09:30 AM.
DiapDealer is offline   Reply With Quote
Old 02-20-2013, 11:00 AM   #28
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by DiapDealer View Post
No. I don't. I want to go back to the backup I made just before attempting a risky major change. And I don't let minor changes pile up unsaved. Change... verify success... save.
That's fine if you start from a valid ePub. But if you start from some invalid crappy code, it may be useful to be able to save before you've finished cleaning up all the mess.
Jellby is offline   Reply With Quote
Old 02-20-2013, 11:08 AM   #29
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,778
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:
Originally Posted by Jellby View Post
That's fine if you start from a valid ePub. But if you start from some invalid crappy code, it may be useful to be able to save before you've finished cleaning up all the mess.
My point exactly!
I applaud that Sigil should output clean(er) code.
What it should NOT do is be a traffic cop and prevent saving.

Having a 'Save Anyway' NAG screen:
theducks is online now   Reply With Quote
Old 02-20-2013, 11:30 AM   #30
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,093
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
It seems that the idea of a ".garbage" file type would still work. If sigil WON'T save invalid code with an .epub extension and it ONLY saves it as .garbage then there is no way you would get confused when saving. :edit: Just avoid the auto-cleanup if you use ctl-alt-s (or something) and save as a .garbage

The change that is required is on opening:
On opening, check to see if it is a valid epub BEFORE tidy/pretty can have a go at it.
- if it is an .epub file, show a warning box that it is invalid and give the user the OPTION to continue with cleanup or not
- if it is a .garbage file, then show the warning but no need for an option, just open without cleanup

I think that would allow people to save garbage if they absolutely had to, would prevent data loss when opening a badly formed .epub for the first time, and would let us keep the auto cleaning function enabled for normal workflow.

:edit: Doesn't Sigil already do something like this when adding external files?

Last edited by Turtle91; 02-20-2013 at 11:35 AM.
Turtle91 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Print Not Working (nor print to PDF) foxglove Calibre 5 03-02-2012 10:05 AM
Sigil 0.3.4 / Sigil 0.4.0 RC1 / Cover in Nook Color Bertrand Sigil 13 08-06-2011 04:06 AM
Sigil 0.3.4 / Problème CSS entre Sigil et iPad Grivels Software 10 07-03-2011 09:06 AM
Print vs Pixel: retailers experiment with print/ebook bundles DMcCunney General Discussions 42 09-15-2010 11:29 AM
Print from Sigil? Or viable alternative? Hitch Sigil 31 07-13-2010 04:31 PM


All times are GMT -4. The time now is 07:59 PM.


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