Difference between revisions of "User:AngelHerraez/Sandbox"

From Jmol
Jump to navigation Jump to search
(remove The Toolbar section)
 
(7 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
<!--applet load='1ea5' size='300' frame='true' align='right' caption='Insert caption here' /-->
 
<!--applet load='1ea5' size='300' frame='true' align='right' caption='Insert caption here' /-->
  
 +
All these links should read [[#dummy|atención]]
 +
 +
Directly entered (ó):
 
<jmol>
 
<jmol>
 
<jmolLink>
 
<jmolLink>
Line 7: Line 10:
 
<text>atención</text>
 
<text>atención</text>
 
</jmolLink>
 
</jmolLink>
 +
</jmol>
  
 
+
Hex Unicode entity (<nowiki>&amp;#x00F3;</nowiki>):
 +
<jmol>
 
<jmolLink>
 
<jmolLink>
 
<script>color background red;</script>
 
<script>color background red;</script>
 
<text>atenci&#x00F3;n</text>
 
<text>atenci&#x00F3;n</text>
 
</jmolLink>
 
</jmolLink>
 +
</jmol>
  
 +
Dec Unicode entity (<nowiki>&amp;#0243;</nowiki>):
 +
<jmol>
 
<jmolLink>
 
<jmolLink>
 
<script>color background red;</script>
 
<script>color background red;</script>
 
<text>atenci&#0243;n</text>
 
<text>atenci&#0243;n</text>
 
</jmolLink>
 
</jmolLink>
 +
</jmol>
  
 +
Hex Unicode percent (<nowiki>%F3</nowiki>):
 +
<jmol>
 +
<jmolLink>
 +
<script>color background red;</script>
 +
<text>atenci%F3n</text>
 +
</jmolLink>
 +
</jmol>
  
 +
In a button:
 +
<jmol>
 
<jmolButton>
 
<jmolButton>
 
<script>color background red;</script>
 
<script>color background red;</script>
Line 33: Line 51:
 
</jmolLink>
 
</jmolLink>
 
</jmol>
 
</jmol>
[[Media:Ejemplo.ogg]]
+
 
 +
= 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>

Latest revision as of 20:21, 8 November 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