hcard-user-interface: Difference between revisions
mNo edit summary |
AndyMabbett (talk | contribs) No edit summary |
||
Line 10: | Line 10: | ||
== Contributors == | == Contributors == | ||
* ... | * ... | ||
== Single Input Field for Names == | == Single Input Field for Names == | ||
Line 27: | Line 26: | ||
The principal behind this suggestion is that it's better to make a good guess and potentially miscategorise an ambiguous name component than to generate an invalid hCard. | The principal behind this suggestion is that it's better to make a good guess and potentially miscategorise an ambiguous name component than to generate an invalid hCard. | ||
=== Additional user interface === | |||
Some examples of additional user interface for hCard. Note that most of these actions should be applicable to all instances of the microformat on the page at once (e.g. export all contacts), of for a selection of instances (e.g. export selected contacts), or one just one specific instance (e.g. export contact XYZ). | |||
* [[hcard|hCard]]: | |||
** "Add to Address Book" (convert the hCard to a vCard (.vcf) and pass it onto the OS to automatically open/incorporate into the user's preferred local address book application) | |||
** add to Gmail, Yahoo Mail, Hotmail address book (etc.) | |||
** send to Bluetooth, for quick transfer of contact info from the web to a cell phone. | |||
** export as text/ [[csv|comma-separated-variables]] (CSV) to allow editing, sorting and/ or import into spreadsheets/ databases, etc. (or concatenate to existing file) | |||
** display contact details in an on-screen or downloadable [[semacode]] (to allow them to be read by mobile devices) | |||
** If a <code>tel</code> (phone number) having type <code>home</code>, <code>work</code> or <code>cell</code> is present, provide options to dial it (NB applies to one number at a time only; except for possible conference-call uses) directly, or via | |||
*** built-in modem | |||
*** bluetooth command to a paired device (e.g. cell phone) | |||
*** default telephony app (e.g. skype-out) | |||
** If a <code>tel</code> (phone number) having type <code>home</code>, <code>work</code> or <code>cell</code> is present, provide options to send MMS: | |||
***directly | |||
***using on-line service | |||
*** bluetooth command to a paired device (e.g. cell phone) | |||
** If a <code>tel</code> of type <code>fax</code> is present, provide options to send a fax to it via: | |||
*** efax online service | |||
*** built-in fax modem | |||
** If a birth-date is present, treat it as a recurring hCalendar event. |
Revision as of 10:12, 8 October 2007
hCard User Interface
This page is for techniques and issues surrounding user-interfaces to author, publish, and display hCards.
Authors
Contributors
- ...
Single Input Field for Names
When capturing name data that is later to be presented as a hCard, it's important that the data is collected at the highest fidelity possible. As not all names are suitable for hCard's implied-n optimisation (and therefore can't be output as fn
, with n
omitted), capturing component parts of the name individually enables the proper construction on n
when generating the hCard.
Sometimes, however, constraints require a name be collected with a single field. Once such example is common blog CMSs (WordPress, TextPattern) that use a single database field to store the name against each post comment. In such cases it is always desirable to find a way to collect the name with higher fidelity. However, if this simply cannot be done, the implementer could chose to attempt to best-guess the component parts of the name to form a valid n
.
One suggested 'best-guess' algorithm might be:
- If the name is one word, attempt implied nickname optimization
- If the name is two words, attempt implied n optimization
- For three or more words
- Perform a lookup against known sub-name combinations (e.g. 'Sarah Jane', 'Vander Wal')
- Apply the grammar "(honorific-prefix) given-name additional-name(s) family-name (honorific-suffix)"
The principal behind this suggestion is that it's better to make a good guess and potentially miscategorise an ambiguous name component than to generate an invalid hCard.
Additional user interface
Some examples of additional user interface for hCard. Note that most of these actions should be applicable to all instances of the microformat on the page at once (e.g. export all contacts), of for a selection of instances (e.g. export selected contacts), or one just one specific instance (e.g. export contact XYZ).
- hCard:
- "Add to Address Book" (convert the hCard to a vCard (.vcf) and pass it onto the OS to automatically open/incorporate into the user's preferred local address book application)
- add to Gmail, Yahoo Mail, Hotmail address book (etc.)
- send to Bluetooth, for quick transfer of contact info from the web to a cell phone.
- export as text/ comma-separated-variables (CSV) to allow editing, sorting and/ or import into spreadsheets/ databases, etc. (or concatenate to existing file)
- display contact details in an on-screen or downloadable semacode (to allow them to be read by mobile devices)
- If a
tel
(phone number) having typehome
,work
orcell
is present, provide options to dial it (NB applies to one number at a time only; except for possible conference-call uses) directly, or via- built-in modem
- bluetooth command to a paired device (e.g. cell phone)
- default telephony app (e.g. skype-out)
- If a
tel
(phone number) having typehome
,work
orcell
is present, provide options to send MMS:- directly
- using on-line service
- bluetooth command to a paired device (e.g. cell phone)
- If a
tel
of typefax
is present, provide options to send a fax to it via:- efax online service
- built-in fax modem
- If a birth-date is present, treat it as a recurring hCalendar event.