![]() |
#31 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Read the first post in this thread for the six anchors problem. As for the Table of contents, you can have a table of contents in an NCX file (this is the official way as per the OPS 2.0 spec) or you can have it in the HTML itself and tell calibre how to extract it via the --level*-toc options.
|
![]() |
![]() |
![]() |
#32 | |
Zealot
![]() ![]() ![]() Posts: 128
Karma: 278
Join Date: Jun 2008
Device: Kindle; PRS-500; MobiPocket on Windows Mobile
|
Quote:
I hadn't noticed the --level*-toc options for the oeb2lit, so I guess I should switch to using any2lit. Thanks for all the work you're doing. I just made a PayPal donation as a small token of my thanks. I wish it could be more, but things are tight for everybody right now... |
|
![]() |
![]() |
Advert | |
|
![]() |
#33 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
![]() And the thanks for LIT output should really go to llasram. |
|
![]() |
![]() |
![]() |
#34 |
Reticulator of Tharn
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
Eee. Kovid's hit the other issues, but we shouldn't be producing output which crashes MSReader. Could you create an issue for this on the calibre trac and post the offending input file and command-line arguments you used?
|
![]() |
![]() |
![]() |
#35 | |
Zealot
![]() ![]() ![]() Posts: 128
Karma: 278
Join Date: Jun 2008
Device: Kindle; PRS-500; MobiPocket on Windows Mobile
|
Quote:
![]() |
|
![]() |
![]() |
Advert | |
|
![]() |
#36 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Mar 2009
Device: Sony PSP
|
Hello! I am very excited about calibre's .lit file generation feature but I'm running into some unexpected results so I thought I'd ask here.
First, some background: I use my Sony PSP as an ebook reader. I extract the .lit files from the freely downloadable Baen Free Library CDs. I have written a collection of shell and Python scripts which use ConvertLIT's clit tool to extract content from .lit files and transmogrify it into collections of HTML pages, and it works really well. I have another document I'd like to have as an ebook in this structure, so the easiest thing to do was convert it to .lit so it could be deconverted along with the hundreds of other .lit files. I created an OPF using the examples from the BFL CDs, then translated my document into HTML. When I built the .lit file using oeb2lit.exe (my other code runs on FreeBSD and it was easy to get calibre installed on a Windows box), I got the following (hand-transcribed) output: WARNING: Parsing file 'mybook.htm' as HTML INFO: Generating in-line TOC... INFO: Applying case-transforming CSS... INFO: Flattening CSS and remapping font sizes... INFO: Source base font size is 12.00000pt INFO: Rasterizing SVG images... INFO: Trimming unused files from manifest... WARNING: More than six anchors in file 'mybook.htm'. Some links may not work properly. INFO: Output written to C:\mybook.lit I then used clit to extract the content and compare it to the input content, and noticed a number of differences, primarily additional files and some CSS. The additional files don't bother me as I throw them away in my scripts, but the additional CSS is causing problems. How can I disable the CSS-generation feature of oeb2lit.exe? Thanks! |
![]() |
![]() |
![]() |
#37 |
Reticulator of Tharn
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
@mathuin Can you be more specific about what unwanted CSS calibre is producing?
|
![]() |
![]() |
![]() |
#38 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
Any ideas when LIT make it to the GUI? So far from my experiences the any2LIT is quite stable?
=X= |
![]() |
![]() |
![]() |
#39 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
After the ongoing conversion pipeline refactoring. So in a few weeks
|
![]() |
![]() |
![]() |
#40 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
|
![]() |
![]() |
![]() |
#41 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jan 2010
Device: pocket pc
|
I apologize if this is the wrong section for this, but I'm not sure where else to post my problem.
I'm trying to convert PDF files to LIT, as I prefer MS Reader on my pocket pc, to Adobe Reader. When Calibre converts a PDF file, I get a single LIT file. When I try to open the LIT file in MS Reader, both on my PC and my pocket pc, I get an error stating that a file is missing. I have noticed that all of my other LIT ebooks have an accompanying file with the extension of .EBO Is it possible for Calibre to generate this .EBO file? Or am I missing something? I've searched and searched and haven't found anything addressing this issue, so I apologize if I've missed something. |
![]() |
![]() |
![]() |
#42 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There's probably something wrong with the LIT, unfortunately, lalram, the guy who wrote the LIT output support is no longer active, so it's unlikely this bug will get fixed.
|
![]() |
![]() |
![]() |
#43 |
Member
![]() Posts: 13
Karma: 10
Join Date: Jul 2007
Location: tampa fl
Device: sony ereader prs-505
|
I have noticed that all of my other LIT ebooks have an accompanying file with the extension of .EBO
the EBO file is created by msreader when you open the file. Its where msreader stores your current page, notes etc. So it's probably something else unless you do not have write permission on the directory where the lit files are at. I have attempted to read the calibre generated LIT files into bookdesigner and it fails apparently something in the file info is messed up. but my msreader is not having problems opening the new LIT files so I suspect your problem lies elsewhere. Most of my LIT files were conversions from LRF though not PDF and I have not tried them on a pocket pc yet. let me dig up one of my old pocket pcs and try it. |
![]() |
![]() |
![]() |
#44 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jan 2010
Device: pocket pc
|
Thanks for your help, johnc!
|
![]() |
![]() |
![]() |
#45 |
Member
![]() Posts: 13
Karma: 10
Join Date: Jul 2007
Location: tampa fl
Device: sony ereader prs-505
|
I loaded several of them on my sd card when I try to open by clicking on the lit file in the file browser
I do get a error but when I open the msreader and open via the library they work. I remember running into that issue previously and it did not matter what the lit file source was the problem was something in microsofts changes to the msreadersoftware something is wrong with the registry key on the pocket pc the msreader setup took me a while to relocate the fix (did not help the hp rom update I tried failed and left me unbootable for a while and hp helpdesk was useless claimed I had to send it in to get it fixed but I finally found a rom loader and got rom reloaded). I then reinstalled msreader and applyed this fix using a registry key editor for the pocket pc. finding that fix even though I knew it existed was the hard part microsoft does not seem to have it in any technote on their site but I finally found a reference to via google http://blogs.technet.com/vik/archive...t-opening.aspx • Registry Key: HKEY_CLASSES_ROOT\eBook\Shell\Open\Command • Old Value: \Program Files\Microsoft Reader\MSReader.exe %1 • Corrected Value: "\Program Files\Microsoft Reader\MSReader.exe" %1 • Registry Key: HKEY_CLASSES_ROOT\eBookEBO\Shell\Open\Command] • Old Value: \Program Files\Microsoft Reader\MSReader.exe %1 • Corrected Value: "\Program Files\Microsoft Reader\MSReader.exe" %1 basically microsoft forgot the double quotes and never fixed or even put up a technote on the problem at least their own search engine could not find it. no idea if the windows mobile version has same issue or not. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
LRF output | kovidgoyal | Calibre | 873 | 04-06-2010 02:32 PM |
FB2 output | KarateMonkey | Calibre | 0 | 03-14-2010 07:47 PM |
Trying to get consistent look to all output | daveps | Calibre | 0 | 03-08-2010 02:18 PM |
Converting LIT to LRF Woes (or: Trouble with Images in LIT Files) | JEMelby | Sony Reader | 0 | 07-27-2007 09:18 PM |
converting lit html output into one big file for BD | Dave Berk | Sony Reader | 15 | 03-29-2007 10:02 PM |