Re: [VCARDDAV] Questions about text handling in vCard 4.0 (rev 11)

Simon Perreault <simon.perreault@viagenie.ca> Mon, 05 July 2010 12:27 UTC

Return-Path: <simon.perreault@viagenie.ca>
X-Original-To: vcarddav@core3.amsl.com
Delivered-To: vcarddav@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id C74113A6896 for <vcarddav@core3.amsl.com>; Mon, 5 Jul 2010 05:27:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0
X-Spam-Level:
X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[BAYES_50=0.001, NO_RELAYS=-0.001]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lgG-wg8FMxNk for <vcarddav@core3.amsl.com>; Mon, 5 Jul 2010 05:27:57 -0700 (PDT)
Received: from jazz.viagenie.ca (unknown [IPv6:2620:0:230:8000:226:55ff:fe57:14db]) by core3.amsl.com (Postfix) with ESMTP id B6EB83A684C for <vcarddav@ietf.org>; Mon, 5 Jul 2010 05:27:57 -0700 (PDT)
Received: from ringo.viagenie.ca (unknown [IPv6:2620:0:230:c000:c82e:8f87:99d9:d9dc]) by jazz.viagenie.ca (Postfix) with ESMTPSA id A0CCC20E01 for <vcarddav@ietf.org>; Mon, 5 Jul 2010 08:27:58 -0400 (EDT)
Message-ID: <4C31CF6B.9050500@viagenie.ca>
Date: Mon, 05 Jul 2010 08:26:19 -0400
From: Simon Perreault <simon.perreault@viagenie.ca>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-2.fc12 Thunderbird/3.0.4
MIME-Version: 1.0
To: vcarddav@ietf.org
References: <AANLkTik6O1nZvjdDRn1bdGb20xKbWJApIsnwfTJ8BbRa@mail.gmail.com>
In-Reply-To: <AANLkTik6O1nZvjdDRn1bdGb20xKbWJApIsnwfTJ8BbRa@mail.gmail.com>
X-Enigmail-Version: 1.0.1
Content-Type: text/plain; charset="ISO-2022-JP"
Content-Transfer-Encoding: 7bit
Subject: Re: [VCARDDAV] Questions about text handling in vCard 4.0 (rev 11)
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 05 Jul 2010 12:27:58 -0000

On 2010-07-04 23:49, Daisuke Miyakawa wrote:
> - how a receiver accept string with backslash which is not determined in
> the spec (e.g. How "\t\h\i\s\ \i\s\ \a\ \t\e\s\t\n" should be decoded if
> the receiver happened to see it?)

This means that the sender is buggy and is generating output with
undefined meaning. Whether and how the receiver could try to recover
from this output is also undefined.

> - how to handle invisible/control characters valid in Unicode (e.g. tab,
> full-width space used in Japanese, etc.) It can be held as is, but I
> think it might be better to encode it to something like \xXXXX only when
> it is not readable enough.

Disagree. All characters must be left as is except for the ones that
must be escaped.

> - How to handle ',', '\,', ';', and '\;' in X- properties (e.g.
> "X-EXTRA-SORT-STRING:This,is\, a\;test;\, isn't\;it?"). What to do when
> some sender wanted to use splitter (',' or ';') in vCard 4.0.

The rule for comma, backslash, and newline are global and apply
everywhere (see section 3.3). However, the rule for semicolon only
applies to some properties which use the semicolon as separator. It is
up to the people defining a particular X- property to decide whether
they want to use the semicolon as separator.

Simon
-- 
NAT64/DNS64 open-source --> http://ecdysis.viagenie.ca
STUN/TURN server        --> http://numb.viagenie.ca
vCard 4.0               --> http://www.vcarddav.org