Kpairs Theme Schema
Marco Calignano
marco.calignano at web.de
Wed Aug 31 20:55:29 UTC 2011
On 08/31/2011 10:12 PM, Albert Astals Cid wrote:
> A Dimecres, 31 d'agost de 2011, Marco Calignano vàreu escriure:
>> Hello everyone,
> Hi
>
>> Aleix and I discussed a bit the scheme for a theme in kpairs (the new
>> name of kmemory due to trademark problem).
>> The suggestion is the following:
>>
>>
>> 1.
>> <?xml version="1.0"?>
>> 2.
>> 3.
>> <pairs>
>> 4.
>> <title>Zoo</title>
>> 5.
>> <description>Little zoo</description> <!--todo: we'll have to figure
>> out how to get this translated-->
>> 6.
>> <author>Marco Calignano</author>
>> 7.
>> <date>21/03/2012</date> <!-- can be useful for versioning?-->
> I suggest using ISO 8601 for the dates.
that's right!
>
>> 8.
>> 9.
>> <!-- we can use the same semantics as in the elements -->
>> 10.
>> <sound type='missed' src='missed.ogg' />
>> 11.
>> <sound type='found' src='found.ogg' />
>> 12.
>> <image type='back' src='zoo.svg' />
>> 13.
>> 14.
>> <main type='image' />
> What does the main tag mean? what are the acceptable values of type?
main is the first object of the pair and that is fixed. The second can
be choose between the others. For example
if main is "sound" than one card contain the sound and the other card of
the pair can contain any of the other object (word, video or image). if
main is "image" the image with pref=1 is chosen as main object.
>
>> 15.
>> 16.
>> <!-- now come the list of the elements -->
>> 17.
>> <element>
>> 18.
>> <sound src='lion.ogg' />
>> 19.
>> <video src='lion.ogv' />
>> 20.
>> <image src='lion.svg' pref='1'/>
>> 21.
>> <image src='baby_lion.svg' pref='2'/>
> What does pref mean here?
>
>> 22.
>> <word lang='en'>lion</word>
>> 23.
>> </element>
>> 24.
>> </pairs>
> Albert
> _______________________________________________
> kde-edu mailing list
> kde-edu at mail.kde.org
> https://mail.kde.org/mailman/listinfo/kde-edu
Marco
More information about the kde-edu
mailing list