Difference between revisions of "User:AngelHerraez/Sandbox"

From Jmol
Jump to navigation Jump to search
Line 50: Line 50:
 
<text>atenci%26oacute;n</text>
 
<text>atenci%26oacute;n</text>
 
</jmolLink>
 
</jmolLink>
 +
</jmol>
 +
 +
= Embedding applet in wiki page =
 +
Jmol can read this format (not from file, just from a text string) as long as it can connect to a server that will do the conversion to a 2D or 3D format. To do this, you put a dollar sign before the SMILES string, or you use the smiles parameter. Note that the unsigned applet is not allowed connection to external servers ad so does not support this method.
 +
 +
Example, for isopentane:
 +
load $CCC(C)C
 +
load "$CCC(C)C"
 +
load smiles "CCC(C)C"
 +
 +
Test here:
 +
 +
<jmol>
 +
  <jmolApplet>
 +
    <size>250</size>
 +
  </jmolApplet>
 +
  <jmolMenu>
 +
    <item>
 +
      <script>load $CCC(C)C</script>
 +
      <text>CCC(C)C</text>
 +
    </item>
 +
    <item>
 +
      <script>load $NC(COO)C</script>
 +
      <text>NC(COO)C</text>
 +
    </item>
 +
  </jmolMenu>
 
</jmol>
 
</jmol>

Revision as of 18:02, 24 September 2010

Testing accented characters in links set by Jmol MediaWiki Extension

All these links should read atención

Directly entered (ó):

Hex Unicode entity (&#x00F3;):

Dec Unicode entity (&#0243;):

Hex Unicode percent (%F3):

In a button:

Embedding applet in wiki page

Jmol can read this format (not from file, just from a text string) as long as it can connect to a server that will do the conversion to a 2D or 3D format. To do this, you put a dollar sign before the SMILES string, or you use the smiles parameter. Note that the unsigned applet is not allowed connection to external servers ad so does not support this method.

Example, for isopentane:

load $CCC(C)C
load "$CCC(C)C"
load smiles "CCC(C)C"

Test here:

Contributors

AngelHerraez