edit_card_item() {
case "$key" in
BEGIN|VERSION|END);;
PHOTO)
echo ""
;;
*)
echo -n "$(l10n "$key")"
[ -n "$tag[TYPE]" ] && echo -n "($tag[TYPE])"
echo ":"
;|
*)
echo ""
;;
esac
}
edit_attendee() {
cardfile="$1"
unset key
vcf_parse "$cardfile" |while read -r line; do
declare -A tag
case "$line" in
value*) eval "$line";;
tag*) eval "$line";;
key*)
if [ -z "$key" ]; then
eval "$line"
else
edit_card_item
eval "$line"
unset value
unset tag
fi
;;
esac
done
}