[Xerte] Adding from other applications
Dave Burnett
d_b_burnett at hotmail.com
Thu Jan 28 17:06:38 GMT 2010
It's a string.
{'<p>Buy SuperWidget' + '\u00AE' + ' today!</p>'}.
Subject: RE: [Xerte] Adding from other applications
Date: Thu, 28 Jan 2010 16:49:17 +0000
From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Quite. So how do we handle it? I’m sure I’ve done it before,
just can’t remember how,
J
From:
xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Paul Swanson
Sent: Thursday, January 28, 2010 4:29 PM
To: Xerte discussion list
Subject: RE: [Xerte] Adding from other applications
I
know I’ve used the Unicode characters before by typing them into a text icon,
but know I either get the string of the Unicode value, or ‘undefined’. But if I
add them to an array, I can use them by referencing the array index.
I’ve
got an array set up with most of the HTML entities, using the entity as the
index and the Unicode equivalent as the value. Partial sample:
// create array
with HTML entities as the key and the unicode equivalent as the value
HTMLentities =
Array();
HTMLentities[" "]
= "\u00A0"; // non-breaking space
HTMLentities["¡"]
= "\u00A1"; // inverted exclamation mark
HTMLentities["¢"]
= "\u00A2"; // cent sign
HTMLentities["£"]
= "\u00A3"; // pound sign
HTMLentities["¤"]
= "\u00A4"; // currency sign
HTMLentities["¥"]
= "\u00A5"; // yen sign
HTMLentities["€"]
= "\u20AC"; // Euro sign
HTMLentities["¦"]
= "\u00A6"; // broken vertical bar (|)
HTMLentities["§"]
= "\u00A7"; // section sign
HTMLentities["¨"]
= "\u00A8"; // diaeresis
HTMLentities["©"]
= "\u00A9"; // copyright sign
HTMLentities["®"]
= "\u00AE"; // registered sign
HTMLentities["™"]
= "\u2122"; // trademark sign
HTMLentities["°"]
= "\u00B0"; // degree sign
With
this, I can display the registered trademark symbol with {‘<p>Buy
SuperWidget’ + HTMLentities[‘®’] + ‘ today!</p>’}. But
{‘<p>Buy SuperWidget’ + \u00AE + ‘ today!</p>’} gives me
‘undefined’, which seems goofy. Seems like those should be the same thing.
From:
xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: Thursday, January 28, 2010 1:17 AM
To: Xerte discussion list
Subject: RE: [Xerte] Adding from other applications
A related qustion – I was
playing around with the google translate API, and it returns strings containing
\u1234 etc. In Xerte, they display as that: \u1234. How do I get it to display
the actual character? I tried switching \u1234 for \\u1234
but no dice. Have you any idea?
From:
xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Paul Swanson
Sent: Wednesday, January 27, 2010 5:05 PM
To: Xerte discussion list
Subject: RE: [Xerte] Adding from other applications
What
if you use \u00A0 instead of spaces? That’s the Unicode equivalent of
in HTML (a non-breaking space). It should look like a space, but
allow you to test for the existence of the character, just like an underscore.
Paul
From:
xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Hall C.M.
Sent: Wednesday, January 27, 2010 8:54 AM
To: Xerte discussion list
Subject: RE: [Xerte] Adding from other applications
I’m teaching EFL. The problem
I have is the choice of answer is between, for example, worked/ was
working. When I’ve tried to make two word gaps Xerte objects L If I
put two gaps it gives the answer away. I’ve tried using underscores and dashes
but that’s not really ideal.
The new templates sound
interesting. When will they be available?
Chris
From:
xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 27 January 2010 16:06
To: Xerte discussion list
Subject: RE: [Xerte] Adding from other applications
I did some work recently on
the gap fill exercise to allow parts of words to be marked up for gaps –
previously you could only mark up whole words. What’s a ‘two- gap word’?
There is also a new template
pretty much finished designed with modern languages teaching in mind – what are
you teaching?
From:
xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Hall C.M.
Sent: Wednesday, January 27, 2010 4:03 PM
To: Xerte discussion list
Subject: RE: [Xerte] Adding from other applications
My original question was
about adding a Hot Potatoes Gap Fill to a Xerte package in order to get round
the problem of two-word gaps in Xerte. Eg adding a Hot Potatoes page like a
Google map but it doesn’t seem possible other than as a link. Not sure
how SCORM is relevant either.
Chris
From:
xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 27 January 2010 15:51
To: Xerte discussion list
Subject: RE: [Xerte] Adding from other applications
I’m not sure how SCORM is
relevant?
From:
xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Yuping Jin
Sent: Wednesday, January 27, 2010 3:45 PM
To: Xerte discussion list
Subject: Re: [Xerte] Adding from other applications
Is this expected by SCORM compliant LMS? To play
other SCORM contents or leverage them? I mean I'm not sure what kind of interoperability
can be obtained by complying to SCORM. Is it expected to insert SCORM content
from other product into Xerte piece?
Any point would be appreciated!
On Tue, Jan 26, 2010 at 11:38
PM, Julian Tenney <Julian.Tenney at nottingham.ac.uk>
wrote:
No, but you can create links
to them from a Xerte piece,
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk]
On Behalf Of Hall C.M.
Sent: Tuesday, January 26, 2010 3:32 PM
To: Xerte discussion list
Subject: [Xerte] Adding from other applications
Hi,
This might seem a strange
question but Is it possible to add activities from other applications, Hot
Potatoes for example, to Xerte or Xerte Toolkits?
Chris Hall
e-Learning
Support Officer
Swansea
University
http://learninglab.swan.ac.uk
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte
--
Jin Yuping
jinyuping at gmail.com
_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
http://clk.atdmt.com/GBL/go/196390707/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20100128/e01635ff/attachment.html
More information about the Xerte
mailing list