09-18-2014, 02:40 PM | #16 |
eBook FANatic
Posts: 18,301
Karma: 16071131
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
|
09-18-2014, 02:56 PM | #17 |
Sigil Developer
Posts: 7,651
Karma: 5433388
Join Date: Nov 2009
Device: many
|
https://www.mobileread.com/forums/sho...25&postcount=1 has the download link
And the two associated threads are here: https://www.mobileread.com/forums/sho...d.php?t=246400 https://www.mobileread.com/forums/sho...d.php?t=246005 Last edited by KevinH; 09-18-2014 at 03:25 PM. |
Advert | |
|
09-19-2014, 02:05 PM | #18 |
Zealot
Posts: 119
Karma: 28454
Join Date: Apr 2011
Location: Yuma, AZ
Device: Kindle Touch, Voyage
|
Used preview on a file and it told me there was an error just before the </body> tag (where most Sigil errors occur,) had to upload the file to W3C to find it. Missing </p>, nowhere near the </body>. As I said, not that helpful.
I've discovered that the p button won't work until I've closed the enclosing blockquote tag. Even the smarty quotes plugin does error checking. That's just obsessive. Lurking somewhere in all that error checking is a routine that tries to fix the error without asking the user first, and that is what is truncating files. And that is a BUG. To destroy hours, days, or even weeks of work without notice either before or after is simply inexcusable, and I don't care what anyone says about structure, design, blah, blah, blah. Hopefully, I can finish this one book, and then Sigil goes back on the shelf. Perhaps some can write error-free html on the first pass, but I can't. I leave the error checking to the end (EpubCheck on idpf) just before and after the final proofread. |
09-19-2014, 02:15 PM | #19 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
At the risk of sounding slightly repetitive... is there any particular advantage (for your use) of Sigil over calibre's Edit Book?
The calibre editor does not change your code without your express permission (by using either Beautify or Fix HTML), and you can run Check Book to list errors for manual fixing. It is less invasive, and much more geared towards people who are editing the raw XHTML. |
09-19-2014, 04:41 PM | #20 | |
Sigil Developer
Posts: 7,651
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Hi,
Again, please provide a repeatable set of steps and a sample file, and I would be happy to look into this and try to fix it if it is really eating text. And I agree ... No matter how poor the tags are, text node information should never be lost. So if it is losing text, I too consider that a bug. That said, I have never lost any text using Sigil. So I need some help tracking down where and how this is happening. That is why I need a sample file and sequence of steps to find the true cause of your issue. I do agree that sometimes Sigil description of where to look for the issue leaves a lot to be desired. Finding and fixing single missing tags could be done in a plugin if we find out the issue is in Tidy someplace. So if you can recreate any of your "eating text" bugs repeatable I would be happy to try and fix it. KevinH Quote:
|
|
Advert | |
|
09-19-2014, 04:50 PM | #21 | |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
I agree with KevinH. Lets get some repeatable steps to nail down under what conditions things get eaten. That's the only way things will ever be fixed. Putting Sigil on the shelf won't help at all. Last edited by DiapDealer; 09-19-2014 at 04:54 PM. |
|
09-20-2014, 09:24 AM | #22 | |
Zealot
Posts: 119
Karma: 28454
Join Date: Apr 2011
Location: Yuma, AZ
Device: Kindle Touch, Voyage
|
Quote:
I don't know how plugins work, but perhaps Sigil checks the file before it hands it over to your plugin? Last edited by JimmyG; 09-20-2014 at 10:10 AM. Reason: added para |
|
09-20-2014, 09:57 AM | #23 | |
Zealot
Posts: 119
Karma: 28454
Join Date: Apr 2011
Location: Yuma, AZ
Device: Kindle Touch, Voyage
|
Quote:
I'm following everyone's suggestions: staying away from book view, using preview (I didn't even know it was there,) not saving until I've checked that everything is error free, etc. But I'm still saving a copy of each file, because each requires considerable work that I don't want to have to repeat if it disappears. I have a fallback position. When I gave up on 7.4 I was working on a big book that I had been working on for months. I took a time out and wrote a program using the MS Net framework just to finish that book. I'm 89% through the final proofread. When I get it done, I'll go back and make the program more general purpose so I can make new books with it. It doesn't eat files, there's no error-checking, but syntax highlighting and spell-checking are irritatingly sloooow. |
|
09-20-2014, 09:58 AM | #24 | |
Zealot
Posts: 119
Karma: 28454
Join Date: Apr 2011
Location: Yuma, AZ
Device: Kindle Touch, Voyage
|
Quote:
|
|
09-20-2014, 10:05 AM | #25 |
Grand Sorcerer
Posts: 12,171
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
|
09-20-2014, 10:21 AM | #26 | |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
I understand not wanting to have your code altered without your permission--I really do. But I don't quite understand what you expect an automated markup-manipulation tool (which relies on well-formed markup to be able to function properly) to do when it encounters problems with your markup? It has exactly two choices: barf, or try to fix the problem. Even calibre does this. If you want to Beautify or Smarten or Fix your html, it will make the changes it deems necessary. And the use of any of those automated tools requires ancillary changes to the markup that are a bit unrelated to what the Tool is trying to do. For instance, the built-in calibre Smartener requires that you have to sacrifice any HTML entities. I don't say this to condemn calibre--but just to point out the similarities. Calibre's checkpoint system and visual compare make it easy to revert any undesired changes, and I love that. I use it a lot. But I also know that I can close Sigil without saving if I suspect anything weird might have happened. I do that a lot, too. My long, and rather drawn out, point is this: the time to use any automated markup-manipulation tools is AFTER you've determined you have clean markup. |
|
09-20-2014, 11:24 AM | #27 |
Sigil Developer
Posts: 7,651
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Hi,
I have been somewhat able to duplicate the "eating text" issue but I had to do something really horrible to get Tidy to actually "eat text". I had to confuse it as to what is text and what is tag. Code:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <title/> <link href="../Styles/Style0001.css" rel="stylesheet" type="text/css"/></head> <body> <h1>Test</h1> <p>Now is the time for all good men to come to the aid of the party 1.</p> <p>Now is the time for all good men to come to the aid of the party 2.</p> <pclass="bot" Now is the time for all good men to come to the aid of the party 3.</p> <p>Now is the time for all good men to come to the aid of the party 4.</p> </body> </html> Here is what Tidy in Sigil did to this file on open: Code:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <title/> <link href="../Styles/Style0001.css" rel="stylesheet" type="text/css"/></head> <body> <h1>Test</h1> <p>Now is the time for all good men to come to the aid of the party 1.</p> <p>Now is the time for all good men to come to the aid of the party 2.</p> <p>Now is the time for all good men to come to the aid of the party 4.</p> </body> </html> A better solution when unpaired "<" ">" exists is to simply replace the unbalanced one with its html entity codes Code:
"<" or ">" The problem is Tidy is really a mess to try and fix or change. So I think the only solution in the long run is to write a much simpler replacement for Tidy, that defaults to creating too much "text" as opposed to deleting any. If I get a free moment, I may take a stab at a prototype for doing this in python to create a sort of "safe clean" plugin to see if it actually is doable and would help. Parsing bad xhtml especially with unmatched "<" and ">" is fraught with issues as it can confuse the hell out of the parser. A "safe clean" parser would create the following output for that example: Code:
<pclass="bot" Now is the time for all good men to come to the aid of the party 3.<p></p> Would this be a help? KevinH Last edited by KevinH; 09-20-2014 at 11:46 AM. |
09-20-2014, 02:37 PM | #28 | |
Zealot
Posts: 119
Karma: 28454
Join Date: Apr 2011
Location: Yuma, AZ
Device: Kindle Touch, Voyage
|
Quote:
Your example does not show the problem I have found. Every file I have ever lost, in 7.4 and 7.7 does the same thing. From some apparently arbitrary point (perhaps a mistake?) in the file, it removes everything from that point up to </body> and rewrites the ending to </body></html> without the line break. |
|
09-20-2014, 02:52 PM | #29 | |
Zealot
Posts: 119
Karma: 28454
Join Date: Apr 2011
Location: Yuma, AZ
Device: Kindle Touch, Voyage
|
Quote:
I realize producing something for the world to use is a lot different from my producing something that only I use. Sigil kinda reminds me of a grammar school teacher I had, whom we all loved so much. If you had a missing comma in your paper, she would take her red pencil and cross out the whole paragraph. |
|
09-20-2014, 02:56 PM | #30 | |
Zealot
Posts: 119
Karma: 28454
Join Date: Apr 2011
Location: Yuma, AZ
Device: Kindle Touch, Voyage
|
Quote:
That bothers me, but I may give it a shot. The editor looks a lot different from the last time I looked at it. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
DR800 Help, I've got a bug!! A bug on my screen!! | Franky | iRex | 4 | 06-21-2011 11:45 AM |
Embedded font bug or CSS bug in ADE | JSWolf | ePub | 10 | 06-11-2011 02:34 PM |
Got a 700 to eval, plus my chat w/Sony about 700, firmware, etc. | mtnmedic | Sony Reader | 4 | 07-17-2009 09:09 AM |
New 700 =) | jaxx6166 | Sony Reader | 16 | 01-18-2009 12:17 AM |
PRS-505 bug or eBookLib bug? | porkupan | Sony Reader | 3 | 10-07-2007 10:44 PM |