Discussion List Archives

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ddlm-group] Comments and folding within lists and tables

  • To: Group finalising DDLm and associated dictionaries <ddlm-group@iucr.org>
  • Subject: [ddlm-group] Comments and folding within lists and tables
  • From: Joe Krahn <krahn@niehs.nih.gov>
  • Date: Fri, 11 Dec 2009 18:10:40 -0500
COMMENTS:

In the last draft, the section on delimiting "tokens" uses the term 
whitespace, but the list is described as "ASCII space separated data 
values".

Do all blank-space delimiters allow the general definition of 
whitespace, including comments, or are there cases where comments are 
disallowed?

If the defined whitespace is used in all cases, this would be a valid table:

{ #my table
   'hello':world #testing
} #end of table

Also, the list and table initiator/terminator characters do not require 
whitespace around them. Do the 1st and 3rd comments above require 
preceding blank space as defined in STAR? Or, do the "implicit 
delimiter" characteristics of those characters make it optional?


# [UN]FOLDING:
The draft gives the TABLE example:

      { ...
      "description":"""Cubic space group
            and metric cell vectors"""}

Then it says it implies line joining. Does this mean that the string for 
"description" is unwrapped to the one-line string "Cubic space group and 
metric cell vectors"?

To allow for longer strings without inserting a line break, it may be 
better to allow optional space around the colon, so the above example 
could be written as:

      { ...
        "description":
        "Cubic space group and metric cell vectors"
      }

The exclusion of : from non-quoted strings prevents this from being 
ambiguous, so I don't see a good reason not to allow whitespace around 
the colon, or perhaps only following it.

Thanks,
Joe Krahn
_______________________________________________
ddlm-group mailing list
ddlm-group@iucr.org
http://scripts.iucr.org/mailman/listinfo/ddlm-group

Reply to: [list | sender only]
International Union of Crystallography

Scientific Union Member of the International Science Council (admitted 1947). Member of CODATA, the ISC Committee on Data. Partner with UNESCO, the United Nations Educational, Scientific and Cultural Organization in the International Year of Crystallography 2014.

International Science Council Scientific Freedom Policy

The IUCr observes the basic policy of non-discrimination and affirms the right and freedom of scientists to associate in international scientific activity without regard to such factors as ethnic origin, religion, citizenship, language, political stance, gender, sex or age, in accordance with the Statutes of the International Council for Science.