NAME
Palm::Progect::Converter::Text - Convert between Progect databases and Text files
SYNOPSIS
my $converter = Palm::Progect::Converter->new(
format => 'Text',
# ... other args ...
);
$converter->load_records();
# ... do stuff with records
$converter->save_records();
DESCRIPTION
This converts between Text files and Palm::Progect
records and preferences.
The Text format used for import/export looks something like this:
[x] Level 1 Todo item
[10%] Child (progress)
. Child of Child (informational)
[80%] (31/12/2001) Progress item
[ ] Unticked action item
Here is a summary of the various types of records:
[ ] action type
[x] completed action type
< > action type with todo link
<x> completed action type with todo link
[80%] progress type
[4/5] numeric type
. info type
[ ] [5] action type with priority
[ ] (15/7/2001) action type with date
[80%] [5] (15/7/2001) {category} progress type with priority and date and category
[80%] [5] (15/7/2001) {category} progress type with priority and date and category <<
Multi-Line note
for this item
>>
OPTIONS
These options can be passed to the Palm::Progect::Converter
constructor, for instance:
my $converter = Palm::Progect::Converter->new(
format => 'Text',
tabstop => 4,
);
- tabstop
-
Treat tabs as n spaces wide (default is 8)
- fill_with_spaces
-
Use spaces to indent instead of tabs
- date_format
-
The format for dates: Any combination of dd, mm, yy, yyyy (default is dd/mm/yy).
Any dates that are printed will use this format. Dates that are parsed will be expected to be in this format.
- columns
-
Wrap text to fit on n columns
METHODS
- load_records($file, $append)
-
Load Text records from
$file
, translating them into the internalPalm::Progect::Record
format.If
$append
is true thenload_records
will append the records imported from$file
to the internal records list. If false,load_records
will replace the internal records list with the records imported from$file
. - save_records($file, $append)
-
Export records in Text format to
$file
.If
$append
is true thenload_records
will append the Text tofile
. If false,export_records
If false,export_records
will overwrite$file
(if it exists) before writing the Text.
AUTHOR
Michael Graham <mag-perl@occamstoothbrush.com>
Copyright (C) 2002 Michael Graham. All rights reserved. This program is free software. You can use, modify, and distribute it under the same terms as Perl itself.
The latest version of this module can be found on http://www.occamstoothbrush.com/perl/
SEE ALSO
progconv
http://progect.sourceforge.net/