Kpairs Theme Schema
todd rme
toddrme2178 at gmail.com
Thu Sep 1 06:06:07 UTC 2011
On Wed, Aug 31, 2011 at 8:57 PM, Marco Calignano <marco.calignano at web.de> wrote:
> <!-- now come the list of the elements -->
> <element>
> <sound src='lion.ogg' />
> <video src='lion.ogv' />
> <image src='lion.svg' pref='1'/>
> <image src='baby_lion.svg' pref='2'/>
> <word lang='en'>lion</word>
> </element>
> </pairs>
Might it be a good idea to support named categories? For example:
<sound src='lion.ogg'/>
<video src='lion.ogv' />
<image src='lion.svg'/>
<image src='baby_lion.svg' category='babies'/>
<word lang='en'>lion</word>
<word lang='en' category='babies'>cub</word>
<word lang='en' catrgory='groups'>pride</word>
It would be optional, but if the category is specified it would be
used in the title. "Main" would be the one that gets the name of the
whole theme.
So the titles that would be displayed for the categories each of the
above images uses would be, respectively:
"Zoo sounds"
"Zoo videos"
"Zoo"
"Zoo babies"
"Zoo words"
"Zoo babies words"
"Zoo groups words"
This would allow users to select specific pairs of categories.
More specifically, the naming scheme for the "main" file type (image
in this case), would be:
<theme title> <category (optional)>
And the naming scheme for other file types (words, sounds, and videos
in this case) would be:
<theme title> <category (optional)> <file type>
Of course the order would need to be localizable, since it wouldn't
necessarily be the same in all languages. There would also need to be
a way to specify translations for categories, although this would
probably be done in the initial segment of the document rather than in
each entry (since the categories should be the same).
-Todd
More information about the kde-edu
mailing list