Re: [ddlm-group] Trailing whitespace in CIF2.0 text fields:statement from draft syntax chapter of Vol G
- To: "Herbert J. Bernstein" <yayahjb@gmail.com>
- Subject: Re: [ddlm-group] Trailing whitespace in CIF2.0 text fields:statement from draft syntax chapter of Vol G
- From: James H <jamesrhester@gmail.com>
- Date: Wed, 5 May 2021 16:42:37 +1000
- Cc: Group finalising DDLm and associated dictionaries <ddlm-group@iucr.org>
- In-Reply-To: <CABcsX24Bw9X0ic+VQcDuxnP73KNFAeH+vkT8nAJ2dcjQTsTTpw@mail.gmail.com>
- References: <CAM+dB2dSLWPfRkNCXkHjBjuD797m34OC1WL8bZi9q1HejSvPKQ@mail.gmail.com><CABcsX24Bw9X0ic+VQcDuxnP73KNFAeH+vkT8nAJ2dcjQTsTTpw@mail.gmail.com>
Dear James, While I think this wording will create confusion and divergence of dialects, and that is would be best to say nothingin Volume G until there is a clear use case, if something does have to be said, I would suggest changing the wordingto just end with "line-folding protocol." on line 5. Regards,   HerbertOn Tue, May 4, 2021 at 9:18 PM James H <jamesrhester@gmail.com> wrote:_______________________________________________Dear DDLm group,Â
In your capacity as technical advisory committee for CIF, please note the following excerpt from the final draft of the new Volume G syntax chapter. I'm bringing this to your attention as it contains a statement about significant trailing whitespace that was not explicit in the CIF2.0 paper, so out of an abundance of caution I thought it best to make sure there were no objections. If you do have substantial objections, please let the group know.
thanks,
James.
===
Additionally, in view of the record-oriented text file formats that are conventional in some environments, and because of some programming languages' record-oriented text input / output interfaces and fixed-length character data types, some CIF 1.1 processors may be unable easily to recognize significant in-line whitespace at the ends of lines of a text field, and some CIF 1.1 writers may pad lines, including lines of text fields, with insignificant whitespace characters. Therefore, trailing whitespace in CIF 1.1 text field lines is considered insignificant. It should be elided where feasible, and if not elided, it should be ignored. Significant trailing whitespace can be marked and protected by use of the line-folding protocol. On the other hand, because CIF 2.0 is a binary byte stream format with explicit line termination sequences, no such considerations apply to multiline data values (text fields and triple-quoted strings) expressed in that syntax, and all trailing whitespace is significant. In view of CIF 1.1 behaviour, however, it is recommended that significant trailing whitespace be avoided in CIF 2.0 text fields. As with CIF 1.1, this can be achieved by applying the line-folding protocol if necessary.
===--T +61 (02) 9717 9907
F +61 (02) 9717 3145
M +61 (04) 0249 4148
ddlm-group mailing list
ddlm-group@iucr.org
http://mailman.iucr.org/cgi-bin/mailman/listinfo/ddlm-group
F +61 (02) 9717 3145
M +61 (04) 0249 4148
_______________________________________________ ddlm-group mailing list ddlm-group@iucr.org http://mailman.iucr.org/cgi-bin/mailman/listinfo/ddlm-group
Reply to: [list | sender only]
- Follow-Ups:
- References:
- Prev by Date: Re: [ddlm-group] Trailing whitespace in CIF2.0 text fields:statement from draft syntax chapter of Vol G
- Next by Date: [ddlm-group] Split _model_site.adp_eigen_system into eigen_vectorand eigen_value
- Prev by thread: Re: [ddlm-group] Trailing whitespace in CIF2.0 text fields:statement from draft syntax chapter of Vol G
- Next by thread: Re: [ddlm-group] Trailing whitespace in CIF2.0 text fields:statement from draft syntax chapter of Vol G
- Index(es):