[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Reply to: [list | sender only]
Dictionary style guide
- Subject: Dictionary style guide
- From: James H via cif-developers <cif-developers@xxxxxxxx>
- Date: Fri, 11 Jun 2021 18:17:15 +1000
- Cc: James H <jamesrhester@xxxxxxxxx>
Hi all,
A few of us have put our heads together and come up with a style guide for formatting DDLm dictionaries. The original motivation was to standardise on a text layout so that dictionary change diffs did not include irrelevant whitespace, changes in capitalisation and so forth that might occur when dictionaries are updated via ingesting into software, adding something, then outputting again. I am aware of the concept of pretty-printers, but in the long term these tend to become obsolete unless maintained.
This guide is only likely to be of interest if you work with software that outputs DDLm dictionaries. And I stress this is purely a style guide, and has no implications for CIF syntax, although you could of course format CIF data files also according to this guide. I'm not sure what the point of that would be, though.
The style guide can be read at:Â http://comcifs.github.io/draft/ddlm_dictionary_style_guide
The ddlm reference dictionary formatted according to this guide (as near as I can tell, might be a few whitespace errors still lurking in the loops) is at https://github.com/COMCIFS/cif_core/blob/reformatted/ddl.dic
Any feedback or contributions are welcome. I plan to integrate a linter into the github workflow for dictionaries that would check against this guide.
all the best,
James.
--
--
T +61 (02) 9717 9907
F +61 (02) 9717 3145
M +61 (04) 0249 4148
F +61 (02) 9717 3145
M +61 (04) 0249 4148
_______________________________________________ cif-developers mailing list cif-developers@iucr.org http://mailman.iucr.org/cgi-bin/mailman/listinfo/cif-developers
Reply to: [list | sender only]
- Prev by Date: Re: mmCIF specification
- Next by Date: CIF_JSON finally put up on the web
- Prev by thread: CIF_JSON finally put up on the web
- Next by thread: mmCIF specification
- Index(es):