1 |
jpaalasm |
607 |
<?xml version="1.0"?> |
2 |
|
|
<!DOCTYPE faqlist SYSTEM "FAQ.dtd"> |
3 |
|
|
<faqlist><title>Frequently Asked Questions about Skencil</title> |
4 |
|
|
|
5 |
|
|
<section><title>About Skencil</title> |
6 |
|
|
|
7 |
|
|
<faq><title>What is Skencil?</title> |
8 |
|
|
<body> |
9 |
|
|
Skencil is an interactive vector drawing program for GNU/Linux and other |
10 |
|
|
UNIX compatible systems. Skencil is implemented almost completely in |
11 |
|
|
Python, a very high-level, object oriented, interpreted language, with |
12 |
|
|
the rest written in C for speed. |
13 |
|
|
</body> |
14 |
|
|
</faq> |
15 |
|
|
|
16 |
|
|
<faq><title>Why would I want to use Skencil? I have GIMP!</title> |
17 |
|
|
<body> |
18 |
|
|
<p>Skencil is a <em>vector drawing program</em>. That means a Skencil drawing |
19 |
|
|
is made up of shapes like rectangles, ellipses and curves that can be |
20 |
|
|
filled and stroked. Each object is represented by the mathematical |
21 |
|
|
description of its shape, e.g. for a circle they're the coordinates of |
22 |
|
|
the center point and the length of the radius. Because of this, vector |
23 |
|
|
drawings can be scaled without quality loss and it's very easy to change |
24 |
|
|
parts of a drawing.</p> |
25 |
|
|
|
26 |
|
|
<p>GIMP, on the other hand, is an <em>image manipulation program</em>. |
27 |
|
|
A GIMP image is made up of thousands of pixels and apart from layers has |
28 |
|
|
no inner structure. This representation has the advantage that you can |
29 |
|
|
easily have a lot of fine detail because each pixel can have a different |
30 |
|
|
color, but after you e.g. have drawn a line, all you have is pixels. You |
31 |
|
|
can't easily change the position or length or color of the line after |
32 |
|
|
you've drawn it. Furthermore, a raster image is always designed with one |
33 |
|
|
particular resolution in mind and scaling it often reduces its quality.</p> |
34 |
|
|
|
35 |
|
|
|
36 |
|
|
<p>Both kinds of graphics programs have their strengths and weaknesses |
37 |
|
|
and for some purposes an image manipulation program is the appropriate |
38 |
|
|
tool while for others it's the vector drawing program and often you'll |
39 |
|
|
need both.</p> |
40 |
|
|
</body> |
41 |
|
|
</faq> |
42 |
|
|
|
43 |
|
|
<faq id="Webpage"><title>Where can I find out more about Skencil?</title> |
44 |
|
|
<body> |
45 |
|
|
The best place to go for information about Skencil is its web-page at |
46 |
|
|
<a href="http://www.skencil.org/">http://www.skencil.org/</a>. |
47 |
|
|
</body> |
48 |
|
|
</faq> |
49 |
|
|
|
50 |
|
|
<faq><title>Which Platforms does Skencil work on?</title> |
51 |
|
|
<body> |
52 |
|
|
<p> |
53 |
|
|
The feedback I've got so far about other platforms indicates that Skencil |
54 |
|
|
runs on these platforms too: |
55 |
|
|
</p> |
56 |
|
|
|
57 |
|
|
<itemize> |
58 |
|
|
<item>GNU/Linux on i386, Alpha, m68k, PowerPC and Sparc</item> |
59 |
|
|
<item>FreeBSD</item> |
60 |
|
|
<item>Solaris 2.5.1, 2.6, 2.7</item> |
61 |
|
|
<item>IRIX64 6.4</item> |
62 |
|
|
<item>AIX</item> |
63 |
|
|
</itemize> |
64 |
|
|
</body> |
65 |
|
|
</faq> |
66 |
|
|
|
67 |
|
|
</section> |
68 |
|
|
|
69 |
|
|
<section><title>Troubleshooting</title> |
70 |
|
|
|
71 |
|
|
<faq> |
72 |
|
|
<title>I get the error message "ImportError: No module named Image"</title> |
73 |
|
|
<body> |
74 |
|
|
|
75 |
|
|
<p>This message usually means that the Python Imaging Library (PIL) is not |
76 |
|
|
installed on your system, so the solution is to install it.</p> |
77 |
|
|
|
78 |
|
|
<p> URLs for the sources and rpms can be found on Skencil's web-page |
79 |
|
|
(see FAQ <faqref id="Webpage"/>) and in the INSTALL file. Some Linux |
80 |
|
|
distributions already contain a suitable version of PIL although in some |
81 |
|
|
cases they're a bit buggy.</p> |
82 |
|
|
|
83 |
|
|
<p>SuSE Linux 6.2, 6.3 and 6.4, for instance, have a PIL-package, but |
84 |
|
|
it's slightly broken. The file /usr/lib/python1.5/site-packages/PIL.pth |
85 |
|
|
is missing. To fix this, create that file with just the line 'PIL' in it |
86 |
|
|
(without the quotes). (the purpose and syntax of *.pth files is |
87 |
|
|
described in /usr/lib/python1.5/site.py)</p> |
88 |
|
|
|
89 |
|
|
</body> |
90 |
|
|
</faq> |
91 |
|
|
|
92 |
|
|
<faq> |
93 |
|
|
<title>The window resizes when I drag the mouse or change the selection</title> |
94 |
|
|
<body> |
95 |
|
|
The frequent resizes are caused by the changing texts in the status bar. |
96 |
|
|
The best solution is to either use the "--geometry" command line option |
97 |
|
|
to set the size of the main window or to put an entry like |
98 |
|
|
"sketch.geometry: 900x680" into your .Xdefaults file. |
99 |
|
|
</body> |
100 |
|
|
</faq> |
101 |
|
|
|
102 |
|
|
|
103 |
|
|
</section> |
104 |
|
|
|
105 |
|
|
|
106 |
|
|
<section><title>Using Skencil</title> |
107 |
|
|
|
108 |
|
|
<faq><title>How do I import a PostScript or EPS file?</title> |
109 |
|
|
<body> |
110 |
|
|
|
111 |
|
|
<p>That depends on what you want to do exactly.</p> |
112 |
|
|
|
113 |
|
|
<p>If you want to embed an EPS file as a whole into a Skencil drawing, |
114 |
|
|
just treat it like a raster image, i.e. use the menu command |
115 |
|
|
Edit->Create->Load Image file or use the corresponding toolbar button |
116 |
|
|
which is the rightmost one.</p> |
117 |
|
|
|
118 |
|
|
<p>In this case, you get an EPS-object which Skencil displays with a |
119 |
|
|
preview image rendered by ghostscript. It behaves very much like a |
120 |
|
|
raster image, but when you output your drawing as a postscript file, the |
121 |
|
|
EPS' postscript code is copied to the output file.</p> |
122 |
|
|
|
123 |
|
|
<p>If you want to import your postscript file because you want to edit |
124 |
|
|
its contents, to change fill colors for example, you can in some |
125 |
|
|
circumstances use the normal file loading commands, i.e. File->Open or |
126 |
|
|
File->Insert Document, to achieve this. It only works if the file is |
127 |
|
|
actually an Illustrator file.</p> |
128 |
|
|
|
129 |
|
|
<p> For other postscript files, have a look at <href |
130 |
|
|
url="http://www.geocities.com/SiliconValley/Network/1958/pstoedit/" |
131 |
|
|
>pstoedit</href>. It uses ghostscript to interpret arbitrary postscript |
132 |
|
|
files and can write several vector file formats, including Skencil's own |
133 |
|
|
sk-format.</p> |
134 |
|
|
</body> |
135 |
|
|
</faq> |
136 |
|
|
|
137 |
|
|
<faq><title>How do I export a drawing as EPS?</title> |
138 |
|
|
<body> |
139 |
|
|
Just print into a file or use File->Save as PostScript in the menu. |
140 |
|
|
Skencil always generates EPS files. You don't have to do anything |
141 |
|
|
special. |
142 |
|
|
</body> |
143 |
|
|
</faq> |
144 |
|
|
|
145 |
|
|
<faq><title>How do I close a curve or polygon?</title> |
146 |
|
|
<body> |
147 |
|
|
In edit mode, select both end points and invoke the menu command |
148 |
|
|
Curve->Close Nodes. |
149 |
|
|
</body> |
150 |
|
|
</faq> |
151 |
|
|
|
152 |
|
|
<faq><title>How do I rotate an object by a precise angle?</title> |
153 |
|
|
<body> |
154 |
|
|
Skencil doesn't have a dialog for this yet, but if you want to rotate it |
155 |
|
|
by a multiple of 15 degrees, just hold control while rotating the object |
156 |
|
|
interactively. |
157 |
|
|
</body> |
158 |
|
|
</faq> |
159 |
|
|
|
160 |
|
|
<faq> |
161 |
|
|
<title>Is there a command line tool to convert sk-files to PostScript?</title> |
162 |
|
|
<body> |
163 |
|
|
Skencil comes with a script called sk2ps that does just that. It's |
164 |
|
|
automatically installed alongside Skencil and can even read all the file |
165 |
|
|
formats Skencil can read. |
166 |
|
|
</body> |
167 |
|
|
</faq> |
168 |
|
|
|
169 |
|
|
</section> |
170 |
|
|
|
171 |
|
|
<section><title>Miscellaneous</title> |
172 |
|
|
|
173 |
|
|
<faq id="FeatureRequest"> |
174 |
|
|
<title >Why doesn't Skencil have support for <some cool feature>?</title> |
175 |
|
|
<body> |
176 |
|
|
<p>Depending on what the feature in question is, there are several possible |
177 |
|
|
answers.</p> |
178 |
|
|
|
179 |
|
|
<p>The most common reason is simply that nobody has written it yet. |
180 |
|
|
There are many useful features that Skencil should have, but currently |
181 |
|
|
there's only one Programmer writing code and that severely limits what |
182 |
|
|
gets implemented and how fast.</p> |
183 |
|
|
|
184 |
|
|
<p>Of course, not every feature is useful or fits well with the goals |
185 |
|
|
of the Skencil project. However, I hope to make Skencil flexible and |
186 |
|
|
extensible enough to accommodate such features with plugins and user |
187 |
|
|
scripts.</p> |
188 |
|
|
|
189 |
|
|
<p>See also the FAQs about TrueType fonts (<faqref |
190 |
|
|
id="TrueTypeFonts"/>) and text encodings (<faqref id="Encodings"/>)</p> |
191 |
|
|
</body> |
192 |
|
|
</faq> |
193 |
|
|
|
194 |
|
|
|
195 |
|
|
<faq><title>Which font formats are supported?</title> |
196 |
|
|
<body> |
197 |
|
|
Currently, Skencil supports only Type 1 fonts. |
198 |
|
|
</body> |
199 |
|
|
</faq> |
200 |
|
|
|
201 |
|
|
|
202 |
|
|
<faq id="TrueTypeFonts"> |
203 |
|
|
<title>Why doesn't Skencil support TrueType fonts?</title> |
204 |
|
|
<body> |
205 |
|
|
<p>Well, font-handling under Linux/Unix/X is pretty complex. Applications |
206 |
|
|
have to do a lot of things themselves that should be provided by the |
207 |
|
|
'system' (whatever that means). So it's simply a lot of work and I went |
208 |
|
|
the easy route and support only Type1 fonts because X can render them |
209 |
|
|
even without any special setup and printing them is no problem because |
210 |
|
|
it's the native PostScript font format.</p> |
211 |
|
|
|
212 |
|
|
<p> Now, with FreeType and XFree 4.0, supporting TrueType fonts will |
213 |
|
|
become much easier and Skencil will support them one day.</p> |
214 |
|
|
|
215 |
|
|
<p>You may also want to have a look at the CurveText extension or the |
216 |
|
|
JapaneseText extension which let you create bezier objects based on |
217 |
|
|
TrueType fonts. Both extensions are available through the <href |
218 |
|
|
url="addon.html">add-on page</href></p> |
219 |
|
|
</body> |
220 |
|
|
</faq> |
221 |
|
|
|
222 |
|
|
<faq id="Encodings"> |
223 |
|
|
<title>Can I input text in ISO-Latin-2 or some other encoding?</title> |
224 |
|
|
<body> |
225 |
|
|
<p>Unfortunately, no. At least not in the 0.6 stable releases.</p> |
226 |
|
|
|
227 |
|
|
<p>Adding proper support for that would require a lot more work than I |
228 |
|
|
want to do for 0.6.x. It would require changes to the way events are |
229 |
|
|
handled, text objects would have to know about encodings and the |
230 |
|
|
post-script output code as well, and it would require changes to the |
231 |
|
|
file format.</p> |
232 |
|
|
|
233 |
|
|
<p>That having been said, one of the goals of the current developer |
234 |
|
|
series, 0.7, is better text support including better support for |
235 |
|
|
encodings other than ISO-Latin-1. One of the first steps will probably |
236 |
|
|
be to switch to unicode internally.</p> |
237 |
|
|
|
238 |
|
|
<p>When I added text support to Skencil, I simply chose the most simple |
239 |
|
|
way to handle encodings that would suffice for my needs and that's |
240 |
|
|
Latin-1 and some support for font-specific encodings for symbol fonts. I |
241 |
|
|
knew of course that this wouldn't be enough in the long run, especially |
242 |
|
|
with respect to non-latin scripts and multi-byte character sets, but |
243 |
|
|
having a simple implementation that works for many users is always |
244 |
|
|
better than to have no usable code because the project gets bogged down |
245 |
|
|
in a too complex design, IMO, especially in a Free Software project.</p> |
246 |
|
|
</body> |
247 |
|
|
</faq> |
248 |
|
|
|
249 |
|
|
</section> |
250 |
|
|
|
251 |
|
|
<section><title>Microsoft Windows specific issues</title> |
252 |
|
|
|
253 |
|
|
<faq id="WindowsImportError"> |
254 |
|
|
<title>I get "ImportError: DLL load failed" error message when trying to start |
255 |
|
|
the program</title> |
256 |
|
|
|
257 |
|
|
<body> |
258 |
|
|
<p>The error can be caused by missing DLL libraries or by wrong versions of |
259 |
|
|
some DLL libraries on your system.</p> |
260 |
|
|
|
261 |
|
|
<p>If the error message is e.g. "The specified procedure could not be found", |
262 |
|
|
you propably have an old version of some GTK-related DLL in your system |
263 |
|
|
directory. On Windows, DLLs are searched from system directories before PATH |
264 |
|
|
directories. That's why a wrong version of a library can get loaded. To solve |
265 |
|
|
the problem, move the offending DLL form the system directory to a non-system |
266 |
|
|
directory on PATH.</p> |
267 |
|
|
|
268 |
|
|
<p>DLL problems can usually be solved be examining PyGTK's gobject.pyd using |
269 |
|
|
<href url="http://www.dependencywalker.com">Dependency Walker</href>.</p> |
270 |
|
|
|
271 |
|
|
</body> |
272 |
|
|
</faq> |
273 |
|
|
|
274 |
|
|
</section> |
275 |
|
|
|
276 |
|
|
</faqlist> |
277 |
|
|
|
278 |
|
|
|
279 |
|
|
|