![]() |
#16 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
Hi llasram,
I just tested the LIT file great job! The LIT progress is coming along great, I think soon your final LIT will be better than what we get from professional LIT files! Okay here are some of the issues I'm seeing. It seems the fonts are not taking. See my two LIT books to see what I mean. one was created using calibre the other was using WordRMR. Also I'm getting an error building a LIT book from a word generated HTML. Not sure what is different from this HTML that would cause it to break. Anyhow below is the error message Code:
IOError: [Errno 22] invalid mode ('wb') or filename: u'C:\\Documents and Settings\\<username>\\ D:\\Documents and Settings\\<username>\\My Documents\\My Books\\eBookClass ics\\TiranBlanc.lit' |
![]() |
![]() |
![]() |
#17 | |
Reticulator of Tharn
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
Quote:
That looks not to be an HTML problem, but a Windows vs. POSIX path issue. Could you post/attach the full stack trace for when you get that error? |
|
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
Ok are you asking for a calibre stack trace
|
![]() |
![]() |
![]() |
#19 |
Reticulator of Tharn
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
|
![]() |
![]() |
![]() |
#20 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
Okay I just tested the LIT creation. Great Job! You fixed all the issues I was reporting. CSS rules are now. I think these respect the rules too good, I had to fix some of my CSS to work properly
![]() You've also resolved the Table of Content problem, that's awesome it looks great! Also here is the irony, the latest version has broken the coverpage option. You've seemed to resolve the issue I was having with creating "Tirrant lo Blanc" so I wont be posting the stack trace. Last comment. On the page break LIT is inserting what looks like a <hr> preceding the break. That is fine if you want to leave that there but is there a way to disable that feature for those of us who do not wish to see it. Thank you, Again Great job I knew the final product would produce better LIT than the commercial products =X= |
![]() |
![]() |
Advert | |
|
![]() |
#21 | ||
Reticulator of Tharn
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
Quote:
Quote:
I can't think of what that could be... Could you open a ticket on the Calibre trac and attach an example input which results in such output? |
||
![]() |
![]() |
![]() |
#22 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
This will happen in you set --chapter-mark to both instead of pagebreak
|
![]() |
![]() |
![]() |
#23 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
Quote:
Also what is the default behavior if this value is not set? =X= |
|
![]() |
![]() |
![]() |
#24 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The default is pagebreak, but defaults can be overriden via the GUI. Your current default will be in the file epub.py
|
![]() |
![]() |
![]() |
#25 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
Ok I belive this is an issue with any2lit. This only shows up with this tool, other formats where created in almost an identical process without the rule line showing.
Thank you =X= Last edited by =X=; 01-19-2009 at 04:00 PM. |
![]() |
![]() |
![]() |
#26 | |
What the Dog Saw
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 311
Karma: 981684
Join Date: Jul 2008
Location: Dunn Loring
Device: Sony PRS-650, Surface3
|
Quote:
Code:
# chapter mark # Specify how to mark detected chapters. A value of "pagebreak" will insert page breaks before chapters. A value of "rule" will insert a line before chapters. A value of "none" will disable chapter marking and a value of "both" will use both page breaks and lines to mark chapters. chapter_mark = u'pagebreak' |
|
![]() |
![]() |
![]() |
#27 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
![]() |
![]() |
![]() |
#28 |
What the Dog Saw
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 311
Karma: 981684
Join Date: Jul 2008
Location: Dunn Loring
Device: Sony PRS-650, Surface3
|
|
![]() |
![]() |
![]() |
#29 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
Great JOB!
llasram,
I just wanted to give you some positive feedback. The LIT (any2LIT) is working great. The LIT files your tool is producing are excellent. Thank you =X= Last edited by =X=; 02-10-2009 at 08:42 AM. Reason: made sentence plural |
![]() |
![]() |
![]() |
#30 |
Zealot
![]() ![]() ![]() Posts: 128
Karma: 278
Join Date: Jun 2008
Device: Kindle; PRS-500; MobiPocket on Windows Mobile
|
Hi! I've been using Calibre's tools for a few months now, and wanted to say ... you guys are awesome. This is one amazing package. And the fact that it updates so often is REALLY cool! I think I'll kick a few bucks your way.
Anyway, on to my question. I just started using Calibre's LIT creation tools; normally I've been converting my source files, usually HTML, to OEB (you know, an .OPF file plus the XHTML and image files, basically) via html2oeb and then from there to MobiPocket. But now I'm experimenting with making LIT files, because I've been reading some threads about how MobiPocket's HTML 3-era support is a lot worse for tables and whatnot than LIT's HTML 4-era support, so I want to see how LITs look. Anyway, so I took an OPF file that worked fine for conversion to MobiPocket and tried to run oeb2lit on it, and I got the following: Code:
WARNING: No metadata table of contents found INFO: Applying case-transforming CSS... INFO: Flattening CSS and remapping font sizes... INFO: Source base font size is 10.80000pt INFO: Rasterizing SVG images... INFO: Trimming unused files from manifest... WARNING: More than six anchors in file 'Crystal.html'. Some links may not work properly. INFO: Output written to c:\ebooks\Crystal.lit So I have two questions. First, what does it mean about there being no metadata table of contents? There is a <guide> entry for the table of contents, and I'm not sure where else you can put a table of contents in the .OPF file ... I don't see any other place in the OPF 2.0 specs here. Where else should I put a table of contents? Second, why is it complaining about there being more than six anchors? Surely LIT files aren't limited to just six links, right...? Thanks for any help here! |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |