[IPP] Question concerning the "presentonoff" key for "printer-finisher"

[IPP] Question concerning the "presentonoff" key for "printer-finisher"

Kennedy, Smith (Wireless & IPP Standards) smith.kennedy at hp.com
Fri Dec 18 21:35:54 UTC 2020



> On Dec 18, 2020, at 2:26 PM, Michael Sweet <msweet at msweet.org> wrote:
> 
> Smith,
> 
>> On Dec 18, 2020, at 4:16 PM, Kennedy, Smith (Wireless & IPP Standards) via ipp <ipp at pwg.org> wrote:
>> ...
>> I think this ABNF definition should be fixed to be more like this to limit the set of values:
>> finisher-presentonoff = "presentonoff" "=" "other" / "on" / "off" / "notPresent"
>>    ; string value as an alpha string mapped directly from ; PresentOnOff in [RFC3805]
> 
> That would be fine with me - these mappings often get pretty obtuse and including the list of values in the ABNF would be a welcome improvement for me...
> 
>> Perhaps we need to do it with two rules:
>> 
>> finisher-presentonoff = "presentonoff" "=" 1*presentonoffvalue
>> finisher-presentonoff-value = "other" / "on" / "off" / "notPresent"
>>    ; string value as an alpha string mapped directly from ; PresentOnOff in [RFC3805]
> 
> Doesn't 1*SOMETHING allow one or more values?  If you really want to split the values out (not necessary IMHO) you just need "finisher-presentonoff-value".

You are right about the "1*" part. I'll use the first proposal with some added hard wraps and a clarified origin:

finisher-presentonoff = "presentonoff" "=" "other" / "on" /
                           "off" / "notPresent"
   ; string value as an alpha string mapped directly from
   ; finDevicePresentOnOff in [RFC3806] which imports the
   ; definition of PresentOnOff from [RFC3805]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pwg.org/pipermail/ipp/attachments/20201218/a4a4d16c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <http://www.pwg.org/pipermail/ipp/attachments/20201218/a4a4d16c/attachment.sig>


More information about the ipp mailing list