From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Dietsche Subject: Convert Palm Todo to Orgmode Date: Sun, 15 Apr 2007 17:25:47 +0200 Message-ID: <87slb1zmkk.fsf@goat.bogus.local> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hd6gR-0001Im-Qx for emacs-orgmode@gnu.org; Sun, 15 Apr 2007 11:30:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hd6gQ-0001Ia-P9 for emacs-orgmode@gnu.org; Sun, 15 Apr 2007 11:30:31 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hd6gQ-0001IX-Li for emacs-orgmode@gnu.org; Sun, 15 Apr 2007 11:30:30 -0400 Received: from moutng.kundenserver.de ([212.227.126.171]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hd6bu-0007tY-Bu for emacs-orgmode@gnu.org; Sun, 15 Apr 2007 11:25:50 -0400 Received: from goat.bogus.local (localhost [127.0.0.1]) by goat.bogus.local (8.12.10/8.12.10) with ESMTP id l3FFPlXs015216 for ; Sun, 15 Apr 2007 17:25:47 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Hi, Just in case, someone is interested: attached is a small perl script, which converts a Palm Todo pdb to an Orgmode Todo file. It needs the p5-Palm package from . The resulting page looks like: --- 8< - cut here --- * Todo ** TODO go shopping - milk - bread - sun glasses ** DONE wipe the floor ** TODO [#A] draw money at the bank --- cut here - >8 --- The script is also available at Regards, Olaf. --=-=-= Content-Type: application/x-perl Content-Disposition: inline; filename=palm2orgmode.pl Content-Transfer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KSA9IEBfOwoJbXkgJGRvbmUgPSAkcmVjb3JkLT57Y29tcGxldGVk fSA/ICJET05FIiA6ICJUT0RPIjsKCXByaW50ICIqKiAkZG9uZSI7CgoJbXkgJHByaW9yaXR5 ID0gJHJlY29yZC0+e3ByaW9yaXR5fTsKCW15ICRwcmlvOwoJJHByaW8gPSAiQSIgaWYgKCRw cmlvcml0eSA8PSAxKTsKCSRwcmlvID0gIkMiIGlmICgkcHJpb3JpdHkgPj0gMyk7CgoJcHJp bnQgIiBbIyRwcmlvXSIgaWYgKCRwcmlvKTsKCglteSAkZGVzYyA9ICRyZWNvcmQtPntkZXNj cmlwdGlvbn07CglwcmludCAiICRkZXNjIjsKCglteSAkZGF0ZTsKCWlmIChkZWZpbmVkKCRy ZWNvcmQtPntkdWVfZGF5fSkpIHsKCQkkZGF0ZSA9IHNwcmludGYoIjwlMDRkLSUwMmQtJTAy ZD4iLCAkcmVjb3JkLT57ZHVlX3llYXJ9LCAkcmVjb3JkLT57ZHVlX21vbnRofSwgJHJlY29y ZC0+e2R1ZV9kYXl9KTsKCX0KCglwcmludCAiICRkYXRlIiBpZiAoJGRhdGUpOwoJcHJpbnQg IlxuIjsKCglteSAkbm90ZSA9ICRyZWNvcmQtPntub3RlfTsKCXByaW50ICIkbm90ZSIgaWYg KCRub3RlKTsKfQoKbXkgJHBkYiA9IG5ldyBQYWxtOjpQREI7CgpwcmludCAiJGhlYWRpbmdc biIgaWYgKCRoZWFkaW5nKTsKCmZvciBteSAkZiAoQEFSR1YpIHsKCSRwZGItPkxvYWQoJGYp OwoJbXkgJHJlY29yZHMgPSAkcGRiLT57cmVjb3Jkc307Cglmb3IgKEB7JHJlY29yZHN9KSB7 CgkJcHJpbnQgIlxuIjsKCQlkdW1wX3JlY29yZCgkcGRiLCAkXyk7Cgl9Cn0K --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --=-=-=--