[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
From: Joe Krahn <krahn@niehs.nih.gov>
To: Group finalising DDLm and associated dictionaries <ddlm-group@iucr.org>
Sent: Friday, 4 December, 2009 18:03:03
Subject: [ddlm-group] Elide close quotes by doubling?
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.
Thanks,
Joe Krahn
_______________________________________________
ddlm-group mailing list
ddlm-group@iucr.org
http://scripts.iucr.org/mailman/listinfo/ddlm-group
Reply to: [list | sender only]
Re: [ddlm-group] Elide close quotes by doubling?
- To: Group finalising DDLm and associated dictionaries <ddlm-group@iucr.org>
- Subject: Re: [ddlm-group] Elide close quotes by doubling?
- From: SIMON WESTRIP <simonwestrip@btinternet.com>
- Date: Fri, 4 Dec 2009 18:58:37 +0000 (GMT)
- In-Reply-To: <4B194ED7.3090905@niehs.nih.gov>
- References: <4B194ED7.3090905@niehs.nih.gov>
Judging by the difficulties we had that eventually led to agreeing
that there were enough alternative data value delimiters to avoid
the use of any eliding mechanism (and thus returning all values as raw),
I suspect that arguing for a different eliding mechanism will also be fruitless?
I understand your view (Joe) about CSV, but we have to respect the
legacy that is CIF, which is why we have a variety of delimiters.
Otherwise, it could probably be argued that only one type of delimiter is necessary
(say """")...
Cheers
Simon
that there were enough alternative data value delimiters to avoid
the use of any eliding mechanism (and thus returning all values as raw),
I suspect that arguing for a different eliding mechanism will also be fruitless?
I understand your view (Joe) about CSV, but we have to respect the
legacy that is CIF, which is why we have a variety of delimiters.
Otherwise, it could probably be argued that only one type of delimiter is necessary
(say """")...
Cheers
Simon
From: Joe Krahn <krahn@niehs.nih.gov>
To: Group finalising DDLm and associated dictionaries <ddlm-group@iucr.org>
Sent: Friday, 4 December, 2009 18:03:03
Subject: [ddlm-group] Elide close quotes by doubling?
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.
Thanks,
Joe Krahn
_______________________________________________
ddlm-group mailing list
ddlm-group@iucr.org
http://scripts.iucr.org/mailman/listinfo/ddlm-group
_______________________________________________ ddlm-group mailing list ddlm-group@iucr.org http://scripts.iucr.org/mailman/listinfo/ddlm-group
Reply to: [list | sender only]
- Follow-Ups:
- Re: [ddlm-group] Elide close quotes by doubling? (Herbert J. Bernstein)
- References:
- [ddlm-group] Elide close quotes by doubling? (Joe Krahn)
- Prev by Date: [ddlm-group] Elide close quotes by doubling?
- Next by Date: Re: [ddlm-group] Summary of proposed CIF syntax changes
- Prev by thread: [ddlm-group] Elide close quotes by doubling?
- Next by thread: Re: [ddlm-group] Elide close quotes by doubling?
- Index(es):