Re: [vwrap] Removing first name / last name assumptions?

Dzonatas Sol <dzonatas@gmail.com> Tue, 06 April 2010 14:57 UTC

Return-Path: <dzonatas@gmail.com>
X-Original-To: vwrap@core3.amsl.com
Delivered-To: vwrap@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 98CDC3A6978 for <vwrap@core3.amsl.com>; Tue, 6 Apr 2010 07:57:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
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 K7s-puFWNNkm for <vwrap@core3.amsl.com>; Tue, 6 Apr 2010 07:57:49 -0700 (PDT)
Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com [209.85.221.181]) by core3.amsl.com (Postfix) with ESMTP id 40EDF3A6966 for <vwrap@ietf.org>; Tue, 6 Apr 2010 07:57:49 -0700 (PDT)
Received: by qyk11 with SMTP id 11so5116417qyk.13 for <vwrap@ietf.org>; Tue, 06 Apr 2010 07:57:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=yay4NdPgkj3GaM0cBWs4imkVA+keF83P5Zb2aFfKiE8=; b=ikKsb40lUokJZJNtyLQXkU9KLxmXZXhLGnBWXzoSuqvmnez9tTgJvATG40rgW1bY5h DdhTHa9HQxYIYlTdXF09JTlZCY5Up7OVsxrk1ggRrg4zHOrxCmKnbJ5RKYma49be86AN b8ZDrGpkyzQGb8gnJWUpsBEgHcLMPHvr2jMDo=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=GwluEL+4W75ZAThoMaDFabrl5QA0lI85kkoVnyCIl+Aue3TlnJMxNW87ngqiqmi/zc 0JmXJx91Igqb/VFctklLS6MZdTOlPQF9lGzwevTrqTGCT41MdL3e3RuxrdUY54tFAvfc 3vIYdd/1WjHPw0VtI2zQvnY5gX2jWakExsygY=
Received: by 10.224.17.232 with SMTP id t40mr2677700qaa.47.1270565387663; Tue, 06 Apr 2010 07:49:47 -0700 (PDT)
Received: from [192.168.0.50] (adsl-69-105-85-58.dsl.scrm01.pacbell.net [69.105.85.58]) by mx.google.com with ESMTPS id 8sm15373598qwj.10.2010.04.06.07.49.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 06 Apr 2010 07:49:46 -0700 (PDT)
Message-ID: <4BBB4D6E.60600@gmail.com>
Date: Tue, 06 Apr 2010 08:04:14 -0700
From: Dzonatas Sol <dzonatas@gmail.com>
User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090707)
MIME-Version: 1.0
To: Meadhbh Hamrick <ohmeadhbh@gmail.com>
References: <62BFE5680C037E4DA0B0A08946C0933DCB738C13@rrsmsx506.amr.corp.intel.com> <t2jb325928b1004051220i5f1d8f04od2602f26f758f3da@mail.gmail.com> <CDB96FF3-A282-40B3-94D8-A9B6A00D8AF5@bbn.com> <62BFE5680C037E4DA0B0A08946C0933DCB738C9B@rrsmsx506.amr.corp.intel.com> <y2gb325928b1004051307u5f5e64d9zd18b70bfd8307d6a@mail.gmail.com> <y2h6c9fcc2a1004052132z77168acaq26928209fa1e3e03@mail.gmail.com> <4BBB45FA.8050408@gmail.com> <j2yb325928b1004060728n29284d7fvd848fc545d54ead9@mail.gmail.com>
In-Reply-To: <j2yb325928b1004060728n29284d7fvd848fc545d54ead9@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Cc: vwrap@ietf.org, barryleiba@computer.org
Subject: Re: [vwrap] Removing first name / last name assumptions?
X-BeenThere: vwrap@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Virtual World Region Agent Protocol - IETF working group <vwrap.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/vwrap>, <mailto:vwrap-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vwrap>
List-Post: <mailto:vwrap@ietf.org>
List-Help: <mailto:vwrap-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vwrap>, <mailto:vwrap-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 06 Apr 2010 14:57:50 -0000

It's a valid XML snipplet, I just didn't include the full wrap of LLSD 
or JSON as you have. You still need to keep the space between the tags, 
or else:

"<first>simon</first><last>le bon</last>"

Would look like this without tags:

"simonle bon"

Which is not desired, so it would need to be:

"<first>simon</first> <last>le bon</last>"

Where there is a space between "</first>" and "<last>" tags.

Better example, if someone simply dropped the tags on this input:

{ "name": "<first>Barak</first> Hussein <last>Le Obama</last>" }

They would get this:

{ "name": "Barak Hussein Le Obama" }

If they only pulled the text from the tags from the input, they would get:

{ "first": "Barak", "last": "Le Obama" }

This way the initial input "name" satisfies both desires for a single 
string name and for first/last significance names. I kept "Le Obama" 
above as an example with a last name with a space in it.

This could further be applied internationally where people have 
different order for family names, so for Mr. Yao (basketball player):

{ "name": "<last>Yao</last> <first>Ming</first>" }

And when you drop the tags you get the names in the right order:

{ "name": "Yao Ming" }


Meadhbh Hamrick wrote:
> not sure what you're going for here...
>
> the example is not valid XML, but i think your recommendation is
> simply to use XML-like tags in the string that gets put inside the
> transfer encoding,
>
> so if you encoded it with JSON it would be something like:
>
> { "name": "<first>simon</first><last>le bon</last>"}
>
> or with XML, it would be encoded as:
>
> <llsd>
>   <map>
>     <key>name</key>
>     <string>&lt;first&gt;simon&lt;/first&gt;&lt;last&gt;le
> bon&lt;/last&gt;</string>
>   </map>
> </llsd>
>
> ?
> --
> meadhbh hamrick * it's pronounced "maeve"
> @OhMeadhbh * http://meadhbh.org/ * OhMeadhbh@gmail.com
>
>
>
> On Tue, Apr 6, 2010 at 7:32 AM, Dzonatas Sol <dzonatas@gmail.com> wrote:
>   
>> Barry Leiba wrote:
>>     
>>> �Here's a
>>> sampling of agent-identifiers, each within quotes just to make it
>>> clear where they start and end:
>>> � " Joshua Linden "
>>> � ".Joshua.Linden." �(another way to represent the same thing)
>>> � "/Joshua/Linden/" �(a third)
>>> � "XJoshuaXLindenX" �(a fourth)
>>> � " Melanie " �(an identifier with just one part)
>>> � "rMelanier" �(the same, in another representation)
>>> � ".Melanie." �(or less weirdly)
>>> � " Barak Hussein Obama " � (here's one with three parts)
>>> � "+Peter+Blair+Dennis+Bernard+Noone+" (a five-part one; extra credit
>>> if you're old enough to know who he is)
>>> � "~le roy~barr~" �(Meadhbh's example with an embedded blank)
>>>
>>>
>>>       
>> Another suggestion, if one used XML like tags:
>>
>> <first>Barak</first> Hussein <last>Obama</last>
>>
>> Then the string can be escaped into the name field. For those that don't
>> want first/last, they just skip the tags. For those that only want
>> first/last, they pull the text only within with first/last tags.
>>
>> _______________________________________________
>> vwrap mailing list
>> vwrap@ietf.org
>> https://www.ietf.org/mailman/listinfo/vwrap
>>
>>     
>
>