Discussion List Archives

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

Re: Treatment of Greek characters in CIF2

On 20 April 2017 at 15:25, Robert Hanson <hansonr@stolaf.edu> wrote:
> - upper-case keys will be non-CIF metadata or other application-specific or> translation-specific keys,>   including CIF1/2 compatibility information
From what I understand the alternative here is what John proposed: tohave space in non-CIF keys ("Meta Data").Both options sound good to me.
> - UTF-8 character encoding; \uFFFF for CIF <?> and JSON standard null for> <.>
I find \uXXXX to be the least elegant point in the proposal.In particular for JSON representing CIF 1.1 that otherwise would nothave 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?
Regarding the software, I added options to my CIF 1.1 converter tomake 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 twicefaster, and JSON.parse() is likely more efficient than CIF parsingfunction coded in JS.
the converter is here:https://github.com/project-gemmi/gemmi/and should build with:c++ -O2 -std=c++11 -Ithird_party convert.cc -o gemmi-convert_______________________________________________cif-developers mailing listcif-developers@iucr.orghttp://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.