comparison README @ 3:cb79baed256e

remove Exporter to avoid "can't locate object method nw". Why this can happen?
author kono
date Sat, 25 Jan 2003 12:43:45 +0900
parents 111809a2ea45
children 1a68139a269f
comparison
equal deleted inserted replaced
1:144819f5d2f6 3:cb79baed256e
1 Calcon version 0.01 1 Calcon version 0.01
2
3 Calendar/Address Book converter
4
5 河野真治
6
7 Zaurus なんかのアドレス帳やスケジュールを Mac OS Xのアドレスブックや
8 iCalに移動するのに書きました。Entourageもapplescript 経由でできます。
9 書き出しは、Mac::Applescript module が必要です。CPANにあります。
10 Applescript は前もってアプリケーションを立ち上げる必要がある時が
11 あるみたい。
12
13 入力フォーマット
14 'Zaurus' => 'Calcon::Zaurus_read',
15 ザウルスのデータ CFにコピーするかで取り出した *.BOX ファイル
16 SCHEDULE1.BOX, ADDRESS1.BOX などです。MI-C1,MI-110 は試しました。
17 'Backup Zaurus' => 'Calcon::Zaurus_backup_read',
18 ザウルスのバックアップデータ *.BCK です。シリアル経由で取った
19 ものも読めます。
20 'Xcalendar' => 'Calcon::Xcalendar_read',
21 Unix X Window の xcalendar の旧フォーマット
22 'Vcard' => 'Calcon::Vcard_read',
23 VCARD
24 'SLA300' => 'Calcon::Sla300_read',
25 リナックスザウルス
26 'iApp' => 'Calcon::iApp_read',
27 Mac OS X のiCal, Address Book, Applescript 経由です
28 'Entourage' => 'Calcon::Entourage_read',
29 Mac OS X のEntourage X, Applescript 経由です
30 アドレスは export したファイルも読めます。こちらの方が高速。
31 'File' => 'Calcon::File_read',
32 独自のフラットファイルフォーマット (EUC)
33
34 出力フォーマット
35 'Xcalendar' => 'Calcon::Xcalendar_write',
36 Unix X Window の xcalendar の旧フォーマット
37 'Vcard' => 'Calcon::Vcard_write',
38 VCARD
39 'SLA300' => 'Calcon::Sla300_write',
40 リナックスザウルス
41 'AppleScript' => 'Calcon::iApp_write',
42 'iApp' => 'Calcon::iApp_write',
43 Mac OS X のiCal, Address Book, Applescript 経由です
44 'Entourage' => 'Calcon::Entourage_write',
45 Mac OS X のEntourage X, Applescript 経由です
46 'File' => 'Calcon::File_write',
47 独自のフラットファイルフォーマット (EUC)
48
49
50 使い方
51 perl calcon.pl -f from-format -t to-format file
52 ファイル名は最後でないとだめ。getops.pm の制限かな。perl calcon.pl -h
53 で対応するフォーマットの一覧がでます。format は識別できる最初の
54 一文字です。
55
56 同期ソフトではないので全部変換されます。同期したいときは、移動するデータ
57 を選択するものを別に書かないとだめだね。自分では Xcalendar 用は持っている
58 んだけど...
59
60 例題
61 Xcalendar から iCal にアップルスクリプト経由でデータを移動
62 perl -f x -t i ~/Calendar
63 Zaurus CFカードから、vcard format を生成
64 perl -f z -t v /Voluemes/NO_NAME/__zaurus/S*.BOX > all.vcs
65 perl -f z -t v /Voluemes/NO_NAME/__zaurus/A*.BOX > all.vcf
66
67 tips
68
69 iCal に移す時には vcard 経由の方が高速です。
70 Address Book に移すときには、読みがなの関係でアップルスクリプトを使うべし。
71
72 iCalは変な漢字コードに敏感で読み落すのではなくて読み落ちるようです。
73 とりあえずは読んで欲しいよね。
74
75 SLA300は生成されたファイルを、
76 /home/root/Applications/addressbook/addressbook.xml
77 /home/root/Applications/datebook/datebook.xml
78 にコピーします。その時に、カレンダーとかアドレスブックが動いていては
79 いけません。
80
81 Zaurus のBOX format はversion 依存性が結構あるので読めないのも
82 多いかも。書き出しは、やっぱりできません。
83
84 option
85
86 -d デバッグ情報を出力する
87 -F カレンダーで未来の情報のみを出力する (Applescript は遅いので)
88 -c カレンダー情報のみを出力する
89 -a アドレス情報のみを出力する
90
91
92
2 =================== 93 ===================
3 94
4 The README is used to introduce the module and provide instructions on 95 The README is used to introduce the module and provide instructions on
5 how to install the module, any machine dependencies it may have (for 96 how to install the module, any machine dependencies it may have (for
6 example C compilers and installed libraries) and any other information 97 example C compilers and installed libraries) and any other information