将palmos.dba日历转换为vCalendar文件。
palm2vcal的Python项目详细描述
这个包提供了一个脚本,将PalmOS.dba日历文件转换为标准的.ics vCalendar文件。 如果需要,可以很容易地引入另一个方向。
它主要依赖于aleks totić编写并由jeff mikels改进的palmFile.py脚本。 为了生成vcalendar文件,此脚本使用icalendar包。
用法
可以使用以下命令调用脚本:
palm2vcal <source_file> <dest_file>
其中<source_file>和<dest_file>是stdin/stdout的文件名或-。
使用--verbose选项时,转换的事件数将打印到stdout(或stderr)。
编码
根据RFC5545,目标文件将用utf8编写。
输入文件的编码默认为cp1252(Microsoft标准编码),但另一种编码可以 使用--encoding开关选择:
palm2vcal --encoding=latin1 <source_file> <dest_file>
链接
- 原件palmFile.py:http://www.totic.org/develop/palmFile.py
- palm文件格式规范:http://www.notsofaqs.com/datebook_dat.php
- iCalendar文档:http://readthedocs.org/docs/icalendar/en/latest/
- VCAL格式RFC:http://tools.ietf.org/html/rfc5545
- pypi上的包:http://pypi.python.org/pypi/palm2vcal/
- 关于GitHub:http://github.com/rbarrois/palm2vcal 的问题和代码