|
|
Sponsor |
real name handling [2]: msg#00001emacs.bbdb.user
In addition to my previous post about real name handling, I propose the following change to the constant (or better user changeable/customizable variable?) bbdb-name-gubbish[1] (defconst bbdb-name-gubbish (concat "[-,. \t/\\]+\\(" "[JjSs]r\\.?" "\\|V?\\(I\\.?\\)+V?" (concat "\\|" (regexp-opt bbdb-lastname-prefixes)) "\\)\\W*\\'")) This means that BBDB would accept names of the form Jane Arx, von Peter Vries, de and split them correctly into the firstname and lastname tokens "Jan" "Arx, von" "Peter" "Vries, de" and the user has the choice to give such names either as Jane von Arx Peter de Vries or Jane Arx, von Peter Vries, de In both cases bbdb-divide-name extracts (and BBDB stores) the correct firstname and lastname tokens; alphabetical sorting is evidently different (thus at user's choice). Thanks, Adrian. Footnotes: [1] What does "\\|V?\\(I\\.?\\)+V?" in bbdb-name-gubbish stand for? Ahh, I see - now when I am writing this footnote. But in France we have had king "Louis XVI" and possibly many other funny king and queen dynasties until these days. Is it better to just accept "\\|[XVI]+\\.?" or "\\|[MDCLXVI]+\\.?" or - with some syntax check for roman numbers from I (1) to XXXVIII (38): "\\|\\(I+\\(V\\|XX?X?\\|I?I?\\)\\|V+I?I?I?\\|X+X?X?\\(IV\\|V?I?I?I?\\)\\)\\.?"? ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ bbdb-info@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | real name handling, Adrian Lanz |
|---|---|
| Next by Date: | Re: real name handling, Ronan Waide |
| Previous by Thread: | real name handling, Adrian Lanz |
| Next by Thread: | bbdb + gmane address-encrypted groups, Ted Stern |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|