From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Strey Subject: Re: org-contacts development Date: Tue, 27 May 2014 11:27:02 +0200 Message-ID: <877g57372x.fsf@strey.biz> References: <8761kxnno5.fsf@gmail.com> <87egzg36u5.fsf@strey.biz> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58161) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpDfL-0002V0-Qw for emacs-orgmode@gnu.org; Tue, 27 May 2014 05:27:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WpDfD-0001hi-Lp for emacs-orgmode@gnu.org; Tue, 27 May 2014 05:27:27 -0400 Received: from plane.gmane.org ([80.91.229.3]:54757) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpDfD-0001hL-FR for emacs-orgmode@gnu.org; Tue, 27 May 2014 05:27:19 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WpDfC-0001yz-1r for emacs-orgmode@gnu.org; Tue, 27 May 2014 11:27:18 +0200 Received: from drsd-4db30454.pool.mediaways.net ([77.179.4.84]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 May 2014 11:27:18 +0200 Received: from mstrey by drsd-4db30454.pool.mediaways.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 May 2014 11:27:18 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Reading http://orgmode.org/worg/dev/org-syntax.html#Node_Properties I just realised that my clumsy property keys are against the rules since they are containing whitespace characters. Nevertheless I still like the idea of having a Type, a number and a Value for every property that can occur multiple. Thus the properties can be easily mapped to the VCard scheme as well as to any other scheme. Thus, what I would like to propose is the following scheme: #+BEGIN_SRC org :PROPERTIES: :Contact_Type: individual or organisation :Organization_1_Type: company :Organization_1_Name: The company name :Organization_1_Department: department, business unit, division :Organization_1_Title: job title of an individual :FN: The full name :GivenName: :FamilyName: :Name_Prefix: :Name_Suffix: :Nickname: :Email_1_Type: Work :Email_1_Value: name@company.fr :Address_1_Type: Work :Address_1_Street: The street can contain multiple lines \\ second line :Address_1_Box: Postal box :Address_1_Extension: other extensions that can occur in addresses :Address_1_City: The city :Address_1_Region: Region, federal state etc. :Address_1_Code: 12100 :Address_1_Country: France :Phone_1_Type: Work :Phone_1_Value: +33 565 623740 :Phone_2_Type: Fax :Phone_2_Value: +33 565 623070 :Website_1_Type: Work :Website_1_Value: http://www.domain.fr :Birthday: :Language: en :Salutation: :END: #+END_SRC Other user defined properties can be added and mapped to the appropriate user defined keys during export. Further remarks regarding my last e-mail: > #+BEGIN: propview :id "39584cda-bff0-4b8a-9460-4fefb5b5922c" :cols (Given= \ Name Family\ Name ITEM Name\ Prefix Name\ Suffix Nickname EMAIL Phone\ 1\= -\ Type Phone\ 1\ -\ Value Phone\ 2\ -\ Type Phone\ 2\ -\ Value Phone\ 3\ = -\ Type Phone\ 3\ -\ Value Phone\ 4\ -\ Type Phone\ 4\ -\ Value Address\ 1\= -\ Type Address\ 1\ -\ Street Address\ 1\ -\ PO\ Box Address\ 1\ -\ Extend= ed\ Address Address\ 1\ -\ City Address\ 1\ -\ Region Address\ 1\ -\ Postal= \ Code Address\ 1\ -\ Country Address\ 2\ -\ Type Address\ 2\ -\ Street Add= ress\ 2\ -\ PO\ Box Address\ 2\ -\ Extended\ Address Address\ 2\ -\ City Ad= dress\ 2\ -\ Region Address\ 2\ -\ Postal\ Code Address\ 2\ -\ Country Addr= ess\ 3\ -\ Type Address\ 3\ -\ Street Address\ 3\ -\ PO\ Box Address\ 3\ -\= Extended\ Address Address\ 3\ -\ City Address\ 3\ -\ Region Address\ 3\ -\= Postal\ Code Address\ 3\ -\ Country Organization\ 1\ -\ Name Birthday Orga= nization\ 1\ -\ Title Organization\ 1\ -\ Department Website\ 1\ -\ Type We= bsite\ 1\ -\ Value LANG TAGS) :colnames ("Given Name" "Family Name" "Name" = "Name Prefix" "Name Suffix" "Nickname" "E-mail 1 - Value" "Phone 1 - Type" = "Phone 1 - Value" "Phone 2 - Type" "Phone 2 - Value" "Phone 3 - Type" "Phon= e 3 - Value" "Phone 4 - Type" "Phone 4 - Value" "Address 1 - Type" "Address= 1 - Street" "Address 1 - PO Box" "Address 1 - Extended Address" "Address 1= - City" "Address 1 - Region" "Address 1 - Postal Code" "Address 1 - Countr= y" "Address 2 - Type" "Address 2 - Street" "Address 2 - PO Box" "Address 2 = - Extended Address" "Address 2 - City" "Address 2 - Region" "Address 2 - Po= stal Code" "Address 2 - Country" "Address 3 - Type" "Address 3 - Street" "A= ddress 3 - PO Box" "Address 3 - Extended Address" "Address 3 - City" "Addre= ss 3 - Region" "Address 3 - Postal Code" "Address 3 - Country" "Organizatio= n 1 - Name" "Birthday" "Oganization 1 - Title" "Organization 1 - Department= " "Website 1 - Type" "Website 1 - Value" "Language" "org-tags") :defaultval= "" :inherit (TAGS) :conds ((stringp KIND)) :match "-ARCHIVE" :noquote t Here I forgot to copy the #+END:=20 Please note that org-collector tries to convert property values from strings into numbers if possible. For postal codes with leading Zeros this can lead to unexpected results. I did not find any other way to solve this problem than to add a national code like in the following example :Address_1_Code: 01169 would lead to "1169" in the propview table. so I replaced it with :Address_1_Code: DE-01169 --=20 Michael Strey mailto:mstrey@strey.biz http://www.strey.biz https://twitter.com/michaelstrey