Activities/Learn: Difference between revisions
| (17 intermediate revisions by 2 users not shown) | |||
| Line 12: | Line 12: | ||
Learn is a component of the Karma Learning System. When installed as a part of KLS, it is tightly integrated with the schoolserver. The primary design goal is to provide local copies of lessons as needed so that the student can use them when not connected to the school server. | Learn is a component of the Karma Learning System. When installed as a part of KLS, it is tightly integrated with the schoolserver. The primary design goal is to provide local copies of lessons as needed so that the student can use them when not connected to the school server. | ||
Version | Version 61 enables evaluation of the activity independently of a schoolserver by using a USB removable drive. | ||
| Line 27: | Line 27: | ||
,you should see /media/XXX (where XXX is the label of your removable drive). | ,you should see /media/XXX (where XXX is the label of your removable drive). | ||
The Learn activity requires a recent ( | On 12.0.1 and later releases use /run/media/olpc/XXX. | ||
Sugar with the Gnome desktop, the version | |||
Make sure the label XXX does not have spaces. A label such as /media/kls is fine. A label such as | |||
/media/Store N Go does not work. | |||
The Learn activity requires a recent (12+) version of Firefox. While Firefox is installed on versions of | |||
Sugar with the Gnome desktop, the version doe not provide the needed capabilities. | |||
From the Firefox website, download the compressed Firefox file, e.g. firefox-*.tar.bz2, where '*' is the | From the Firefox website, download the compressed Firefox file, e.g. firefox-*.tar.bz2, where '*' is the | ||
version number of the latest Firefox release, e.g. | version number of the latest Firefox release, e.g. 16.0. Copy this file to the XXX drive. | ||
From this website download these files and copy them to the XXX drive: | From this website download these files and copy them to the XXX drive: | ||
[[ | [[File:Kls_demo_2.tar.bz2]] is a 50mb file which contains the sample content kls and other files | ||
for the Learn activity. Unpack it with the command: | |||
tar -xvjf Kls_demo_2.tar.bz2 | |||
This populates the drive with the scripts and the kls folder which contains the sample content. Optionally, delete the compressed file: Kls_demo_2.tar.bz2: | |||
Download learn- | rm -rf Kls_demo_2.tar.bz2 | ||
xo-custom is a script which sets up the XO to use the Learn.activity. It installs Firefox from the tar file on the XXX drive. It modifies two files in Sugar: sugar-launch and SimpleHTTPServer.py. Finally it sets up the XO to start the localhost daemon at boot. These changes do not affect normal operation of Sugar. | |||
Download learn-61.xo from the activities.sugarlabs.org site. Copy this bundle to the XXX drive. | |||
Download showntell-12.xo from the Activities.Sugarlabs.org. Copy this bundle to the xxx drive. | |||
When this is done, the command: ls /media/XXX should show the following: | When this is done, the command: ls /media/XXX should show the following: | ||
firefox-*.tar.bz2 | firefox-*.tar.bz2 | ||
kls | |||
Kls_demo_2.tar.bz2 | |||
learn- | learn-61.xo | ||
localhost.service | |||
rc.local | |||
readme | |||
showntell-12.xo | |||
SimplerHTTPServer.py | |||
sugar-launch | |||
xo-custom | |||
===Execute the install | ===Execute the install script=== | ||
Now mount the XXX drive on the XO. | Now mount the XXX drive on the XO. | ||
| Line 60: | Line 75: | ||
Enter the commands: | Enter the commands: | ||
cd /media/XXX | cd /media/XXX or cd /run/media/olpc/XXX | ||
bash xo-custom | |||
Upon completion of these commands, the script shuts down the XO. | Upon completion of these commands, the script shuts down the XO. | ||
| Line 81: | Line 95: | ||
In 'Tabs', uncheck 'Always show the tab bar'. Students do not normally use tabs in Firefox. | In 'Tabs', uncheck 'Always show the tab bar'. Students do not normally use tabs in Firefox. | ||
Students are advised to | Customize the navigation toolbar. Add the full-screen icon. Choose small icons. In a deployment without internet, the Google icon can be removed. | ||
Students are advised to use fullscreen mode. | |||
Firefox tries to refresh pages from a cache in memory. This can sometimes prevent changes in screens to be immediately visible. In this case, use alt+F5 to refresh the page from the source. Note: on the XO keyboard, | Firefox tries to refresh pages from a cache in memory. This can sometimes prevent changes in screens to be immediately visible. In this case, use alt+F5 to refresh the page from the source. Note: on the XO keyboard, | ||
| Line 395: | Line 410: | ||
===Adding Images=== | ===Adding Images=== | ||
[[Image:image_1.png]] | |||
Clicking on the camera icon in the header will (after some moments) show this screen. It shows thumbnails of all | |||
of the images available to be added to the lesson. In this case, these are the screen shots I used in | |||
preparing this page. | |||
The | The images are those found in the Journal plus any images in /home/olpc/Documents. In recent builds of Sugar, | ||
this folder is visible in the Journal and acts like a mounted usb drive. This means that images obtained from | |||
the internet, a digital camera or a mobile phone can be copied to a usb drive. When this drive is mounted, it will appear at the bottom of the Journal screen along with an icon for the /home/olpc/Downloads folder. By selecting the usb drive (or SD card) containing the images, the relevant ones can be dragged to the folder. Alternatively, the images can be dragged to the Journal. In either case, a thumbnail will appear on this screen. | |||
[[Image:image_2.png]] | |||
In this case, the middle image in the top row was selected (click on the thumbnail). This screen allows the teacher to specify the size and location of the image. The width of 600 represents one-half of the screen. The height of 450 gives a 4:3 aspect ratio. | |||
The | The next entry specifies the screen on which the image will appear. In single-screen lessons this is, of course, 1. | ||
In multi-screen lessons, the teacher might want a different image on each screen. | |||
An entry of 1L specifies that the image should be at the top left of the screen. An entry of 1R specifies the right side. An entry of 1 specifies the image should be centered. When the image is on the left, text will appear to its right. If right is specified, text will appear to the left. When an image is centered, text will begin | |||
below the image. | |||
The teacher clicks on the OK entry to commit the change. | |||
[[Image:image_3.png]] | |||
This shows the image in the lesson. Since 1L was entered, the image is on the left with text to the right. | |||
Note: images currently can only be located at the top of a screen and only one image can be on each screen. | |||
===Adding Audio Clips=== | |||
Clipping on the microphone adds an audio clip to the lesson. It works the same way as the image icon | |||
except that the user only needs to click on the correct audio clip since no location or size information is | |||
needed. | |||
A lesson with an audio clip shows a play button in the left-side of the footer. It is a toggle so that | |||
when the audio is playing it shows a 'pause' symbol. The audio continues if play is pressed after a pause. | |||
To restart the audio, it is necessary to go back to the activity ladder and select the activity again. | |||
===Adding Questions=== | |||
An interactive quiz can easily be added to any lesson/activity. | |||
[[Image:quiz_in_editor.png]] | |||
The quiz is entered in edit mode using a special format developed by Moodle called 'gift'. | |||
The questions are entered between the following lines: | The questions are entered between the following lines: | ||
/*Quiz | /*Quiz | ||
questions go here | |||
/*Quiz | /* | ||
The word Quiz (capitol Q) must be entered after /* with no spaces. The '*/' is on a separate line. The questions are entered between these two lines separated by a blank line. Here are some example questions: | |||
<pre> | |||
/*Quiz | |||
The Learn activity is part of the Karma Learning System.{T} | The Learn activity is part of the Karma Learning System.{T} | ||
| Line 456: | Line 474: | ||
One of these organizations is not related to the others. Which one? {=CIA ~OLPC ~Sugarlabs ~Red Hat} | One of these organizations is not related to the others. Which one? {=CIA ~OLPC ~Sugarlabs ~Red Hat} | ||
The first question is True-False. Answers are shown between braces '{ }'. The answer to a True-False question may be any of T, t, True, true, F, f, False, false. Note that, unlike the | */ | ||
</pre> | |||
The first question is True-False. Answers are shown between braces '{ }'. The answer to a True-False question may be any of T, t, True, true, F, f, False, false. Note that, unlike the other answers, an equal sign '=' is not needed. | |||
The second question is short answer. Acceptable answers (one or more) are given between braces. In this case, XO and xo will be accepted as correct. Xo and xO would be considered incorrect. | The second question is short answer. Acceptable answers (one or more) are given between braces. In this case, XO and xo will be accepted as correct. Xo and xO would be considered incorrect. | ||
| Line 466: | Line 485: | ||
The fourth question is multiple-choice. The choices are given between braces. The correct answer is indicated by the equal sign '='. The incorrect choices (distractors) are indicated by the tilde sign '~'. | The fourth question is multiple-choice. The choices are given between braces. The correct answer is indicated by the equal sign '='. The incorrect choices (distractors) are indicated by the tilde sign '~'. | ||
The quiz is created when the lesson is saved | The quiz is created when the lesson is saved. | ||
[[Image:quiz question.png]] | |||
When the student opens the lesson, there will be a 'Start' button shown on the bottom right of the screen. The screen gives information (e.g. a diagram) needed to answer the questions and/or instructions on answering the questions (e.g. round your answer to two decimal places). | |||
When the student presses the Start button, he is given the questions one at a time in the order they appear in the lesson (not randomized). | |||
This capability is based on the jquizme library. | |||
===Using Karma Templates=== | |||
When creating an activity, the teacher can choose among a menu of activity types from t00 - a basic activity | |||
to t20. | |||
[[Image:new_activity_1.png]] | |||
The activity types are: | |||
#t00 Basic - a normal textbook-style lesson with optional images, audio, or quiz components. | |||
#t01 Adding up to 10 - a Karma game which currently has no options for customization. | |||
#t02 Crossword - a crossword puzzle to find a hidden word. A teacher can create a custom crossword puzzle. | |||
#t03 Hangman - a traditional hangman. A teacher can provide the wordlist. | |||
$t04 Identification - not currently usable | |||
#t05 Mad-libs - A teacher can provide the clues and story. | |||
#t06 Matching - a Karma implementation of Concentration. The teacher can provide the words and images. | |||
#t07 Matching Pairs - a matching activity. The teacher can provide the list of matching words. | |||
#t08 Multiple-choice sentence - multiple choices for words in the sentence (e.g. is/are). The teacher can supply the word choices and sentences. | |||
#t09 Puzzle - rearrange pieces of a picture in alphabetical or numerical order to see the completed picture. The teacher can supply images. | |||
#t10 Quick Arithmetic - student is challenged to provide sums mentally. Currently customizing is not supported. | |||
#t11 Scrambled sentences - not operational | |||
#t14 Vocabulary - not operational | |||
#t15 Vocabulary with game - not operational | |||
#t16 What is this? - matching images against words. The teacher can supply words and images (images not automated). | |||
#t17 Anagram - rearrange letters to form a word naming an image. Teacher can supply words and images (images not automated). | |||
#t18 Maths introduction - not operational | |||
#t19 Maths guided practice - not operational | |||
#t20 Maths evaluation - not operational | |||
The best way to see how these activity types work is to go to the Laboratory and in any course add a milestone. | |||
Then add activities selecting the various types. The result is an example of the activity type. By entering | |||
the editmode, the source.txt file defining that activity is shown. It can be edited to make a custom version | |||
that fits the milestone. For example, a crossword could be constructed using some words from the week's vocabulary list. | |||
Most of these templates were created by Peter Gijsels in a visit to Rwanda in 2011. They illustrate how | |||
activities can be created using the Karma library and html5 web techniques (css, javascript, jquery). It is intended that this library be expanded to include more useful educational activity types. | |||
== | ===Using Sugar Activities=== | ||
The | There is currently no automated support for creating these lessons. It requires some command-line knowledge. | ||
When a lesson is opened in the edit mode, the file being edited is 'source.txt'. The first line of this file | |||
contains a directive to launch a specific Sugar activity, e.g., | |||
<!--B:TurtleArt,lines_lesson.ta,application/x-turtle-art--> | |||
For technical reasons, this line appears in the edit mode as: | |||
/*B:TurtleArt,lines_lesson.ta,application/x-turtle-art*/ | |||
The | The source.txt file uses html5 markup in which <!-- and --> enclose a comment. As a result, this line is | ||
not visible in the editor. By converting the markup to /* */, the user can create and edit this line. | |||
The B: is required to signal this comment contains a directive. There are three parts to the directive separated by commas: | |||
#name of the Sugar activity. This is the same as the name in /home/olpc/Activities minus the activity. | |||
So Turtle Art (Blocks) appears as /home/olpc/Activities/TurtleArt.activity. | |||
#file name of the activity bundle (lines_lesson.ta) including the file extension. This bundle must be in | |||
the folder for this lesson in Learn. | |||
#mime_type of the bundle. The mime_type of a bundle is given in /home/olpc/Activities/TurtleArt.activity/activity/activity.info. For 'some.activity', look in /home/olpc/Activities/some.activity/activity/activity.info. | |||
A Sugar activity can be launched as a new start by: | |||
/*B:some.activity*/ | |||
The | The Learn.activity creates a Journal object with the bundle file as data. It then resumes the activity from this Journal object. | ||
Note that not all activities are able to resume from a Journal object and not all activities support processing data files. | |||
The user needs to quit the launched activity when finished to return to the Learn activity. Sugar treats the launched activity as a window opened by Learn and so gets confused if the user tries to return to Learn via the frame. | |||
==Integration in the Karma Learning System== | ==Integration in the Karma Learning System== | ||