Re: [Slim] Collapse attribute syntax to one line in draft-ietf-slim-negotiating-human-language

Paul Kyzivat <paul.kyzivat@comcast.net> Thu, 01 June 2017 18:23 UTC

Return-Path: <paul.kyzivat@comcast.net>
X-Original-To: slim@ietfa.amsl.com
Delivered-To: slim@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4A193127077 for <slim@ietfa.amsl.com>; Thu, 1 Jun 2017 11:23:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level:
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=comcast.net
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id v2jz5kEKZZ9l for <slim@ietfa.amsl.com>; Thu, 1 Jun 2017 11:23:49 -0700 (PDT)
Received: from resqmta-ch2-08v.sys.comcast.net (resqmta-ch2-08v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EE206129C4B for <slim@ietf.org>; Thu, 1 Jun 2017 11:23:48 -0700 (PDT)
Received: from resomta-ch2-07v.sys.comcast.net ([69.252.207.103]) by resqmta-ch2-08v.sys.comcast.net with SMTP id GUjfdn4h6AfZsGUlAdNdcu; Thu, 01 Jun 2017 18:23:48 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1496341428; bh=LBlO/8W/FcVf1AeptSxBSbwmbeQaoq8Ws3u+fswfvlU=; h=Received:Received:Subject:To:From:Message-ID:Date:MIME-Version: Content-Type; b=RH+1flg3jLvt0AKaWHrqi5QvQlcxb2X3BCu3plpBrbezDTMR8uB5Ljd6t7n81tnJq IeQZEizLh0lbRo5+RMKjd7lqSQ+iX64kHKBQVADFMFvHsu2pbWb1n8ZLtGrAS3Pq0o +1/mTMYZ4OpVWhuHCRYezCUUp1SuJJv8VFxmpx+XpjC4+ahXx4YhYwAkYVuvSGm31R 3ffJvpPBWyNW5JWDJLGuMyU2K6H1k5XLYJFZ2eWgFxoGoD9mhoqKLIzlV8V09HZDG2 ZXWwYoMw/CfLReriURGvUEbI7WxbwtRcMmkEcLcaAkqRkAcGDoeBmgj0iiQPWzTKVm 5AlC/ejKpFOyg==
Received: from [192.168.1.110] ([24.62.227.142]) by resomta-ch2-07v.sys.comcast.net with SMTP id GUl9dZF5pt1ZsGUl9dxPJv; Thu, 01 Jun 2017 18:23:48 +0000
To: slim@ietf.org
References: <p06240602d550f5367daa@[99.111.97.136]> <p06240602d55258b37fa7@[99.111.97.136]> <B8657F32-BB22-40FE-8D09-6EB3EC4408D9@gsma.com> <dce40ab8-e4d7-c36a-7731-934f3291c643@omnitor.se> <p06240606d555fc510b8e@[99.111.97.136]> <be415694-9fdb-cf56-ae6b-fd5e8bff8891@omnitor.se> <64D68B73-256D-4478-A970-5037B0187D73@brianrosen.net>
From: Paul Kyzivat <paul.kyzivat@comcast.net>
Message-ID: <c6d9c212-35dc-3c95-bf29-67ab7699c9d0@comcast.net>
Date: Thu, 01 Jun 2017 14:23:47 -0400
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:52.0) Gecko/20100101 Thunderbird/52.1.1
MIME-Version: 1.0
In-Reply-To: <64D68B73-256D-4478-A970-5037B0187D73@brianrosen.net>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-CMAE-Envelope: MS4wfGKXTd2lGvPrMVvfZVKQbpPlCzNIlFjf57PDOes6XtpMn/UguXydVASPyvV0GmKB/br1Hn/1lg2Ha8Ii9oEmThn448ir92ZUizMxxK/ALtsNm8gBp67l z3JnFdPN6K7HpI9r55RKa6KVzIo8r1FfKnGDwsIckNVQaad6/L3rZ4T/
Archived-At: <https://mailarchive.ietf.org/arch/msg/slim/OEfq6PxjNmsOsT_aAg0N7zIm-T0>
Subject: Re: [Slim] Collapse attribute syntax to one line in draft-ietf-slim-negotiating-human-language
X-BeenThere: slim@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Selection of Language for Internet Media <slim.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/slim>, <mailto:slim-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/slim/>
List-Post: <mailto:slim@ietf.org>
List-Help: <mailto:slim-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/slim>, <mailto:slim-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 01 Jun 2017 18:23:51 -0000

On 6/1/17 2:10 PM, Brian Rosen wrote:
> Gunnar
> 
> And yet you persist.
> 
> We have agreed NOT to do preferences between modalities.  Any suggestion 
> that we do so is out of scope for this document.  If you want to write a 
> draft that extends the mechanism, please do and I’ll review it, but 
> PLEASE don’t keep suggesting that we handle preferences between media in 
> this document.  We agreed NOT to do it.
> 
> I would prefer the current syntax, and not Accept-Language syntax.

How about enhancing the syntax to support parameters for the values, but 
only as a future extension mechanism? Unknown parameters to be ignored. 
Then at least the hooks will be there to introduce something later if 
desired.

	Thanks,
	Paul

> Brian
> 
>> On Jun 1, 2017, at 2:01 PM, Gunnar Hellström 
>> <gunnar.hellstrom@omnitor.se <mailto:gunnar.hellstrom@omnitor.se>> wrote:
>>
>> Den 2017-06-01 kl. 19:17, skrev Randall Gellens:
>>> The group has repeatedly discussed q-values and priority and has 
>>> always decided to not go down that path.
>> I expect our shepherd to lead us to the decision. We had one reviewer 
>> requesting us to use the Accept-Language syntax with the q-values.
>>
>> I can accept either way, either the one-line syntax used in version 
>> -10, or the Accept-Language syntax.
>>
>> If we go with the current one-line syntax, I will propose to add the 
>> preference between modalities by giving the asterisk a preference 
>> interpretation on media level.
>> And I will propose to use the -t language subtag for simultaneous 
>> languages in other modalities.
>> This may lack some flexibility but will likely be sufficient.
>>
>> If we go with the Accept-Language syntax, then I will propose to let 
>> the q-values have scope over the whole SDP in order to assign 
>> preference between modalities,
>> and I will propose to let equal q-values or q-values within a narrow 
>> interval to indicate a preference for using simultaneous languages in 
>> different media. The first item is nice and flexible, the second, for 
>> simultaneity may be less elegant.
>>
>> I hope you will accept either solution. And do it already in the 
>> current draft.
>>
>> So we just need the decision on the Accept-Language syntax proposal 
>> and then move on.
>>
>> Regards
>>
>> Gunnar
>>
>>
>>
>>
>>
>>
>>>
>>> At 4:33 PM +0200 6/1/17, Gunnar Hellström wrote:
>>>
>>>> Den 2017-06-01 kl. 11:54, skrev Natasha Rooney:
>>>>
>>>>> This seems sufficient given our previous conversations. q-values 
>>>>> can be applied within further work (although I don't see why 
>>>>> ordering doesn't do the job, works in web).
>>>>>
>>>> It is not feasible to change syntax by adding q-values in an 
>>>> extension. That will cause interop problems, or complicated needs to 
>>>> negotiate protocol version. So, we need to decide the syntax now and 
>>>> stick closely to it.
>>>>
>>>> Ordering is not sufficient because we have a need to set preferences 
>>>> between different media.
>>>> Ordering only works within a media.
>>>>
>>>> And, a minor drawback: ordering does not allow to specify a number 
>>>> of languages in the same media with the same preference. One always 
>>>> will look as if it is more preferred than another. - but I think we 
>>>> can live with that.
>>>>
>>>> Maybe the main question is: Will our own one-line syntax really be 
>>>> less complex to parse than the Accept-Language syntax that we might 
>>>> be able to find ready library routines for?
>>>> Adam Roach had views on complexity to parse different solutions. 
>>>> Maybe you, Adam can have a view on this?
>>>>
>>>> Regards
>>>>
>>>> Gunnar
>>>>
>>>>>
>>>>> Bernard - any further thoughts?
>>>>>
>>>>>
>>>>> Natasha Rooney | Internet Engineering Director | Internet and Web 
>>>>> Team | Technology | GSMA | 
>>>>> <mailto:nrooney@gsma.com>nrooney@gsma.com <mailto:nrooney@gsma.com> 
>>>>> | +44 (0) 7730 219 765 | @thisNatasha | Skype: 
>>>>> <mailto:nrooney@gsm.org>nrooney@gsm.org <mailto:nrooney@gsm.org>
>>>>>
>>>>>> On 30 May 2017, at 00:04, Randall Gellens 
>>>>>> <<mailto:rg+ietf@randy.pensive.org>rg+ietf@randy.pensive.org 
>>>>>> <mailto:rg+ietf@randy.pensive.org>> wrote:
>>>>>>
>>>>>> I uploaded version -10, which includes the syntax change to single 
>>>>>> line, along with a few editorial clarifications. (Version -09 
>>>>>> accidently omitted an editorial clarification.)
>>>>>>
>>>>>> You can see a diff of the changes from 08 to 10 here:
>>>>>>
>>>>>> <https://www.ietf.org/rfcdiff?url1=draft-ietf-slim-negotiating-human-language-08&url2=draft-ietf-slim-negotiating-human-language-10>https://www.ietf.org/rfcdiff?url1=draft-ietf-slim-negotiating-human-language-08&url2=draft-ietf-slim-negotiating-human-language-10
>>>>>>
>>>>>> If there objections to the change from multi-line to single-line, 
>>>>>> this can be reverted.
>>>>>>
>>>>>> --Randy
>>>>>>
>>>>>>
>>>>>>
>>>>>> At 2:57 PM -0700 5/28/17, Randall Gellens wrote:
>>>>>>
>>>>>>> In response to Adam Roach's comments as well as other comments, I 
>>>>>>> intend to update the draft to collapse the attribute syntax to 
>>>>>>> one line; each attribute can occur at most once per media, with 
>>>>>>> all languages on the same line. This will further reduce the size 
>>>>>>> of the SDP block.
>>>>>>>
>>>>>>> If you object to this, please reply.
>>>>>>>
>>>>>>> Here is the section of Adam's review:
>>>>>>>
>>>>>>> At 8:31 PM +0000 3/28/17, Sabrina Tanamal via RT wrote:
>>>>>>>
>>>>>>>> I'll note that much of this can be fixed if the syntax is 
>>>>>>>> collapsed so
>>>>>>>> that each media section can have at most one hlang-send and one
>>>>>>>> hlang-receive, each of which contain a list of one or more languages
>>>>>>>> that can be sent or received. This is also much more consistent 
>>>>>>>> with the
>>>>>>>> way SDP attributes are used in general. The presence of a "*" 
>>>>>>>> token on
>>>>>>>> that line would indicate the "call should happen even without 
>>>>>>>> matching
>>>>>>>> languages" characteristic; since there is only one place to add this
>>>>>>>> indicator, the ambiguity of some lines indicating it and others not
>>>>>>>> disappears. The preceding example would collapse to:
>>>>>>>>
>>>>>>>> m=audio 49250 RTP/AVP 20
>>>>>>>> a=hlang-send:es eu en *
>>>>>>>> a=hlang-recv:es eu en *
>>>>>>>>
>>>>>>>> ...and the example text would be revised to remove the 
>>>>>>>> implication that
>>>>>>>> *sending* "es" necessarily implies *receiving* "es".
>>>>>>>>
>>>>>>>> I'll further note that the majority of SDP libraries I've worked 
>>>>>>>> with
>>>>>>>> would make accessing the all-on-one-line format easier than
>>>>>>>> one-line-per-language as well.
>>>>>>>>
>>>>>>>
>>>>>>> Here is the proposed ABNF:
>>>>>>>
>>>>>>> Attribute Syntax:
>>>>>>>
>>>>>>> hlang-value = Language-Tag *( SP Language-tag ) [ SP asterisk ]
>>>>>>>
>>>>>>> ; Language-Tag as defined in BCP 47
>>>>>>>
>>>>>>> asterisk = "*" ; an asterisk (ASCII %2A) character
>>>>>>>
>>>>>>> sp = 1*" " ; one or more ASCII space (%20) characters
>>>>>>>
>>>>>>> --
>>>>>>> Randall Gellens
>>>>>>> Opinions are personal; facts are suspect; I speak for myself only
>>>>>>> -------------- Randomly selected tag: ---------------
>>>>>>> If forced to travel on an airplane, try and get in the cabin with
>>>>>>> the Captain, so you can keep an eye on him and nudge him if he
>>>>>>> falls asleep or point out any mountains looming up ahead ...
>>>>>>> --Mike Harding, The Armchair Anarchist's Almanac.
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> SLIM mailing list
>>>>>>> <mailto:SLIM@ietf.org>SLIM@ietf.org <mailto:SLIM@ietf.org>
>>>>>>>
>>>>>>> <https://www.ietf.org/mailman/listinfo/slim>https://www.ietf.org/mailman/listinfo/slim
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Randall Gellens
>>>>>> Opinions are personal; facts are suspect; I speak for myself only
>>>>>> -------------- Randomly selected tag: ---------------
>>>>>> Knowledge always desires increase; it is like fire, which must
>>>>>> first be kindled by some external agent, but which will afterwards
>>>>>> propagate itself. --Dr. Samuel Johnson
>>>>>>
>>>>>> _______________________________________________
>>>>>> SLIM mailing list
>>>>>> <mailto:SLIM@ietf.org>SLIM@ietf.org <mailto:SLIM@ietf.org>
>>>>>>
>>>>>> <https://www.ietf.org/mailman/listinfo/slim>https://www.ietf.org/mailman/listinfo/slim
>>>>>>
>>>>>
>>>>> This email and its attachments are intended for the above named 
>>>>> only and may be confidential. If they have come to you in error you 
>>>>> must take no action based on them, nor must you copy or show them 
>>>>> to anyone; please reply to this email or call +44 207 356 0600 and 
>>>>> highlight the error.
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> SLIM mailing list
>>>>> <mailto:SLIM@ietf.org>SLIM@ietf.org <mailto:SLIM@ietf.org>
>>>>>
>>>>> <https://www.ietf.org/mailman/listinfo/slim>https://www.ietf.org/mailman/listinfo/slim
>>>>>
>>>>
>>>> --
>>>> -----------------------------------------
>>>> Gunnar Hellström
>>>> Omnitor
>>>> <mailto:gunnar.hellstrom@omnitor.se>gunnar.hellstrom@omnitor.se 
>>>> <mailto:gunnar.hellstrom@omnitor.se>
>>>> +46 708 204 288
>>>>
>>>> _______________________________________________
>>>> SLIM mailing list
>>>> SLIM@ietf.org <mailto:SLIM@ietf.org>
>>>> https://www.ietf.org/mailman/listinfo/slim
>>>
>>>
>>
>> --
>> -----------------------------------------
>> Gunnar Hellström
>> Omnitor
>> gunnar.hellstrom@omnitor.se <mailto:gunnar.hellstrom@omnitor.se>
>> +46 708 204 288
>>
>> _______________________________________________
>> SLIM mailing list
>> SLIM@ietf.org <mailto:SLIM@ietf.org>
>> https://www.ietf.org/mailman/listinfo/slim
> 
> 
> 
> _______________________________________________
> SLIM mailing list
> SLIM@ietf.org
> https://www.ietf.org/mailman/listinfo/slim
>