Discussion List Archives

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

Re: Treatment of Greek characters in CIF2

  • Subject: Re: Treatment of Greek characters in CIF2
  • From: Andrius Merkys <andrius.merkys@xxxxxxxxx>
  • Date: Thu, 20 Apr 2017 09:32:25 +0300
  • DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;h=subject:to:references:from:message-id:date:user-agent:mime-version:in-reply-to:content-transfer-encoding;bh=uOb1RL/Kjc3w46B15ajS47AHKpu71zB8mo5G5GcOtbM=;b=Wvgto1GL/z/9/Axal61xnU3hw6KPGsPeth7nnzqVstOUTf5D9WA15dVhAS2eZuUWOidkQS/wzKHzmwG/ZwPBOj/+nq7YUH/FAufv1kModq8JjJRu/T56XKn5O/HttZSzRWPwFFWjT4LOkq9xg3R9bkUfgGSW/0Lfp/Qjs4I7d+X40Cu9YTODK4aUCwRmqFsKQ0HQ//RXq20eUdw4x888viajsEyGp65pnYgp139o8rbBg/7Z/smSvNwuQPlG48PttXDOK4VBGA5rMOH5D5sxXMZFT5VY8WZBzof9c/msP6L7k5GrlfyRDgY54SqeYp6dgxJFhEiy+TXErscyv7q9kg==
  • In-Reply-To: <CAM+dB2d5NCbCb1Zc_QS3KkjscDH7Sk9NQVbQxhLn0nPtO6E+zA@mail.gmail.com>
  • References: <CAM+dB2d5NCbCb1Zc_QS3KkjscDH7Sk9NQVbQxhLn0nPtO6E+zA@mail.gmail.com>
Dear James,
On 20/04/17 08:38, James Hester wrote:> I toyed with the idea of allowing '\Uxxxxxx' for arbitrary Unicode> code points, but (i) this would clash with '\U' for capital upsilon> and (ii) is not expected by legacy applications and so would therefore> require that they be updated, in which case adapting them to just> ingest Unicode would be more straightforward.
we at the COD have been using XML character entities for this purpose:upon parsing/printing CIF 1.1 our software converts all non-ASCII valuesto their named or numeric XML entities. This is easy to implement asmost of the programming languages have encoders and decoders for XMLentities. Furthermore, named entities are easy to understand for humans.However, such method (i) may clash with XML entities already present inCIF and (ii) is not expected by other software. Therefore, it's not muchbetter.
Best wishes,Andrius
-- Andrius MerkysPhD student at Vilnius University Institute of Biotechnology, Saulėtekio al. 7, V325LT-10257 Vilnius, LithuaniaLecturer at Vilnius University Faculty of Mathematics and Informatics, Naugarduko g. 24LT-03225 Vilnius, Lithuania

_______________________________________________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.