02-19-2013, 12:22 PM | #16 |
Grand Sorcerer
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
|
|
02-19-2013, 12:37 PM | #17 | |
Grand Sorcerer
Posts: 27,546
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
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. 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. |
|
02-19-2013, 12:39 PM | #18 |
Guru
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
|
02-19-2013, 12:43 PM | #19 |
Grand Sorcerer
Posts: 27,546
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Aspire.
|
02-19-2013, 01:21 PM | #20 |
Guru
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
|
02-19-2013, 06:45 PM | #21 |
Sigil & calibre developer
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. |
02-20-2013, 05:50 AM | #22 |
Bookmaker & Cat Slave
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
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 |
02-20-2013, 06:53 AM | #23 | |
Guru
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
Quote:
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. |
|
02-20-2013, 07:56 AM | #24 |
Sigil & calibre developer
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
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.
|
02-20-2013, 08:49 AM | #25 |
Resident Curmudgeon
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
|
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.
|
02-20-2013, 08:55 AM | #26 | |
Resident Curmudgeon
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:
|
|
02-20-2013, 09:26 AM | #27 | |
Grand Sorcerer
Posts: 27,546
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
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. |
|
02-20-2013, 11:00 AM | #28 |
frumious Bandersnatch
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
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.
|
02-20-2013, 11:08 AM | #29 | |
Well trained by Cats
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:
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: |
|
02-20-2013, 11:30 AM | #30 |
A Hairy Wizard
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. |
Thread Tools | Search this Thread |
|
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 |