02-01-2011, 12:41 PM | #31 |
eBook Enthusiast
Posts: 120
Karma: 726
Join Date: Dec 2007
Location: US
Device: Sony PRS-350, Astak PocketPro, iPhone, Asus eee Pad Transformer
|
Thanks, Nigol, for the update. And thank you, Nick, for the excellent rendition of "Lorna Doone."
It's apparent to me that I'm doing something wrong. I can use epubfixer to create a new TOC and save the file ... works beautifully. However if I make any subsequent modification to the text itself (using epubfixer or not) , and then save the modified file, the new TOC no longer works. Depending on how I've done the modifications, either my changed TOC disappears or if it is still there, clicking on a TOC entry results in incorrect results or an error message. If I re-edit to Nick's new version of "Lorna Doone," the results are fine. I've attached my epubfixer fixed version of a Project Gutenburg epub book by Thornton Burgess. Perhaps someone out there can tell me what I'm overlooking. Thanks for any help. Gene |
02-01-2011, 01:36 PM | #32 |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Ok, I duplicated the first chapter name and renamed it "Chapters".
I then moved all the chapters titles listed on the TOC Editor screen onto this newly created level1 TOC entry (Chapters) thus creating level2 TOC entries for all those chapters. I clicked Save and it works! Try to do the same and compare to the one I've attached below. Oh, one more change I made was to delete the empty paragraph block [<p> </p>] in "content0001.xhtml" so that the cover image displayed better in (windows) ADE. |
02-01-2011, 02:09 PM | #33 |
eBook Enthusiast
Posts: 120
Karma: 726
Join Date: Dec 2007
Location: US
Device: Sony PRS-350, Astak PocketPro, iPhone, Asus eee Pad Transformer
|
Thanks, Nick.
I loaded the file you created into epubfixer, having checked 'Edit in Sigil' and 'Edit Table of Contents.' Then when the file came up in Sigil, I modified the file "contents008.xhtml" by changing the second word in the first paragraph from "those" to "they." then saved the file in Sigil. When Sigil closed, the TOC came up in epubfixer. I applied and saved, then exited from epubfixer. The attached file is the result and an example of what I'm referring to. The modified TOC is shown when I call up the file (I use the epub plugin in Firefox) but no longer points where it should. Thanks. Further edit: As long as I don't change the file structure, I can fix this by saving the toc.ncx file from the epub before I start and then replace it back into the modified file when I'm done, however I was hoping that this would be done as a part of the epubfixer process. Last edited by GeneS; 02-01-2011 at 03:02 PM. Reason: Additional information |
02-01-2011, 03:00 PM | #34 | |
Groupie
Posts: 185
Karma: 363616
Join Date: Dec 2010
Location: Montreal, Canada
Device: Kobo Original, Kobo Touch
|
Quote:
|
|
02-01-2011, 03:01 PM | #35 | |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
|
|
02-01-2011, 03:21 PM | #36 |
Groupie
Posts: 185
Karma: 363616
Join Date: Dec 2010
Location: Montreal, Canada
Device: Kobo Original, Kobo Touch
|
I just uploaded the Fix, it was so Stupid, I don't even know why it worked in the first place.
Sigil usually puts the text file in OEBPS/Text/content0001.xhtml, well I was looking for the filename in the manifest (to know where it is now). But instead of using a "/", I used a \ to separate the path from the filename. I just hope that I did not break something else, so please let me know. Update : It has nothing to do with the / (although that fixes it partially). It is only because your original file was in the folder "text" (look at the case), But sigil renamed it to "Text". Those are little things that you just can't think about, and you help me find them. Last edited by Nigol; 02-01-2011 at 03:46 PM. |
02-01-2011, 03:44 PM | #37 | |
eBook Enthusiast
Posts: 120
Karma: 726
Join Date: Dec 2007
Location: US
Device: Sony PRS-350, Astak PocketPro, iPhone, Asus eee Pad Transformer
|
Quote:
BINGO!!! Works like a charm. Thanks for your work on this. |
|
02-01-2011, 03:53 PM | #38 |
Groupie
Posts: 185
Karma: 363616
Join Date: Dec 2010
Location: Montreal, Canada
Device: Kobo Original, Kobo Touch
|
|
02-01-2011, 05:13 PM | #39 |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
OK, some personal comments/suggestions on the latest versions.....
Last edited by nrapallo; 02-01-2011 at 05:32 PM. |
02-01-2011, 06:38 PM | #40 | |||
Groupie
Posts: 185
Karma: 363616
Join Date: Dec 2010
Location: Montreal, Canada
Device: Kobo Original, Kobo Touch
|
I see that you have edited your post, you must have found the Check Version into the Setting Menu..
Quote:
Quote:
Quote:
The program just gets all the id's in the html file, there is no editing of the html file being done, so like you said it might be easier to add them in sigil, because I do not think that adding id's to the html will do a good job. And just searching for the same text will add a lot of possible junk. But maybe I misunderstand what you are talking about. The html parser I use does not really like nested tags and can very easily screw up the file (there are weird types of file, where calibre adds it's own tags, sigil adds it own, etc.) And for every tag added it considers it a separate line, so duplicating text etc. That is why I used HTML Tidy for the new split chapter function, to have it better formatted and "manually" selected the text, but it is so slow. |
|||
02-01-2011, 08:34 PM | #41 | |||||
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
Quote:
Quote:
Quote:
Quote:
|
|||||
02-01-2011, 08:42 PM | #42 | |
Groupie
Posts: 185
Karma: 363616
Join Date: Dec 2010
Location: Montreal, Canada
Device: Kobo Original, Kobo Touch
|
Quote:
And I wanted people to know (I forgot to re-write it in the readme). That with the Split Chapters, clicking Apply will split the chapters and show the new TOC (also updates the opf file) but not save the TOC (so you can see the new source, if it was split ok etc.) so clicking close will seriously screw the whole thing. So maybe just remove that apply button. And since there are no urgent need for fixing, I will probably do a new update when there are more important features to add, other than simple annoyance fix. With the new Tidy dll being used, anyone might like a Tidy Files functions? Or since it is already there in Sigil, it might not be needed. Any other thing that people will like? I usually just add features, as I convert some books and find some problem I cannot fix, but right now I found it pretty much does all I need. I am thinking of fixing some of the detected text, because the html parser looks like it is missing some things, but other than that... I don't know (other than your suggestions). Last edited by Nigol; 02-01-2011 at 08:57 PM. |
|
02-01-2011, 11:01 PM | #43 | |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
While you're waiting for comments on new features, do you mind revisiting my issue below:
Quote:
Thanks! Last edited by nrapallo; 02-02-2011 at 12:23 AM. |
|
02-02-2011, 08:34 AM | #44 |
Member
Posts: 18
Karma: 10
Join Date: Feb 2010
Device: none
|
ePub Fixer not working
Hello ,Nigol
Just downloaded Epub fixer and tried both ways of using (send to and open with), but nothing happens. No program appears, just the hourglass cursor for a second and then nothing happens.Is there something else I need to do or some system requirement that needs to be met . I am running Windows XP home SP2 1gig memory. Please help. Thank you. |
02-02-2011, 08:51 AM | #45 | |
Groupie
Posts: 185
Karma: 363616
Join Date: Dec 2010
Location: Montreal, Canada
Device: Kobo Original, Kobo Touch
|
Quote:
|
|
Tags |
epub, epubfixer, toc.ncx editor, tool |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Option not to edit TOC | Jonimeesermann | Sigil | 5 | 10-06-2010 02:18 PM |
Few epubs have toc | James_Wilde | Writers' Corner | 1 | 09-29-2010 07:20 PM |
Creator How to edit ToC | JaneFancher | Kindle Formats | 8 | 03-27-2010 08:40 PM |
whishlist: button/command edit in Sigil | booksonthemove | Calibre | 3 | 03-03-2010 06:30 AM |
sigil and toc | bobcdy | Sigil | 5 | 10-17-2009 04:29 PM |