Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 6:44 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Managing text
PostPosted: January 25th, 2006, 11:23 am 
Offline

Joined: January 25th, 2006, 10:48 am
Posts: 1
I am trying to create simple program for my special needs pupils:

A sentence is displayed complete - then a word is deleted randomly so the sentence is displayed with an underlined space at the correct point.
I can manage the variable for selecting the random word but can't figure out how to display the sentence with this word missing.
Any ideas?
Many thanks


Top
 Profile  
 
 Post subject:
PostPosted: January 25th, 2006, 12:15 pm 
Offline

Joined: October 26th, 2004, 1:26 pm
Posts: 262
Hi,

Could you tell us more?

What version of Opus do you have? Do you understand scripting at all :?:

_________________
Cheers,
Steve


Top
 Profile  
 
 Post subject:
PostPosted: January 25th, 2006, 2:16 pm 
Offline

Joined: November 11th, 2004, 1:43 pm
Posts: 172
Location: Buckinghamshire, UK
Are you familiar with scripting?
This is how I would tackle this myself.

1). Read in the sentence, this can be typed in from an imput box, or read in from a file/variable etc.

2). Assign this to an array item so that each full word can be accessed from the array via positional element example...

sentence: Stephen Fry pieces together his family's fascinating history.
array index: 0 1 2 3 4 5 6 7

3). From the array object, you will know the number of "words" in the sentence and via script you can get a random value (within the range of the elements in the array) and hide that word from the string.

4). Reconstruct the sentence from the array elements replacing the element index in 3). above with a blank line...

5). Can now use the input from the student to see if it matches with the item hidden.


Top
 Profile  
 
 Post subject:
PostPosted: January 25th, 2006, 3:10 pm 
Offline

Joined: October 26th, 2004, 10:23 am
Posts: 666
Location: Digital Workshop
You really don't need to complicate matters with scripting - honest!

See the attached example for an actions based example that wouldn't be too hard to extend.


You do not have the required permissions to view the files attached to this post.

_________________
ddww Opus Developer


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 72 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group