<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<title>Trying to create a function with arguments</title>
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-GB link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I wouldn&#8217;t include all the aryEntities definitions in the
function, otherwise you are going through that code, rebuilding your array,
every time you call the function. There&#8217;s no need to do that. Instead,
define the array somewhere near the top of the piece (in a setup script is ideal,
as that code will only run once, or somewhere in the entry frame of the main
framework):<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>myLookup = new Array();<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>myLookup[&quot;&amp;nbsp&quot;] = &#8220;\u00A0&#8221;; <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>--etc--<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Then there is no need to call a function &#8211; just lookup the
value you want:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>myValue = myLookup[entity];<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>J<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal style='margin-left:36.0pt'><b><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Paul Swanson<br>
<b>Sent:</b> Tuesday, October 28, 2008 10:36 PM<br>
<b>To:</b> xerte@lists.nottingham.ac.uk<br>
<b>Subject:</b> [Xerte] Trying to create a function with arguments<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal style='margin-left:36.0pt'><o:p>&nbsp;</o:p></p>

<p style='margin-left:36.0pt'><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>I'm
trying to create a function in Xerte that will display HTML entities. The
function takes the normal HTML entity name, and should return the unicode
equivalent, so I need to pass it an argument.</span><o:p></o:p></p>

<p style='margin-left:36.0pt'><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>From
the Help, I see that Xerte does not recognize the keyword 'function' so I'm
confused on how to pass it an argument. Here is the function (found it through
Google, then added some missing entities that I think I might use someday):</span><o:p></o:p></p>

<p style='margin-left:36.0pt'><span style='font-size:10.0pt;font-family:"Courier New"'>//
create the entity mapping array&nbsp;&nbsp;&nbsp;&nbsp; </span><br>
<span style='font-size:10.0pt;font-family:"Courier New"'>// which allows
decoding html entities into their unicode equivalents&nbsp;&nbsp;&nbsp;&nbsp; </span><o:p></o:p></p>

<p style='margin-left:36.0pt'><span style='font-size:10.0pt;font-family:"Courier New"'>function
GetEntityArray(entity) {</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities = Array();</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;nbsp;&quot;]&nbsp;&nbsp; = &quot;\u00A0&quot;; //
non-breaking space</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;iexcl;&quot;]&nbsp; = &quot;\u00A1&quot;; // inverted
exclamation mark</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;cent;&quot;]&nbsp;&nbsp; = &quot;\u00A2&quot;; // cent
sign</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;pound;&quot;]&nbsp; = &quot;\u00A3&quot;; // pound sign</span>
<br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;curren;&quot;] = &quot;\u00A4&quot;; // currency sign</span>
<br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;yen;&quot;]&nbsp;&nbsp;&nbsp; = &quot;\u00A5&quot;; //
yen sign</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;euro;&quot;]&nbsp;&nbsp; = &quot;\u20AC&quot;; // Euro
sign</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;brvbar;&quot;] = &quot;\u00A6&quot;; // broken vertical
bar (|)</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;sect;&quot;]&nbsp;&nbsp; = &quot;\u00A7&quot;; //
section sign</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;uml;&quot;]&nbsp;&nbsp;&nbsp; = &quot;\u00A8&quot;; //
diaeresis</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;copy;&quot;]&nbsp;&nbsp; = &quot;\u00A9&quot;; //
copyright sign</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;reg;&quot;]&nbsp;&nbsp;&nbsp; = &quot;\u00AE&quot;; //
registered sign</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;trade;&quot;]&nbsp; = &quot;\u2122&quot;; // trademark
sign</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;deg;&quot;]&nbsp;&nbsp;&nbsp; = &quot;\u00B0&quot;; //
degree sign</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;plusmn;&quot;] = &quot;\u00B1&quot;; // plus-minus sign</span>
<br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;sup1;&quot;]&nbsp;&nbsp; = &quot;\u00B9&quot;; //
superscript one</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;sup2;&quot;]&nbsp;&nbsp; = &quot;\u00B2&quot;; //
superscript two</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;sup3;&quot;]&nbsp;&nbsp; = &quot;\u00B3&quot;; //
superscript three</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;acute;&quot;]&nbsp; = &quot;\u00B4&quot;; // acute
accent</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;micro;&quot;]&nbsp; = &quot;\u00B5&quot;; // micro sign</span>
<br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;frac14;&quot;] = &quot;\u00BC&quot;; // vulgar fraction
one quarter</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;frac12;&quot;] = &quot;\u00BD&quot;; // vulgar fraction
one half</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;frac34;&quot;] = &quot;\u00BE&quot;; // vulgar fraction
three quarters</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;iquest;&quot;] = &quot;\u00BF&quot;; // inverted
question mark</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;Agrave;&quot;] = &quot;\u00C0&quot;; // Latin capital
letter A with grave</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;Aacute;&quot;] = &quot;\u00C1&quot;; // Latin capital
letter A with acute</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;Acirc;&quot;]&nbsp; = &quot;\u00C2&quot;; // Latin
capital letter A with circumflex</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;Atilde;&quot;] = &quot;\u00C3&quot;; // Latin capital
letter A with tilde</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;Auml;&quot;]&nbsp;&nbsp; = &quot;\u00C4&quot;; // Latin
capital letter A with diaeresis</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;Aring;&quot;]&nbsp; = &quot;\u00C5&quot;; // Latin
capital letter A with ring above</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;AElig;&quot;]&nbsp; = &quot;\u00C6&quot;; // Latin
capital letter AE</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;Ccedil;&quot;] = &quot;\u00C7&quot;; // Latin capital
letter C with cedilla</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;Egrave;&quot;] = &quot;\u00C8&quot;; // Latin capital
letter E with grave</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;Eacute;&quot;] = &quot;\u00C9&quot;; // Latin capital
letter E with acute</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;Ecirc;&quot;]&nbsp; = &quot;\u00CA&quot;; // Latin
capital letter E with circumflex</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;Euml;&quot;]&nbsp;&nbsp; = &quot;\u00CB&quot;; // Latin
capital letter E with diaeresis</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;Igrave;&quot;] = &quot;\u00CC&quot;; // Latin capital
letter I with grave</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;Iacute;&quot;] = &quot;\u00CD&quot;; // Latin capital
letter I with acute</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;Icirc;&quot;]&nbsp; = &quot;\u00CE&quot;; // Latin
capital letter I with circumflex</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;Iuml;&quot;]&nbsp;&nbsp; = &quot;\u00CF&quot;; // Latin
capital letter I with diaeresis</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;ETH;&quot;]&nbsp;&nbsp;&nbsp; = &quot;\u00D0&quot;; //
Latin capital letter ETH</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;Ntilde;&quot;] = &quot;\u00D1&quot;; // Latin capital
letter N with tilde</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;Ograve;&quot;] = &quot;\u00D2&quot;; // Latin capital
letter O with grave</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;Oacute;&quot;] = &quot;\u00D3&quot;; // Latin capital
letter O with acute</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;Ocirc;&quot;]&nbsp; = &quot;\u00D4&quot;; // Latin
capital letter O with circumflex</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;Otilde;&quot;] = &quot;\u00D5&quot;; // Latin capital
letter O with tilde</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;Ouml;&quot;]&nbsp;&nbsp; = &quot;\u00D6&quot;; // Latin
capital letter O with diaeresis</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;Oslash;&quot;] = &quot;\u00D8&quot;; // Latin capital
letter O with stroke</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;Ugrave;&quot;] = &quot;\u00D9&quot;; // Latin capital
letter U with grave</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;Uacute;&quot;] = &quot;\u00DA&quot;; // Latin capital
letter U with acute</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;Ucirc;&quot;]&nbsp; = &quot;\u00DB&quot;; // Latin
capital letter U with circumflex</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;Uuml;&quot;]&nbsp;&nbsp; = &quot;\u00DC&quot;; // Latin
capital letter U with diaeresis</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;Yacute;&quot;] = &quot;\u00DD&quot;; // Latin capital
letter Y with acute</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;THORN;&quot;]&nbsp; = &quot;\u00DE&quot;; // Latin
capital letter THORN</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;szlig;&quot;]&nbsp; = &quot;\u00DF&quot;; // Latin small
letter sharp s = ess-zed</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;agrave;&quot;] = &quot;\u00E0&quot;; // Latin small
letter a with grave</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;aacute;&quot;] = &quot;\u00E1&quot;; // Latin small
letter a with acute</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;acirc;&quot;]&nbsp; = &quot;\u00E2&quot;; // Latin small
letter a with circumflex</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;atilde;&quot;] = &quot;\u00E3&quot;; // Latin small
letter a with tilde</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;auml;&quot;]&nbsp;&nbsp; = &quot;\u00E4&quot;; // Latin
small letter a with diaeresis</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;aring;&quot;]&nbsp; = &quot;\u00E5&quot;; // Latin small
letter a with ring above</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;aelig;&quot;]&nbsp; = &quot;\u00E6&quot;; // Latin small
letter ae</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;ccedil;&quot;] = &quot;\u00E7&quot;; // Latin small
letter c with cedilla</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;egrave;&quot;] = &quot;\u00E8&quot;; // Latin small
letter e with grave</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;eacute;&quot;] = &quot;\u00E9&quot;; // Latin small
letter e with acute</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;ecirc;&quot;]&nbsp; = &quot;\u00EA&quot;; // Latin small
letter e with circumflex</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;euml;&quot;]&nbsp;&nbsp; = &quot;\u00EB&quot;; // Latin
small letter e with diaeresis</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;igrave;&quot;] = &quot;\u00EC&quot;; // Latin small
letter i with grave</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;iacute;&quot;] = &quot;\u00ED&quot;; // Latin small
letter i with acute</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;icirc;&quot;]&nbsp; = &quot;\u00EE&quot;; // Latin small
letter i with circumflex</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;iuml;&quot;]&nbsp;&nbsp; = &quot;\u00EF&quot;; // Latin
small letter i with diaeresis</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;eth;&quot;]&nbsp;&nbsp;&nbsp; = &quot;\u00F0&quot;; //
Latin small letter eth</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;ntilde;&quot;] = &quot;\u00F1&quot;; // Latin small
letter n with tilde</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;ograve;&quot;] = &quot;\u00F2&quot;; // Latin small
letter o with grave</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;oacute;&quot;] = &quot;\u00F3&quot;; // Latin small
letter o with acute</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;ocirc;&quot;]&nbsp; = &quot;\u00F4&quot;; // Latin small
letter o with circumflex</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;otilde;&quot;] = &quot;\u00F5&quot;; // Latin small
letter o with tilde</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;ouml;&quot;]&nbsp;&nbsp; = &quot;\u00F6&quot;; // Latin
small letter o with diaeresis</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;oslash;&quot;] = &quot;\u00F8&quot;; // Latin small
letter o with stroke</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;ugrave;&quot;] = &quot;\u00F9&quot;; // Latin small
letter u with grave</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;uacute;&quot;] = &quot;\u00FA&quot;; // Latin small
letter u with acute</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;ucirc;&quot;]&nbsp; = &quot;\u00FB&quot;; // Latin small
letter u with circumflex</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;uuml;&quot;]&nbsp;&nbsp; = &quot;\u00FC&quot;; // Latin
small letter u with diaeresis</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;yacute;&quot;] = &quot;\u00FD&quot;; // Latin small
letter y with acute</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;thorn;&quot;]&nbsp; = &quot;\u00FE&quot;; // Latin small
letter thorn</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;yuml;&quot;]&nbsp;&nbsp; = &quot;\u00FF&quot;; // Latin
small letter y with diaeresis</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;ndash;&quot;]&nbsp; = &quot;\u2013&quot;; // N-dash</span>
<br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;mdash;&quot;]&nbsp; = &quot;\u2014&quot;; // M-dash</span>
<br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;quot;&quot;]&nbsp;&nbsp; = &quot;\u0022&quot;; //
Quotation mark</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;amp;&quot;]&nbsp;&nbsp;&nbsp; = &quot;\u0026&quot;; //
Ampersand</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;lt;&quot;]&nbsp;&nbsp;&nbsp;&nbsp; = &quot;\u003C&quot;;
// Less-than sign</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;gt;&quot;]&nbsp;&nbsp;&nbsp;&nbsp; = &quot;\u003E&quot;;
// Greater-than sign</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;radic;&quot;]&nbsp; = &quot;\u221A&quot;; // Square root
symbol</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;infin;&quot;]&nbsp; = &quot;\u221E&quot;; // Infinity
symbol</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;loz;&quot;]&nbsp;&nbsp;&nbsp; = &quot;\u25CA&quot;; //
Lozenge shape</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;spades;&quot;] = &quot;\u2660&quot;; // Spade suit</span>
<br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;clubs;&quot;]&nbsp; = &quot;\u2663&quot;; // Club suit /
shamrock</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;hearts;&quot;] = &quot;\u2665&quot;; // Heart suit /
valentine</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
aryEntities[&quot;&amp;diams;&quot;]&nbsp; = &quot;\u2666&quot;; // Diamond
suit</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; </span><br>
<span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
return aryEntities[entity];&nbsp;&nbsp;&nbsp;&nbsp; </span><br>
<span style='font-size:10.0pt;font-family:"Courier New"'>}</span> <o:p></o:p></p>

<p style='margin-left:36.0pt'><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>When
I try to use the function to set a variable, I get 'undefined.' Any pointers?
Incidentally, I think this would be a really useful addition to the core Xerte.</span><o:p></o:p></p>

<p style='margin-left:36.0pt'><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>_____________________________</span> <o:p></o:p></p>

<p style='margin-left:36.0pt'><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>&nbsp;Paul Swanson</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New";color:gray'>&nbsp;Instructional
Designer</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New";color:gray'>&nbsp;Harland
Financial Solutions</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New";color:gray'>&nbsp;800.274.7280
Ext. 2462</span> <br>
<span style='font-size:10.0pt;font-family:"Courier New";color:gray'>&nbsp;Paul.Swanson@harlandfs.com</span>
<br>
<span style='font-size:10.0pt;font-family:"Courier New";color:gray'>_____________________________</span>
<o:p></o:p></p>

</div>

</body>

</html>