[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Reply to: [list | sender only]
Re: Accent escape sequences
- To: "Discussion list of the IUCr Committee for the Maintenance of the CIFStandard (COMCIFS)" <comcifs@iucr.org>
- Subject: Re: Accent escape sequences
- From: "Herbert J. Bernstein" <yaya@bernstein-plus-sons.com>
- Date: Mon, 5 Mar 2007 11:02:50 -0500
- In-Reply-To: <45EC3846.5070001@niehs.nih.gov>
- References: <45E72969.1090100@niehs.nih.gov><20070302101147.GA26353@emerald.iucr.org><Pine.BSF.4.58.0703020830490.46806@epsilon.pair.com><45EA0C29.5060604@niehs.nih.gov> <a06230900c20fde7910a9@[192.168.2.101]><45EC3846.5070001@niehs.nih.gov>
A CIF with embedded MIME information is exactly parallel to the multipart/mixed content. By using the boundary markers you are then able to unambiguously deal with all data formats including ones that might accidentally produce a \n; that could be misinterpreted as terminating the text field. We follow this practice in imgCIF and it greatly simplifies the parsing code. The default of plain text should be the only one without the boundary marker and at least a Content-Type header. Think of it as an extended magic number. -- Herbert At 10:33 AM -0500 3/5/07, Joe Krahn wrote: >Herbert J. Bernstein wrote: >> It would be best to use a MIME boundary marker before the MIME header >> information. >> >> >... >If I understand right, the boundary is only for "multipart/mixed" >content. The actual text then requires an internal Content-Type header. >If a single text block is being defined, this is just extra overhead. > >In looking at MIME specs, even Content-Type is optional, defaulting to >plain text. The only mandatory item is the MIME-Version header. If one >defines CIF-text as being assumed MIME, then even this could be left out. > >An interesting idea: > >The advantage of a simple escape mechanism, like the current scheme, is >that it is fairly easy to read directly. The disadvantage is that it has >limited abilities. With MIME, the multipart/alternative could be used, >where simple ASCII escapes are combined with a more accurate version >that is not directly readable. This give the advantages of both forms. > >Joe Krahn >_______________________________________________ >comcifs mailing list >comcifs@iucr.org >http://scripts.iucr.org/mailman/listinfo/comcifs
Reply to: [list | sender only]
- References:
- Accent escape sequences (Joe Krahn)
- Re: Accent escape sequences (Brian McMahon)
- Re: Accent escape sequences (Herbert J. Bernstein)
- Re: Accent escape sequences (Joe Krahn)
- Re: Accent escape sequences (Herbert J. Bernstein)
- Re: Accent escape sequences (Joe Krahn)
- Prev by Date: Re: Accent escape sequences
- Next by Date: Re: Accent escape sequences
- Prev by thread: Re: Accent escape sequences
- Next by thread: Re: Accent escape sequences
- Index(es):