12-28-2007, 03:18 PM | #1 |
Reticulator of Tharn
Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
Convert LIT bug & patch
I'm surprised no one else has noticed this, but Convert LIT 1.8 has a bug which causes it to occassionally generate incorrect cross-file links. For example, it may link to footnote14.html instead of footnote1.html or page71.jpg instead of page7.jpg. I've e-mailed the maintainer, but given that the Convert LIT page hasn't been updated for a few years I'm not sure what sort of response to expect. For the time being, the attached patch fixes this issue for me.
|
12-28-2007, 08:12 PM | #2 |
creator of calibre
Posts: 43,773
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If you dont receive a response from the clit maintainers and since this concerns the conversion of undrmed lit files to HTML are you interested in re-implementing that part of clit in python? I've already made a beginning at the port (to read metadata from lit files) it's in the metadata module of libprs500's source tree.
|
Advert | |
|
12-28-2007, 08:42 PM | #3 |
Grand Sorcerer
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
If you could tell the Debian maintainer for clit about this it would be good...
|
12-30-2007, 02:29 PM | #4 | |
Reticulator of Tharn
Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
Quote:
|
|
12-30-2007, 04:05 PM | #5 |
creator of calibre
Posts: 43,773
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Here's a link to the lit decompiling code I have so far, it extracts the metadata OPF file from the lit file.
https://libprs500.kovidgoyal.net/bro...etadata/lit.py You can use it as a base to extract the other file types. Ask if you need any help. |
Advert | |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
JB & ALP - FW and Patch question | jlg432 | Ectaco jetBook | 1 | 08-16-2010 03:47 PM |
0.6.37 convert to ePub bug(?) | cutterjohn42 | Calibre | 1 | 02-05-2010 09:14 AM |
Bug reports & advices for next versions (0.6.32 MacOS X) | neotheone | Calibre | 2 | 01-07-2010 01:14 PM |
Possible Bug: Odd Glitches in Formatting .lit to .lrf | RJ_Cruze_Jr | Calibre | 7 | 08-02-2009 11:25 AM |
Bug when trying to convert a PRC file | Alfy | Calibre | 3 | 10-18-2008 12:23 PM |