4
Step-by-step guide how to create an iconset.
6
1. Create a directory, and name it somehow. For example "my-first-iconset".
8
2. Create a file named "icondef.xml" in that directory.
10
3. Place all icons and sounds you want to use in iconset, in that directory.
12
4. Start editind "icondef.xml" with your favourite XML editor.
14
5. Write the following tags in it:
15
<?xml version='1.0' encoding='UTF-8'?>
19
6. First, add the iconset meta information:
20
<?xml version='1.0' encoding='UTF-8'?>
23
<name>Iconset Name</name>
24
<version>Iconset Version</version>
25
<description>Iconset Description</description>
26
<creation>2003-01-25</creation> <!-- Creation date yyyy-mm-dd -->
27
<home>http://www.myiconsethomepage.com</home>
28
<author jid='mblsha@jabber.ru'
29
email='mblsha@spammeanddie.com'
30
www='hhtp://maz.sf.net'>Michail Pishchagin</author>
31
<author>I.M. Anonymous</author>
35
7. Now, it's time to add some icons:
36
<?xml version='1.0' encoding='UTF-8'?>
38
<meta> <!-- ... --> </meta>
43
<text xml:lang='en'>:smiley:</text>
45
<object mime='image/png'>smiley.png</object>
46
<object mime='audio/x-wav'>smiley.wav</object>
50
This iconset contains only one icon, that is associated with the following strings:
51
':-)', ':)', ':smiley:'. When it is shown on screen, it will be displayed as
52
'smiley.png' image, and will play the 'smiley.wav' sound.
54
Possible mime-types are:
56
image/png -- preferred image format
57
video/x-mng (animated format)
58
image/gif (animated format)
65
audio/x-wav -- preferred sound format, as it can be played on all Psi platforms
68
audio/x-midi -- not really supported
70
Multiple graphic mime types, and sound mime types can be specified simultaneously:
74
<object mime='image/png'>smiley.png</object>
75
<object mime='video/x-mng'>smiley.mng</object>
76
<object mime='image/gif'>smiley.gif</object>
78
<object mime='audio/x-wav'>smiley.wav</object>
79
<object mime='audio/x-ogg'>smiley.ogg</object>
83
8. Advanced Psi icon tags:
85
The following icon specifies its name. It is primately used in system Psi iconsets:
89
<object mime='image/png'>smiley.png</object>
90
<object mime='audio/x-wav'>smiley.wav</object>
92
<x xmlns='name'>emoticon/smiley</x>
96
And it can be forced for icon to be animated, or not:
100
<object mime='image/png'>connect.png</object>
102
<x xmlns='name'>psi/connect</x>
103
<x xmlns='type'>animation</x>
107
This way, icon will be animated. Animation frames are laid horizontally in that
112
<object mime='image/png'>connect.png</object>
114
<x xmlns='name'>psi/connect</x>
115
<x xmlns='type'>image</x>
119
And this way, it will be loaded as single graphic.
121
9. Packing it all together: Pack your 'my-first-iconset' directory in a
122
my-first-iconset.zip archive using your favourite archiver. Please note,
123
that name of directory and name of archive MUST be the same.
124
Then, you should rename the resulting file to my-first-iconset.jisp and
125
distribute that file.