Discussion List Archives

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

Re: Treatment of Greek characters in CIF2



On Thu, Apr 20, 2017 at 11:46 AM, Marcin Wojdyr <wojdyr@gmail.com> wrote:


I find \uXXXX to be the least elegant point in the proposal.
In particular for JSON representing CIF 1.1 that otherwise would not
have non-ASCII characters.
I can't think of an application that would need to distinguish between
. and ?, so maybe null could represent both?
Or maybe 'false' could be abused for one of them?


The key is not to think about application. "The special values of '.' and '?' represent data that are inapplicable or unknown, respectively."  There is not our job to assume those mean the same thing.

 
Regarding the software, I added options to my CIF 1.1 converter to
make it compatible with some of the discussed options:
configurable '?' replacement and quoting or not the numbers.
http://gemmi.readthedocs.io/en/latest/cif-utils.html#gemmi-convert

I just tried it on 3j3q.cif. The output is 1/3 larger than the cif,
but after gzipping it's only 53% of the gzipped cif!
So the file transfer from server to a browser would be almost twice
faster, and JSON.parse() is likely more efficient than CIF parsing
function coded in JS.

Both very good points.
 
Bob


--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900

_______________________________________________
cif-developers mailing list
cif-developers@iucr.org
http://mailman.iucr.org/cgi-bin/mailman/listinfo/cif-developers

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.