[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Reply to: [list | sender only]
[ddlm-group] import and loops in ddlm
- To: Group finalising DDLm and associated dictionaries <ddlm-group@iucr.org>
- Subject: [ddlm-group] import and loops in ddlm
- From: David Brown <idbrown@mcmaster.ca>
- Date: Wed, 21 Jul 2010 11:34:12 -0400
I will try again to start a discussion on the DDLm dictionary as
opposed to CIF3. The two items below indicate my interpretation of the way DDLm will deal with a couple of items where the practice may change from CIF1 or we need to agree on how a new feature is used. I don't believe these to be controversial, but I would like to receive some feedback, even it you think my interpretation is correct. I have other more contentious questions to raise later. 1. Are loops required to be present explicitly even when they contain only one set of items? ------------------------------------------------------------------------------------- Checking the DDLm dictionary and the proof-of-concept CIF dictionary prepared by Syd, it seems that the answer is 'yes'. Therefore I intend to include explicit loops for all dictionary items where a category key is defined. Whether this rule can be enforced in data files at the CIF level is something we might discuss. In DDL1 such loops have been optional, but that need not deter us from requiring them in CIFm data files. However, in the dictionaries, over which we have some control, there is no reason why the rule should not be enforced. 2. Use of the IMPORT statement ---------------------------------------- Since the _import statement is used to expand a CIFm dictionary by inserting the same piece of text in different places, _import must be executed before the dictionary can be used. Therefore the _import dataname has a different function from all the other datanames. During expansion, the dictionary is read as text with the reading routine only acting when it encounters an _import data item which it replaces with the designated text. '_import' can appear anywhere in the unexpanded dictionary, including in a loop even though it belongs to a different category since '_import' will never be encountered when the loop is executed. It can also appear in delimited text or as part of a list, even in a comment (though this would not normally make much sense). I can see no reason why import statements may not be nested though I have not yet come across a situation where this might be useful. Comments please. David |
begin:vcard fn:I.David Brown n:Brown;I.David org:McMaster University;Brockhouse Institute for Materials Research adr:;;King St. W;Hamilton;Ontario;L8S 4M1;Canada email;internet:idbrown@mcmaster.ca title:Professor Emeritus tel;work:+905 525 9140 x 24710 tel;fax:+905 521 2773 version:2.1 end:vcard
_______________________________________________ ddlm-group mailing list ddlm-group@iucr.org http://scripts.iucr.org/mailman/listinfo/ddlm-group
Reply to: [list | sender only]
- Follow-Ups:
- Re: [ddlm-group] import and loops in ddlm (Herbert J. Bernstein)
- Prev by Date: Re: [ddlm-group] options/text vs binary/end-of-line. .. .. .. .... .. .. .. .. .. .. .. .. .
- Next by Date: Re: [ddlm-group] import and loops in ddlm
- Prev by thread: [ddlm-group] New encoding list established
- Next by thread: Re: [ddlm-group] import and loops in ddlm
- Index(es):