09-12-2010, 01:26 PM | #1 |
eBook FANatic
Posts: 18,301
Karma: 16071131
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
Truncated file
Attached are an ePub and an HTML file zipped.
When the HTML file is loaded into Sigil, the book is truncated about 1/3 of the way into the book leaving out the last 2/3 of the book. I can find nothing in the HTML file, at the truncation point or elsewhere, that would cause this. Would one of you fellows please take a look and guide me out of this screw-up? Charlie of the Dumb Question Last edited by crutledge; 09-12-2010 at 01:32 PM. Reason: I figured the CSS file might bee handy!! |
09-12-2010, 02:46 PM | #2 | |
Well trained by Cats
Posts: 30,360
Karma: 58053696
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
(Notepad++ is your friend) Code:
<p>"While I was still standing, turning to stone at the assertion that Fräulein Flora had already disposed of all her dances, my indignant eye chanced to light upon a face I had overlooked before--perhaps because it could not ogle and grin as some can--and now I saw a pair of large soft eyes pitifully fixed on mine, which seemed to say: 'Why did you never look our way before?--we could have warned you long ago, to beware of icebergs,' &c. &c.--all that eyes can say. So I resolved to be a fool no longer, and I walked across the room, look you, with a dignity--"</p> |
|
Advert | |
|
09-12-2010, 02:48 PM | #3 |
Guru
Posts: 657
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
|
In the paragraph in 'Walter's little Mother' following < p > "As--for instance--?" < / p > where it breaks, there's two '&c.' which is probably what's causing the break, it needs to be fixed there.
Edit: too slow. |
09-12-2010, 03:29 PM | #4 |
eBook FANatic
Posts: 18,301
Karma: 16071131
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
Please explain.
I know that the & is part of symbol code but have never noticed it in text before. Interpreters are strange and wondrous things. I replaced the & with the HTML code and did indeed fix the problem. It gets curiouser and curiouser. |
09-12-2010, 03:42 PM | #5 |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Tidy really hates anything that looks like an entity but is not. "&c." should be "&c.".
I've already modified Tidy to recover from sole ampersands, unknown entities, entities ending with ":" instead of ";" and many other known user errors. But this one's new. I'm guessing it stops parsing since it's looking for the closing ";". I'll try and see what can be done with this as Yet Another Entity Edge Case that Tidy should be handling. Oh, and thanks for reporting this. Last edited by Valloric; 09-12-2010 at 03:46 PM. |
Advert | |
|
09-12-2010, 05:03 PM | #6 |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Tidy in trunk has now been modified to handle this error.
|
09-12-2010, 05:18 PM | #7 | |
eBook FANatic
Posts: 18,301
Karma: 16071131
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
Does this mean that if I download the latest from the homepage I'll have the fix?
I've been using HTML Tiny which has the following option: Quote:
Thanks, Valloric. |
|
09-13-2010, 11:25 AM | #8 | ||
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
Quote:
That option doesn't work. I know, it's silly that you can "turn it on" and have it do absolutely nothing, but that's what it does. I had to implement that by hand in the Tidy version included with Sigil. Here's the diff. Last edited by Valloric; 09-13-2010 at 11:37 AM. |
||
09-13-2010, 01:22 PM | #9 |
eBook FANatic
Posts: 18,301
Karma: 16071131
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
[QUOTE=Valloric;1107833]
That option doesn't work. I know, it's silly that you can "turn it on" and have it do absolutely nothing, but that's what it does. I had to implement that by hand in the Tidy version included with Sigil. QUOTE] I have tried to contact the creator of HTML Tiny about some other problems but have received no reply. Do any of the versions, e.g. HTML Tidy, work well? They do make PG files easier to read and I have run across no errors as yet. I find it hard to believe that with the present state of computer science and computer engineering that instant updates are not available. |
09-13-2010, 02:41 PM | #10 |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Someone still has to make the updates. Tidy development has been dead and buried for many years now. Nobody's working on it.
|
09-13-2010, 03:32 PM | #11 |
Not who you think I am...
Posts: 374
Karma: 30283
Join Date: Jan 2010
Location: Honolulu
Device: PocketBook 360 -- Ivory
|
You are!
How many changes have you made to it? |
09-13-2010, 03:37 PM | #12 |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How can i convert HTML or txt file to EPUB file ? | guguqiaqia | ePub | 7 | 05-28-2010 09:15 PM |
Secure .PDB file to file Kindle will read! Help! | mbtravis63 | Kindle Formats | 2 | 01-17-2010 04:20 AM |
HTML file added to library is truncated unexpectedly | seth123abc | Calibre | 3 | 10-31-2009 03:57 PM |
File management: how to copy file from USB stick? | Lec0mte | iRex | 5 | 05-04-2009 07:19 AM |
Bug - new posts being truncated | mogui | Feedback | 4 | 06-11-2007 02:13 AM |