Re: [IPP] Various questions about 5100.13

Michael Sweet via ipp <ipp@pwg.org> Mon, 26 October 2020 16:47 UTC

Return-Path: <ipp-bounces@pwg.org>
X-Original-To: ietfarch-ipp-archive@ietfa.amsl.com
Delivered-To: ietfarch-ipp-archive@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D073A3A0D1E for <ietfarch-ipp-archive@ietfa.amsl.com>; Mon, 26 Oct 2020 09:47:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.899
X-Spam-Level:
X-Spam-Status: No, score=-2.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 U3LwXYMHovqd for <ietfarch-ipp-archive@ietfa.amsl.com>; Mon, 26 Oct 2020 09:47:18 -0700 (PDT)
Received: from mail.pwg.org (mail.pwg.org [50.116.7.199]) by ietfa.amsl.com (Postfix) with ESMTP id 03E6B3A0D09 for <ipp-archive2@ietf.org>; Mon, 26 Oct 2020 09:47:17 -0700 (PDT)
Received: by mail.pwg.org (Postfix, from userid 1002) id 523F1E902; Mon, 26 Oct 2020 16:47:16 +0000 (UTC)
Received: from mail.pwg.org (localhost [IPv6:::1]) by mail.pwg.org (Postfix) with ESMTP id 3737DE8F1; Mon, 26 Oct 2020 16:47:14 +0000 (UTC)
X-Original-To: ipp@pwg.org
Delivered-To: ipp@pwg.org
Received: by mail.pwg.org (Postfix, from userid 1002) id A3745E8FB; Mon, 26 Oct 2020 16:47:12 +0000 (UTC)
Received: from mail.msweet.org (mail.msweet.org [173.255.209.91]) by mail.pwg.org (Postfix) with ESMTP id C4391E8F0 for <ipp@pwg.org>; Mon, 26 Oct 2020 16:47:11 +0000 (UTC)
Received: from [192.168.0.119] (unknown [74.127.202.41]) by mail.msweet.org (Postfix) with ESMTPSA id 1B34D80B3A; Mon, 26 Oct 2020 16:47:05 +0000 (UTC)
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\))
In-Reply-To: <88DE6529-BFF0-4712-B6A5-CA80D5742E82@hp.com>
Date: Mon, 26 Oct 2020 12:46:57 -0400
Message-Id: <BF93D5B7-E7D4-45A8-B860-4FBBBBD6CBF5@msweet.org>
References: <88DE6529-BFF0-4712-B6A5-CA80D5742E82@hp.com>
To: Smith Kennedy <smith.kennedy@hp.com>
X-Mailer: Apple Mail (2.3608.120.23.2.4)
Cc: PWG IPP Workgroup <ipp@pwg.org>
Subject: Re: [IPP] Various questions about 5100.13
X-BeenThere: ipp@pwg.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: ISTO-PWG Internet Printing Protocol workgroup discussion forum <ipp.pwg.org>
List-Unsubscribe: <https://www.pwg.org/mailman/options/ipp>, <mailto:ipp-request@pwg.org?subject=unsubscribe>
List-Archive: <http://www.pwg.org/pipermail/ipp/>
List-Post: <mailto:ipp@pwg.org>
List-Help: <mailto:ipp-request@pwg.org?subject=help>
List-Subscribe: <https://www.pwg.org/mailman/listinfo/ipp>, <mailto:ipp-request@pwg.org?subject=subscribe>
From: Michael Sweet via ipp <ipp@pwg.org>
Reply-To: Michael Sweet <msweet@msweet.org>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: ipp-bounces@pwg.org
Sender: ipp <ipp-bounces@pwg.org>

Smith,

> On Oct 26, 2020, at 12:35 PM, Kennedy, Smith (Wireless & IPP Standards) <smith.kennedy@hp.com> wrote:
> 
> Hi guys,
> 
> Trying to resolve various questions I have about stuff from 5100.13 that have arisen in my quest to produce the next IPP Driverless Printing Extensions v2.0 draft. If you could answer these offline, we will be able to move more quickly through the next review.
> 
> - "jpeg-k-octets-supported" and "pdf-k-octets-supported" : Why were these defined to use the (rangeOfInteger(0:MAX)) syntax if the lower bound is required to be zero?

To be consistent with the job-k-octets-supported attribute (also rangeOfInteger).

> - "printer-organization" and "printer-organizational-unit" : Why were these defined to use the (1setOf text(MAX)) syntax? Is this to accommodate values that are bigger than one text(MAX) could hold?

Hmm, not sure, I don't see a reason why they'd be 1setOf and all of the implementations I've seen are always single-valued.

> - "printer-input-tray", "printer-output-tray" and "printer-supply" - why were all of these defined as (1setOf octetString(MAX)) and not as (1setOf text(MAX)) if they contain textual information?

"text" and "name" are human-readable (localized) text values with associated character set and language.  "octetString" is a binary string, in this case defined as US-ASCII with a particular ABNF syntax.

> - what value do any of the "xxx-index" keywords for "printer-supply" provide?  correlation with the MIB for cross-protocol coordination? If none, I think we ought to make them all "DEPRECATED"

I've never found there to be any value to them, but I believe it was supposed to map to the MIB table index.

> - In JPS3 "5.6.40.1 Encoding of printer-supply-description", #2 says:
> 
> 2. Each value of"printer-supply-description" MUST be tagged with the natural language [RFC5646] specified by prtGeneralCurrentLocalization, prtLocalizationLanguage, and prtLocalizationCountry; and

FWIW, this should probably be reworded as it is confusing.  What it is trying to say is that if the description from the MIB is tagged in a different language than the request language, you need to use the textWithLanguage syntax so that the Client knows which language the description is in.

For example, if the MIB description is US English (en-US) but the IPP response is in French (fr-FR), the Printer MUST encode the values using the textWithLanguage syntax.

> It isn't clear where these "tags" need to be in the string values, and they aren't included in the PAPI values from the example, but I think they ought to be. Here's the examples I have in NODRIVER currently:
> 
> printer-supply-description[1] = "Black Toner Cartridge S/N:16859422"
> printer-supply-description[2] = "Cyan Toner Cartridge S/N:16852765"
> printer-supply-description[3] = "Magenta Toner Cartridge S/N:16859681"
> printer-supply-description[4] = "Yellow Toner Cartridge S/N:16859372"
> printer-supply-description[5] = "Waste Toner Bin S/N:16816815"
> printer-supply-description[6] = "Fuser Kit S/N:16820223"
> printer-supply-description[7] = "Transfer Kit S/N:16821304"
> 
> When tagged to indicate US English, would a tagged set look like this?
> 
> printer-supply-description[1] = "en-USBlack Toner Cartridge S/N:16859422"
> printer-supply-description[2] = "en-USCyan Toner Cartridge S/N:16852765"
> printer-supply-description[3] = "en-USMagenta Toner Cartridge S/N:16859681"
> printer-supply-description[4] = "en-USYellow Toner Cartridge S/N:16859372"
> printer-supply-description[5] = "en-USWaste Toner Bin S/N:16816815"
> printer-supply-description[6] = "en-USFuser Kit S/N:16820223"
> printer-supply-description[7] = "en-USTransfer Kit S/N:16821304"

Tagged in this case means either encoding as textWithLanguage or using the attributes-natural-language value and the textWithoutLanguage encoding.

________________________
Michael Sweet



_______________________________________________
ipp mailing list
ipp@pwg.org
https://www.pwg.org/mailman/listinfo/ipp