Bug 158113

Summary: support for reading .lit files
Product: [Applications] okular Reporter: Dario Panico <dariopnc>
Component: New backend wishesAssignee: Okular developers <okular-devel>
Status: CONFIRMED ---    
Severity: wishlist CC: kranthi.t2000, samjnaa
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Simple clit based shell script to convert lit to epub

Description Dario Panico 2008-02-20 18:55:36 UTC
Version:            (using Devel)
Installed from:    Compiled sources
OS:                Linux

Please add support for reding .lit files because several e-books are shipped in that format.
Okular has to be a complete suite for reading every kind of file.
Comment 1 Ely 2008-03-06 23:06:50 UTC
Created attachment 23813 [details]
Simple clit based shell script to convert lit to epub
Comment 2 Ely 2008-03-06 23:07:12 UTC
Since lit is propriety undocumented copyright protected file format.
And that the one guy was brave enough to parse it and got into legal problem. 
I don't think we want/can support it natively.
What we can do is to use convertlit to convert those files into epub format
and then use okular's epub plugin to show them.
I hacked a simple shell script that suppose to do that. It's probably still have some issues but I think with some work we might be even to use it as default.


Comment 3 T. J. Brumfield 2008-06-19 23:24:10 UTC
I was just going to suggest using convertlit personally.  Is there any chance this might get integrated into Okular?  Is there any way for me to integrate this script with Okular for personal use?
Comment 4 Fry 2008-07-22 06:32:34 UTC
*** This bug has been confirmed by popular vote. ***
Comment 5 T. J. Brumfield 2008-07-22 06:43:27 UTC
In regards to comment #2 from Ely, I don't know the story of the guy who was trying to open up the format before.  People reverse-engineer format readers all the time.  That isn't against the law.  If I had to guess, the kid was threatened with the DMCA, which makes it illegal to circumvent copyright protection to pirate materials.

So, it likely goes alone similar lines of libdvdcss, in which code allows you to play media (or read media) which I've seen lawyers say is perfectly legal, and has no real bearing on the DMCA.  Enabling people to bypass copyright protection to make unlawful copies is another story altogether.

Enough FUD was spread that people are afraid to touch it.  Distros won't include libdvdcss, even though it isn't illegal.  And no one has gone after distros that do include it.

If people have been scared off of .lit support because of FUD, that is sad.
Comment 6 Shriramana Sharma 2009-12-17 19:26:57 UTC
No developments on this front? I would also like Okular to read LIT files.
Comment 7 Albert Astals Cid 2009-12-17 21:21:24 UTC
Unless someone steps up and codes it, there's no support planned
Comment 8 Brad Hards 2009-12-17 21:34:04 UTC
I'm not aware of anyone working on this.
Comment 9 Shriramana Sharma 2009-12-18 03:48:18 UTC
(In reply to comment #1)
> Created an attachment (id=23813) [details]
> Simple clit based shell script to convert lit to epub

Thanks! But it actually apparently requires bash to work correctly. On systems where /bin/sh points to dash (such as on Ubuntu) it does not work. So please change the hashbang line to indicate bash.
Comment 10 Pino Toscano 2011-05-17 21:26:42 UTC
*** Bug 273513 has been marked as a duplicate of this bug. ***