|
From: | Peter Hillman |
Subject: | Re: [Openexr-devel] Proposal for storing ID manifests in OpenEXR headers |
Date: | Thu, 17 Aug 2017 17:27:45 +1200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
Hi Nick, Thanks for your comments. Yes, my section 1.2 is a little ambiguous: what I meant to say is
that this proposal for an attribute is 'storage agnostic': the
manifest should be compatible with most schemes for storing IDs in
EXRs. It works both for schemes that use regular images and those
that use deep. I pondered writing about UTF8 vs ASCII and decided not to for
brevity. As it stands, you can use UTF8 to encode strings:
reserving the ASCII '/' character (i.e. the byte code 0x2F) for
hierarchy separation works with pure ASCII as well as UTF8. My
understanding is that in UTF8 the byte range 0x00 to 0x7F always
means ASCII characters; those bytes don't appear in multibyte
character representations, as those all have their top bit set.
There is something to be said for an attribute which defines the
character encoding used for all 'human readable' attributes in an
EXR, but that seems like a wider discussion. The semicolon is 'semi-special' under this scheme. Using it in
strings shouldn't cause any errors. I wouldn't propose parsing
strings concatenated like that in any software. It might be handy
to display a concatenated name like "tunic;leather" and if there's
a character which is rarely used elsewhere (escaped or otherwise)
things will be clearer to read. If you are looking for a character
to use for some special meaning with object names, try picking
something other than semicolon. However, if you have a semicolon
in your URI then don't bother changing it or escaping it. That
said, the / character being a hierarchy separator will mean your
URIs are likely to be treated as a hierarchy. That may well be
desirable; if not you will need to encode it differently. Peter On 16/08/17 05:59, Nick Porcino wrote:
This looks reasonable to me. Almost every question I had was answered by the document, |
[Prev in Thread] | Current Thread | [Next in Thread] |