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

Go Back   MobileRead Forums > E-Book Readers > Sony Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 07-09-2007, 04:56 PM   #1
kenbaldwin
Connoisseur
kenbaldwin began at the beginning.
 
Posts: 74
Karma: 10
Join Date: Oct 2006
Device: Sony PRS-500
pdb2txt on Linux?

What do you guys recommend for converting pdb files to txt on Linux? Command line preferred. On Windows, I'm used to opening pdb files in iSilo and saving as txt, but I'm in the processing of moving to Linux.

I tried installing the p5-Palm Perl modules, and doing something like this:
Quote:
#!/usr/bin/perl

use Palm::Raw;
use Encode;

my $filename = $ARGV[0];

$pdb = new Palm::PDB;
$pdb->Load($filename);

foreach (@{$pdb->{records}}) {
print decode("iso-8859-1", $_->{data});
}
But the result is only partially human-readable. Maybe I just have the encoding wrong?

Thanks,
Ken
kenbaldwin is offline   Reply With Quote
Old 07-09-2007, 05:18 PM   #2
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,979
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3 and Fire
I have used txt2pdbdoc and it worked for me, although the first reference I came across to it was not very favorable.
wallcraft is offline   Reply With Quote
Old 07-09-2007, 11:21 PM   #3
kenbaldwin
Connoisseur
kenbaldwin began at the beginning.
 
Posts: 74
Karma: 10
Join Date: Oct 2006
Device: Sony PRS-500
Thanks for the suggestion. I switched to the Palm:oc module, and it seems to be working fine now.

Ken
kenbaldwin 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
So as a Linux..... tajreed General Discussions 13 04-05-2010 01:51 PM
Linux? Ron46 Ectaco jetBook 8 12-24-2009 09:07 AM
Linux coredump Sony Reader 12 11-17-2009 06:07 AM
Linux Help clewley Bookeen 3 04-04-2008 09:40 AM
Linux alexxxm Sony Reader 10 10-11-2007 11:38 AM


All times are GMT -4. The time now is 07:53 AM.


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