View Single Post
Old 02-14-2008, 03:38 PM   #249
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
Now that you mention it, the cases where I got the 'Not an anchor' message, that truly did not have any anchors, were:

1. <m - as you mentioned for <mp: pagebreak> (Why would you link to BEFORE a pagebreak? Great sample!).
2. <b - for '<b>' just before an anchor
3. <d - for '<div' like in many feedbooks.com .prc files that I converted

They all ended up being valid links to insert a '<a name' tag; just that the ACTUAL 'filepos' was poorly positioned. My thinking was that I would go ahead and insert it as long as it was not in the middle of something. The start of a tag "<" was indeed a good choice to overlook your warning.

If this turned out wrong, then the original .prc had it wrong too! Your code is right, just the anchors are poorly positioned!

Just my thoughts.

Also, thanks for including the 'mobi2imp' in version 0.0.29. That script is version 2; whereas, the fix mentioned above is in version 3 previously posted. However, version 3 also adds the ability to 'fix' corrupt images within the .prc as this is often the case when using the ebook Publisher software. You may want to just comment out this Windows-specific 'fix' line for your distribution, namely:

Code:
system "nconvert.exe", "-quiet", "-q", "85", "-resize", "100%", "100%", "$explodedir/$filename";
I wanted to update 'mobi2imp' to include your latest revisions to mobi2html for the 'huffdic' issue, but I couldn't find that fix in version 0.0.29; is it there?

-Nick
nrapallo is offline   Reply With Quote