08-15-2011, 07:53 PM | #16 |
Well trained by Cats
Posts: 29,804
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Are you talking about the overall Name of the EPUB or the name of one of the pieces inside (what you see in the book browser window) the the EPUB package?
|
08-15-2011, 08:07 PM | #17 |
Zealot
Posts: 103
Karma: 57138
Join Date: May 2010
Device: Sony 505, iPad 1 & 3, Galaxy Note 8.1
|
Talking about the xhtml files in the book browser window. Also note that if you save after the split and reload, often the new split xhtml files will have vanished and the contents lost.
|
Advert | |
|
08-15-2011, 08:27 PM | #18 | |
Well trained by Cats
Posts: 29,804
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:
Had exactly that happen to me (RC1), too. Salvaged the lost file from a copy on my reader (I use 'Open With' from within Calibre. so the original there was what got hosed.) @charleski Do you know when the fixes you did will be released in a new version? |
|
08-15-2011, 08:29 PM | #19 |
Grand Sorcerer
Posts: 5,886
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
|
nice to know about the spaces
ah ha! i never get that far. as soon as the problem occurs i close out sigil 4 and work on that book in sigil 3.4 which doesn't have that problem. now that i know what causes the problem, i won't lose anything as i can switch to 3.4 before the problem occurs by visually checking the filenames for spaces.
|
08-15-2011, 09:50 PM | #20 | |
Wizard
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
Quote:
If people had reported the problem on the RC2 test build it would have been caught earlier. |
|
Advert | |
|
08-15-2011, 10:02 PM | #21 |
Wizard
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
When splitting on chapter markers, Sigil now just uses the name of the originating file as the root for the names of the subsequent files. It doesn't have anything to do with the name of the book. It still uses the old Section000x.xhtml names for manual chapter splits as that's what the old code did - renaming the new chapter file to something meaningful is best left to the user in this case.
|
08-15-2011, 10:51 PM | #22 | |
Well trained by Cats
Posts: 29,804
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:
|
|
08-16-2011, 03:02 AM | #23 | |
Member
Posts: 18
Karma: 716
Join Date: Jun 2009
Location: San Francisco, CA, USA
Device: Astak EZReader, Sony PRS-350
|
Quote:
Until 0.4.0 release (I was using one of the previous 0.4.0 pre-releases - Mar24 windows (x64) build 0.4.0β3) my standard procedure is to 1. import my HTML file of the final book (which pulls in the cover image and the linked style sheet) 2. Rename the html file (which is typically in the format of "auth-last, first - seriesname ### - book title.html") to "Section0001.xhtml" 3. Rename the cover file (same name format as the original HTML file only the extension differs) to "cover.jpg" 4. hit F10 so I'm in split view (for ease of snagging a bit of metadata to drop into the content.opf file), F8 to ensure my html file's metadata that Sigil links actually goes into the content.opf file, and F6/"Split on SGF Chapter Markers" 5. Fix the various new "Section0002.xhtml" and so on to the properly numbered order and generate my TOC after they are in the right order (the version I was using would randomly scramble the files, but they would be named such that if I put them in numerical order they would be in the right order). 6. Copy over my calibre series info from my html file metadata into the content.opf file 7. save and validate the ePub Now...I rename the starting html file so I can get all my section####.xhtml files in order (since it never started with 0001 even if 0001 didn't exist, I always just named my starting file Section0001.xhtml) and use F6 and I get "Section0001_0002.xhtml" and so on with "_####" added to the Section0001 filename. The problem here for me is that up until now - ALL my ePubs are consistently named internally as "Section0001.xhtml" format, so going forward my internal naming will be different, or I have to modify files going forward post-split - or go back and fix all my existing ePubs to the new standard. I could start the starter file with "Section.xhtml" then rename it post-split to "Section_0001.xhtml" as it still appears to begin numbering at _0002 instead of _0001 (I'd personally start it with 0001 if you're going to go with startingfilename_#### though) I'm just anal retentive enough to go through and fix them - now or in the future to keep them all consistent. Please for the love of pete can we have a option on using the older file naming for those of us who don't have a bunch of files that we put into a book before the splits happen? If I'm only using one file and I use the Sigil chapter breaks - I'm willing to use the tag to tell Sigil what to name each split out file even if that's what it takes (since I use a template and paste my book chapters into a set format, I'd just have to modify the templates and could fix my original HTML files via find/replace regex for all my old files - the ePubs I already have converted would be fine since they lose the Sigil pagebreak tags when I F6 the file in Sigil anyway.) Anyway - it's a minor complaint to some of the real issues out there, but I want my old split-naming back (and yes, I do realize how using the old naming could have been problematic for people who are starting with more than one content file - the new way does seem like it'd work best and I may just have to cope - and cry a lot while I fix my ePub collection due to my OCD) Last edited by Shelleyleo; 08-16-2011 at 03:22 AM. |
|
08-16-2011, 06:23 AM | #24 |
eBook FANatic
Posts: 18,301
Karma: 16071131
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
File split work around
Continuing to experiment with A Young Man in a Hurry.epub.
Open the file you want to split and go to Code View and go to the location where you want the split. Insert Code:
<hr class="sigilChapterBreak" /> The following appears in Book Browser: Code:
A Young Man in a Hurry_0010.xhtml A Young Man in a Hurry_0010_0002.xhtml This is what should happen for any split. |
08-16-2011, 06:47 AM | #25 |
Sigil & calibre developer
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
|
08-16-2011, 11:33 AM | #26 |
Well trained by Cats
Posts: 29,804
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
08-17-2011, 03:42 AM | #27 |
Zealot
Posts: 100
Karma: 400000
Join Date: Jul 2010
Device: iPad 2 64GB
|
This seems like a pretty serious bug (people have reported dataloss)... why wait 2 weeks to release a fix, when you can have a minor point release?
|
08-17-2011, 06:42 AM | #28 | ||
Sigil & calibre developer
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Quote:
2) There is another data loss bug I'm looking into. 3) Quote:
|
||
08-17-2011, 09:19 AM | #29 | |
Sigil & calibre developer
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Quote:
When the code view loses focus it checks for structural errors. If you click manual fix it puts you back in the code view. When the code view gains focus after the book view is selected it updates the contents of the code view with the contents of the book view. These two actions along with updating the book view from the code view are handled via signals. The order signals are processed is not guaranteed. So in your case you're unluckily having one signal overwrite the contents of the code view with old data. |
|
08-17-2011, 11:44 AM | #30 | |
Zealot
Posts: 103
Karma: 57138
Join Date: May 2010
Device: Sony 505, iPad 1 & 3, Galaxy Note 8.1
|
Quote:
|
|
|
Similar Threads | ||||
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 |