[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Reply to: [list | sender only]
Re: [ddlm-group] Alternative proposal for eliding. .
- To: Group finalising DDLm and associated dictionaries <firstname.lastname@example.org>
- Subject: Re: [ddlm-group] Alternative proposal for eliding. .
- From: "Bollinger, John C" <John.Bollinger@STJUDE.ORG>
- Date: Wed, 8 Jun 2011 10:05:43 -0500
- Accept-Language: en-US
- acceptlanguage: en-US
- In-Reply-To: <BANLkTikXopwRMmp9y8c46FUpqrobv1+TNg@mail.gmail.com>
- References: <BANLkTim3-cXPknJHipPKGCqyZ_wp52s9JA@mail.gmail.com><4DEE8754.email@example.com><BANLkTikXopwRMmp9y8c46FUpqrobv1+TNg@mail.gmail.com>
On Tuesday, June 07, 2011 10:01 PM, James Hester wrote: >I agree that misreading of a legacy file without incurring a parsing error is practically impossible. > >We should, however, make it possible in CIF2 to present multiline values containing a backslash before the first <eol> without risking a parsing error on read when this <backslash> is misunderstood as a prefix flag. > >I suggest the following rule be added to the Grazulis proposal: >(Rule one) The <eol> at the end of the first line of all <eol><semicolon> delimited values does not form part of the data value. > >This works as follows: when encoding a datavalue inside an <eol><semicolon> delimited string, a simple output routine would always insert an <eol> immediately after the <semicolon>, unless it wishes to use the prefix and/or line folding conventions. On reading an <eol><semicolon> >string, this first <eol> is always discarded. Doesn't the line-folding protocol already achieve this objective? If we formulate the Grazulis protocol as an extension or superset of the line-folding protocol (so that line-folding is always available where Grazulis is), then I don't think we need to add the proposed rule to it. To avoid misinterpretation, a text block containing a backslash at the end of its first line would be expressed so: _example ;\ backslash \\ slash / semicolon ; ; Furthermore, by declining to add the new rule, we do not (further) change the meaning of existing CIFs. Although, as David observed, the legacy CIFs that might be misinterpreted under the Grazulis protocol are surely few, the CIFs whose meaning would be changed by the proposed additional rule are very many, and the changes will often be significant. Consider _example ;I contain no misspellings. ; , which should not be parsed equivalently to _example 'I contain nomisspellings.' Consider also text blocks containing source code in languages that are sensitive to line breaks, such as Fortran or Python. John -- John C. Bollinger, Ph.D. Department of Structural Biology St. Jude Children's Research Hospital Email Disclaimer: www.stjude.org/emaildisclaimer _______________________________________________ ddlm-group mailing list firstname.lastname@example.org http://scripts.iucr.org/mailman/listinfo/ddlm-group
Reply to: [list | sender only]
- Re: [ddlm-group] Alternative proposal for eliding. . (James Hester)
- Prev by Date: Re: [ddlm-group] Alternative proposal for eliding
- Next by Date: Re: [ddlm-group] Alternative proposal for eliding. .
- Prev by thread: Re: [ddlm-group] Alternative proposal for eliding
- Next by thread: Re: [ddlm-group] Alternative proposal for eliding. .