[Xerte] Adding from other applications

Julian Tenney Julian.Tenney at nottingham.ac.uk
Fri Jan 29 09:55:51 GMT 2010


The text returned is not UTF-8 encoded.

 

I'm stuck - entering the caracters yourself into xerte works, becaue the
file is then saved, as UTF encoded xml, and so when read back into the
engine to play, it comes in encoded corectly.

 

So do you encode to UTF inside the Flash player?

 

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 10:31 PM
To: Xerte discussion list
Subject: RE: [Xerte] Adding from other applications

 

Seems like the loadVars would be the right place. Maybe search the
string for \u, extract that plus the next 4 chars, that would give you
the Unicode part. Not sure what to do with it after that. Looks like the
entire string needs to be treated like an expression. Can you have a
property that is an expression?

 

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 2:10 PM
To: Xerte discussion list
Subject: RE: [Xerte] Adding from other applications

 

it does a loadVars on the google translate service, and I catch the data
property in the onData event handler - that's the raw text returned from
the loadVars. Maybe thats the point to apply the cure, whatever that
is...?

 

________________________________

From: xerte-bounces at lists.nottingham.ac.uk on behalf of Paul Swanson
Sent: Thu 28/01/2010 18:41
To: Xerte discussion list
Subject: RE: [Xerte] Adding from other applications

I see the problem. How is translatedText derived? That doesn't seem to
be a native AS or flash property, so you must have some function that is
creating that property. What's that look like?

 

P

 

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 9:20 AM
To: Xerte discussion list
Subject: RE: [Xerte] Adding from other applications

 

Here's the problem - you'll need the latest Xerte to run it,

 

J

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: Thursday, January 28, 2010 5:07 PM
To: Xerte list
Subject: RE: [Xerte] Adding from other applications

 

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["&nbsp;"]   = "\u00A0"; // non-breaking space

HTMLentities["&iexcl;"]  = "\u00A1"; // inverted exclamation mark

HTMLentities["&cent;"]   = "\u00A2"; // cent sign

HTMLentities["&pound;"]  = "\u00A3"; // pound sign

HTMLentities["&curren;"] = "\u00A4"; // currency sign

HTMLentities["&yen;"]    = "\u00A5"; // yen sign

HTMLentities["&euro;"]   = "\u20AC"; // Euro sign

HTMLentities["&brvbar;"] = "\u00A6"; // broken vertical bar (|)

HTMLentities["&sect;"]   = "\u00A7"; // section sign

HTMLentities["&uml;"]    = "\u00A8"; // diaeresis

HTMLentities["&copy;"]   = "\u00A9"; // copyright sign

HTMLentities["&reg;"]    = "\u00AE"; // registered sign

HTMLentities["&trade;"]  = "\u2122"; // trademark sign

HTMLentities["&deg;"]    = "\u00B0"; // degree sign

 

With this, I can display the registered trademark symbol with {'<p>Buy
SuperWidget' + HTMLentities['&reg;'] + ' 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 &nbsp; 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 <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. Sign up now.
<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/20100129/104d444b/attachment.html


More information about the Xerte mailing list