Hi Nick

I've had occasional experience with non-basic characters. I am not 
aware of the change in behaviour (it may depend on switch to JSmol, 
are you now using JS version?), but this is my advice:

1. Properly set the character encoding of the page -- I'm gradually 
switching now from Windows-deafult Western/Latin/iso-8859-1  to 
UTF-8. You need to do it for all files: htm, js, spt and others (i.e. 
re-save them using that format).

2. Not essential maybe, but proper headers in the html page:
<!DOCTYPE HTML>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

or
<!DOCTYPE HTML>
<meta charset="UTF-8">


3. echos in Jmol require to be wrapped in double quotes when they 
have sepcial characters. Not sure about labels

4. Use the Unicode number rather than the typed character or the html 
entity. Let me find the syntax....
http://wiki.jmol.org/index.php/Recycling_Corner#Including_special_char
acters_in_echo

echo "\u2192 is an arrow pointing right";

so maybe for your case:
label "\u00B7" // mid-dot
// probably you can find a bigger dot, 
label "\u2022"  // bullet

label "\u2014";  // m-dash
label "\u2212";   /7 minus sign - syntactically more correct!

HTH, regards



 

·
 Dr. Angel Herráez
 Biochemistry and Molecular Biology,
 Dept. of Systems Biology, University of Alcalá
 E-28871 Alcalá de Henares  (Madrid), Spain


------------------------------------------------------------------------------
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to