Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-17-2007, 01:25 PM   #136
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: 44,165
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The problem is that the structure of the tour element is not well defined. i.e. not all lit files use them for a TOC. It's much safer to parse the toc file.
kovidgoyal is offline   Reply With Quote
Old 10-17-2007, 01:35 PM   #137
bkilian
Zealot
bkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notes
 
Posts: 131
Karma: 24870
Join Date: Oct 2006
Device: Sony PRS/505
Quote:
Originally Posted by kovidgoyal View Post
The problem is that the structure of the tour element is not well defined. i.e. not all lit files use them for a TOC. It's much safer to parse the toc file.
Makes sense, whatever works
bkilian is offline   Reply With Quote
Advert
Old 10-20-2007, 02:32 AM   #138
Gamgee72
Member
Gamgee72 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Aug 2007
Device: PRS-505 X 2
A question about pdf2lrf in libprs500

I've used this feature before and did not have any problems. I just upgraded to v0.4.12 and when I tried to convert a pdf, I got the following error message:

Traceback <most recent call last>:
File "convert_from.py", line 91, in <module>
File "convert_from.py", line 87, in main
File "convert_from.py", line 67, in process_file
File "convert_from.py", line 50, in general_html
librprs500.ebooks.Conversion.Error: 'pdftohtml' is not recognized as a internal or external command, operable program or batch file.

Any reason/explanation for this error?

Thanks.
Gamgee72 is offline   Reply With Quote
Old 10-20-2007, 12:29 PM   #139
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: 44,165
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Try re-installing
kovidgoyal is offline   Reply With Quote
Old 10-20-2007, 01:35 PM   #140
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: 75,213
Karma: 132920876
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Would it help to first uninstall?
JSWolf is offline   Reply With Quote
Advert
Old 10-20-2007, 01:41 PM   #141
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: 44,165
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No it wont
kovidgoyal is offline   Reply With Quote
Old 10-20-2007, 03:13 PM   #142
Gamgee72
Member
Gamgee72 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Aug 2007
Device: PRS-505 X 2
Hi,

Tried installing. I see the application doing some work and it creates a BBeB file and indicates "Output written to C:\..." but I actually don't see the .lrf file that it created anywhere in the folder. Am I missing something?

Thanks.
Gamgee72 is offline   Reply With Quote
Old 10-20-2007, 03:34 PM   #143
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: 44,165
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Use the GUI, that way you dont have to worry about where the file is saved.
kovidgoyal is offline   Reply With Quote
Old 10-20-2007, 11:10 PM   #144
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: 75,213
Karma: 132920876
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Seems if the header is long enough, it gets pushed too far to the right so that the last letter is cut off. I hope this is an easy fix.
JSWolf is offline   Reply With Quote
Old 10-21-2007, 12:01 AM   #145
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: 44,165
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Actually its not its a bug in SONY's LRF renderer. Try it with my LRF viewer and see.
kovidgoyal is offline   Reply With Quote
Old 10-21-2007, 12:05 AM   #146
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: 75,213
Karma: 132920876
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 kovidgoyal View Post
Actually its not its a bug in SONY's LRF renderer. Try it with my LRF viewer and see.
Well, can you push the text slightly over then to bypass the bug? LIke add in an extar space or two at the end or whatever it takes.
JSWolf is offline   Reply With Quote
Old 10-21-2007, 12:15 AM   #147
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: 44,165
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There are already two spaces at the end. I could write a routine to add a variable number of spaces depending on the header length, open a ticket and i'll do it sometime.
kovidgoyal is offline   Reply With Quote
Old 11-04-2007, 01:21 PM   #148
AnemicOak
Bookaholic
AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.
 
AnemicOak's Avatar
 
Posts: 14,391
Karma: 54969924
Join Date: Oct 2007
Location: Minnesota
Device: iPad Mini 4, AuraHD, iPhone XR +
Using 0.4.17 and getting this error on a .lit I just picked up...

Quote:
AttributeError: Values instance has no attribute 'spine'
Failed to perform job: Convert book:DejaDead[1]
Detailed traceback:
Traceback (most recent call last):
File "libprs500\gui2\jobs.pyo", line 97, in run
File "libprs500\ebooks\lrf\any\convert_from.pyo", line 140, in main
File "libprs500\ebooks\lrf\any\convert_from.pyo", line 117, in process_file
File "libprs500\ebooks\lrf\lit\convert_from.pyo", line 93, in process_file
File "libprs500\ebooks\lrf\html\convert_from.pyo", line 1678, in process_file
AttributeError: Values instance has no attribute 'spine'
Log:
[DEBUG] convert_from.pyo:41: clit "c:\users\brian\appdata\local\temp\libprs500_0.4.1 7_glehl4.lit" "c:\users\brian\appdata\local\temp\libprs500_jyckw c\\"
[INFO] convert_from.pyo:43: +---[ ConvertLIT (Version 1.8) ]---------------[ Copyright (c) 2002,2003 ]---
ConvertLIT comes with ABSOLUTELY NO WARRANTY; for details
see the COPYING file or visit "http://www.gnu.org/license/gpl.html".
This is free software, and you are welcome to redistribute it under
certain conditions. See the GPL license for details.
LIT INFORMATION.........
DRM = 5
Timestamp = b49b68f7
Creator = 00000019
Language = 00000409
Writing out "2000221bfrontv06" as "2000221bfrontv06.html" ...
Successfully written to "c:\users\brian\appdata\local\temp\libprs500_jyckw c\2000221bfrontv06.html".

Writing out "2000221bcopyrightv06" as "2000221bcopyrightv06.html" ...
Successfully written to "c:\users\brian\appdata\local\temp\libprs500_jyckw c\2000221bcopyrightv06.html".

Writing out "2000221btocv06" as "2000221btocv06.html" ...
Successfully written to "c:\users\brian\appdata\local\temp\libprs500_jyckw c\2000221btocv06.html".

Writing out "2000221bv06" as "2000221bv06.html" ...
Successfully written to "c:\users\brian\appdata\local\temp\libprs500_jyckw c\2000221bv06.html".

Writing out "2000221bv07" as "2000221bv06.css" ...
Successfully written to "c:\users\brian\appdata\local\temp\libprs500_jyckw c\2000221bv06.css".

Writing out "2000221bcoverv06e" as "2000221bcoverv06e.jpg" ...
Successfully written to "c:\users\brian\appdata\local\temp\libprs500_jyckw c\2000221bcoverv06e.jpg".

Writing out "2000221bcoverv06a" as "2000221bcoverv06a.jpg" ...
Successfully written to "c:\users\brian\appdata\local\temp\libprs500_jyckw c\2000221bcoverv06a.jpg".

Writing out "2000221bcoverv06c" as "2000221bcoverv06c.jpg" ...
Successfully written to "c:\users\brian\appdata\local\temp\libprs500_jyckw c\2000221bcoverv06c.jpg".

Writing out "2000221bcoverv06b" as "2000221bcoverv06b.jpg" ...
Successfully written to "c:\users\brian\appdata\local\temp\libprs500_jyckw c\2000221bcoverv06b.jpg".

Writing out "2000221bcoverv06d" as "2000221bcoverv06d.jpg" ...
Successfully written to "c:\users\brian\appdata\local\temp\libprs500_jyckw c\2000221bcoverv06d.jpg".

Writing out "p2000221bg3001" as "p2000221bg3001.jpg" ...
Successfully written to "c:\users\brian\appdata\local\temp\libprs500_jyckw c\p2000221bg3001.jpg".

Writing out "p2000221bg11001" as "p2000221bg11001.jpg" ...
Successfully written to "c:\users\brian\appdata\local\temp\libprs500_jyckw c\p2000221bg11001.jpg".

Writing out "p2000221bg4001" as "p2000221bg4001.jpg" ...
Successfully written to "c:\users\brian\appdata\local\temp\libprs500_jyckw c\p2000221bg4001.jpg".

Writing out "p2000221bg127001" as "p2000221bg127001.jpg" ...
Successfully written to "c:\users\brian\appdata\local\temp\libprs500_jyckw c\p2000221bg127001.jpg".

Exploded "c:\users\brian\appdata\local\temp\libprs500_0.4.1 7_glehl4.lit" into "c:\users\brian\appdata\local\temp\libprs500_jyckw c\".

[ERROR] convert_from.pyo:1746: Failed to process opf file
Traceback (most recent call last):
File "libprs500\ebooks\lrf\html\convert_from.pyo", line 1704, in try_opf
File "libprs500\ebooks\metadata\opf.pyo", line 120, in fget
File "libprs500\ebooks\lrf\__init__.pyo", line 307, in entity_to_unicode
ValueError: invalid literal for int() with base 10: '201;JÀ'

Anyone have any ideas?
AnemicOak is offline   Reply With Quote
Old 11-04-2007, 02:36 PM   #149
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: 44,165
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Send me the lit
kovidgoyal is offline   Reply With Quote
Old 11-04-2007, 02:55 PM   #150
AnemicOak
Bookaholic
AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.
 
AnemicOak's Avatar
 
Posts: 14,391
Karma: 54969924
Join Date: Oct 2007
Location: Minnesota
Device: iPad Mini 4, AuraHD, iPhone XR +
File sent
AnemicOak is offline   Reply With Quote
Reply

Tags
libprs500


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
a simple epub/lit to mobi converter that isn't calibre? grechzoo General Discussions 18 08-18-2010 05:20 PM
Amber Lit Converter is merging txt Amalthia Workshop 7 07-16-2008 05:33 PM
Quick/easy LIT to LRF converter? OUTATIME Sony Reader Dev Corner 10 02-29-2008 09:44 AM
ABC Amber LIT Converter MrFinch Workshop 11 08-09-2007 09:06 PM
Using lit2lrf zander_nyrond Sony Reader 10 08-02-2007 02:40 PM


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


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