comparison inkscape/README.mbext @ 203:1d485bf96480

Add a sample inkscape extention to assign symbol name to an SVG element.
author wycc
date Wed, 10 Dec 2008 09:17:16 +0800
parents
children 9643d383bbb6
comparison
equal deleted inserted replaced
202:75ec0124202a 203:1d485bf96480
1 # Introduction
2
3 This is inkscape extention for the MadButteerfly. It can help users to establish SVG files which is usable for the MadButterfly SVG parser and loader.
4
5 # Requirement
6
7 The following package must be installed in your system
8 * python 2.5 or above
9 * pygtk
10 * python lxml module
11
12
13 # Installation
14
15 The installation is simple. Just copy all files to the inkscape extention directory. Usually, it should be /usr/share/inkscape/extentions.
16
17 # Usage
18
19 ## Assign an MadButterfly symbol to an element
20
21 This function will give an SVG element, such as path or group, a MadButterfly symbol so that we can access them by symbol in the MadButterfly program.
22
23 Steps
24 * Select a single object in the worksapce. If you want to assign multiple elements to one symbol, please group them.
25 * Select the effect/MadButterFly/Convert to symbol
26 * Input the symbol name in the text entry
27 * Press OK
28
29 You can check by using the XML editor in the inkscape. A new attribute mbname will be added. The MadButterfly parser willput this object into the symbol table by using the mbname.
30
31 ## Convert to button(In planned)
32
33 This function will convert a symbol into a button. A button is a symbol with three groups inside it. For example,
34
35 <g id="g1234" mbname="btn">
36 <g id="g1235" frame="active">
37 </g>
38 <g id="g1235" frame="normal">
39 </g>
40 <g id="g1236" frame="click">
41 </g>
42 </g>
43
44
45 The content of all three groups will be the same. We can modify each of them seperately. By default, the active and click group will be hidden. We can use the button editor to edit it.
46
47 ## Button editor(In planned)
48
49 This function will invoke another inkscape to edit the selected button. In the new inkscape, all three group will be visible and put in different layer. We can move them and edit them. When we close the inkscape, the MB extention will collect the new content and update the groups in the original SVG file. By this way, we can edit the button in any SVG file.
50