Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Other formats > LRF

Notices

Reply
 
Thread Tools Search this Thread
Old 08-04-2007, 11:58 PM   #16
KaiGoth
Enthusiast
KaiGoth began at the beginning.
 
Posts: 48
Karma: 22
Join Date: Aug 2007
Device: Sony PRS500 & PRS700
Anyone else have the below problem?

Quote:
mymac:~/eBooks/Assiti Shards$ rtf2lrf 1633.rtf

Converting to HTML...
Traceback (most recent call last):
File "/Applications/libprs500.app/Contents/Resources/rtf2lrf.py", line 9, in <module>
main()
File "libprs500/ebooks/lrf/rtf/convert_from.pyo", line 66, in main
File "libprs500/ebooks/lrf/rtf/convert_from.pyo", line 48, in generate_html

libprs500.ebooks.Conversion Error?: unrtf failed with error code: -11
KaiGoth is offline   Reply With Quote
Old 08-05-2007, 12:09 AM   #17
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,564
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
send me the rtf.
kovidgoyal is offline   Reply With Quote
Advert
Old 08-05-2007, 12:19 AM   #18
KaiGoth
Enthusiast
KaiGoth began at the beginning.
 
Posts: 48
Karma: 22
Join Date: Aug 2007
Device: Sony PRS500 & PRS700
Quote:
Originally Posted by kovidgoyal View Post
send me the rtf.
Attached to ticket #134 (exceeds MR rtf size limit).

This seems to happen with just about every BAEN rtf I have. I thought I'd go through and convert all of the RTF versions from the CDs to LRF tonight. Maybe I'll try the lit2lrf and see if that works.

Any recommendations on the best format to convert FROM using the libprs500 utilities? BTW, thanks for an awesome set of tools. Really appreciate it!
KaiGoth is offline   Reply With Quote
Old 08-05-2007, 12:26 AM   #19
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,564
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
html is the best.
kovidgoyal is offline   Reply With Quote
Old 08-05-2007, 12:32 AM   #20
KaiGoth
Enthusiast
KaiGoth began at the beginning.
 
Posts: 48
Karma: 22
Join Date: Aug 2007
Device: Sony PRS500 & PRS700
Quote:
Originally Posted by kovidgoyal View Post
html is the best.
What if the html is broken into multiple pages?

For example:

http://www.webscription.net/chapters...319728_toc.htm
KaiGoth is offline   Reply With Quote
Advert
Old 08-05-2007, 03:20 AM   #21
KaiGoth
Enthusiast
KaiGoth began at the beginning.
 
Posts: 48
Karma: 22
Join Date: Aug 2007
Device: Sony PRS500 & PRS700
Thanks for updating to 0.3.86!

Tried the change, now get a different error message (looks like I'm not importing some images)...

Quote:
mymac:~/eBooks/Assiti Shards$ rtf2lrf 1632.rtf
Converting to HTML... done
Processing tmp7MBsNN.html
Parsing HTML... done
Converting to BBeB...Unable to process: /private/tmp/rtf2lrf_iUcnOD/pict001.wmf cannot identify image file
Unable to process: /private/tmp/rtf2lrf_iUcnOD/pict002.wmf cannot identify image file
Unable to process: /private/tmp/rtf2lrf_iUcnOD/pict003.wmf cannot identify image file
done
Output written to /Users/tdykstra/eBooks/Assiti Shards/1632.lrf
Anyways, I noticed that it doesn't pull meta-data from the source file like lit2lrf. I'm assuming this is because RTF doesn't contain any, but I thought I'd ask just in case.
KaiGoth is offline   Reply With Quote
Old 08-05-2007, 03:26 AM   #22
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,564
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
you can check rtf metadata with the command rtf-meta. The warnings are because the python imaging library doesn't support wmf format images.
kovidgoyal is offline   Reply With Quote
Old 08-05-2007, 03:36 AM   #23
KaiGoth
Enthusiast
KaiGoth began at the beginning.
 
Posts: 48
Karma: 22
Join Date: Aug 2007
Device: Sony PRS500 & PRS700
Quote:
Originally Posted by kovidgoyal View Post
you can check rtf metadata with the command rtf-meta. The warnings are because the python imaging library doesn't support wmf format images.
OK, thanks!

Looks like I'm having problems with rtf-meta as well.

Quote:
mymac:~/eBooks/Assiti Shards$ rtf-meta 1632.rtf
Traceback (most recent call last):
File "/Applications/libprs500.app/Contents/Resources/rtf-meta.py", line 9, in <module>
main()
File "libprs500/ebooks/metadata/rtf.pyo", line 151, in main
File "libprs500/ebooks/metadata/rtf.pyo", line 102, in set_metadata
TypeError: object of type 'NoneType' has no len()

mymac:~/eBooks/Assiti Shards$ rtf-meta -t 1632 1632.rtf
Traceback (most recent call last):
File "/Applications/libprs500.app/Contents/Resources/rtf-meta.py", line 9, in <module>
main()
File "libprs500/ebooks/metadata/rtf.pyo", line 151, in main
File "libprs500/ebooks/metadata/rtf.pyo", line 102, in set_metadata
TypeError: object of type 'NoneType' has no len()

Last edited by KaiGoth; 08-05-2007 at 03:59 AM. Reason: formatting
KaiGoth is offline   Reply With Quote
Old 08-05-2007, 03:53 AM   #24
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,564
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That rtf file has no metadata, but rtf-meta shouldn't crash. Will be fixed in next release.
kovidgoyal is offline   Reply With Quote
Old 08-05-2007, 03:59 AM   #25
KaiGoth
Enthusiast
KaiGoth began at the beginning.
 
Posts: 48
Karma: 22
Join Date: Aug 2007
Device: Sony PRS500 & PRS700
Quote:
Originally Posted by kovidgoyal View Post
That rtf file has no metadata, but rtf-meta shouldn't crash. Will be fixed in next release.
Cool, thank you!
KaiGoth is offline   Reply With Quote
Old 08-05-2007, 04:28 AM   #26
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: 76,489
Karma: 136564766
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 KaiGoth View Post
What if the html is broken into multiple pages?

For example:

http://www.webscription.net/chapters...319728_toc.htm
html2lrf will traverse the links and sort it all out for you into one nice LRF.
JSWolf is offline   Reply With Quote
Old 08-05-2007, 04:41 AM   #27
KaiGoth
Enthusiast
KaiGoth began at the beginning.
 
Posts: 48
Karma: 22
Join Date: Aug 2007
Device: Sony PRS500 & PRS700
Quote:
Originally Posted by JSWolf View Post
html2lrf will traverse the links and sort it all out for you into one nice LRF.
Thanks, I'll keep that in mind for some of my other stuff. I must admit though, I'm pretty pleased with the way lit2lrf has been working on the Baen products. The maps and images come out great. (Also for some strange reason Baen puts maps and TOC at the back of html versions, but not lit).

I have a bunch of html formatted stuff from reading on my old Treo and xv6700 though, and I'm looking forward to trying it on those.
KaiGoth is offline   Reply With Quote
Old 08-05-2007, 12:16 PM   #28
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,564
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
All the 2lrf tools use html2lrf under the hood. The reason I say html is best is that it allows you the greatest control over the conversion process.
kovidgoyal is offline   Reply With Quote
Old 08-30-2007, 02:41 PM   #29
ZeBuddha
MonkeyWrench
ZeBuddha began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Aug 2007
Device: SE K800i & PSP - looking at PRS500 :D
The following is an error message I've gotten a LOT of times.
Code:
Traceback (most recent call last):
  File "convert_from.py", line 94, in <module>
  File "convert_from.py", line 69, in main
  File "convert_from.py", line 50, in generate_html
libprs500.ebooks.ConversionError: unrtf failed with error code: -1073741819
It doesn't happen with each *.rtf file, but I don't think it'd be an exaggeration to say it happens with about half of them.

The version of UnRTF it shows in the command prompt is 0.19.3... is that the latest one?
ZeBuddha is offline   Reply With Quote
Old 08-30-2007, 10:23 PM   #30
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: 76,489
Karma: 136564766
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 ZeBuddha View Post
The following is an error message I've gotten a LOT of times.
Code:
Traceback (most recent call last):
  File "convert_from.py", line 94, in <module>
  File "convert_from.py", line 69, in main
  File "convert_from.py", line 50, in generate_html
libprs500.ebooks.ConversionError: unrtf failed with error code: -1073741819
It doesn't happen with each *.rtf file, but I don't think it'd be an exaggeration to say it happens with about half of them.

The version of UnRTF it shows in the command prompt is 0.19.3... is that the latest one?
What version libprs500 are you using?
JSWolf is offline   Reply With Quote
Reply

Tags
libprs500, rtf2lrf


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DOC2LRF or RTF2LRF with pictures FlyGoneCrazy Sony Reader 6 05-13-2008 02:40 PM
rtf2lrf shows IOError: [Errno 2] if special characters in filename xixix Sony Reader 9 03-07-2008 02:44 AM
html2lrf vs rtf2lrf paspas Sony Reader 0 11-18-2007 03:35 PM


All times are GMT -4. The time now is 06:27 PM.


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