emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Daimrod <daimrod@gmail.com>
To: Michael Strey <mstrey@strey.biz>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-contacts development
Date: Thu, 29 May 2014 12:19:36 +0900	[thread overview]
Message-ID: <87zji1b7av.fsf@tanger.home> (raw)
In-Reply-To: <877g57372x.fsf@strey.biz> (Michael Strey's message of "Tue, 27 May 2014 11:27:02 +0200")

Michael Strey <mstrey@strey.biz> writes:
Hi Michael,

> 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
>

Hmm, I kinda like this. It seems a bit verbose but it's better than
having multiple values per properties (IMHO).

Though, if we adopt this scheme, we would need to add some helper
bindings/functions so that we don't have to fill this by hands.

> Other user defined properties can be added and mapped to the appropriate
> user defined keys during export.

I'm not sure to understand what you mean. Could you give more details
and maybe an example?

>
> [snip]
>
> 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

What is `org-collector' and when does it happen?

I've done a quick test and the 0 appears in `org-contacts-db'.

Best,

-- 
Daimrod/Greg

  reply	other threads:[~2014-05-29  3:19 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-23  4:07 org-contacts development Alexis
2014-05-23  9:06 ` Rasmus
2014-05-23 10:30 ` Alexander Baier
2014-05-24  4:02   ` Xebar Saram
2014-05-24 10:27     ` Alexis
2014-05-24 10:15   ` Alexis
2014-05-24 14:18     ` Alexander Baier
2014-05-24 14:55       ` Bastien
2014-05-24 15:05       ` Alexis
2014-05-24 15:43         ` Rasmus
2014-05-24 16:10           ` Alexis
2014-05-23 12:45 ` Bastien
2014-05-23 15:46   ` Rasmus
2014-05-24 10:04   ` Alexis
2014-05-24 12:17     ` Bastien
2014-05-24 14:07       ` Alexis
2014-05-24  9:00 ` Org-contacts standardization (was: org-contacts development) Karl Voit
     [not found] ` <878ups27km.fsf@gmx.us>
2014-05-24  9:59   ` org-contacts development Alexis
2014-05-24 16:51 ` Daimrod
2014-05-24 17:48   ` Alexis
2014-05-26  3:21     ` Daimrod
2014-05-26  4:06       ` Alexis
2014-05-26 15:20 ` Michael Strey
2014-05-27  9:27   ` Michael Strey
2014-05-29  3:19     ` Daimrod [this message]
2014-06-03 10:23       ` Michael Strey
2014-06-05  4:26         ` Daimrod
2014-07-23 13:40 ` Karl Voit

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zji1b7av.fsf@tanger.home \
    --to=daimrod@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mstrey@strey.biz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).