[Xerte-dev] Re: Xerte-dev Digest, Vol 39, Issue 5

Kemp Johnathan johnathan.kemp at ntlworld.com
Fri Nov 7 23:05:14 GMT 2014


I should probably keep out of this problem, as I have not been active in
the Xerte community since the transition to html 5. However I noticed in
your example the following

"<I>This is an example of the Hotspot Image Sound Page Wizard. This Page
Wizard is not available in the Page Templates project wide template as of
October 2010.</I+> This is an enhancement of the Hotspot Image Page Wizard,
which is included in Page Templates."

This is text from a sample project I created to demonstrate the
pageWizards. So I am guessing that you are basing your development on code
I created for the pageWizard.

pageWizards were an early approach to achieving individual page templates
that I piloted in Xerte. They were superceded by later developments in
desktop Xerte. Desktop Xerte is flash based and as such is no longer under
development. All development work is now on the html5 based Xerte online
toolkits.

So can you please clarify if you are trying to do your developement in
toolkits or desktop Xerte.

If you are using desktop Xerte then it should be possible to develop an xwd
file that delivers what you want that will work in Xerte by comparing

the _hotspotImageSound.xwd file (from the PageWizardDemo project which you
can find in PageWizardDemo / pages / hotSpotImageSound folder)

with

the hotspotImage.xwd file ( which can be found in the pages / wizards /
en-gb / folder of your desktop Xerte install).

Create a new xwd file, keeping the structure of the hotspotImage.xwd file
as this will be consistent with what Xerte requires but simply add any
additional elements from the _hotspotImageSound file. change occurences in
your new file of "hotspotImage" to "hotspotImageSound".

That should give you a working starting point for an xwd file that will
generate xml content.

You will also need a model file (.rlm) file in the pages/models folder for
your new page type. Make a copy of the hotspotImage model and rename it to
match your new page type e.g. "hotspotImageSound.rlm" and remember to edit
it by replacing all occurences of "hotspotImage" with "hotspotImageSound"
so that the model file references the date from your hotspotImageSound.xml
file that will be created by the xwd file.

Then you might want to compare your hotspotImageSound.rlm file with the one
used in my original page wizard project _hotspotImageSound.rlm to assist
you with adding the functionality.

If however you are developing for Xerte online toolkits a comparison of the
xwd files I mentioned should still help but I can't help out on the html5
side of things.

Hope this helps.

If the above makes no sense to you, then just ignore this post as the
ravings of someone with fond memories for a desktop based project that is
now retired :-)

Kind regards

Johnathan

On 6 November 2014 15:51, Julian Tenney <Julian.Tenney at nottingham.ac.uk>
wrote:

> At what point do things fail? I’m looking at your screenshot, and can see
> the xml is messed up – is this when you first create an LO, or later after
> adding something?
>
>
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *sara djezar
> *Sent:* 06 November 2014 15:50
> *To:* xerte-dev at lists.nottingham.ac.uk
> *Subject:* [Xerte-dev] Re: Xerte-dev Digest, Vol 39, Issue 5
>
>
>
> yes i have used notepad++
>
>
>
> 2014-11-06 16:41 GMT+01:00 <xerte-dev-request at lists.nottingham.ac.uk>:
>
> Send Xerte-dev mailing list submissions to
>         xerte-dev at lists.nottingham.ac.uk
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
> or, via email, send a message with subject or body 'help' to
>         xerte-dev-request at lists.nottingham.ac.uk
>
> You can reach the person managing the list at
>         xerte-dev-owner at lists.nottingham.ac.uk
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Xerte-dev digest..."
>
>
> Today's Topics:
>
>    1. Re: Xerte-dev Digest, Vol 39, Issue 3 (Julian Tenney)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 6 Nov 2014 15:41:17 +0000
> From: Julian Tenney <Julian.Tenney at nottingham.ac.uk>
> To: For Xerte technical developers <xerte-dev at lists.nottingham.ac.uk>
> Subject: [Xerte-dev] Re: Xerte-dev Digest, Vol 39, Issue 3
> Message-ID:
>         <
> 12C67A1EEC419342AF5E59DA31562C3F0D99E34F63 at EXCHANGE1.ad.nottingham.ac.uk>
>
> Content-Type: text/plain; charset="utf-8"
>
> Almost certainly this is due to an error in the xml somewhere. Have you
> run it through a validator?
>
> From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of sara djezar
> Sent: 06 November 2014 15:39
> To: xerte-dev at lists.nottingham.ac.uk
> Subject: [Xerte-dev] Re: Xerte-dev Digest, Vol 39, Issue 3
>
> hi everyone  i have an other problem: i want to transforme the hotspot
> image template into hotspot image sound i have created this xml file :
> <?xml version="1.0"?>
>
> -<learningObject>
>
>
> -<hotspotImageSound align="Bottom" hicol="0xFFFF00" highlight="false"
> interactivity="Click Explore"
>                     tip="Exhibit the behaviour mind map" imageWidth="Large"
>                     url=" FileLocation + 'media/Exhibit the
> behaviour.ping'"
>                    text="<Li>Click any of the labels on the mind map to
> hear information about the topic.</Li> <Li>Make a note of any ideas that
> are new to you.</Li> <I>This is an example of the Hotspot Image Sound Page
> Wizard. This Page Wizard is not available in the Page Templates project
> wide template as of October 2010.</I+> This is an enhancement of the
> Hotspot Image Page Wizard, which is included in Page Templates. <I>The mind
> map was created using Free mind, an open source Mind Mapping program. The
> voice over was created using State from paranormal.com<
> http://paranormal.com> and Audacity to slow down the rate of speech by
> about 10%. I found that using text to speech created a consistent voice. In
> earlier projects I used live voices, which I could not later match with if
> I wanted to add further speech after the speaker was no longer
> available.</I>" linkID="">
> <hotspot text="Description for the hotspot" h="19" w="116" y="33" x="114"
>                displayText="No" name="Result of Trigger"
> audio="FileLocation + 'media/exhibit_trigger.mp3'"/>
>
> <hotspot text="Description for the hotspot" h="16" w="69" y="102" x="45"
>                displayText="No" name="Tutor trap" audio="FileLocation +
> 'media/exhibit_tutorTrap.mp3'"/>
>
> <hotspot text="Description for the hotspot" h="16" w="93" y="125" x="23"
>                displayText="No" name="Responsibility" audio="FileLocation
> + 'media/exhibit_responsibilities.mp3'"/>
>
> <hotspot text="Description for the hotspot" h="18" w="72" y="112" x="138"
>                 displayText="No" name="Outcomes" audio="FileLocation +
> 'media/exhibit_outcomes.mp3'"/>
>
> <hotspot text="Description for the hotspot" h="37" w="86" y="67" x="257"
>                 displayText="No" name="Exhibit the behaviour"
> audio="FileLocation + 'media/exhibit_exhibit.mp3'"/>
>
> <hotspot text="Description for the hotspot" h="18" w="88" y="22" x="354"
>                 displayText="No" name="Competence" audio="FileLocation +
> 'media/exhibit_competence.mp3'"/>
>
> <hotspot text="Description for the hotspot" h="18" w="62" y="112" x="379"
>                displayText="No" name="Practice" audio="FileLocation +
> 'media/exhibit_practice.mp3'"/>
>
> <hotspot text="Description for the hotspot" h="17" w="74" y="93" x="463"
> displayText="No" name="Frequency" audio="FileLocation +
> 'media/exhibit_frequency.mp3'"/>
>
> <hotspot text="Description for the hotspot" h="31" w="90" y="117" x="463"
> displayText="No" name="Sleep and performance" audio="FileLocation +
> 'media/exhibit_sleep.mp3'"/>
>
> </hotspotImageSound>
>
> </learningObject>
>
>
> and this page wizard :
>
> <wizard>
>
>   <!--HOTSPOT IMAGE
> INTERACTION----------------------------------------------------->
>   <hotspotImageSound hint="An interaction allowing you to mark up an image
> with regions and associate explanatory text with each region. The type of
> interactivity can be varied.">
>
>
>     <text type="TextArea" height="250" label="Text"/>
>     <url type="media" label="Image"/>
>     <imageWidth type="ComboBox" label="Image Width"
> options="Small,Medium,Large,Full" width="100"/>
>     <tip type="TextInput" label="Image Tooltip"/>
>     <interactivity type="ComboBox" label="Interactivity" options="Show
> Me,Click Explore" width="100"/>
>     <highlight type="CheckBox" label="Highlight Hotspots"/>
>     <hicol type="ColourPicker" label="Highlight Colour"/>
>     <align type="ComboBox" label="Align Text" options="Left,Right,Bottom"
> width="100"/>
>
>     <narration type="media" label="Narration" optional="true"/>
>
>     <newNodes>
>       <hotspot><![CDATA[<hotspot name="name" text="Description for the
> hotspot" displayText="Yes" x="0" y="0" w="100" h="100" /></hotspot>
>     </newNodes>
>
>   </hotspotImageSound>
>
>
> <!--HOTSPOT-------------------------------------------------------------------------->
>   <hotspot type="hotSpot" label="Edit Hotspot" menuItem="HotSpot"
> icon="icLayers" remove="true">
>
>     <name type="TextInput" label="Hotspot Title"/>
>     <text type="TextArea" height="250" label="Text"/>
>     <displayText type="ComboBox" label="Display Text" options="Yes,No"
> width="100"/>
>     <audio type="media" label="Sound to play" optional="true"/>
>   </hotspot>
>
> i have connected the xml file to the new template and this is my results :
>
>
>
> </wizard>
>
> 2014-11-06 13:00 GMT+01:00 <xerte-dev-request at lists.nottingham.ac.uk
> <mailto:xerte-dev-request at lists.nottingham.ac.uk>>:
> Send Xerte-dev mailing list submissions to
>         xerte-dev at lists.nottingham.ac.uk<mailto:
> xerte-dev at lists.nottingham.ac.uk>
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
> or, via email, send a message with subject or body 'help' to
>         xerte-dev-request at lists.nottingham.ac.uk<mailto:
> xerte-dev-request at lists.nottingham.ac.uk>
>
> You can reach the person managing the list at
>         xerte-dev-owner at lists.nottingham.ac.uk<mailto:
> xerte-dev-owner at lists.nottingham.ac.uk>
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Xerte-dev digest..."
>
>
> Today's Topics:
>
>    1. modification of hotspot image template (sara djezar)
>    2. liste submissions (sara djezar)
>    3. Re: modification of hotspot image template (Julian Tenney)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 5 Nov 2014 15:42:09 +0100
> From: sara djezar <djezarsara at gmail.com<mailto:djezarsara at gmail.com>>
> To: xerte-dev at lists.nottingham.ac.uk<mailto:
> xerte-dev at lists.nottingham.ac.uk>
> Subject: [Xerte-dev] modification of hotspot image template
> Message-ID:
>         <
> CACLZfoxNuMxPV_iqq_jBLTmEqkEVsXMuMjCzO-Pi6Q382T2Oqw at mail.gmail.com<mailto:
> CACLZfoxNuMxPV_iqq_jBLTmEqkEVsXMuMjCzO-Pi6Q382T2Oqw at mail.gmail.com>>
> Content-Type: text/plain; charset="utf-8"
>
> Hello developers!
>
> I need your help .
>
>  I want to make some modifications in the template ? hotspot image ?  so
> that  I can insert a text ( instead of image) and when user click in each
> area ( in this case line  ) he can see another text (definition for example
> ) .  can you help me to make the xml code please J
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20141105/9abeac2b/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Wed, 5 Nov 2014 15:46:10 +0100
> From: sara djezar <djezarsara at gmail.com<mailto:djezarsara at gmail.com>>
> To: xerte-dev at lists.nottingham.ac.uk<mailto:
> xerte-dev at lists.nottingham.ac.uk>
> Subject: [Xerte-dev] liste submissions
> Message-ID:
>         <CACLZfoz-YLePkZDS7hbxdEWgJdrXMsM6kNykOPcwj=
> 79rVBy0Q at mail.gmail.com<mailto:79rVBy0Q at mail.gmail.com>>
> Content-Type: text/plain; charset="utf-8"
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20141105/e17a38f0/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 3
> Date: Wed, 5 Nov 2014 14:52:55 +0000
> From: Julian Tenney <Julian.Tenney at nottingham.ac.uk<mailto:
> Julian.Tenney at nottingham.ac.uk>>
> To: For Xerte technical developers <xerte-dev at lists.nottingham.ac.uk
> <mailto:xerte-dev at lists.nottingham.ac.uk>>
> Subject: [Xerte-dev] Re: modification of hotspot image template
> Message-ID:
>         <
> 12C67A1EEC419342AF5E59DA31562C3F0D99E349D1 at EXCHANGE1.ad.nottingham.ac.uk
> <mailto:
> 12C67A1EEC419342AF5E59DA31562C3F0D99E349D1 at EXCHANGE1.ad.nottingham.ac.uk>>
>
> Content-Type: text/plain; charset="utf-8"
>
> Get the text you need, get a screenshot of it and turn it into an image.
> Use that in the interaction.
>
> From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk<mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of sara djezar
> Sent: 05 November 2014 14:42
> To: xerte-dev at lists.nottingham.ac.uk<mailto:
> xerte-dev at lists.nottingham.ac.uk>
> Subject: [Xerte-dev] modification of hotspot image template
>
> Hello developers!
> I need your help .
>  I want to make some modifications in the template ? hotspot image ?  so
> that  I can insert a text ( instead of image) and when user click in each
> area ( in this case line  ) he can see another text (definition for example
> ) .  can you help me to make the xml code please ?
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20141105/7c9d5fa4/attachment-0001.html
> >
>
> ------------------------------
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk>
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
>
> End of Xerte-dev Digest, Vol 39, Issue 3
> ****************************************
> 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.
>
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20141106/364304c8/attachment.html
> >
>
> ------------------------------
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
>
> End of Xerte-dev Digest, Vol 39, Issue 5
> ****************************************
> 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.
>
>
>
>
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20141107/e3ae5848/attachment-0001.html>


More information about the Xerte-dev mailing list