Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > Other formats > IMP

Notices

Reply
 
Thread Tools Search this Thread
Old 10-03-2008, 05:51 PM   #1
askyn
Addict
askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.
 
askyn's Avatar
 
Posts: 300
Karma: 1006538
Join Date: Jul 2008
Device: Kindle Paperwhite (11th Gen)
Question: converting lit to imp and keeping table of contents links etc

Hi all /wave

Ive just bought a copy of the Bible from fictionwise for the 1150.

I de-drmed it etc, and then converted it over to imp for the 1150 to read.

Problem? .. ive lost the table of contents links etc. The table is still there but its just words ... no links to jump you to that part in the book.

PLEASE PLEASE ... someone suggest something for me to try or give me directions on what to do so that I can keep the table of contents functional!

This is obviously a HUGE book and with out the ability to jump around using something like a ToC it would be hit or miss on tring to get to were i want to read. ( the book when converted over has 7278 pages !!! eeek ! )

Also on a side note, this is one of the first books what ive converted ( granted only done a hand full ), that turned out DOUBLE the size of the original lit file ! (lit = 2614k .. imp = 6453k ( yep 6.4meg HUGE ) ). Anyone else had this happen?

If you can give me any help / suggestions ill forever be in your debt =)
askyn is offline   Reply With Quote
Old 10-03-2008, 06:54 PM   #2
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
Hi,

Me again; I see it's you again.

It's Ok. Let me start by saying "welcome" to the world of converting problems when using .lit as an input.

Good questions. I've had similar issues before.

What you can try and do is:

1. Open the main .html file in a text editor and look for a tag like <a href="linkfile#name">
2. If the 'linkfile' above is the name of your .html filename, then remove it
i.e. do a search & replace for <a href="linkfile#name"> and replace with <a href="#name">
3. open the main .html in internet explorer or firefox and see if the links work now.

The double size problem may be an issue with the .opf file that gets created by lit2sb. The last entry in the <spine> section usually gets duplicated and if already exists in the <spine> section, then can be deleted.

Try these simple corrections and re-build the .opf into .imp.

If you need more help, just private message me.
nrapallo is offline   Reply With Quote
Advert
Old 10-03-2008, 07:04 PM   #3
askyn
Addict
askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.
 
askyn's Avatar
 
Posts: 300
Karma: 1006538
Join Date: Jul 2008
Device: Kindle Paperwhite (11th Gen)
We have to stop meeting like this !!!

People will start to talk ~!!

thanks for the suggestions, ill give em a shot and see how it goes =)
askyn is offline   Reply With Quote
Old 10-03-2008, 07:24 PM   #4
askyn
Addict
askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.
 
askyn's Avatar
 
Posts: 300
Karma: 1006538
Join Date: Jul 2008
Device: Kindle Paperwhite (11th Gen)
Just to be sure we are on the same page, here is a sample of what ill be changing:

change this:

<h1 class="c1" id="TOC">Contents</h1>
<br>

<p class="c2"><a href="NIV%20Preface.htm#_MAIN_RWTOC-1">Preface to
The New International Version</a></p>


to THIS:

<h1 class="c1" id="TOC">Contents</h1>
<br>

<p class="c2"><a href="#_MAIN_RWTOC-1">Preface to
The New International Version</a></p>

Is that correct? (ill be editing the file as you read =-) )
askyn is offline   Reply With Quote
Old 10-03-2008, 07:40 PM   #5
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
You will also need <a name=TOC></a> entry in order for the jump to TOC to work.
DaleDe is offline   Reply With Quote
Advert
Old 10-03-2008, 08:14 PM   #6
askyn
Addict
askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.
 
askyn's Avatar
 
Posts: 300
Karma: 1006538
Join Date: Jul 2008
Device: Kindle Paperwhite (11th Gen)
hmm .. were would i put that at?

not sure of the context here.

Would i put it in each line of the <a href ... ?

or were?
askyn is offline   Reply With Quote
Old 10-03-2008, 10:06 PM   #7
askyn
Addict
askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.
 
askyn's Avatar
 
Posts: 300
Karma: 1006538
Join Date: Jul 2008
Device: Kindle Paperwhite (11th Gen)
Ok i got it converted so that the table of contents links are working now.

I used the convert lit gui to explode the file, then loaded the opf file into epublisher and used that to create the imp file.

It created ok and the toc works, only thing is that the imp book is 6.5meg vs the lit being 2.6meg

Using lit2sb it converted it to half closer to lit file size but the TOC doesnt work.

Strange, any way it seems that lit2sb has problems converting the toc links etc?
askyn is offline   Reply With Quote
Old 10-03-2008, 10:13 PM   #8
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 DaleDe View Post
You will also need <a name=TOC></a> entry in order for the jump to TOC to work.
Quote:
Originally Posted by askyn View Post
hmm .. were would i put that at?

not sure of the context here.

Would i put it in each line of the <a href ... ?

or were?
Just place it at the beginning of your html were your TOC is located, after the <body> tag.
nrapallo is offline   Reply With Quote
Old 10-03-2008, 10:20 PM   #9
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 askyn View Post
Ok i got it converted so that the table of contents links are working now.

I used the convert lit gui to explode the file, then loaded the opf file into epublisher and used that to create the imp file.

It created ok and the toc works, only thing is that the imp book is 6.5meg vs the lit being 2.6meg

Using lit2sb it converted it to half closer to lit file size but the TOC doesnt work.

Strange, any way it seems that lit2sb has problems converting the toc links etc?
Just do the same thing you did above after exploding it with lit2sb, i.e. edit the .html to remove the filename (NIV%20Preface.htm) from before the # in <a href=> tags. Then using the resulting o_sb.opf, re-build the revised (working links) .imp.

I think this is a problem with eBook Publisher not understanding what to do when it sees the SAME filename used for that .html in <a href> tags. Different filenames of external files work, but not the current file. So it's not really ConvertLit or Lit2sb's fault.

About the size, ensure you have compression on in your .opf's Edition settings. If you don't know where to find it, just post the .opf used to create the .imp in a message here.

Last edited by nrapallo; 10-03-2008 at 10:22 PM.
nrapallo is offline   Reply With Quote
Old 10-04-2008, 12:38 AM   #10
askyn
Addict
askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.
 
askyn's Avatar
 
Posts: 300
Karma: 1006538
Join Date: Jul 2008
Device: Kindle Paperwhite (11th Gen)
nope found that part ok =)

ooh and just a fyi, epublisher didnt have any problem creating the links for the TOC... lit2sb did.

and at your suggestion / instruction I not only found the compression option but also enabled the option to underline links.

Now I not only have working links but can see were the links are etc =)
askyn is offline   Reply With Quote
Old 10-04-2008, 12:59 AM   #11
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
In eBook Publisher, my defaults are set per the images below. Just set your preferences using File | Preferences... once and then you will always have them for New projects.

However, note that the .opf can (and will) override these settings, so double check when you use lit2sb.
Attached Thumbnails
Click image for larger version

Name:	Clipboard00.jpg
Views:	723
Size:	49.4 KB
ID:	16772   Click image for larger version

Name:	Clipboard01.jpg
Views:	702
Size:	37.4 KB
ID:	16773  
nrapallo is offline   Reply With Quote
Old 10-04-2008, 01:04 AM   #12
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 askyn View Post
ooh and just a fyi, epublisher didnt have any problem creating the links for the TOC... lit2sb did.
eBook Publisher doesn't create the links, but has the problem understanding them. Yes, lit2sb created the links, but you should have been able to follow them if you had opened the .html in internet explorer/firefox (and tested them before editing out the linkname per above).

Same conclusion though...

Last edited by nrapallo; 10-04-2008 at 01:06 AM.
nrapallo is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Table Of Contents Question Humble Calibre 2 07-26-2010 09:10 PM
Help with my Table of Contents Skylinefranc Calibre 0 03-19-2010 12:55 AM
Question Regarding Table of Contents Guns4Hire Sigil 2 01-12-2010 11:15 PM
Question about converting DRM lit to epub weeziepepper ePub 3 12-17-2009 10:52 AM
Table of contents and time question lizzielou Sony Reader 2 11-29-2009 04:48 AM


All times are GMT -4. The time now is 05:08 AM.


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