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 _______________________________________________ [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/