Discussion List Archives

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

Re: [ddlm-group] CIF header

Nick Spadaccini wrote:
> What you have presented is not the substance of the difference in
> approaches. What this shows is by choosing to consider the elide of a
> terminal character ONLY when that is delimiting character that you get
> differences in what is returned. James and I could have argued that any "
> and ' that is elided is skipped. If that were the approach then our
> algorithm would also be consistent in returning
> 
> "ab\"cd" -> ab"cd
> 'ab\"cd' -> ab"cd
> 
> By the way this is the Python approach to elided terminals.
> 
> The substance of the differences in the two approaches is what is
> consistently done with terminating characters within delimited strings and
> where is it done. We ague it is consistently done by the parser at write and
> read and the user doesn't need to see it. You say the user is responsible at
> both ends.
That has been my argument as well. I don't think it makes any sense for 
the quoting method used by the parser/writer at the I/O level to change 
how the string is encoded. Some people apparently want dictionary 
control at the lowest level, including quote-specific escape sequences.

I think we can compromise to a allow both approaches by avoiding rules 
that define how the conversions are implemented. See my post in the "Use 
of elides in strings" thread.

Joe
_______________________________________________
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 Council for Science (admitted 1947). Member of CODATA, the ICSU Committee on Data. Member of ICSTI, the International Council for Scientific and Technical Information. Partner with UNESCO, the United Nations Educational, Scientific and Cultural Organization in the International Year of Crystallography 2014.

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