<html dir="ltr"><head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style>.hmmessage P {
PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
BODY.hmmessage {
FONT-SIZE: 10pt; FONT-FAMILY: Tahoma
}
</style>
<meta content="MSHTML 6.00.6000.17063" name="GENERATOR">
<style id="owaTempEditStyle"></style><style title="owaParaStyle"><!--P {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
--></style>
</head>
<body class="hmmessage" ocsi="x">
<div style="FONT-SIZE: 13px; COLOR: #000000; DIRECTION: ltr; FONT-FAMILY: Tahoma">
<div>a style="background-colour#ffff00" surely?</div>
<div><font face="tahoma"></font> </div>
<div><font face="tahoma">None of that firefox freaky stuff here thank you very much</font></div>
<div dir="ltr"><font face="Tahoma" color="#000000" size="2"></font> </div>
<div id="divRpF137984" style="DIRECTION: ltr">
<hr tabindex="-1">
<font face="Tahoma" color="#000000" size="2"><b>From:</b> xerte-bounces@lists.nottingham.ac.uk [xerte-bounces@lists.nottingham.ac.uk] On Behalf Of Dave Burnett [d_b_burnett@hotmail.com]<br>
<b>Sent:</b> Tuesday, January 25, 2011 5:12 PM<br>
<b>To:</b> Xerte list<br>
<b>Subject:</b> [Xerte] Re: Speaking of MarkWord<br>
</font><br>
</div>
<div></div>
<div><br>
<br>
<a STYLE="background-color: rgb(255,255,0)" href="asfunct<br>
<br>
Nothing. :-(<br>
<br>
Daa.<br>
<br>
<br>
<br>
<hr id="stopSpelling">
From: Julian.Tenney@nottingham.ac.uk<br>
To: xerte@lists.nottingham.ac.uk<br>
Date: Tue, 25 Jan 2011 17:05:03 +0000<br>
Subject: [Xerte] Re: Speaking of MarkWord<br>
<br>
<style></style><style>@page WordSection1 {}
.ExternalClass P.ecxMsoNormal {
FONT-SIZE: 12pt; MARGIN-BOTTOM: 0pt; FONT-FAMILY: 'Times New Roman','serif'
}
.ExternalClass LI.ecxMsoNormal {
FONT-SIZE: 12pt; MARGIN-BOTTOM: 0pt; FONT-FAMILY: 'Times New Roman','serif'
}
.ExternalClass DIV.ecxMsoNormal {
FONT-SIZE: 12pt; MARGIN-BOTTOM: 0pt; FONT-FAMILY: 'Times New Roman','serif'
}
.ExternalClass A:link {
COLOR: blue; TEXT-DECORATION: underline
}
.ExternalClass SPAN.ecxMsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline
}
.ExternalClass A:visited {
COLOR: purple; TEXT-DECORATION: underline
}
.ExternalClass SPAN.ecxMsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline
}
.ExternalClass P {
FONT-SIZE: 12pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: 'Times New Roman','serif'
}
.ExternalClass P.ecxecxmsonormal {
FONT-SIZE: 12pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: 'Times New Roman','serif'
}
.ExternalClass LI.ecxecxmsonormal {
FONT-SIZE: 12pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: 'Times New Roman','serif'
}
.ExternalClass DIV.ecxecxmsonormal {
FONT-SIZE: 12pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: 'Times New Roman','serif'
}
.ExternalClass P.ecxecxmsochpdefault {
FONT-SIZE: 12pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: 'Times New Roman','serif'
}
.ExternalClass LI.ecxecxmsochpdefault {
FONT-SIZE: 12pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: 'Times New Roman','serif'
}
.ExternalClass DIV.ecxecxmsochpdefault {
FONT-SIZE: 12pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: 'Times New Roman','serif'
}
.ExternalClass P.ecxecxmsonormal1 {
FONT-SIZE: 12pt; MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: 'Times New Roman','serif'
}
.ExternalClass LI.ecxecxmsonormal1 {
FONT-SIZE: 12pt; MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: 'Times New Roman','serif'
}
.ExternalClass DIV.ecxecxmsonormal1 {
FONT-SIZE: 12pt; MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: 'Times New Roman','serif'
}
.ExternalClass P.ecxecxmsochpdefault1 {
FONT-SIZE: 10pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: 'Times New Roman','serif'
}
.ExternalClass LI.ecxecxmsochpdefault1 {
FONT-SIZE: 10pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: 'Times New Roman','serif'
}
.ExternalClass DIV.ecxecxmsochpdefault1 {
FONT-SIZE: 10pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: 'Times New Roman','serif'
}
.ExternalClass SPAN.ecxecxmsohyperlink1 {
COLOR: blue; TEXT-DECORATION: underline
}
.ExternalClass SPAN.ecxecxmsohyperlinkfollowed1 {
COLOR: purple; TEXT-DECORATION: underline
}
.ExternalClass SPAN.ecxecxemailstyle181 {
COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'
}
.ExternalClass SPAN.ecxEmailStyle28 {
COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'
}
.ExternalClass SPAN.ecxEmailStyle29 {
COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'
}
.ExternalClass .ecxMsoChpDefault {
FONT-SIZE: 10pt
}
.ExternalClass DIV.ecxWordSection1 {
}
</style>
<div class="ecxWordSection1">
<p class="ecxMsoNormal"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">Can you set the background via CSS? That would be much easier as then you could use styles and string.replace(), dropping in html to set the styles.
However, I suspect not…</span></p>
<p class="ecxMsoNormal"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'"></span> </p>
<p class="ecxMsoNormal"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">Otherwise you have to use getTextExtent() to
</span></p>
<p class="ecxMsoNormal"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'"></span> </p>
<p class="ecxMsoNormal"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">-- find the metrics of the end of the string leading up to the word you want to highlight – so you know where to start drawing</span></p>
<p class="ecxMsoNormal"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">-- work out the w and h of the actual word, so you knowhow wide / deep to draw</span></p>
<p class="ecxMsoNormal"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">-- draw the rect somewhere</span></p>
<p class="ecxMsoNormal"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">-- loop over the string looking for match.</span></p>
<p class="ecxMsoNormal"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'"></span> </p>
<p class="ecxMsoNormal"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">Be a useful engine method, because you’ll be wanting a few functions to do this tidily.</span></p>
<p class="ecxMsoNormal"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'"></span> </p>
<div>
<div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<p class="ecxMsoNormal" style="MARGIN-LEFT: 36pt"><b><span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</span></b><span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Julian Tenney<br>
<b>Sent:</b> 25 January 2011 16:54<br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> [Xerte] Re: Speaking of MarkWord</span></p>
</div>
</div>
<p class="ecxMsoNormal" style="MARGIN-LEFT: 36pt"> </p>
<p class="ecxMsoNormal" style="MARGIN-LEFT: 36pt"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">Difficult bugger.</span></p>
<p class="ecxMsoNormal" style="MARGIN-LEFT: 36pt"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'"></span> </p>
<div>
<div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<p class="ecxMsoNormal" style="MARGIN-LEFT: 72pt"><b><span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</span></b><span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Dave Burnett<br>
<b>Sent:</b> 25 January 2011 16:54<br>
<b>To:</b> Xerte list<br>
<b>Subject:</b> [Xerte] Re: Speaking of MarkWord</span></p>
</div>
</div>
<p class="ecxMsoNormal" style="MARGIN-LEFT: 72pt"> </p>
<p class="ecxMsoNormal" style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 72pt; MARGIN-RIGHT: 0cm">
<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">Highlighter.</span></p>
<div style="MARGIN-LEFT: 36pt">
<div class="ecxMsoNormal" style="MARGIN-LEFT: 36pt; TEXT-ALIGN: center" align="center">
<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">
<hr align="center" width="100%" size="2">
</span></div>
</div>
<p class="ecxMsoNormal" style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 72pt; MARGIN-RIGHT: 0cm">
<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From: Julian.Tenney@nottingham.ac.uk<br>
To: xerte@lists.nottingham.ac.uk<br>
Date: Tue, 25 Jan 2011 16:50:45 +0000<br>
Subject: [Xerte] Re: Speaking of MarkWord</span></p>
<div>
<p class="ecxMsoNormal" style="MARGIN-LEFT: 72pt"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">You want to draw a rectangle behind it, like a highlighter, or just make the text a different colour?</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span></p>
<p class="ecxMsoNormal" style="MARGIN-LEFT: 72pt"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'"></span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span> </p>
<div>
<div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<p class="ecxMsoNormal" style="MARGIN-LEFT: 108pt"><b><span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</span></b><span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Dave Burnett<br>
<b>Sent:</b> 25 January 2011 16:47<br>
<b>To:</b> Xerte list<br>
<b>Subject:</b> [Xerte] Speaking of MarkWord</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span></p>
</div>
</div>
<p class="ecxMsoNormal" style="MARGIN-LEFT: 108pt"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span> </p>
<p class="ecxMsoNormal" style="MARGIN-LEFT: 108pt"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">Xerte 2 desktop.<br>
<br>
I don't need any interactivity, just a way to highlight a word or words in a string:<br>
e.g. I would like this [word] to have a yellow highlight.<br>
<br>
Method already exist?<br>
<br>
Cheers;<br>
<br>
Dave</span></p>
</div>
<p class="ecxMsoNormal" style="MARGIN-LEFT: 72pt"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"><br>
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information
contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
<br>
This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be
monitored as permitted by UK legislation. <br>
<br>
_______________________________________________ Xerte mailing list Xerte@lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information.
If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email
do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own
checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
</span></p>
</div>
<br>
_______________________________________________ Xerte mailing list Xerte@lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information.
If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email
do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own
checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
</div>
</div>
</body>
</html>