![]() |
#91 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,673
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@mmat1 - much of Sigil *depends* on well formed xml. You can't enter book view. You can't merge. You can't split. You can't reliably determine cursor location. You can't parse the html for various features that rely on it.
And worst of all *if* the user does not have Tidy turned completely off, it *will* screw up your document in it's attempt to help. Pretty Print will "guess" where closing tags should be or what tags to remove. Tidy will make an even bigger mess of your HTML. You will lose content, users complain when they notice. Just because you didn't notice any issue with turning the check off, doesn't mean that (a) an issue didn't happen, or (b) that you just happened to get exceptionally lucky. Sigil is based on an assumption that your starting input ePub is valid - if it isn't your input can get corrupted before you even see it on screen. When you ask Sigil to save to disk, with at least Pretty Print on it will make sure what is saved is well formed. With the check throwing a message in your face you at least have a chance to make sure that it becomes valid as *you* want it to be, and not letting Sigil possibly make a meal of it. So the option to turn it off is not coming back. |
![]() |
![]() |
#92 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 932
Karma: 15752887
Join Date: Mar 2011
Location: Norway
Device: Ipad, kindle paperwhite
|
Quote:
E.g. when I create a book from an OCRed html file from Abbyy or Omnipage. I start from the top to manually format the book and works my way towards the end. When I find an error and want to replace all occurrences of it, I don't want the search to mess with the parts that I allready have formated and are happy with. I would like to replace all occurrences below my current position, so that I know that the only parts of the file that's affected are the parts I have not yet proofread (I often do proofreading and formating at the same time) and that the operation has not made it neccessary to re-proof the entire file in case I messed up somewhere. Edit: I use Notepad++ a lot for manually editing of HTML files, and notepad++ honours the direction for replace all. It has three directions: "Up", "Down" and "Continuous" where the latter searches untill there are no occurrences left. WOuld it be possible to make something similar in Sigil? Last edited by Iznogood; 10-05-2012 at 02:09 PM. |
|
![]() |
Advert | |
|
![]() |
#93 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
In an ideal world, you will have saved only 5 minutes ago, so you aren't missing much. In my world, everything is going along great and so I just keep going for half an hour or an hour and then do a massively stupid search and replace. Then it is time to go to work.
I too vote for the option to save in its screwed up state so it can be repaired later. As for Norway's suggestion, I have been in the exact same stage as he and looping back around adds a second and undesired connection. Notepad ++ I believe finishes to the bottom, then throws a dialog box, saying done search to the bottom, continue from the top? That would be useful for me. It is possible to do it by hand, but much more time consuming. Last edited by mrmikel; 10-05-2012 at 01:02 PM. |
![]() |
![]() |
#94 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
If the option to turn off well-formed correction will not come back, then maybe introduce auto save to save us from ourselves.
|
![]() |
![]() |
#95 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 27,870
Karma: 198099188
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I don't think the problem is as simple as allowing the user to save and close in an error state. Too much about the way Sigil works is predicated on xhtml being in a well formed state to allow a user to save/close in an error state.
If, for instance, you were allowed to save and close with malformed xhtml, Sigil is still going to try and fix it (best as it knows how) the next time you open it. That's what it does with badly formed epubs. So then they'd need to make allowances for Sigil to be able to open malformed ePubs without attempting to fix them. That would be a recipe for disaster in my opinion. So as much as I'd love, on occasion, to be able to just save/close—error or no error—and go to bed. I've come to understand exactly what kind of nightmare that would be to implement without introducing a gazillion other potential bug-type/unstable situations in the process. I truly believe you'd have to rip Sigil's guts completely out and start from scratch to accomplish what you'd like. Quote:
Last edited by DiapDealer; 10-05-2012 at 01:18 PM. |
|
![]() |
Advert | |
|
![]() |
#96 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 932
Karma: 15752887
Join Date: Mar 2011
Location: Norway
Device: Ipad, kindle paperwhite
|
In the cases where I really need Sigil to save whatever work, in whatever state, I usually comment out the entire file (all parts that are not proof-read and well-formed) and save the ordinary way
Last edited by Iznogood; 10-05-2012 at 01:27 PM. |
![]() |
![]() |
#97 | |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,673
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
As I've tried to explain above and diapdealer has mentioned, there are just too many parts of Sigil that depend on well formed xhtml. The Xerces component chokes on invalid html very badly - it is one of the causes of a number of the crashes that have plagued Sigil in the past. In the meantime, treat Sigil like you would pretty much any other editor - if you are about to do something "dodgy", save first. You can also use the new Save A Copy feature in order not to overwrite your starting ePub, just to be sure you don't overwrite with some invalid changes you haven't noticed yet... |
|
![]() |
![]() |
#98 | ||
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,673
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
![]() Quote:
However in this particular case your file being blank means that really it shouldn't have been touched, since it doesn't have a heading tag on it. Sounds like an optimisation we could make, we will take a look into it. Thanks for the report. |
||
![]() |
![]() |
#99 | |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,673
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
![]() Generally Alt modifiers are not really an option, certainly not without a modifier and that makes them awkward and unmemorable. Ctrl+Shift is an RSI inducing combination that should only be used for infrequent operations. That leaves only Ctrl + 26 letters and some numbers. Ctrl + a number is already used by the headings. That leaves 26 letters. Of which by the time you take out all the standard things like cut, copy, paste etc there isn't all that many left. So I'm afraid that suggesting you assign your own personal shortcuts is really the only option, without us moving a number of things onto keys that are either awkward or not memorable for the (majority?) of users that do have US/english keyboards? You are able to do that right? |
|
![]() |
![]() |
#100 | ||
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 932
Karma: 15752887
Join Date: Mar 2011
Location: Norway
Device: Ipad, kindle paperwhite
|
Quote:
![]() Quote:
It seems that the xml declaration, doctype and html tag always ends up on the same line, whatever I do in sigil. Would it be possible to keep the orignal line and indentation formatting in the headers and the declarations above the html tag when ToC Generation finds that it needs to format something? |
||
![]() |
![]() |
#101 | |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
Quote:
|
|
![]() |
![]() |
#102 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,323
Karma: 58000000
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() ![]() ![]() |
|
![]() |
![]() |
#103 | |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,673
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
There are two things we "could" do. One would be to save them in a separate file. It is an approach we have decided on for some other Sigil features for the next beta. So you could just copy that file to another machine into the relevant directoy. The other option would be to add an Import and Export capability to the Keyboard Preferences screen. |
|
![]() |
![]() |
#104 | |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,673
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
As I said I will have a look at what is possible. I'm guessing without looking at the code that the html is being converted into a Xerces document and then spat back out again, so the formatting is at the mercy of what Xerces decides to do with it (potentially mangling any formatting that was there originally). Which is why the likes of the Pretty Print option is popular to turn it into something more viewable on screen. However it is perfectly understandable why some users like yourself try to keep Tidy off completely so Pretty Print isn't a desired option. We shall see what can be done if anything... |
|
![]() |
![]() |
#105 | ||
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,673
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
Quote:
![]() |
||
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
New Beta for BB? | FF2 | Amazon Kindle | 2 | 05-28-2011 10:21 AM |
Ίχνη Φαντασμάτων Μία υπόθεση του Μαξ Κίλλιαν - 99 cents! | BearMountainBooks | Self-Promotions by Authors and Publishers | 5 | 08-24-2010 07:00 PM |
Beta Beta Test of Major New Features | Starson17 | Calibre | 45 | 05-17-2010 10:55 AM |
0.6 out of beta? | Nate the great | Calibre | 3 | 07-17-2009 02:45 AM |