Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 02-13-2008, 10:34 PM   #616
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,351
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Open a ticket for NCX support and attach the file.
kovidgoyal is online now   Reply With Quote
Old 02-13-2008, 10:36 PM   #617
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I'll attach the epub fle. It is able to be split into it's parts by unzipping it.
JSWolf is offline   Reply With Quote
Advert
Old 02-13-2008, 10:41 PM   #618
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Ticket #522 created.
JSWolf is offline   Reply With Quote
Old 02-21-2008, 06:28 PM   #619
moneytoo
Enthusiast
moneytoo began at the beginning.
 
Posts: 39
Karma: 20
Join Date: Oct 2007
Location: Czech Republic
Device: Sony PRS-505
Hi,

I'm trying to convert some html files (decompiled chm) but I'm getting this error:

sequence item 0: expected string, NoneType found
Detailed traceback:
Traceback (most recent call last):
File "main.py", line 297, in add_books
File "main.py", line 309, in _add_books
File "libprs500\ebooks\metadata\meta.pyo", line 43, in get_metadata
File "libprs500\ebooks\metadata\html.pyo", line 63, in get_metadata
File "libprs500\ebooks\metadata\__init__.pyo", line 110, in __str__
TypeError: sequence item 0: expected string, NoneType found

Here's sample file: http://www.smartmadsoft.com/temp/cpy.html
I have tried 4 decompiled chm and I cannot convert any of them.
moneytoo is offline   Reply With Quote
Old 02-21-2008, 06:36 PM   #620
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,351
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That's a regression, will be fixed in the next release ina couple of days. In the meantime you can use the commandline html2lrf command to convert the HTML files.
kovidgoyal is online now   Reply With Quote
Advert
Old 02-22-2008, 08:50 AM   #621
moneytoo
Enthusiast
moneytoo began at the beginning.
 
Posts: 39
Karma: 20
Join Date: Oct 2007
Location: Czech Republic
Device: Sony PRS-505
Thanks, kovidgoyal. Commandline html2lrf works. The converting take a long time but the book looks really great. The only not so good page is the table of content. Is there any solution or settings (I want to still keep tables in the book)? http://smartmadsoft.com/temp/toc.html
moneytoo is offline   Reply With Quote
Old 02-22-2008, 01:50 PM   #622
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,351
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Simplest solution is to manually edit the file and remove the <table> tag. Leave the <tr> and <td> tags.
kovidgoyal is online now   Reply With Quote
Old 03-04-2008, 06:05 AM   #623
jackhammer
Member
jackhammer began at the beginning.
 
Posts: 14
Karma: 20
Join Date: Jan 2008
Device: PRS-505
forceing page breaks

Quote:
Originally Posted by kovidgoyal View Post
To force page breaks you have to put a style="page-break-before: always" in the tag.
what I am doing is rong but I cant seem to think of a diffrent way to do this.

<style ="page-break-before: always"></style>

nothing happens.
please show me an example of how to force a page break.

thx for your help..
jackhammer is offline   Reply With Quote
Old 03-04-2008, 06:59 AM   #624
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
This is what works for me...

<p style="page-break-after:always"></p>
JSWolf is offline   Reply With Quote
Old 03-04-2008, 08:24 PM   #625
jackhammer
Member
jackhammer began at the beginning.
 
Posts: 14
Karma: 20
Join Date: Jan 2008
Device: PRS-505
fun with page breaks NOT..

Quote:
Originally Posted by JSWolf View Post
This is what works for me...

<p style="page-break-after:always"></p>
ok I have inserted the above line into my html file on it's own line, ran it through html2lrf and viewed the result with the lrf viewer no page break.
code below

<p><em>To Jonathon, who never freaks about my choice of
research. He took away my serial killer books, at my request. When I
was ready he gave them back. He's helping me understand that just
because someone else thinks you're a monster doesn't mean you are. Even
if that person says they love you. Here's to finding love that builds
you up, instead of breaking you down.</em></p>
<p style="page-break-after: always;"></p>

one thing I have noticed is that my html editor (KompoZer) keeps inserting a ";" after the always is this a problem ?
again thx muchly for your assistance in advance..
jackhammer is offline   Reply With Quote
Old 03-04-2008, 08:34 PM   #626
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,351
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Here's what i use:
Code:
<br style="page-break-after: always;">
kovidgoyal is online now   Reply With Quote
Old 03-04-2008, 08:53 PM   #627
jackhammer
Member
jackhammer began at the beginning.
 
Posts: 14
Karma: 20
Join Date: Jan 2008
Device: PRS-505
Quote:
Originally Posted by kovidgoyal View Post
Here's what i use:
Code:
<br style="page-break-after: always;">
That worked like a charm
jackhammer is offline   Reply With Quote
Old 03-05-2008, 12:51 AM   #628
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by jackhammer View Post
ok I have inserted the above line into my html file on it's own line, ran it through html2lrf and viewed the result with the lrf viewer no page break.
code below

<p><em>To Jonathon, who never freaks about my choice of
research. He took away my serial killer books, at my request. When I
was ready he gave them back. He's helping me understand that just
because someone else thinks you're a monster doesn't mean you are. Even
if that person says they love you. Here's to finding love that builds
you up, instead of breaking you down.</em></p>
<p style="page-break-after: always;"></p>

one thing I have noticed is that my html editor (KompoZer) keeps inserting a ";" after the always is this a problem ?
again thx muchly for your assistance in advance..
The thing is not to use an editor that changes the code as you put it in. You want the code to remain as is.
JSWolf is offline   Reply With Quote
Old 03-05-2008, 10:08 AM   #629
curtw
Outside of a dog
curtw ought to be getting tired of karma fortunes by now.curtw ought to be getting tired of karma fortunes by now.curtw ought to be getting tired of karma fortunes by now.curtw ought to be getting tired of karma fortunes by now.curtw ought to be getting tired of karma fortunes by now.curtw ought to be getting tired of karma fortunes by now.curtw ought to be getting tired of karma fortunes by now.curtw ought to be getting tired of karma fortunes by now.curtw ought to be getting tired of karma fortunes by now.curtw ought to be getting tired of karma fortunes by now.curtw ought to be getting tired of karma fortunes by now.
 
curtw's Avatar
 
Posts: 871
Karma: 4457646
Join Date: Dec 2007
Location: Houston, TX
Device: Kindle Voyage
font limitations?

I'm having a problem, but I'd like to try to figure out if it's a limitation of the Reader before I try to ask for a "fix" to html2lrf.

I have tried to format some text with a sans-serif font, bold, and italicized, but I can't seem to get that combination out of libprs500. Does the Reader even contain this character set?

I've tried both <strong> and <b> tags for bold, as well as both <em> and <i> for italics. I have not tried a CSS implementation.

Any advice?
curtw is offline   Reply With Quote
Old 03-05-2008, 01:44 PM   #630
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,351
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The reader has neither bold nor italic typefaces. It simulates both by hacking the fonts (it thickens the font for bold and slants it for italics). I dont remember if it supports both bold and italic at the same time, one way to test is to see the file in libprs500's inbuilt viewer.
kovidgoyal is online now   Reply With Quote
Reply

Tags
html2lrf, libprs500


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change font of header for LRF Output on PRS 505 duckbill Calibre 3 05-15-2010 11:07 AM
Pissed off with LRF formatting: LRF/LRS clean tool? grimborg LRF 8 02-15-2010 01:14 PM
Fonts for LRF output krischik Calibre 1 10-03-2009 05:01 AM
CBZ > LRF (LRF>HTML/MOBI????) sideburnt Calibre 4 09-15-2009 06:44 AM
libprs500 Issues Converting .LIT to .LRF - .LRF crashes everything vasbinde Calibre 6 02-14-2008 12:16 PM


All times are GMT -4. The time now is 10:46 PM.


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