palm2vcal provides a script converting palm OS .dba calendar files into standard .ics vCalendar files. If requested, the other direction could be easily introduced.
It relies mostly on the palmFile.py script written by Aleks Totić, and improved by Jeff Mikels. In order to generate the vcalendar file, this script uses the icalendar package.
The script can simply be called with:
palm2vcal < source_file > < dest_file >
Where < source_file > and < dest_file > are either file names or - for stdin/stdout.
When using the --verbose option, the number of converted event is printed to stdout (or stderr).
The target file will be written in UTF8, as per RFC5545.
The encoding of the input file defaults to cp1252 (microsoft standard encoding), but another encoding can be chosen using the --encoding switch:
palm2vcal --encoding=latin1 < source_file > < dest_file >