function normalize_atom_person(&$source, $person, &$dest, $to, $i)
{
$id = $this->element_id($person, $i);
$id_to = $this->element_id($to, $i);
// Atom 0.3 <=> Atom 1.0
if ($this->feed_version() >= 1.0) {
$used = 'uri';
$norm = 'url';
} else {
$used = 'url';
$norm = 'uri';
}
if (isset($source["{$id}_{$used}"])) {
$dest["{$id_to}_{$norm}"] = $source["{$id}_{$used}"];
}
// Atom to RSS 2.0 and Dublin Core
// RSS 2.0 person strings should be valid e-mail addresses if possible.
if (isset($source["{$id}_email"])) {
$rss_author = $source["{$id}_email"];
}
if (isset($source["{$id}_name"])) {
$rss_author = $source["{$id}_name"] . (isset($rss_author) ? " <{$rss_author}>" : '');
}
if (isset($rss_author)) {
$source[$id] = $rss_author;
// goes to top-level author or contributor
$dest[$id_to] = $rss_author;
// goes to dc:creator or dc:contributor
}
}