Bradley,

Thanks for your prompt response.

As far as I can tell, the only problem with the .mol files I have is that
the fourth line of the file doesn't end in "V2000" ... which may well mean
they are "out of spec". Nevertheless, they work fine with other molecule
viewers.
I have attached an example file.

I'd be glad to work/assist on this if you'd like a hand.

I have only been looking at jmol for a couple of days and haven't yet
looked at it in an applet context. But I want to learn more.
In an applet context, is the same ReaderFactory mechanism being used? Is
the MIME type being ignored?
I am somewhat puzzled by your comment that file extensions are unreliable.
Web servers use file extensions to generate MIME types. If file extensions
are wrong (or imprecise) that seems to imply that the files are generally
unusable in a web context.
Can you point me to some examples/documents that I can investigate?

Thanks,
Michael

> File extensions are unreliable as a means of determining the file type.
> Many file types read by Jmol have undefined file extensions or share
> file extensions with other types. The ReaderFactory is intended to
> recognize the .mol file type, but there must be a defect in it. The
> type hint was an old mechanism based upon the file extension. It is
> obsolete, but has not yet been purged from the code. If you will send
> me examples of the problematic .mol files, I will fix the
> ReaderFactory.
>
> Thanks,
>  Bradley
>
>
> ----- Original Message -----
> From: "Michael T Howard" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, September 09, 2002 3:55 PM
> Subject: [Jmol-developers] file extensions as typeHint?
>
>
>> I have some .mol files which were not being recognized by jmol.
>>   Unable to determine type for file ...
>>
>> After downloading & building the source, I determined that the issue
>> is that the ReaderFactory doesn't like the header on these files.
>> There is a 'typeHint' mechanism built into Jmol.openFile ... but it
>> isn't being used in this case.
>> Therefore, I tweaked the code to incorporate file extension into the
>> typeHint mechanism and everything seems to work OK.
>> Q: Was there an explicit reason for excluding filename extension as a
>> 'strong hint' about the file type?
>> Thanks,
>> Michael
>>
>>
>>
>>
>> -------------------------------------------------------
>> This sf.net email is sponsored by: OSDN - Tired of that same old cell
>> phone?  Get a new here for FREE!
>> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>> _______________________________________________
>> Jmol-developers mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/jmol-developers
>>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> _______________________________________________
> Jmol-developers mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jmol-developers


--------------------------------------------------
Miguel Howard                   [EMAIL PROTECTED]
c/Peņa Primera 11-13 esc dcha 6B
37002 Salamanca
Espaņa Spain
--------------------------------------------------
telefono casa 923 27 10 82 movil 650 52 54 58
--------------------------------------------------
To call from the US dial    9:00 am Pacific US   =
home 011 34 923 271 082    12:00 noon Eastern US =
cell 011 34 650 525 458     6:00 pm Spain
--------------------------------------------------




-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Jmol-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to