Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-28-2008, 02:02 AM   #1
AprilHare
Wizard
AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.
 
AprilHare's Avatar
 
Posts: 2,981
Karma: 11862367
Join Date: Apr 2008
Device: Sony Reader PRS-T2
Problems with converted PRC ebook

I downloaded the PRC ebook "RinkWorks: Computer Stupidities" from mobileread, ran it through calibre 0.4.108 (Windows) and put it on my PRS-500 using the Sony eBook Library software. The converted ebook loads, however each page takes about 30 seconds between requesting the next page and it actually displaying.
I am really unsure what's going on (whether this is what should be expected or not) and was wondering if someone would take a look at it since it is rather inconvenient for reading.
Attached Files
File Type: lrf Computer Stupidities - Unknown.lrf (1.43 MB, 260 views)
AprilHare is offline   Reply With Quote
Old 11-28-2008, 05:45 PM   #2
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: 43,826
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There is probably something about that book that causes the generated LRF file to have a structure that requires excessive parsing. I would suggest using mobi2oeb to convert it to HTML first and see if you can clean up the HTML before converting to LRF
kovidgoyal is offline   Reply With Quote
Advert
Old 11-28-2008, 06:14 PM   #3
AprilHare
Wizard
AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.
 
AprilHare's Avatar
 
Posts: 2,981
Karma: 11862367
Join Date: Apr 2008
Device: Sony Reader PRS-T2
Tried mobi2oeb and got the following:
Quote:
$ mobi2oeb ComputerStupidities.prc
OEB ebook created in /home/matthewbriggs/Desktop
/usr/bin/mobi2oeb: line 6: 8077 Segmentation fault ./mobi2oeb "$@"
$ mobi2oeb ./ComputerStupidities.prc
OEB ebook created in /home/matthewbriggs/Desktop
/usr/bin/mobi2oeb: line 6: 8486 Segmentation fault ./mobi2oeb "$@"
AprilHare is offline   Reply With Quote
Old 11-28-2008, 06:15 PM   #4
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: 43,826
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Ignore the segfault (it's an artifact of the freezing process to create linux binaries). The HTml will be in the indicated directory
kovidgoyal is offline   Reply With Quote
Old 11-29-2008, 02:28 AM   #5
AprilHare
Wizard
AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.
 
AprilHare's Avatar
 
Posts: 2,981
Karma: 11862367
Join Date: Apr 2008
Device: Sony Reader PRS-T2
Quote:
Originally Posted by kovidgoyal View Post
Ignore the segfault (it's an artifact of the freezing process to create linux binaries). The HTml will be in the indicated directory
Ok, ignored segfault. The HTML seems straightforward; just one long HTML document. No indication to my untrained eyes why it should produce such an unwieldy LRF file.
AprilHare is offline   Reply With Quote
Advert
Old 11-29-2008, 01:13 PM   #6
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: 43,826
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
What size is the HTML document?
kovidgoyal is offline   Reply With Quote
Old 11-29-2008, 06:45 PM   #7
AprilHare
Wizard
AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.
 
AprilHare's Avatar
 
Posts: 2,981
Karma: 11862367
Join Date: Apr 2008
Device: Sony Reader PRS-T2
Quote:
Originally Posted by kovidgoyal View Post
What size is the HTML document?
stupid2.html 1.1 MB
stupid2.opf 803 bytes
AprilHare is offline   Reply With Quote
Old 11-29-2008, 08:09 PM   #8
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: 43,826
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It isn't the size then. try running htmltidy on the html file and then converting it
kovidgoyal is offline   Reply With Quote
Old 11-30-2008, 03:54 AM   #9
AprilHare
Wizard
AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.
 
AprilHare's Avatar
 
Posts: 2,981
Karma: 11862367
Join Date: Apr 2008
Device: Sony Reader PRS-T2
Quote:
Originally Posted by kovidgoyal View Post
It isn't the size then. try running htmltidy on the html file and then converting it
Tried running it through HTML Tidy, got the following:
Quote:
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
line 976 column 1 - Warning: missing <li>
line 1087 column 1 - Warning: missing </ul> before </li>
line 4625 column 1 - Warning: discarding unexpected </li>
line 4866 column 1 - Warning: inserting implicit <p>
line 5286 column 1 - Error: <l> is not recognized!
line 5286 column 1 - Warning: discarding unexpected <l>
line 5286 column 4 - Warning: missing <li>
line 5287 column 1 - Warning: discarding unexpected </l>
line 6259 column 1 - Error: <h> is not recognized!
line 6259 column 1 - Warning: discarding unexpected <h>
line 6260 column 1 - Warning: discarding unexpected </h>
line 6295 column 1 - Error: <l> is not recognized!
line 6295 column 1 - Warning: discarding unexpected <l>
line 6295 column 4 - Warning: missing <li>
line 6296 column 1 - Warning: discarding unexpected </l>
line 6909 column 1 - Error: <l> is not recognized!
line 6909 column 1 - Warning: discarding unexpected <l>
line 6909 column 4 - Warning: missing <li>
line 6910 column 1 - Warning: discarding unexpected </l>
line 11400 column 1 - Error: <l> is not recognized!
line 11400 column 1 - Warning: discarding unexpected <l>
line 11400 column 4 - Warning: missing <li>
line 11401 column 1 - Warning: discarding unexpected </l>
line 11730 column 1 - Warning: discarding unexpected </li>
line 14141 column 45 - Warning: discarding unexpected </ul>
line 2 column 1 - Warning: inserting missing 'title' element
line 29 column 1 - Warning: trimming empty <p>
line 36 column 1 - Warning: trimming empty <p>
line 2552 column 1 - Warning: trimming empty <p>
line 2631 column 1 - Warning: trimming empty <p>
line 3449 column 1 - Warning: trimming empty <p>
line 3973 column 1 - Warning: trimming empty <p>
line 4866 column 1 - Warning: trimming empty <p>
line 5049 column 1 - Warning: trimming empty <p>
line 6186 column 1 - Warning: trimming empty <p>
line 6190 column 1 - Warning: trimming empty <p>
line 6234 column 1 - Warning: trimming empty <p>
line 7177 column 1 - Warning: trimming empty <p>
line 7989 column 1 - Warning: trimming empty <p>
line 7995 column 1 - Warning: trimming empty <p>
line 9335 column 1 - Warning: trimming empty <p>
line 9413 column 1 - Warning: trimming empty <p>
line 9612 column 1 - Warning: trimming empty <p>
line 12646 column 1 - Warning: trimming empty <p>
line 12650 column 1 - Warning: trimming empty <p>
line 12655 column 1 - Warning: trimming empty <p>
line 13582 column 1 - Warning: trimming empty <p>
line 13940 column 1 - Warning: trimming empty <p>
Info: Document content looks like HTML 4.01 Transitional
Info: No system identifier in emitted doctype
44 warnings, 5 errors were found!

This document has errors that must be fixed before
using HTML Tidy to generate a tidied up version.

To learn more about HTML Tidy see http://tidy.sourceforge.net
Please fill bug reports and queries using the "tracker" on the Tidy web site.
Additionally, questions can be sent to html-tidy@w3.org
HTML and CSS specifications are available from http://www.w3.org/
Lobby your company to join W3C, see http://www.w3.org/Consortium
Took the HTML file, resaved it with OpenOffice.org 3, ran the resultant compliant HTML document through HTML Tidy, then converted. I got a significantly larger LRF file and there was no obvious improvement in terms of viewability.
AprilHare is offline   Reply With Quote
Old 11-30-2008, 08:35 AM   #10
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: 73,835
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I've converted this PRC using Calibre and loaded it on my 505 and the pages turn just fine. Take a look at the copy I've attached.
Attached Files
File Type: lrf ComputerStupidities.lrf (1.43 MB, 265 views)
JSWolf is offline   Reply With Quote
Old 11-30-2008, 07:12 PM   #11
AprilHare
Wizard
AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.
 
AprilHare's Avatar
 
Posts: 2,981
Karma: 11862367
Join Date: Apr 2008
Device: Sony Reader PRS-T2
Quote:
Originally Posted by JSWolf View Post
I've converted this PRC using Calibre and loaded it on my 505 and the pages turn just fine. Take a look at the copy I've attached.
Transferred it to the PRS-500 using Calibre. Ok, now we have isolated the problem to the PRS-500. 31 seconds between page turns! No idea why.
AprilHare is offline   Reply With Quote
Old 11-30-2008, 07:33 PM   #12
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: 73,835
Karma: 128597114
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 AprilHare View Post
Transferred it to the PRS-500 using Calibre. Ok, now we have isolated the problem to the PRS-500. 31 seconds between page turns! No idea why.
I'll give it a go on my wife's 500 tomorrow and see how it goes.
JSWolf is offline   Reply With Quote
Old 12-04-2008, 11:12 AM   #13
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: 73,835
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I've just loaded this on the 500 and I've found that it takes about 30 or so seconds per page turn.
JSWolf is offline   Reply With Quote
Old 12-04-2008, 12:23 PM   #14
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: 43,826
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The next release of calibre has an optimization that *might* help
kovidgoyal is offline   Reply With Quote
Old 12-04-2008, 03:27 PM   #15
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: 73,835
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
mobi2lrf --chapter-attr="h3,none," --add-chapters-to-toc --top-margin=0 --left-margin=0 --right-margin=0 --bottom-margin=0 --wordspace=1 --base-font-size=10 ComputerStupidities.prc

That is the command that worked to get this to work on the 500. The problem I think was that it was one large page and the 500 cannot easily handle a single page that's too large.
Attached Files
File Type: lrf ComputerStupidities.lrf (1.44 MB, 263 views)
JSWolf is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems Transferring Converted Epub File to Nook Flyweight Calibre 0 08-10-2010 08:44 PM
two issues in MOBI converted from prc in Calibre joselitux Calibre 0 06-01-2010 02:08 PM
Problems with LRF from converted epub ficbot Calibre 4 12-16-2009 03:12 PM
Problems with converted LITs Horribleman Sony Reader 3 10-02-2009 10:40 AM
PRC to LRF problems coase Sony Reader 1 05-01-2009 08:59 PM


All times are GMT -4. The time now is 04:41 AM.


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