[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdepim-users
Subject:    Re: [kdepim-users] kpilot support for Documents-ToGo <-> Openoffice
From:       Arild Bergh <ab () abergh ! com>
Date:       2004-08-17 3:14:41
Message-ID: 200408170414.42062.ab () abergh ! com
[Download RAW message or body]

'Tis possible... but not 100%:

If you want to go the whole hog, i.e. if you change in a document on a Palm 
device, and before synching the doc you also make a change in the PC version 
of the doc, and then want these two mereged, you can't do it.

But, with the new(ish) PERL module in KPilot you can do this, with some 
caveats.
1: Use MS Office file format (not really a problem with OpenOffice).
2: Only modify the document in one place.
3: Synch twice (at least until some changes have been made to the PERL 
conduit) to get the latest version of the document onto the handheld.

I have written a very simple script to copy the doc onto the handheld, it uses 
a freely available software called par (http://www.djw.org/product/palm/par/) 
to put the doc into a streaming pdb file (which Docs to go can read) and then 
put it into the folder that is used by kpilot to transfer to the palm device. 
I use it from Konqueror to put docs onto my Treo.

---snip---
#!/usr/bin/perl -w
use File::Basename;
use Prima::IniFile;

%FTYPES = (
	"DOC" => ["DTGP", "MSWD"], 
	"XLS" => ["DTGP", "MSXL"]
);
$INSTALL_DIR = "/home/arild/.kde/share/apps/kpilot/pending_install/";
my $path=$ARGV[0];
my ($fname, $fpath, $fext) = fileparse($path, qr{\..*});
$fext =~ s/\.//;
$fext = uc($fext);
my $title = $fname;
$title =~ s/\ //;
system("par", "c", "-a", "stream", $INSTALL_DIR . $fname . ".pdb", $title, 
$FTYPES{$fext}[1], $FTYPES{$fext}[0], $path);
$a = 1;
---snip end---


All the best,

Arild
_______________________________________________
KDE PIM users mailing list
kdepim-users@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic