![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 103
Karma: 57138
Join Date: May 2010
Device: Sony 505, iPad 1 & 3, Galaxy Note 8.1
|
File problem in 0.4.0
I noticed that 4.0 was posted for download today and so pulled it over to try out. Everything was fine until I had to create a chapter split in on file. When I did several of the xhtml files in the text folder in the book view suddenly jumped to different positions. I moved them back to the proper positions but the next chapter split moved things around again. Tried saving and reloading the book only to notice that when ever I saved and reloaded that some of the xhtml files where missing and I'd have to recreate them.
Was trying the Windows 64 bit version under Win 7 and tested the 32 bit version as well, same issues. Any ideas? Thanks. |
![]() |
![]() |
![]() |
#2 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 718
Karma: 1085610
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
|
This has been occuring since the first release of 0.4.0.
I was hoping this was fixed. I'll stick with 0.3.4 for the time being then. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 302
Karma: 185297
Join Date: Sep 2009
Location: Ankh Morpork
Device: calibre
|
Yep, splitting chapters can cause all sorts of problems, so can merging chapters, often one of the merged chapters disappears and is not added to the other one. Html tidy is now next to useless whether it is enabled or not a syntax error will throw up a error page with a selection for automatic or manual fix, It does not seem to matter which you chose the document is returned to the state it was in before the edit.
It also seems that this version does not work with Calibre "open with .. " plugin. Validating also seems to throw up more errors than before, some of which seem meaningless to me. |
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
It always helps if you attach an example.
I'm guessing that the filenames in your ePub contain spaces. Luckily I have some time today and coded a fix that should cover the last of the problems with spaces. And SERIOUSLY, people - if you have a problem ATTACH AN EXAMPLE THAT SHOWS IT HAPPENING. Vague reports of problems aren't helpful, since I have to spend more time trying to work out what the problem actually is that I do in fixing it. Last edited by charleski; 08-15-2011 at 07:41 AM. |
![]() |
![]() |
![]() |
#5 |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Before if you switched to the book view it would auto correct. If you auto correct there is the potential for data loss. This is to give you a chance to fix the problem before it turns into something bigger. Also, automatic correction cannot read your mind so it tries to figure out what you mean with minimal data loss.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 302
Karma: 185297
Join Date: Sep 2009
Location: Ankh Morpork
Device: calibre
|
Before it would auto correct if you had chosen to turn auto correct on, if you had turned off auto correct it would do nothing except add Style="" to the body tag unless there was some style already there. It may have done other things but I never really checked.
Now it does not matter if you have the auto correct on or off so you may as well delete that button. The page for selecting now whether to auto or manually correct seems to be doing the same thing whichever you select, that is reverting to the last version of the file, when you last changed view. Selecting manual correction does show the code for the 'error' but as soon as you try to edit it it reverts to the last version again. I have not yet seen any instance of auto correct doing anything like even attempting a fix, it only reverts the file. I have lost more data today using 4.0 than in the last six months of daily use of previous versions. For my purposes 4.0 is of no use at all. I cannot send examples of the errors as the data I would want to show is deleted by the programme. |
![]() |
![]() |
![]() |
#7 | |||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
Quote:
Quote:
Quote:
|
|||
![]() |
![]() |
![]() |
#8 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 103
Karma: 57138
Join Date: May 2010
Device: Sony 505, iPad 1 & 3, Galaxy Note 8.1
|
Some of the files had spaces in them but the ones I was working with at the time didn't. In 3.4 the new chapter split off was placed right after the file it was split from, in 4.0 it seemed each split chapter was placed at the end of the book and some other random chapters were moved. I can deal with that, it was the save and then restore which had missing chapters which worried me the most. Rearranging data is one thing, lost data is something else.
I couldn't attach the example as it was a personal scan of copyrighted material but I can see if I can duplicate it with some random text. It happens every time with the book I was working with but I haven't tried 4.0 on anything else yet. I'll dig deeper and see if I can get more details to help track it down. |
![]() |
![]() |
![]() |
#9 |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
If you open a bug report we can mark it private so the file is not publicly available. Once open just ask and once we've marked it as private you can upload the file.
|
![]() |
![]() |
![]() |
#10 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,889
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
(I did not realize spaces might be a triggering condition and was not watching for them) Maybe Sigil can 'tidy-up' file names while shuffling the source structure to it's standards on first process. |
|
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
I've fixed a string of completely different problems with the code for splitting chapters. There've been at least four distinct problems involving completely different parts of the code. This last issue with spaces was actually a problem with renaming files and had nothing to do with the chapter-splitting routines, but I believe I've now fixed all the places where a space in the filename could cause problems.
Since many production workflows involve generating filenames with specific identifiers embedded in them, I didn't want to change the filenames themselves (as calibre does). But in general it's a good idea to avoid using spaces. |
![]() |
![]() |
![]() |
#12 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 103
Karma: 57138
Join Date: May 2010
Device: Sony 505, iPad 1 & 3, Galaxy Note 8.1
|
Okay did some brief testing with 32 bit 4.0 on Win 7.
It does appear to be an issue with spaces in the filenames. I first started an empty book and added some random text to the initial file. Added a new item and added more random text to the new file. Then I picked a random spot in the first file and did a chapter split. Everything split okay and the new file appeared right after its parent as expected. Saved and reloaded and everything looked fine. Then I changed the file names of the second and third files to include spaces, went back to a random spot in the first file and did a chapter split and the files were no longer in expected order. I then saved and restarted and reloaded and the new file and all the text in it were missing. Tried a few other things and each time, seemed fine if the files names didn't have spaces and started acting strange and losing data if they had spaces. Of course a LOT of my books have spaces in the filenames... ![]() |
![]() |
![]() |
![]() |
#13 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,012
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#14 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,895
Karma: 464403178
Join Date: Feb 2010
Location: 33.9388° N, 117.2716° W
Device: Kindles K-2, K-KB, PW 1 & 2, Voyage, Fire 2, 5 & HD 8, Surface 3, iPad
|
![]()
and i on 0.4.0 64bit on win 7. i have a file with spaces in the .html filenames and any split i create gets moved to above the cover graphics file till i rename the files w/o any spaces, then the splits occur normally.
Last edited by alansplace; 08-15-2011 at 06:29 PM. |
![]() |
![]() |
![]() |
#15 |
eBook FANatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
File w/ spaces
I just experimented with a book (A Young Man in a Hurry.htm) loaded it to sigil and split and saved. Then I split a file at random (A Young Man in a Hurry_0010.xhtml).
A Young Man in a Hurry_0010.xhtml popped to the top of Book Browser and the split off file (Section0001.xthtml) at the bottom. I then renamed the book with no spaces (A_Young_Man_in_a_Hurry.htm) and retested. Every thing works as advertised. It's strange to see Section0001.xthtm appear in the middle of Book Browser. For two other files I get the same-same. If the file (book) name is to be used as section names, a major problem with final book names is to be solved. The final epub file name will be the book name with underscores. If we go back to the old Section0002, Section0003,, etc. this problem goes away. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with Hebrew Epub file | LevAizik | PocketBook | 4 | 02-26-2012 11:31 PM |
Troubleshooting Problem with pdf File | StuMcBill | Amazon Kindle | 7 | 03-17-2011 09:29 AM |
PRS-650 problem pdfs - is it the file or the reader | mazmac | Sony Reader | 7 | 02-24-2011 03:24 AM |
mobi file metadata problem | stargate | Kindle Formats | 4 | 02-02-2011 05:23 PM |
Renaming File Problem... | Howard098 | Sony Reader | 3 | 02-01-2010 10:57 PM |