console/kabcclient
A CSV template is basically an INI-style text file with the .desktop file extension.
The file consists of three sections:
[General]: describes formatting options, like how dates should be interpreted or formatted, or what character is used as the field delimiter
[Misc]: name of the template
[csv column map]:
describes which field or column of the CSV data has which addressbook field
Example:
This would transform the following input "Doe","John","2005-07-25"
into an addressbook entry for a person named John Doe, having been born on July 25th, 2005
Details:
Says that the CSV data will have three fields
Says that dates are to be interpreted as four digit year followed by two digit month followed by a two digit day, separated by '-'
Other possible letters are:
'y'
(two digit year using 19 as the century)'m'
(one digit month for months < 10)'d'
(one digit day for days < 10)
Use comma as the field separator.
Other possible values are:
1
(semicolon)2
(tab)3
(single space)4
(user defined)
In case of DelimiterType=4
there is an additional entry DelimiterOther
which has the separator character as its value.
DelimiterType=4
followed by DelimiterOther=
, would for example be equivalent to DelimiterType=0
Use standard double quote character "
as the field quoting. Other possible values are:
1
(use single quote'
)2
no quoting
For full examples see the files installed along KAddressBook.
The column map tells the filters which columns of the CSV data maps to which field in the address book. Column index starts at 0
The above example template says that the first column is the family name, the second column is the given name or first name and that the thrid and last columns is the birthday date.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.