Peter Dufault
2004-07-14 13:47:24 UTC
I'd like to make some changes to vcard import. I need some advice
since I'm not familiar enough with the code to know I'm doing the
correct thing, maybe it goes somewhere else in BitPim.
I'd like an option to order by last name on import. The way I think it
works now is if there is a 'FN:' field then that is used and if not a
name is synthesized from the 'N:' field.
So now all doctors are imported in this order (assume only an FN field
for Donald Duck):
"Donald Duck"
"Dr. Sigmund Freud"
"Dr. Albert Einstein"
and they show up in alphabetical order in the phone.
If I added a "import by last name" option to the import code I'd have
it prefer the "N:" field over the "FN:" field. The synthesized names
from the "N" field would be last name first, so we would get:
"Donald Duck" (because no "N:" field)
"Einstein, Dr. Albert"
"Freud, Dr. Sigmund"
Does this make sense? I realize there could be a global "reorder to
last name first" option but that would be too tough for my python
abilities. I also see the Sanyo code, but I'm guessing that is because
the Sanyo specifically supports last names.
Peter
Peter Dufault
HD Associates, Inc.
since I'm not familiar enough with the code to know I'm doing the
correct thing, maybe it goes somewhere else in BitPim.
I'd like an option to order by last name on import. The way I think it
works now is if there is a 'FN:' field then that is used and if not a
name is synthesized from the 'N:' field.
So now all doctors are imported in this order (assume only an FN field
for Donald Duck):
"Donald Duck"
"Dr. Sigmund Freud"
"Dr. Albert Einstein"
and they show up in alphabetical order in the phone.
If I added a "import by last name" option to the import code I'd have
it prefer the "N:" field over the "FN:" field. The synthesized names
from the "N" field would be last name first, so we would get:
"Donald Duck" (because no "N:" field)
"Einstein, Dr. Albert"
"Freud, Dr. Sigmund"
Does this make sense? I realize there could be a global "reorder to
last name first" option but that would be too tough for my python
abilities. I also see the Sanyo code, but I'm guessing that is because
the Sanyo specifically supports last names.
Peter
Peter Dufault
HD Associates, Inc.