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

[ddlm-group] Elide close quotes by doubling?

  • To: Group finalising DDLm and associated dictionaries <ddlm-group@iucr.org>
  • Subject: [ddlm-group] Elide close quotes by doubling?
  • From: Joe Krahn <krahn@niehs.nih.gov>
  • Date: Fri, 04 Dec 2009 13:03:03 -0500
The reverse solidus (aka backslash) elide was dropped because it really 
does not work well to elide only the close quote. Now that close quotes 
are invalid when not followed by white space, it provides the 
opportunity to elide close quotes by a repeated close-quote sequence, 
similar to Fortran and CSV format. It is free of most of the 
repercussions of defining reverse-solidus as an escape character, and is 
only making use of a character sequence that would otherwise just be a 
syntax error.

The caveat is that it could misinterpret valid CIF1 values. However, at 
least RCSB has done a good job of avoiding embedded quotes by picking 
alternate quoting types.

There are workarounds for embedded quotes, even for CIF-within-CIF, so 
elides are not essential. However, I think this should be easy to 
implement, and free of the hassles generated by backslash escapes.

Joe Krahn
ddlm-group mailing list

Reply to: [list | sender only]