Re: [Jmol-developers] special characters in translations (we have a mac encoding problem)..

2008-08-31 Thread Robert Hanson
great to have that resolved. Thanks, Jonathan and Angel. On Sat, Aug 30, 2008 at 1:20 PM, Jonathan Gutow [EMAIL PROTECTED] wrote: On Aug 30, 2008, at 12:31 PM, Angel Herráez wrote: Jonathan, to finish clarifying this, attached is the file set I just generated. Please add the applet

Re: [Jmol-developers] special characters in translations (we have a mac encoding problem)..

2008-08-31 Thread Jonathan Gutow
Bob, We're almost there. We've now got it set up so that users can have special characters in the button text. However, this leads to special characters in the file names. This does not work when the script processing engine is used to load and queue a script through commands

Re: [Jmol-developers] special characters in translations (we have a mac encoding problem)..

2008-08-31 Thread Robert Hanson
we should be saving the scripts as part of the HTML file in !-- -- comments, then loading them from that. The whole .spt business should go. In the .js file we need: function getScript(name) { var tag = -- JMOL SCRIPT + name + --; var script =

Re: [Jmol-developers] special characters in translations (we have a mac encoding problem)..

2008-08-31 Thread Angel Herráez
Jonathan wrote: special characters in the file names. This does not work when the script processing engine is used to load and queue a script through commands like script Herr#0255ez.spt (used by jmolButton). I did a quick test yesterday and everything worked except the background

Re: [Jmol-developers] special characters in translations (we have a mac encoding problem)..

2008-08-31 Thread Jonathan Gutow
Bob, I know we discussed this before. Initially I thought it was a good idea. However, on further consideration and paying attention to how a web site using these generated pages would be managed I decided that I like the separate scripts. Here's why: 1) The maintenance on the

Re: [Jmol-developers] special characters in translations (we have a mac encoding problem)..

2008-08-31 Thread Robert Hanson
ok, then don't allow special characters in the names that are going to end up files names. Make it explicit, and make it show to the user exactly what the file name really will be so there are no surprises. Also don't allow spaces. I would allow only a-z, A-Z, 0-9, _ and - Bob On Sun, Aug 31,

Re: [Jmol-developers] special characters in translations (we have a mac encoding problem)..

2008-08-31 Thread Jonathan Gutow
Bob, I got most of the special characters with replacement of them in file names set up. I think I would like to also add the option of inline scripts, but lets save that for 11.8. On Aug 31, 2008, at 12:10 PM, Robert Hanson wrote: ok, then don't allow special characters in the

Re: [Jmol-developers] special characters in translations (we have a mac encoding problem)..

2008-08-30 Thread Jonathan Gutow
On Aug 30, 2008, at 12:31 PM, Angel Herráez wrote: Jonathan, to finish clarifying this, attached is the file set I just generated. Please add the applet files into the same folder and see how they look in your Mac and your server. I hope we can shed some light on this. One of my