Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 02-01-2011, 12:41 PM   #31
GeneS
eBook Enthusiast
GeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enough
 
GeneS's Avatar
 
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
Attached Files
File Type: epub Burgess, Thornton - The Boy Scouts in a Trappers Camp.epub (370.7 KB, 292 views)
GeneS is offline   Reply With Quote
Old 02-01-2011, 01:36 PM   #32
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
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>&nbsp;</p>] in "content0001.xhtml" so that the cover image displayed better in (windows) ADE.
nrapallo is offline   Reply With Quote
Old 02-01-2011, 02:09 PM   #33
GeneS
eBook Enthusiast
GeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enough
 
GeneS's Avatar
 
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
GeneS is offline   Reply With Quote
Old 02-01-2011, 03:00 PM   #34
Nigol
Groupie
Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.
 
Nigol's Avatar
 
Posts: 185
Karma: 363616
Join Date: Dec 2010
Location: Montreal, Canada
Device: Kobo Original, Kobo Touch
Quote:
Originally Posted by GeneS View Post
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.
Please note that the text is in red (that is no good) only the anchor remains. I thought I had fixed that bug. I will check with your provided file.
Nigol is offline   Reply With Quote
Old 02-01-2011, 03:01 PM   #35
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
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:
Originally Posted by GeneS View Post
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.
Oh, I originally missed the part in bold above. I didn't modify the text with Sigil or otherwise. I hand edited with winrar and a text editor my deletion of the cover page's empty paragraph block. I didn't try the below with my version above.

Quote:
Originally Posted by GeneS View Post
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.
nrapallo is offline   Reply With Quote
Old 02-01-2011, 03:21 PM   #36
Nigol
Groupie
Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.
 
Nigol's Avatar
 
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.
Nigol is offline   Reply With Quote
Old 02-01-2011, 03:44 PM   #37
GeneS
eBook Enthusiast
GeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enough
 
GeneS's Avatar
 
Posts: 120
Karma: 726
Join Date: Dec 2007
Location: US
Device: Sony PRS-350, Astak PocketPro, iPhone, Asus eee Pad Transformer
Quote:
Originally Posted by Nigol View Post
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 \.

I just hope that I did not break something else, so please let me know.

BINGO!!!

Works like a charm. Thanks for your work on this.
GeneS is offline   Reply With Quote
Old 02-01-2011, 03:53 PM   #38
Nigol
Groupie
Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.
 
Nigol's Avatar
 
Posts: 185
Karma: 363616
Join Date: Dec 2010
Location: Montreal, Canada
Device: Kobo Original, Kobo Touch
Quote:
Originally Posted by GeneS View Post
BINGO!!!

Works like a charm. Thanks for your work on this.
Just look at the update I posted, to just to let you Know the real reason, it was only because of text instead of Text.
Nigol is offline   Reply With Quote
Old 02-01-2011, 05:13 PM   #39
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
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.....
  • In the Add screen you "remember" the setting for Show All and Show Anchors even after the program is closed. Personally, I would think those settings should be reset each time the programs starts, but not when the Add screen is opened/closed/re-opened while editing the same file. What do you think?
  • I know this may seem nit-picking, but while in the TOC Editor screen, the Add option perhaps should not be a right-menu option since it doesn't act on anything selected. I think, it would be better suited as an Add button on the TOC Editor screen.
  • Can you consider assigning ePubFixer generated "id"s to all "href"s that don't have an existing "id". This way you can easily add "back links" to any hyperlink. For example, HarryT's "Pictures from Italy.epub" cannot be easily edited to add such "back links" to footnotes [1] and [2] (see attached image) as can my earlier "Lorna Doone.epub" modification. Any suggestions?
    EDIT: Perhaps just editing with Sigil to add such anchors would be easier.
Keep up the great work!
Attached Thumbnails
Click image for larger version

Name:	Pictures from Italy_footnotes.jpg
Views:	355
Size:	92.4 KB
ID:	65894  

Last edited by nrapallo; 02-01-2011 at 05:32 PM.
nrapallo is offline   Reply With Quote
Old 02-01-2011, 06:38 PM   #40
Nigol
Groupie
Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.
 
Nigol's Avatar
 
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:
Originally Posted by nrapallo View Post
OK, some personal comments/suggestions on the latest versions.....
[*]In the Add screen you "remember" the setting for Show All and Show Anchors even after the program is closed. Personally, I would think those settings should be reset each time the programs starts, but not when the Add screen is opened/closed/re-opened while editing the same file. What do you think?
I can agree with the Show All, but I kind of like the Show Anchors Always on. Maybe Add a Setting that could be selected what kind of settings you want to keep?

Quote:
Originally Posted by nrapallo View Post
[*]I know this may seem nit-picking, but while in the TOC Editor screen, the Add option perhaps should not be a right-menu option since it doesn't act on anything selected. I think, it would be better suited as an Add button on the TOC Editor screen.
A toolbar could be done, to have the same settings as the context menu. I will have to go hunting for suitable icons.

Quote:
Originally Posted by nrapallo View Post
[*]Can you consider assigning ePubFixer generated "id"s to all "href"s that don't have an existing "id". This way you can easily add "back links" to any hyperlink. For example, HarryT's "Pictures from Italy.epub" cannot be easily edited to add such "back links" to footnotes [1] and [2] (see attached image) as can my earlier "Lorna Doone.epub" modification. Any suggestions?
I kind of understand what you want. But not sure. You want to be able to go to a footnote and go back to the original text. But unlike your previous file (where there was a Anchor for the footnote in the original file, this one does not have it). But what I can't understand is how you want me to fix this?

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.
Nigol is offline   Reply With Quote
Old 02-01-2011, 08:34 PM   #41
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
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:
Originally Posted by Nigol View Post
I see that you have edited your post, you must have found the Check Version into the Setting Menu..
Yeah, I noticed it in v1.3.2 and then edited my post. You must have implemented that "under the radar" ...

Quote:
I can agree with the Show All, but I kind of like the Show Anchors Always on. Maybe Add a Setting that could be selected what kind of settings you want to keep?
I do like that too; I just didn't need the Show All selected every time. I'm fine with just Show Anchor being remember, no need for a setting/option.

Quote:
A toolbar could be done, to have the same settings as the context menu. I will have to go hunting for suitable icons.
I wouldn't go that far. Any button (like your Go or Save button) would do. I just would like immediate access to it, not through a right-menu click. I know, real nit-picking...

Quote:
I kind of understand what you want. But not sure. You want to be able to go to a footnote and go back to the original text. But unlike your previous file (where there was a Anchor for the footnote in the original file, this one does not have it). But what I can't understand is how you want me to fix this?

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.
Yes, that's exactly what I had in mind, however, I didn't realize that you would THEN need to write that "id" back into the text. This is not ideal, given Sigil accomplishes that task much better.

Quote:
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.
OK, just forget I mentioned it....
nrapallo is offline   Reply With Quote
Old 02-01-2011, 08:42 PM   #42
Nigol
Groupie
Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.
 
Nigol's Avatar
 
Posts: 185
Karma: 363616
Join Date: Dec 2010
Location: Montreal, Canada
Device: Kobo Original, Kobo Touch
Quote:
Originally Posted by nrapallo View Post
Yeah, I noticed it in v1.3.2 and then edited my post. You must have implemented that "under the radar" ...
Nope it was there all along in 1.3. I might have to do youtube video or something.

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.
Nigol is offline   Reply With Quote
Old 02-01-2011, 11:01 PM   #43
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
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:
Originally Posted by nrapallo View Post
Troubleshooting: If you open my Websters Dictionary 1913_ver21.epub, in the Add screen, the filename is truncated after the third hyphen and I can't tell which filename is being shown (they all look the same)
WARNING: It'll take a loooong time to open the Add screen on that one...

Thanks!

Last edited by nrapallo; 02-02-2011 at 12:23 AM.
nrapallo is offline   Reply With Quote
Old 02-02-2011, 08:34 AM   #44
konrad
Member
konrad began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Feb 2010
Device: none
Unhappy 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.
konrad is offline   Reply With Quote
Old 02-02-2011, 08:51 AM   #45
Nigol
Groupie
Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.
 
Nigol's Avatar
 
Posts: 185
Karma: 363616
Join Date: Dec 2010
Location: Montreal, Canada
Device: Kobo Original, Kobo Touch
Quote:
Originally Posted by konrad View Post
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.
No there is nothing special to it. But you could always just open the exe and select choose files. If it does not start make sure that you have the .NET framework 3.5 (SP1) installed, has it does not come pre-installed on XP.
Nigol is offline   Reply With Quote
Reply

Tags
epub, epubfixer, toc.ncx editor, tool


Forum Jump

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


All times are GMT -4. The time now is 07:52 PM.


MobileRead.com is a privately owned, operated and funded community.