[uf-discuss] Re: Mapping fields between Apple Address Book and hCard

Chris Messina chris.messina at gmail.com
Sat Jul 8 17:15:08 PDT 2006


Additionally, a general schema for determing what fields are baseline
and supported across all address books with vcard import would be
interesting, as well as calling out those fields which are shown by
default in the Apple Address Book (since you can add fields that
aren't shown by default or change the int'l format of addresses).

Chris

On 7/8/06, Tantek Çelik <tantek at cs.stanford.edu> wrote:
> Colin, this sounds both very cool and very useful.
>
> One thing that *might* make this easier is if you attempt this mapping using
> vCard as the intermediary.  I.e.
>
> Mapping fields between Apple Address Book and vCard
>  AKA File -> Export vCard...
>
> Mapping fields between vCard and hCard
>  that's the hCard spec! :)
>
> Try that first (because it should be easier / require fewer "creative"
> decisions), and then if that's insufficient we should document why, as it
> may reveal suggestions for improving Apple's Address Book to vCard export.
>
> Thanks,
>
> Tantek
>
>
> On 7/8/06 3:26 PM, "Colin D. Devroe" <cdevroe at theubergeeks.net> wrote:
>
> > For a small personal project I'm putting together, I'm going to
> > attempt to export my entire Address Book (from Apple's Address Book),
> > or just a selected Group within Address Book, to an XHTML file with
> > valid hCard formatted contacts.  I figured since most people are
> > attempting to get hCard's to be imported into the applications we all
> > use daily, I thought maybe it'd be cool to do the opposite. Yipee,
> > fun, fun.
> >
> > My first task was to map the fields between Apple's Address Book and
> > the hCard spec.  I would appreciate if someone could make sure I
> > didn't make any glaringly wrong assumptions.
> >
> > Please note: When going over this mapping table, I realize I am
> > reusing the class names to denote the sub-classes.  This is
> > intentional, as I am trying to show that if only one of the
> > subordinates is present, the master class is needed.  Maybe this
> > isn't the best way to show that, but I thought it worked for me.
> >
> > Thanks in advance.
> >
> > Apple Address Book        hCard spec
> > -----------------------------------------------------------
> > First Name                given-name
> > Middle Name            additional-name
> > Last Name                family-name
> > Nickname                nickname
> > Home e-mail                email home
> > Work e-mail                email work
> > Other e-mail                email
> > Home Phone            tel home
> > Work Phone                tel work
> > Mobile Phone            tel cell
> > Other Phone                tel
> > Pager Phone            tel pager
> > Work Fax                tel work fax
> > Home Fax                tel home fax
> > Home Page                url
> > Company                org
> > Department                orginization-unit
> > Job Title                    role
> > Work Street                adr work street-address
> > Work City                adr work region
> > Work Province            adr work locality
> > Work ZIP                adr work postal-code
> > Work Country            adr work country-name
> > Home Street                adr home street-address
> > Home City                adr home region
> > Home Province            adr home locality
> > Home ZIP                adr home postal-code
> > Home Country            adr home country-name
> > Birthday                    bday (iso date)
> > Note                    note
> >
> > If you have any suggestions, know of anyone that is already doing
> > this (I search microformats.org and Google and haven't found it yet),
> > please let me have them.
> >
> > Colin D. Devroe
> > # http://cdevroe.com/
> > _______________________________________________
> > microformats-discuss mailing list
> > microformats-discuss at microformats.org
> > http://microformats.org/mailman/listinfo/microformats-discuss
>
> _______________________________________________
> microformats-discuss mailing list
> microformats-discuss at microformats.org
> http://microformats.org/mailman/listinfo/microformats-discuss
>


-- 
Chris Messina
Agent Provocateur, Citizen Agency &
  Open Source Ambassador-at-Large
Work  / citizenagency.com
Blog  / factoryjoe.com/blog
Cell  /  412 225-1051
Skype / factoryjoe
This email is:   [ ] bloggable    [X] ask first   [ ] private


More information about the microformats-discuss mailing list