From: Alan P. <api...@ma...> - 2003-04-06 18:30:44
|
It definitely depends how generalized you want the whole thing to be... what's the goal for the project? LG only? Other phones? That's an important question. Also, it's practically guaranteed that most phones will support only a subset of what vCard supports. Therefore, some logic will need to determine which numbers to take and which ones to "drop on the floor". Also, there are other issues along the customization axis... for instance, should names be "Last, First" or "First Last". Should this be configurable? Maybe when the user starts the import of a vCard file a "prefs" form should come up to allow the user to make his own customizations?' I read through the vCard spec and there are some cool things.. first of all, pics of people can be embedded in the vCard, which means you could support picture ID from vCard import. Although currently AddressBook on MAC doesn't export images in the vCards. As far as the "main" number goes, in a vCard a particular TEL number can be "preferred" and I think only ONE per card can be, so maybe that'd be a good way to map "main". There's definitely more work I should do to make the parser more generalized to handle some of these issues. Right now I just made it Quick&Dirty so it'd work for me... Alan On Saturday, April 5, 2003, at 03:48 PM, Roger Binns wrote: >> Each are truncated if they exceed the LG's maximums (22 chr names, 48 >> chr phone & email). > > I've got to decide what the right thing to do about this is. My > feeling > is to silently truncate entries when writing them to the phone. > Although > being a little more intelligent may help (eg removing punctuation > first, > taking out the middle of long words and replacing with ...) > > I don't think the import code should have to know about the lengths. > It > will however have to know about types (one of my bugbears with someone > else's software was that there was a 'main' number type that they > mapped > really badly when converting to something that doesn't have 'main' like > the LG). > > Roger > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > Bitpim-devel mailing list > Bit...@li... > https://lists.sourceforge.net/lists/listinfo/bitpim-devel |