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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 04-21-2012, 01:10 PM   #1
p3aul
Captain Courageous
p3aul doesn't litterp3aul doesn't litter
 
p3aul's Avatar
 
Posts: 239
Karma: 102
Join Date: Apr 2009
Device: calibre, PRS 505
opening up a lit file

I opened up a lit file by changing it's ext to zip and examined the contents. I wanted to extract the covers before converting it to a txt file. I found a file named content with no ext that seems to be the main file. My question is what type of file is it? I tried html but all i got was a blank page in firefox.
Thanks,
Paul
p3aul is offline   Reply With Quote
Old 04-21-2012, 04:57 PM   #2
Perkin
Guru
Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.
 
Perkin's Avatar
 
Posts: 655
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
As long as it's not DRM'ed there's a utility called convert lit that can extract the contents.
Or use calibre and do a convert to txtz or htmlz and then examine those files with a zip tool
Perkin is offline   Reply With Quote
Advert
Old 04-21-2012, 09:17 PM   #3
p3aul
Captain Courageous
p3aul doesn't litterp3aul doesn't litter
 
p3aul's Avatar
 
Posts: 239
Karma: 102
Join Date: Apr 2009
Device: calibre, PRS 505
Ok I just wondered what the extension for the file "content" was. I'm on Ubuntu linux and it gives no extension for the file.
Paul
p3aul is offline   Reply With Quote
Old 04-21-2012, 10:09 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,778
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:
Originally Posted by p3aul View Post
Ok I just wondered what the extension for the file "content" was. I'm on Ubuntu linux and it gives no extension for the file.
Paul
A LIT file has a LIT extension
A viewer for all ebook formats (p/o Calibre) is a viewer for LIT files
theducks is online now   Reply With Quote
Old 04-22-2012, 06:51 AM   #5
Perkin
Guru
Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.
 
Perkin's Avatar
 
Posts: 655
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
A lit file isn't a zip with a different extension, it had it's own compression. I think (IIRC) zip could read the header, but couldn't extract it properly though. The files were pretty much what are found in an epub, with a few differences - set sizes for covers, etc..
Perkin is offline   Reply With Quote
Advert
Old 04-22-2012, 03:07 PM   #6
p3aul
Captain Courageous
p3aul doesn't litterp3aul doesn't litter
 
p3aul's Avatar
 
Posts: 239
Karma: 102
Join Date: Apr 2009
Device: calibre, PRS 505
I know how to convert a lit file to just about any other format, that's not the issue. I just wanted to experiment and investigate the structure of a lit file. Although it gives me an error, the zip extractor I use in Linux successfully extracted the lit files. I don't know anything about the structure of a lit file but I wanted to learn.

Just changing the .lit to .zip enabled me to extract the contents. Among the contents were:
Folders:
data: 5 cover files Folder
Files:
pb1
pb2
pb3
manifest
meta

There is no extension on any file and on this lit file, no file named "content."
thanks,
Paul
p3aul is offline   Reply With Quote
Old 04-22-2012, 05:16 PM   #7
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,778
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:
Originally Posted by p3aul View Post
I know how to convert a lit file to just about any other format, that's not the issue. I just wanted to experiment and investigate the structure of a lit file. Although it gives me an error, the zip extractor I use in Linux successfully extracted the lit files. I don't know anything about the structure of a lit file but I wanted to learn.

Just changing the .lit to .zip enabled me to extract the contents. Among the contents were:
Folders:
data: 5 cover files Folder
Files:
pb1
pb2
pb3
manifest
meta

There is no extension on any file and on this lit file, no file named "content."
thanks,
Paul
Moderator Notice
Then this question belongs in the formats forum. Moving
theducks is online now   Reply With Quote
Old 04-22-2012, 07:32 PM   #8
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
It is an OEB file (also known as Open eBook) and shares its source format with eBookwise and Mobipocket. Think of it as ePub version 1.0. You can read about it in our wiki. If you discover any interesting things I would suggest you add to the wiki documentation.

Dale
DaleDe is offline   Reply With Quote
Old 04-22-2012, 07:36 PM   #9
AnemicOak
Bookaholic
AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.
 
AnemicOak's Avatar
 
Posts: 14,391
Karma: 54969924
Join Date: Oct 2007
Location: Minnesota
Device: iPad Mini 4, AuraHD, iPhone XR +
The structure of a standard LIT is generally made up of .jpg's of whatever graphics are in the book (cover, chapter headings, etc.), HTML files containing the book text itself, a .css file and an .opf file
AnemicOak is offline   Reply With Quote
Old 04-22-2012, 09:27 PM   #10
p3aul
Captain Courageous
p3aul doesn't litterp3aul doesn't litter
 
p3aul's Avatar
 
Posts: 239
Karma: 102
Join Date: Apr 2009
Device: calibre, PRS 505
Anemic Oak:
Undoubtedly, you are correct. However, I tried appending .html to files which by their size, obviously contained the book but no dice.
p3aul is offline   Reply With Quote
Old 04-22-2012, 09:42 PM   #11
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,155
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
Quote:
Originally Posted by p3aul View Post
I Although it gives me an error, the zip extractor I use in Linux successfully extracted the lit files.
Have you considered the fact that while the unzip might have been able to create files, the fact you received errors might well indicate that their content is garbage?

When I examine any of the lit files I have via a hex dump, I see they do follow the format described by Microsoft's ITOL/ITLS format which agrees with the MobileRead Wiki entry for lit format.

Last edited by PeterT; 04-22-2012 at 09:48 PM.
PeterT is offline   Reply With Quote
Old 04-22-2012, 09:56 PM   #12
AnemicOak
Bookaholic
AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.
 
AnemicOak's Avatar
 
Posts: 14,391
Karma: 54969924
Join Date: Oct 2007
Location: Minnesota
Device: iPad Mini 4, AuraHD, iPhone XR +
Quote:
Originally Posted by p3aul View Post
Anemic Oak:
Undoubtedly, you are correct. However, I tried appending .html to files which by their size, obviously contained the book but no dice.
Well you're unzipping a file that's meant to be taken apart a different way from my experience, so you could be getting all kinds of junk.
AnemicOak is offline   Reply With Quote
Old 04-23-2012, 09:36 AM   #13
Perkin
Guru
Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.
 
Perkin's Avatar
 
Posts: 655
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
Referring to my earlier post:
Quote:
Originally Posted by Perkin View Post
A lit file isn't a zip with a different extension, it had it's own compression. I think (IIRC) zip could read the header, but couldn't extract it properly though.
That's why you can't re-create the files by unzipping them.
Perkin is offline   Reply With Quote
Old 05-20-2012, 04:01 PM   #14
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by Perkin View Post
Referring to my earlier post:


That's why you can't re-create the files by unzipping them.
The "convert LIT" tool can be used to "explode" a LIT file to its HTML source.
HarryT 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
Trouble opening file on kindle sly_skittle Calibre 1 03-28-2012 02:52 PM
Empty DMG File when opening aalleexxxx Calibre 4 02-09-2012 08:17 AM
Opening a lit file returns error fiery Calibre 1 12-24-2010 02:05 PM
Error when opening lit file thfc2008 Other formats 7 11-25-2008 06:55 PM
Opening of referenced PDF file DrBibber iRex 2 07-30-2006 09:28 PM


All times are GMT -4. The time now is 08:02 PM.


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