Rev 14748 | Rev 15243 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
9729 | cbradney | 1 | <?xml version="1.0" encoding="utf-8"?> |
14474 | cbradney | 2 | <!DOCTYPE TS> |
3 | <TS version="2.0"> |
||
4759 | cbradney | 4 | <context> |
12918 | cbradney | 5 | <name></name> |
1135 | cbradney | 6 | <message> |
14474 | cbradney | 7 | <location filename="../../../scribus/plugins/scriptplugin/cmdcolor.h" line="17"/> |
12918 | cbradney | 8 | <source>getColorNames() -> list |
9 | |||
10 | Returns a list containing the names of all defined colors in the document. |
||
11 | If no document is open, returns a list of the default document colors. |
||
12 | </source> |
||
13 | <translation type="unfinished">getColorNames() -> list |
||
14 | |||
15 | Повертає список імен всіх кольорів визначених в документі. |
||
16 | Якщо відкритий документ відсутній, повертає список основних |
||
17 | кольорів.</translation> |
||
18 | </message> |
||
19 | <message> |
||
14474 | cbradney | 20 | <location filename="../../../scribus/plugins/scriptplugin/cmdcolor.h" line="27"/> |
12918 | cbradney | 21 | <source>getColor("name") -> tuple |
22 | |||
23 | Returns a tuple (C, M, Y, K) containing the four color components of the |
||
24 | color "name" from the current document. If no document is open, returns |
||
25 | the value of the named color from the default document colors. |
||
26 | |||
27 | May raise NotFoundError if the named color wasn't found. |
||
28 | May raise ValueError if an invalid color name is specified. |
||
29 | </source> |
||
30 | <translation type="unfinished">getColor("name") -> tuple |
||
31 | |||
32 | Повертає тупль (C, M, Y, K), який містить чотири складових |
||
33 | кольору "name" з активного документа. Якщо не відкрито |
||
34 | жодного документа, повертає значення для названого |
||
35 | кольору з палітри стандартних кольорів. |
||
36 | |||
37 | Може повернути помилку NotFoundError, якщо названий колір не знайдено. |
||
38 | Може повернути помилку ValueError, якщо було вказано недійсне ім'я кольору. |
||
39 | </translation> |
||
40 | </message> |
||
41 | <message> |
||
14474 | cbradney | 42 | <location filename="../../../scribus/plugins/scriptplugin/cmdcolor.h" line="41"/> |
12918 | cbradney | 43 | <source>getColorAsRGB("name") -> tuple |
44 | |||
45 | Returns a tuple (R,G,B) containing the three color components of the |
||
46 | color "name" from the current document, converted to the RGB color |
||
47 | space. If no document is open, returns the value of the named color |
||
48 | from the default document colors. |
||
49 | |||
50 | May raise NotFoundError if the named color wasn't found. |
||
51 | May raise ValueError if an invalid color name is specified. |
||
52 | </source> |
||
53 | <translation type="unfinished">getColorAsRGB("name") -> тупль |
||
54 | |||
55 | Повертає тупль (R,G,B), який містить три компоненти кольору "name" з активного документа, конвертовані в кольоровий простір RGB. При відсутності активного документа повертає значення названого кольору з основної палітри кольорів. |
||
56 | |||
57 | Може повернути помилку NotFoundError, якщо названий колір не було знайдено. |
||
58 | Може повернути помилку ValueError, якщо ім'я кольору вказано неправильно. |
||
59 | </translation> |
||
60 | </message> |
||
61 | <message> |
||
62 | <source>changeColor("name", c, m, y, k) |
||
63 | |||
64 | Changes the color "name" to the specified CMYK value. The color value is |
||
65 | defined via four components c = Cyan, m = Magenta, y = Yellow and k = Black. |
||
66 | Color components should be in the range from 0 to 255. |
||
67 | |||
68 | May raise NotFoundError if the named color wasn't found. |
||
69 | May raise ValueError if an invalid color name is specified. |
||
70 | </source> |
||
15099 | cbradney | 71 | <translation type="obsolete">changeColor("name", c, m, y, k) |
12918 | cbradney | 72 | |
73 | Змінює колір "name" до вказаних значень CMYK. Значення кольору |
||
74 | визначається його чотирма компонентами c = Cyan (салатовий), |
||
75 | m = Magenta (малиновий), y = Yellow (жовтий) та k = Black (чорний). |
||
76 | Значення складових кольору повинні знаходитися в діапазоні від |
||
77 | |||
78 | |||
79 | Може повернути помилку NotFoundError, якщо названий колір не знайдено. |
||
80 | Може повернути помилку ValueError, якщо було вказано недійсне ім'я кольору. |
||
81 | </translation> |
||
82 | </message> |
||
83 | <message> |
||
15099 | cbradney | 84 | <location filename="../../../scribus/plugins/scriptplugin/cmdcolor.h" line="56"/> |
85 | <source>changeColor("name", c, m, y, k) |
||
86 | |||
87 | Changes the color "name" to the specified CMYK value. The color value is |
||
88 | defined via four components c = Cyan, m = Magenta, y = Yellow and k = Black. |
||
89 | Color components should be in the range from 0 to 255. |
||
90 | Note : deprecated, use changeColorCMYK() instead. |
||
91 | |||
92 | May raise NotFoundError if the named color wasn't found. |
||
93 | May raise ValueError if an invalid color name is specified. |
||
94 | </source> |
||
95 | <translation type="unfinished"></translation> |
||
96 | </message> |
||
97 | <message> |
||
98 | <location filename="../../../scribus/plugins/scriptplugin/cmdcolor.h" line="71"/> |
||
99 | <source>changeColorCMYK("name", c, m, y, k) |
||
100 | |||
101 | Changes the color "name" to the specified CMYK value. The color value is |
||
102 | defined via four components c = Cyan, m = Magenta, y = Yellow and k = Black. |
||
103 | Color components should be in the range from 0 to 255. |
||
104 | |||
105 | May raise NotFoundError if the named color wasn't found. |
||
106 | May raise ValueError if an invalid color name is specified. |
||
107 | </source> |
||
108 | <translation type="unfinished"></translation> |
||
109 | </message> |
||
110 | <message> |
||
111 | <location filename="../../../scribus/plugins/scriptplugin/cmdcolor.h" line="85"/> |
||
112 | <source>changeColorRGB("name", r, g, b) |
||
113 | |||
114 | Changes the color "name" to the specified RGB value. The color value is |
||
115 | defined via three components r = red, g = green, b = blue. |
||
116 | Color components should be in the range from 0 to 255. |
||
117 | |||
118 | May raise NotFoundError if the named color wasn't found. |
||
119 | May raise ValueError if an invalid color name is specified. |
||
120 | </source> |
||
121 | <translation type="unfinished"></translation> |
||
122 | </message> |
||
123 | <message> |
||
124 | <location filename="../../../scribus/plugins/scriptplugin/cmdcolor.h" line="99"/> |
||
12918 | cbradney | 125 | <source>defineColor("name", c, m, y, k) |
126 | |||
127 | Defines a new color "name". The color Value is defined via four components: |
||
128 | c = Cyan, m = Magenta, y = Yellow and k = Black. Color components should be in |
||
129 | the range from 0 to 255. |
||
15099 | cbradney | 130 | Note : deprecated, use defineColorCMYK() instead. |
12918 | cbradney | 131 | |
132 | May raise ValueError if an invalid color name is specified. |
||
133 | </source> |
||
134 | <translation type="unfinished"></translation> |
||
135 | </message> |
||
136 | <message> |
||
15099 | cbradney | 137 | <location filename="../../../scribus/plugins/scriptplugin/cmdcolor.h" line="113"/> |
138 | <source>defineColorCMYK("name", c, m, y, k) |
||
139 | |||
140 | Defines a new color "name". The color Value is defined via four components: |
||
141 | c = Cyan, m = Magenta, y = Yellow and k = Black. Color components should be in |
||
142 | the range from 0 to 255. |
||
143 | |||
144 | May raise ValueError if an invalid color name is specified. |
||
145 | </source> |
||
146 | <translation type="unfinished"></translation> |
||
147 | </message> |
||
148 | <message> |
||
149 | <location filename="../../../scribus/plugins/scriptplugin/cmdcolor.h" line="126"/> |
||
150 | <source>defineColorRGB("name", r, g, b) |
||
151 | |||
152 | Defines a new color "name". The color Value is defined via three components: |
||
153 | r = red, g = green, b = blue. Color components should be in |
||
154 | the range from 0 to 255. |
||
155 | |||
156 | May raise ValueError if an invalid color name is specified. |
||
157 | </source> |
||
158 | <translation type="unfinished"></translation> |
||
159 | </message> |
||
160 | <message> |
||
161 | <location filename="../../../scribus/plugins/scriptplugin/cmdcolor.h" line="139"/> |
||
12918 | cbradney | 162 | <source>deleteColor("name", "replace") |
163 | |||
164 | Deletes the color "name". Every occurence of that color is replaced by the |
||
165 | color "replace". If not specified, "replace" defaults to the color |
||
166 | "None" - transparent. |
||
167 | |||
168 | deleteColor works on the default document colors if there is no document open. |
||
169 | In that case, "replace", if specified, has no effect. |
||
170 | |||
171 | May raise NotFoundError if a named color wasn't found. |
||
172 | May raise ValueError if an invalid color name is specified. |
||
173 | </source> |
||
174 | <translation type="unfinished">deleteColor("name", "replace") |
||
175 | |||
176 | Видаляє колір "name". Кожний приклад цього кольору заміняється на колір |
||
177 | "replace". Якщо "replace" не вказано, то використовується колір "None" - прозорість. |
||
178 | |||
179 | deleteColor змінює стандартні кольори при відсутності відчинених документів. В |
||
180 | цьому випадку "replace", якщо вказаний, ефекту не має. |
||
181 | |||
182 | Може повернути помилку NotFoundError, якщо названий колір не знайдено. |
||
183 | Може повернути помилку ValueError, якщо було вказано недійсне ім'я кольору.</translation> |
||
184 | </message> |
||
185 | <message> |
||
15099 | cbradney | 186 | <location filename="../../../scribus/plugins/scriptplugin/cmdcolor.h" line="156"/> |
12918 | cbradney | 187 | <source>replaceColor("name", "replace") |
188 | |||
189 | Every occurence of the color "name" is replaced by the color "replace". |
||
190 | |||
191 | May raise NotFoundError if a named color wasn't found. |
||
192 | May raise ValueError if an invalid color name is specified. |
||
193 | </source> |
||
194 | <translation type="unfinished">replaceColor("name", "replace") |
||
195 | |||
196 | Кожний приклад кольору "name" заміняється на колір "replace". |
||
197 | |||
198 | Може повернути помилку NotFoundError, якщо названий колір не знайдено. |
||
199 | Може повернути помилку ValueError, якщо було вказано недійсне ім'я кольору.</translation> |
||
200 | </message> |
||
201 | <message> |
||
15099 | cbradney | 202 | <location filename="../../../scribus/plugins/scriptplugin/cmdcolor.h" line="169"/> |
14474 | cbradney | 203 | <source>isSpotColor("name") -> bool |
204 | |||
205 | Returns True if the color "name" is a spot color. |
||
206 | See also setSpotColor() |
||
207 | |||
208 | May raise NotFoundError if a named color wasn't found. |
||
209 | May raise ValueError if an invalid color name is specified. |
||
210 | </source> |
||
211 | <translation type="unfinished"></translation> |
||
212 | </message> |
||
213 | <message> |
||
15099 | cbradney | 214 | <location filename="../../../scribus/plugins/scriptplugin/cmdcolor.h" line="184"/> |
14474 | cbradney | 215 | <source>setSpotColor("name", spot) |
216 | |||
217 | Set the color "name" as a spot color if spot parameter is True. |
||
218 | See also isSpotColor() |
||
219 | |||
220 | May raise NotFoundError if a named color wasn't found. |
||
221 | May raise ValueError if an invalid color name is specified. |
||
222 | </source> |
||
223 | <translation type="unfinished"></translation> |
||
224 | </message> |
||
225 | <message> |
||
226 | <location filename="../../../scribus/plugins/scriptplugin/cmddialog.h" line="17"/> |
||
12918 | cbradney | 227 | <source>newDocDialog() -> bool |
228 | |||
229 | Displays the "New Document" dialog box. Creates a new document if the user |
||
230 | accepts the settings. Does not create a document if the user presses cancel. |
||
231 | Returns true if a new document was created. |
||
232 | </source> |
||
233 | <translation type="unfinished">newDocDialog() -> bool |
||
234 | |||
235 | Показує діалогове вікно "Новий Документ". Створює новий документ, якщо |
||
236 | користувач підтвердить установки. Не створює документ, якщо користувач |
||
237 | вибирає кнопку "Вихід". Повернене значення дорівнює булевому "так", якщо |
||
238 | документ було створено.</translation> |
||
239 | </message> |
||
240 | <message> |
||
14474 | cbradney | 241 | <location filename="../../../scribus/plugins/scriptplugin/cmddialog.h" line="28"/> |
12918 | cbradney | 242 | <source>fileDialog("caption", ["filter", "defaultname", haspreview, issave, isdir]) -> string with filename |
243 | |||
244 | Shows a File Open dialog box with the caption "caption". Files are filtered |
||
245 | with the filter string "filter". A default filename or file path can also |
||
246 | supplied, leave this string empty when you don't want to use it. A value of |
||
247 | True for haspreview enables a small preview widget in the FileSelect box. When |
||
248 | the issave parameter is set to True the dialog acts like a "Save As" dialog |
||
249 | otherwise it acts like a "File Open Dialog". When the isdir parameter is True |
||
250 | the dialog shows and returns only directories. The default for all of the |
||
251 | optional parameters is False. |
||
252 | |||
253 | The filter, if specified, takes the form 'comment (*.type *.type2 ...)'. |
||
254 | For example 'Images (*.png *.xpm *.jpg)'. |
||
255 | |||
256 | Refer to the Qt-Documentation for QFileDialog for details on filters. |
||
257 | |||
258 | Example: fileDialog('Open input', 'CSV files (*.csv)') |
||
259 | Example: fileDialog('Save report', defaultname='report.txt', issave=True) |
||
260 | </source> |
||
261 | <translation type="unfinished"></translation> |
||
262 | </message> |
||
263 | <message> |
||
14474 | cbradney | 264 | <location filename="../../../scribus/plugins/scriptplugin/cmddialog.h" line="56"/> |
12918 | cbradney | 265 | <source>messageBox("caption", "message", |
266 | icon=ICON_NONE, button1=BUTTON_OK|BUTTONOPT_DEFAULT, |
||
267 | button2=BUTTON_NONE, button3=BUTTON_NONE) -> integer |
||
268 | |||
269 | Displays a message box with the title "caption", the message "message", and |
||
270 | an icon "icon" and up to 3 buttons. By default no icon is used and a single |
||
271 | button, OK, is displayed. Only the caption and message arguments are required, |
||
272 | though setting an icon and appropriate button(s) is strongly |
||
273 | recommended. The message text may contain simple HTML-like markup. |
||
274 | |||
275 | Returns the number of the button the user pressed. Button numbers start |
||
276 | at 1. |
||
277 | |||
278 | For the icon and the button parameters there are predefined constants available |
||
279 | with the same names as in the Qt Documentation. These are the BUTTON_* and |
||
280 | ICON_* constants defined in the module. There are also two extra constants that |
||
281 | can be binary-ORed with button constants: |
||
282 | BUTTONOPT_DEFAULT Pressing enter presses this button. |
||
283 | BUTTONOPT_ESCAPE Pressing escape presses this button. |
||
284 | |||
285 | Usage examples: |
||
286 | result = messageBox('Script failed', |
||
287 | 'This script only works when you have a text frame selected.', |
||
288 | ICON_ERROR) |
||
289 | result = messageBox('Monkeys!', 'Something went ook! <i>Was it a monkey?</i>', |
||
290 | ICON_WARNING, BUTTON_YES|BUTTONOPT_DEFAULT, |
||
291 | BUTTON_NO, BUTTON_IGNORE|BUTTONOPT_ESCAPE) |
||
292 | |||
293 | Defined button and icon constants: |
||
294 | BUTTON_NONE, BUTTON_ABORT, BUTTON_CANCEL, BUTTON_IGNORE, BUTTON_NO, |
||
295 | BUTTON_NOALL, BUTTON_OK, BUTTON_RETRY, BUTTON_YES, BUTTON_YESALL, |
||
296 | ICON_NONE, ICON_INFORMATION, ICON_WARNING, ICON_CRITICAL. |
||
297 | </source> |
||
298 | <translation type="unfinished">messageBox("caption", "message", |
||
299 | icon=ICON_NONE, button1=BUTTON_OK|BUTTONOPT_DEFAULT, |
||
300 | button2=BUTTON_NONE, button3=BUTTON_NONE) -> ціле число |
||
301 | |||
302 | Показує діалогове вікно з заголовком "caption", повідомленням "message", |
||
303 | та іконкою "icon" та до 3-х кнопок. По умовчанню іконка не використовується, |
||
304 | присутня лише проста кнопка "Гаразд". Обов'язковими являються лише |
||
305 | аргументи "caption" та "message", хоча установка іконки та відповідних |
||
306 | кнопок настійливо рекомендується. Текст повідомлення може містити |
||
307 | просту розмітку по типу HTML. |
||
308 | |||
309 | Повертає номер кнопки, натиснутої користувачем. Номера кнопок |
||
310 | починаються з 1. |
||
311 | |||
312 | Для іконок та кнопок існують наперед визначені константи з іменами |
||
313 | описаними в документації по Qt. Вони включають BUTTON_* та |
||
314 | ICON_* константи, визначені в модулі. Додатково є ще дві константи, |
||
315 | для яких може бути виконана бінарна логічна операція OR з константами |
||
316 | кнопок |
||
317 | BUTTONOPT_DEFAULT Натискування клавіші "Ввід" (Enter) натискує цю кнопку. |
||
318 | BUTTONOPT_ESCAPE Натискування клавіші "Відміна" (Escape) натискує цю кнопку. |
||
319 | |||
320 | Приклади використання: |
||
321 | result = messageBox('Script failed', |
||
322 | 'Цей скрипт працює лише при наявності вибраної текстової рамки.', |
||
323 | ICON_ERROR) |
||
324 | result = messageBox('Мавпи!', 'Сталося щось негарне! <i>Це була мавпа?</i>', |
||
325 | ICON_WARNING, BUTTON_YES|BUTTONOPT_DEFAULT, |
||
326 | BUTTON_NO, BUTTON_IGNORE|BUTTONOPT_ESCAPE) |
||
327 | |||
328 | Визначені константи кнопок та іконок: |
||
329 | BUTTON_NONE, BUTTON_ABORT, BUTTON_CANCEL, BUTTON_IGNORE, BUTTON_NO, |
||
330 | BUTTON_NOALL, BUTTON_OK, BUTTON_RETRY, BUTTON_YES, BUTTON_YESALL, |
||
331 | ICON_NONE, ICON_INFORMATION, ICON_WARNING, ICON_CRITICAL.</translation> |
||
332 | </message> |
||
333 | <message> |
||
14474 | cbradney | 334 | <location filename="../../../scribus/plugins/scriptplugin/cmddialog.h" line="95"/> |
12918 | cbradney | 335 | <source>valueDialog(caption, message [,defaultvalue]) -> string |
336 | |||
337 | Shows the common 'Ask for string' dialog and returns its value as a string |
||
338 | Parameters: window title, text in the window and optional 'default' value. |
||
339 | |||
340 | Example: valueDialog('title', 'text in the window', 'optional') |
||
341 | </source> |
||
342 | <translation type="unfinished">valueDialog(caption, message [,defaultvalue]) -> строкова величина |
||
343 | |||
344 | Показує стандартний 'Введіть строкову величину' діалог та повертає |
||
345 | отримане значення, як строкову величину |
||
346 | Параметри: заголовок вікна, текст у вікні та необов'язкове 'значення |
||
347 | по умовчанню' (default). |
||
348 | |||
349 | Приклад: valueDialog('заголовок', 'текст у вікні', 'необов"язкове значення') |
||
350 | </translation> |
||
351 | </message> |
||
352 | <message> |
||
14474 | cbradney | 353 | <location filename="../../../scribus/plugins/scriptplugin/cmddialog.h" line="107"/> |
12918 | cbradney | 354 | <source>newStyleDialog() -> string |
355 | |||
356 | Shows 'Create new paragraph style' dialog. Function returns real |
||
357 | style name or None when user cancels the dialog. |
||
358 | </source> |
||
359 | <translation type="unfinished">newStyleDialog() -> string |
||
360 | |||
361 | Показує діалогове вікно "новий стиль абзацу". Функція повертає справжнє |
||
362 | ім'я стилю або None, якщо користувач відмінить діалог. |
||
363 | </translation> |
||
364 | </message> |
||
365 | <message> |
||
14474 | cbradney | 366 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="16"/> |
12918 | cbradney | 367 | <source>newDocument(size, margins, orientation, firstPageNumber, |
368 | unit, pagesType, firstPageOrder, numPages) -> bool |
||
369 | |||
370 | Creates a new document and returns true if successful. The parameters have the |
||
371 | following meaning: |
||
372 | |||
373 | size = A tuple (width, height) describing the size of the document. You can |
||
374 | use predefined constants named PAPER_<paper_type> e.g. PAPER_A4 etc. |
||
375 | |||
376 | margins = A tuple (left, right, top, bottom) describing the document |
||
377 | margins |
||
378 | |||
379 | orientation = the page orientation - constants PORTRAIT, LANDSCAPE |
||
380 | |||
381 | firstPageNumer = is the number of the first page in the document used for |
||
382 | pagenumbering. While you'll usually want 1, it's useful to have higher |
||
383 | numbers if you're creating a document in several parts. |
||
384 | |||
385 | unit: this value sets the measurement units used by the document. Use a |
||
386 | predefined constant for this, one of: UNIT_INCHES, UNIT_MILLIMETERS, |
||
387 | UNIT_PICAS, UNIT_POINTS. |
||
388 | |||
389 | pagesType = One of the predefined constants PAGE_n. PAGE_1 is single page, |
||
390 | PAGE_2 is for double sided documents, PAGE_3 is for 3 pages fold and |
||
391 | PAGE_4 is 4-fold. |
||
392 | |||
393 | firstPageOrder = What is position of first page in the document. |
||
394 | Indexed from 0 (0 = first). |
||
395 | |||
396 | numPage = Number of pages to be created. |
||
397 | |||
398 | The values for width, height and the margins are expressed in the given unit |
||
399 | for the document. PAPER_* constants are expressed in points. If your document |
||
400 | is not in points, make sure to account for this. |
||
401 | |||
402 | example: newDocument(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 7, UNIT_POINTS, |
||
403 | PAGE_4, 3, 1) |
||
404 | |||
405 | May raise ScribusError if is firstPageOrder bigger than allowed by pagesType. |
||
406 | </source> |
||
407 | <translation type="unfinished"></translation> |
||
408 | </message> |
||
409 | <message> |
||
14474 | cbradney | 410 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="62"/> |
12918 | cbradney | 411 | <source>newDoc(size, margins, orientation, firstPageNumber, |
412 | unit, facingPages, firstSideLeft) -> bool |
||
413 | |||
414 | WARNING: Obsolete procedure! Use newDocument instead. |
||
415 | |||
416 | Creates a new document and returns true if successful. The parameters have the |
||
417 | following meaning: |
||
418 | |||
419 | size = A tuple (width, height) describing the size of the document. You can |
||
420 | use predefined constants named PAPER_<paper_type> e.g. PAPER_A4 etc. |
||
421 | |||
422 | margins = A tuple (left, right, top, bottom) describing the document |
||
423 | margins |
||
424 | |||
425 | orientation = the page orientation - constants PORTRAIT, LANDSCAPE |
||
426 | |||
427 | firstPageNumer = is the number of the first page in the document used for |
||
428 | pagenumbering. While you'll usually want 1, it's useful to have higher |
||
429 | numbers if you're creating a document in several parts. |
||
430 | |||
431 | unit: this value sets the measurement units used by the document. Use a |
||
432 | predefined constant for this, one of: UNIT_INCHES, UNIT_MILLIMETERS, |
||
433 | UNIT_PICAS, UNIT_POINTS. |
||
434 | |||
435 | facingPages = FACINGPAGES, NOFACINGPAGES |
||
436 | |||
437 | firstSideLeft = FIRSTPAGELEFT, FIRSTPAGERIGHT |
||
438 | |||
439 | The values for width, height and the margins are expressed in the given unit |
||
440 | for the document. PAPER_* constants are expressed in points. If your document |
||
441 | is not in points, make sure to account for this. |
||
442 | |||
443 | example: newDoc(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 1, UNIT_POINTS, |
||
444 | FACINGPAGES, FIRSTPAGERIGHT) |
||
445 | </source> |
||
446 | <translation type="unfinished">newDoc(size, margins, orientation, firstPageNumber, |
||
447 | unit, facingPages, firstSideLeft) -> bool |
||
448 | |||
449 | ПОПЕРЕДЖЕННЯ: Застаріла процедура! Використовуйте newDocument навтомість. |
||
450 | |||
451 | Створює новий документ та повертає true після успішного завершення. |
||
452 | Розшифрування параметрів: |
||
453 | |||
454 | size (розмір) = Тупль (ширина, висота), який описує розмір документа. Ви |
||
455 | використовувати попередньо визначені константи PAPER_<paper_type>, |
||
456 | наприклад PAPER_A4 і т.п. |
||
457 | |||
458 | margins (поля) = Тупль (ліве, праве, верхнє, нижнє), який описує поля |
||
459 | документа |
||
460 | |||
461 | orientation (орієнтація) = Орієнтація - константи PORTRAIT, LANDSCAPE |
||
462 | |||
463 | firstPageNumer (номер першої сторінки) = Номер першої пронумерованої |
||
464 | сторінки в документі. Звичайно починається з 1, але можливе й використання |
||
465 | і більших чисел, наприклад при створенні документа з кількох частин. |
||
466 | |||
467 | unit (одиниця) = Це значення установлює одиниці виміру документа. Використовуйте |
||
468 | одну з попередньо визначених констант: UNIT_INCHES, UNIT_MILLIMETERS, |
||
469 | UNIT_PICAS, UNIT_POINTS. |
||
470 | |||
471 | facingPages (зеркально відображені сторінки) = FACINGPAGES, NOFACINGPAGES |
||
472 | |||
473 | firstSideLeft = FIRSTPAGELEFT, FIRSTPAGERIGHT |
||
474 | |||
475 | Значення ширини, висоти, та полів виражаються в одиницях виміру документа. Константи |
||
476 | PAPER_* виражаються в точках. Майте це на увазі, якщо Ваш документ використовує |
||
477 | інші одиниці виміру. |
||
478 | |||
479 | Приклад: newDoc(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 1, UNIT_POINTS, |
||
480 | FACINGPAGES, FIRSTPAGERIGHT) |
||
481 | </translation> |
||
482 | </message> |
||
483 | <message> |
||
14474 | cbradney | 484 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="103"/> |
12918 | cbradney | 485 | <source>closeDoc() |
486 | |||
487 | Closes the current document without prompting to save. |
||
488 | |||
489 | May throw NoDocOpenError if there is no document to close |
||
490 | </source> |
||
491 | <translation type="unfinished">closeDoc() |
||
492 | |||
493 | Зачиняє активний документ без запиту про запис. |
||
494 | |||
495 | Може повернути помилку NoDocOpenError при відсутності |
||
496 | документа для зачиняння |
||
497 | </translation> |
||
498 | </message> |
||
499 | <message> |
||
14474 | cbradney | 500 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="114"/> |
12918 | cbradney | 501 | <source>haveDoc() -> bool |
502 | |||
503 | Returns true if there is a document open. |
||
504 | </source> |
||
505 | <translation type="unfinished">haveDoc() -> булеве значення |
||
506 | |||
507 | Повертає правдиве булеве значення при |
||
508 | наявності відчиненого документа.</translation> |
||
509 | </message> |
||
510 | <message> |
||
14474 | cbradney | 511 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="123"/> |
12918 | cbradney | 512 | <source>openDoc("name") |
513 | |||
514 | Opens the document "name". |
||
515 | |||
516 | May raise ScribusError if the document could not be opened. |
||
517 | </source> |
||
518 | <translation type="unfinished">openDoc("name") |
||
519 | |||
520 | Відчиняє документ "name". |
||
521 | |||
522 | Може повернути помилку ScribusError, якщо документ не можна |
||
523 | було відчинити. |
||
524 | </translation> |
||
525 | </message> |
||
526 | <message> |
||
14474 | cbradney | 527 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="134"/> |
12918 | cbradney | 528 | <source>saveDoc() |
529 | |||
530 | Saves the current document with its current name, returns true if successful. |
||
531 | If the document has not already been saved, this may bring up an interactive |
||
532 | save file dialog. |
||
533 | |||
534 | If the save fails, there is currently no way to tell. |
||
535 | </source> |
||
536 | <translation type="unfinished">saveDoc() |
||
537 | |||
538 | Записує активний документ під його теперішнім іменем, повертає |
||
539 | правдиве булеве значення при успішному завершенні операції. |
||
540 | Якщо документ ще не був записаний, може викликати інтерактивний |
||
541 | діалог збереження файла. |
||
542 | |||
543 | В даний час неможливо визначити чи запис був успішним. |
||
544 | </translation> |
||
545 | </message> |
||
546 | <message> |
||
14474 | cbradney | 547 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="146"/> |
548 | <source>getDocName() -> string |
||
549 | |||
550 | Returns the name the document was saved under. |
||
551 | If the document was not saved before the name is empty. |
||
552 | </source> |
||
553 | <translation type="unfinished"></translation> |
||
554 | </message> |
||
555 | <message> |
||
556 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="156"/> |
||
12918 | cbradney | 557 | <source>saveDocAs("name") |
558 | |||
559 | Saves the current document under the new name "name" (which may be a full or |
||
560 | relative path). |
||
561 | |||
562 | May raise ScribusError if the save fails. |
||
563 | </source> |
||
564 | <translation type="unfinished">saveDocAs("name") |
||
565 | |||
566 | Записує активний документ під новим ім'ям "name", яке може бути |
||
567 | повним або відносним шляхом. |
||
568 | |||
569 | Може повернути помилку ScribusError, якщо запис не буде успішним. |
||
570 | </translation> |
||
571 | </message> |
||
572 | <message> |
||
14474 | cbradney | 573 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="168"/> |
12918 | cbradney | 574 | <source>setInfo("author", "info", "description") -> bool |
575 | |||
576 | Sets the document information. "Author", "Info", "Description" are |
||
577 | strings. |
||
578 | </source> |
||
579 | <translation type="unfinished"></translation> |
||
580 | </message> |
||
581 | <message> |
||
14474 | cbradney | 582 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="178"/> |
12918 | cbradney | 583 | <source>setMargins(lr, rr, tr, br) |
584 | |||
14474 | cbradney | 585 | Sets the margins of the document, Left(lr), Right(rr), Top(tr) and Bottom(br) |
12918 | cbradney | 586 | margins are given in the measurement units of the document - see UNIT_<type> |
587 | constants. |
||
588 | </source> |
||
14474 | cbradney | 589 | <translation type="unfinished">setMargins(lr, rr, tr, br) |
590 | |||
591 | Установлює поля документа, Ліве (lr), Праве (rr), Верхнє (tr) та Нижнє (br) |
||
592 | поля задаються в одиницях виміру документа - див. UNIT_<type> |
||
593 | константи. |
||
594 | </translation> |
||
595 | </message> |
||
596 | <message> |
||
597 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="189"/> |
||
598 | <source>setBaseLine(grid, offset) |
||
599 | |||
600 | Sets the base line settings of the document, grid spacing(grid), grid offset(offset). |
||
601 | Values are given in the measurement units of the document - see UNIT_<type> |
||
602 | constants. |
||
603 | </source> |
||
12918 | cbradney | 604 | <translation type="unfinished"></translation> |
605 | </message> |
||
606 | <message> |
||
14474 | cbradney | 607 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="200"/> |
12918 | cbradney | 608 | <source>setUnit(type) |
609 | |||
610 | Changes the measurement unit of the document. Possible values for "unit" are |
||
611 | defined as constants UNIT_<type>. |
||
612 | |||
613 | May raise ValueError if an invalid unit is passed. |
||
614 | </source> |
||
615 | <translation type="unfinished">setUnit(type) |
||
616 | |||
617 | Установлює одиницю виміру документа. Можливі значення для "unit" |
||
618 | визначаються як константи UNIT_<type>. |
||
619 | |||
620 | Може повернути помилку ValueError, якщо було задано невірну одиницю |
||
621 | виміру. |
||
622 | </translation> |
||
623 | </message> |
||
624 | <message> |
||
14474 | cbradney | 625 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="212"/> |
12918 | cbradney | 626 | <source>getUnit() -> integer (Scribus unit constant) |
627 | |||
628 | Returns the measurement units of the document. The returned value will be one |
||
629 | of the UNIT_* constants: |
||
630 | UNIT_INCHES, UNIT_MILLIMETERS, UNIT_PICAS, UNIT_POINTS. |
||
631 | </source> |
||
632 | <translation type="unfinished">getUnit() -> integer (Scribus unit constant) |
||
633 | |||
634 | Повертає одиниці виміру документа. Повернене значення буде однією з |
||
635 | констант UNIT_* constants: |
||
636 | UNIT_INCHES, UNIT_MILLIMETERS, UNIT_PICAS, UNIT_POINTS. |
||
637 | </translation> |
||
638 | </message> |
||
639 | <message> |
||
14474 | cbradney | 640 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="223"/> |
12918 | cbradney | 641 | <source>loadStylesFromFile("filename") |
642 | |||
643 | Loads paragraph styles from the Scribus document at "filename" into the |
||
644 | current document. |
||
645 | </source> |
||
646 | <translation type="unfinished">loadStylesFromFile("filename") |
||
647 | |||
648 | Завантажує стилі абзаців з документу Scribus "filename" в активний документ. |
||
649 | </translation> |
||
650 | </message> |
||
651 | <message> |
||
14474 | cbradney | 652 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="233"/> |
12918 | cbradney | 653 | <source>setDocType(facingPages, firstPageLeft) |
654 | |||
655 | Sets the document type. To get facing pages set the first parameter to |
||
656 | FACINGPAGES, to switch facingPages off use NOFACINGPAGES instead. If you want |
||
657 | to be the first page a left side set the second parameter to FIRSTPAGELEFT, for |
||
658 | a right page use FIRSTPAGERIGHT. |
||
659 | </source> |
||
660 | <translation type="unfinished">setDocType(facingPages, firstPageLeft) |
||
661 | |||
662 | Установлює тип документа. Для задання книжкового розташування сторінок |
||
663 | установіть перший параметр до FACINGPAGES, а для відміни замість facingPages |
||
664 | використайте NOFACINGPAGES. Щоб перша сторінка була зліва установіть |
||
665 | другий параметр до FIRSTPAGELEFT, а справа - FIRSTPAGERIGHT. |
||
666 | </translation> |
||
667 | </message> |
||
668 | <message> |
||
14474 | cbradney | 669 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="243"/> |
12918 | cbradney | 670 | <source>closeMasterPage() |
671 | |||
672 | Closes the currently active master page, if any, and returns editing |
||
673 | to normal. Begin editing with editMasterPage(). |
||
674 | </source> |
||
675 | <translation type="unfinished">closeMasterPage() |
||
676 | |||
677 | Зачиняє активну майстер сторінку, при наявності такої, та вмикає нормальний |
||
678 | режим редагування. Почніть редагування з editMasterPage(). |
||
679 | </translation> |
||
680 | </message> |
||
681 | <message> |
||
14474 | cbradney | 682 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="251"/> |
12918 | cbradney | 683 | <source>masterPageNames() |
684 | |||
685 | Returns a list of the names of all master pages in the document. |
||
686 | </source> |
||
687 | <translation type="unfinished">masterPageNames() |
||
688 | |||
689 | Повертає список імен всіх майстер сторінок документа. |
||
690 | </translation> |
||
691 | </message> |
||
692 | <message> |
||
14474 | cbradney | 693 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="258"/> |
12918 | cbradney | 694 | <source>editMasterPage(pageName) |
695 | |||
696 | Enables master page editing and opens the named master page |
||
697 | for editing. Finish editing with closeMasterPage(). |
||
698 | </source> |
||
699 | <translation type="unfinished">editMasterPage(pageName) |
||
700 | |||
701 | Дозволяє редагування майстер сторінки та відчиняє її для редагування. |
||
702 | Закінчуйте редагування з closeMasterPage(). |
||
703 | </translation> |
||
704 | </message> |
||
705 | <message> |
||
14474 | cbradney | 706 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="266"/> |
12918 | cbradney | 707 | <source>createMasterPage(pageName) |
708 | |||
709 | Creates a new master page named pageName and opens it for |
||
710 | editing. |
||
711 | </source> |
||
712 | <translation type="unfinished">createMasterPage(pageName) |
||
713 | |||
714 | Створює нову майстер сторінку з назвою pageName та відчиняє її |
||
715 | для редагування. |
||
716 | </translation> |
||
717 | </message> |
||
718 | <message> |
||
14474 | cbradney | 719 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="274"/> |
12918 | cbradney | 720 | <source>deleteMasterPage(pageName) |
721 | |||
722 | Delete the named master page. |
||
723 | </source> |
||
724 | <translation type="unfinished">deleteMasterPage(pageName) |
||
725 | |||
726 | Видаляє названу (pageName) майстер сторінку. |
||
727 | </translation> |
||
728 | </message> |
||
729 | <message> |
||
14474 | cbradney | 730 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="17"/> |
15099 | cbradney | 731 | <source>getObjectType(["name"]) -> string |
732 | |||
733 | Get type of object "name" as a string. |
||
734 | </source> |
||
735 | <translation type="unfinished"></translation> |
||
736 | </message> |
||
737 | <message> |
||
738 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="26"/> |
||
12918 | cbradney | 739 | <source>getFillColor(["name"]) -> string |
740 | |||
741 | Returns the name of the fill color of the object "name". |
||
742 | If "name" is not given the currently selected item is used. |
||
743 | </source> |
||
744 | <translation type="unfinished">getFillColor(["name"]) -> string |
||
745 | |||
746 | Повертає ім'я кольору заповнення об'єкту під назвою 'name'. |
||
747 | Якщо "name" не дано, то використовується активний об'єкт.</translation> |
||
748 | </message> |
||
749 | <message> |
||
15099 | cbradney | 750 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="36"/> |
12918 | cbradney | 751 | <source>getFillTransparency(["name"]) -> float |
752 | |||
753 | Returns the fill transparency of the object "name". If "name" |
||
754 | is not given the currently selected Item is used. |
||
755 | </source> |
||
756 | <translation type="unfinished"></translation> |
||
757 | </message> |
||
758 | <message> |
||
15099 | cbradney | 759 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="46"/> |
12918 | cbradney | 760 | <source>getFillBlendmode(["name"]) -> integer |
761 | |||
762 | Returns the fill blendmode of the object "name". If "name" |
||
763 | is not given the currently selected Item is used. |
||
764 | </source> |
||
765 | <translation type="unfinished"></translation> |
||
766 | </message> |
||
767 | <message> |
||
15099 | cbradney | 768 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="56"/> |
12918 | cbradney | 769 | <source>getLineColor(["name"]) -> string |
770 | |||
771 | Returns the name of the line color of the object "name". |
||
772 | If "name" is not given the currently selected item is used. |
||
773 | </source> |
||
774 | <translation type="unfinished">getLineColor(["name"]) -> строкове значення |
||
775 | |||
776 | Повертає назву кольорі ліній об'єкту "name". |
||
777 | Якщо "name" не задано, буде використано активний об'єкт. |
||
778 | </translation> |
||
779 | </message> |
||
780 | <message> |
||
15099 | cbradney | 781 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="66"/> |
12918 | cbradney | 782 | <source>getLineTransparency(["name"]) -> float |
783 | |||
784 | Returns the line transparency of the object "name". If "name" |
||
785 | is not given the currently selected Item is used. |
||
786 | </source> |
||
787 | <translation type="unfinished"></translation> |
||
788 | </message> |
||
789 | <message> |
||
15099 | cbradney | 790 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="76"/> |
12918 | cbradney | 791 | <source>getLineBlendmode(["name"]) -> integer |
792 | |||
793 | Returns the line blendmode of the object "name". If "name" |
||
794 | is not given the currently selected Item is used. |
||
795 | </source> |
||
796 | <translation type="unfinished"></translation> |
||
797 | </message> |
||
798 | <message> |
||
15099 | cbradney | 799 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="86"/> |
12918 | cbradney | 800 | <source>getLineWidth(["name"]) -> integer |
801 | |||
802 | Returns the line width of the object "name". If "name" |
||
803 | is not given the currently selected Item is used. |
||
804 | </source> |
||
805 | <translation type="unfinished">getLineWidth(["name"]) -> ціле число |
||
806 | |||
807 | Повертає товщину лінії об'єкта "name". Якщо "name" |
||
808 | не задано, буде використано активний об'єкт. |
||
809 | </translation> |
||
810 | </message> |
||
811 | <message> |
||
15099 | cbradney | 812 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="96"/> |
12918 | cbradney | 813 | <source>getLineShade(["name"]) -> integer |
814 | |||
815 | Returns the shading value of the line color of the object "name". |
||
816 | If "name" is not given the currently selected item is used. |
||
817 | </source> |
||
818 | <translation type="unfinished">getLineShade(["name"]) -> ціле число |
||
819 | |||
820 | Повертає значення затінення об'єкта "name". |
||
821 | Якщо "name" не задано, буде використано активний об'єкт. |
||
822 | </translation> |
||
823 | </message> |
||
824 | <message> |
||
15099 | cbradney | 825 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="106"/> |
12918 | cbradney | 826 | <source>getLineJoin(["name"]) -> integer (see constants) |
827 | |||
828 | Returns the line join style of the object "name". If "name" is not given |
||
829 | the currently selected item is used. The join types are: |
||
830 | JOIN_BEVEL, JOIN_MITTER, JOIN_ROUND |
||
831 | </source> |
||
832 | <translation type="unfinished"></translation> |
||
833 | </message> |
||
834 | <message> |
||
15099 | cbradney | 835 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="117"/> |
12918 | cbradney | 836 | <source>getLineEnd(["name"]) -> integer (see constants) |
837 | |||
838 | Returns the line cap style of the object "name". If "name" is not given the |
||
839 | currently selected item is used. The cap types are: |
||
840 | CAP_FLAT, CAP_ROUND, CAP_SQUARE |
||
841 | </source> |
||
842 | <translation type="unfinished">getLineEnd(["name"]) -> ціле число (див. умови) |
||
843 | |||
844 | Повертає стиль кінців ліній об'єкта "name". Якщо "name" не |
||
845 | задано, буде використано активний об'єкт. Типи кінців: |
||
846 | CAP_FLAT (плаский), CAP_ROUND (заокруглений), CAP_SQUARE (квадратний) |
||
847 | </translation> |
||
848 | </message> |
||
849 | <message> |
||
15099 | cbradney | 850 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="128"/> |
12918 | cbradney | 851 | <source>getLineStyle(["name"]) -> integer (see constants) |
852 | |||
853 | Returns the line style of the object "name". If "name" is not given the |
||
854 | currently selected item is used. Line style constants are: |
||
855 | LINE_DASH, LINE_DASHDOT, LINE_DASHDOTDOT, LINE_DOT, LINE_SOLID |
||
856 | </source> |
||
857 | <translation type="unfinished">getLineStyle(["name"]) -> ціле число (див. обмеження) |
||
858 | |||
859 | Повертає стиль ліній об'єкта "name". Якщо "name" не задано, буде |
||
860 | використано активний об'єкт. Обмеження типів ліній: |
||
861 | LINE_DASH (пунктирна), LINE_DASHDOT (пунктир-крапка), |
||
862 | LINE_DASHDOTDOT (пунктир-крапка-крапка), LINE_DOT (крапка), |
||
863 | LINE_SOLID (суцільна) |
||
864 | </translation> |
||
865 | </message> |
||
866 | <message> |
||
15099 | cbradney | 867 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="139"/> |
12918 | cbradney | 868 | <source>getFillShade(["name"]) -> integer |
869 | |||
870 | Returns the shading value of the fill color of the object "name". |
||
871 | If "name" is not given the currently selected item is used. |
||
872 | </source> |
||
873 | <translation type="unfinished">getFillShade(["name"]) -> integer |
||
874 | |||
875 | Повертає значення затінення кольору заповнення об'єкта "name". |
||
876 | Якщо "name" не задано, буде використано активний об'єкт. |
||
877 | </translation> |
||
878 | </message> |
||
879 | <message> |
||
15099 | cbradney | 880 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="149"/> |
12918 | cbradney | 881 | <source>getCornerRadius(["name"]) -> integer |
882 | |||
883 | Returns the corner radius of the object "name". The radius is |
||
884 | expressed in points. If "name" is not given the currently |
||
885 | selected item is used. |
||
886 | </source> |
||
887 | <translation type="unfinished"></translation> |
||
888 | </message> |
||
889 | <message> |
||
15099 | cbradney | 890 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="160"/> |
12918 | cbradney | 891 | <source>getImageScale(["name"]) -> (x,y) |
892 | |||
893 | Returns a (x, y) tuple containing the scaling values of the image frame |
||
894 | "name". If "name" is not given the currently selected item is used. |
||
895 | </source> |
||
896 | <translation type="unfinished">getImageScale(["name"]) -> (x,y) |
||
897 | |||
898 | Повертає тупль (x, y), який містить значення масштабу рамки для зображень |
||
899 | "name". Якщо "name" не задано, буде використано активний об'єкт. |
||
900 | </translation> |
||
901 | </message> |
||
902 | <message> |
||
15099 | cbradney | 903 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="170"/> |
12918 | cbradney | 904 | <source>getImageName(["name"]) -> string |
905 | |||
906 | Returns the filename for the image in the image frame. If "name" is not |
||
907 | given the currently selected item is used. |
||
908 | </source> |
||
909 | <translation type="unfinished">getImageName(["name"]) -> строкове значення |
||
910 | |||
911 | Повертає ім'я файла для зображення в рамці для зображень. Якщо "name" |
||
912 | не задано, буде використано активний об'єкт. |
||
913 | </translation> |
||
914 | </message> |
||
915 | <message> |
||
15099 | cbradney | 916 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="180"/> |
12918 | cbradney | 917 | <source>getPosition(["name"]) -> (x,y) |
918 | |||
919 | Returns a (x, y) tuple with the position of the object "name". |
||
920 | If "name" is not given the currently selected item is used. |
||
921 | The position is expressed in the actual measurement unit of the document |
||
922 | - see UNIT_<type> for reference. |
||
923 | </source> |
||
924 | <translation type="unfinished"></translation> |
||
925 | </message> |
||
926 | <message> |
||
15099 | cbradney | 927 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="192"/> |
12918 | cbradney | 928 | <source>getSize(["name"]) -> (width,height) |
929 | |||
930 | Returns a (width, height) tuple with the size of the object "name". |
||
931 | If "name" is not given the currently selected item is used. The size is |
||
932 | expressed in the current measurement unit of the document - see UNIT_<type> |
||
933 | for reference. |
||
934 | </source> |
||
935 | <translation type="unfinished">getSize(["name"]) -> (ширина,висота) |
||
936 | |||
937 | Повертає тупль (ширина,висота) з розміром об'єкта "name". |
||
938 | Якщо "name" не задано, буде використано активний об'єкт. Розмір |
||
939 | виражається в активних одиницях виміру документа - див. UNIT_<type> |
||
940 | для подальшої інформації. |
||
941 | </translation> |
||
942 | </message> |
||
943 | <message> |
||
15099 | cbradney | 944 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="204"/> |
12918 | cbradney | 945 | <source>getRotation(["name"]) -> integer |
946 | |||
947 | Returns the rotation of the object "name". The value is expressed in degrees, |
||
948 | and clockwise is positive. If "name" is not given the currently selected item |
||
949 | is used. |
||
950 | </source> |
||
951 | <translation type="unfinished">getRotation(["name"]) -> ціле число |
||
952 | |||
953 | Повертає кут повороту об'єкта "name". Значення виражається в градусах |
||
954 | і поворот по часовії стрілці є позитивним. Якщо "name" не задано, буде |
||
955 | використано активний об'єкт. |
||
956 | </translation> |
||
957 | </message> |
||
958 | <message> |
||
15099 | cbradney | 959 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="215"/> |
12918 | cbradney | 960 | <source>getAllObjects() -> list |
961 | |||
962 | Returns a list containing the names of all objects on the current page. |
||
963 | </source> |
||
964 | <translation type="unfinished">getAllObjects() -> список |
||
965 | |||
966 | Повертає список, що містить імена всіх об'єктів на активній сторінці. |
||
967 | </translation> |
||
968 | </message> |
||
969 | <message> |
||
14474 | cbradney | 970 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetsetprop.h" line="77"/> |
12918 | cbradney | 971 | <source>getPropertyCType(object, property, includesuper=True) |
972 | |||
973 | Returns the name of the C type of `property' of `object'. See getProperty() |
||
974 | for details of arguments. |
||
975 | |||
976 | If `includesuper' is true, search inherited properties too. |
||
977 | </source> |
||
978 | <translation type="unfinished">getPropertyCType(object, property, includesuper=True) |
||
979 | |||
980 | Повертає назву типу С для атрибута `property' об'єкта `object'. Див. getProperty() |
||
981 | для додаткової інформації про атрибути. |
||
982 | |||
983 | Якщо `includesuper' дорівнює true - також шукати наслідкові атрибути. |
||
984 | </translation> |
||
985 | </message> |
||
986 | <message> |
||
14474 | cbradney | 987 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetsetprop.h" line="96"/> |
12918 | cbradney | 988 | <source>getPropertyNames(object, includesuper=True) |
989 | |||
990 | Return a list of property names supported by `object'. |
||
991 | If `includesuper' is true, return properties supported |
||
992 | by parent classes as well. |
||
993 | </source> |
||
994 | <translation type="unfinished">getPropertyNames(object, includesuper=True) |
||
995 | |||
996 | Повертає лист назв атрибутів, які підтримує об'єкт `object'. |
||
997 | Якщо `includesuper' дорівнює true, також повернути атрибути, які підтримуються батьківськими класами. |
||
998 | </translation> |
||
999 | </message> |
||
1000 | <message> |
||
14474 | cbradney | 1001 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetsetprop.h" line="123"/> |
12918 | cbradney | 1002 | <source>getProperty(object, property) |
1003 | |||
1004 | Return the value of the property `property' of the passed `object'. |
||
1005 | |||
1006 | The `object' argument may be a string, in which case the named PageItem |
||
1007 | is searched for. It may also be a PyCObject, which may point to any |
||
1008 | C++ QObject instance. |
||
1009 | |||
1010 | The `property' argument must be a string, and is the name of the property |
||
1011 | to look up on `object'. |
||
1012 | |||
1013 | The return value varies depending on the type of the property. |
||
1014 | </source> |
||
1015 | <translation type="unfinished">getProperty(object, property) |
||
1016 | |||
1017 | Повертає значення атрибута `property' переданого об'єкта `object'. |
||
1018 | |||
1019 | Аргумент `object' може бути строковою величиною. В цьому випадку буде шукатися названий об'єкт PageItem. Він також може бути об'єктом PyCObject, який може вказувати на любий екземпляр C++ QObject. |
||
1020 | |||
1021 | Аргумент `property' повинен бути строковою величиною і являється назвою атрибута об'єкта `object'. |
||
1022 | |||
1023 | Повернене значення залежить від типу атрибута. |
||
1024 | </translation> |
||
1025 | </message> |
||
1026 | <message> |
||
14474 | cbradney | 1027 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetsetprop.h" line="158"/> |
12918 | cbradney | 1028 | <source>setProperty(object, property, value) |
1029 | |||
1030 | Set `property' of `object' to `value'. If `value' cannot be converted to a type |
||
1031 | compatible with the type of `property', an exception is raised. An exception may |
||
1032 | also be raised if the underlying setter fails. |
||
1033 | |||
1034 | See getProperty() for more information. |
||
1035 | </source> |
||
1036 | <translation type="unfinished">setProperty(object, property, value) |
||
1037 | |||
1038 | Установити `property' об'єкта `object' до значення `value'. Якщо `value' не може бути конвертоване в тип сумісний з типом `property' - буде повернена помилка. Помилка може бути також повернена, якщо послідуюча установлююча функція не буде успішно виконана. |
||
1039 | |||
1040 | Дивіться getProperty() для додаткової інформації. |
||
1041 | </translation> |
||
1042 | </message> |
||
1043 | <message> |
||
14474 | cbradney | 1044 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="17"/> |
12918 | cbradney | 1045 | <source>moveObject(dx, dy [, "name"]) |
1046 | |||
1047 | Moves the object "name" by dx and dy relative to its current position. The |
||
1048 | distances are expressed in the current measurement unit of the document (see |
||
1049 | UNIT constants). If "name" is not given the currently selected item is used. |
||
1050 | If the object "name" belongs to a group, the whole group is moved. |
||
1051 | </source> |
||
1052 | <translation type="unfinished">moveObject(dx, dy [, "name"]) |
||
1053 | |||
1054 | Зсовує об'єкт "name" на dx і dy відносно до його теперішньої позиції. Відстані |
||
1055 | визначаються активними одиницями виміру документа (див. константи Юнікс). |
||
1056 | Якщо "name" не дано, то використовується активний об'єкт. Якщо об'єкт "name" |
||
1057 | належить до групи, то рухається вся група. |
||
1058 | </translation> |
||
1059 | </message> |
||
1060 | <message> |
||
14474 | cbradney | 1061 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="29"/> |
12918 | cbradney | 1062 | <source>moveObjectAbs(x, y [, "name"]) |
1063 | |||
1064 | Moves the object "name" to a new location. The coordinates are expressed in |
||
1065 | the current measurement unit of the document (see UNIT constants). If "name" |
||
1066 | is not given the currently selected item is used. If the object "name" |
||
1067 | belongs to a group, the whole group is moved. |
||
1068 | </source> |
||
1069 | <translation type="unfinished">moveObjectAbs(x, y [, "name"]) |
||
1070 | |||
1071 | Переміщує об'єкт "name" в нове місце. Координати виражаються в |
||
1072 | активних одиницях виміру документа (див. константи UNIT). Якщо |
||
1073 | "name" не задано, буде використано активний об'єкт. Якщо об'єкт |
||
1074 | "name" є частиною групи, переміщається вся група. |
||
1075 | </translation> |
||
1076 | </message> |
||
1077 | <message> |
||
14474 | cbradney | 1078 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="41"/> |
12918 | cbradney | 1079 | <source>rotateObject(rot [, "name"]) |
1080 | |||
1081 | Rotates the object "name" by "rot" degrees relatively. The object is |
||
1082 | rotated by the vertex that is currently selected as the rotation point - by |
||
1083 | default, the top left vertex at zero rotation. Positive values mean counter |
||
1084 | clockwise rotation when the default rotation point is used. If "name" is not |
||
1085 | given the currently selected item is used. |
||
1086 | </source> |
||
1087 | <translation type="unfinished"></translation> |
||
1088 | </message> |
||
1089 | <message> |
||
14474 | cbradney | 1090 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="54"/> |
12918 | cbradney | 1091 | <source>rotateObjectAbs(rot [, "name"]) |
1092 | |||
1093 | Sets the rotation of the object "name" to "rot". Positive values |
||
1094 | mean counter clockwise rotation. If "name" is not given the currently |
||
1095 | selected item is used. |
||
1096 | </source> |
||
1097 | <translation type="unfinished"></translation> |
||
1098 | </message> |
||
1099 | <message> |
||
14474 | cbradney | 1100 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="65"/> |
12918 | cbradney | 1101 | <source>sizeObject(width, height [, "name"]) |
1102 | |||
1103 | Resizes the object "name" to the given width and height. If "name" |
||
1104 | is not given the currently selected item is used. |
||
1105 | </source> |
||
1106 | <translation type="unfinished">sizeObject(ширина, висота [, "name"]) |
||
1107 | |||
1108 | Змінює розмір об'єкта "name" до вказаної висоти та ширини. Якщо |
||
1109 | "name" не задано, буде використано активний об'єкт. |
||
1110 | </translation> |
||
1111 | </message> |
||
1112 | <message> |
||
14474 | cbradney | 1113 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="75"/> |
12918 | cbradney | 1114 | <source>getSelectedObject([nr]) -> string |
1115 | |||
1116 | Returns the name of the selected object. "nr" if given indicates the number |
||
1117 | of the selected object, e.g. 0 means the first selected object, 1 means the |
||
1118 | second selected Object and so on. |
||
1119 | </source> |
||
1120 | <translation type="unfinished">getSelectedObject([nr]) -> строкова величина |
||
1121 | |||
1122 | Повертає ім'я вибраного об'єкта. "nr", якщо задано, вказує на індекс |
||
1123 | вибраного об'єкта, напр. 0 означає перший вибраний об'єкт, 1 означає |
||
1124 | другий вибраний об'єкт і так далі. |
||
1125 | </translation> |
||
1126 | </message> |
||
1127 | <message> |
||
14474 | cbradney | 1128 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="86"/> |
12918 | cbradney | 1129 | <source>selectionCount() -> integer |
1130 | |||
1131 | Returns the number of selected objects. |
||
1132 | </source> |
||
1133 | <translation type="unfinished">selectionCount() -> ціле число |
||
1134 | |||
1135 | Повертає число вибраних об'єктів. |
||
1136 | </translation> |
||
1137 | </message> |
||
1138 | <message> |
||
14474 | cbradney | 1139 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="95"/> |
12918 | cbradney | 1140 | <source>selectObject("name") |
1141 | |||
1142 | Selects the object with the given "name". |
||
1143 | </source> |
||
1144 | <translation type="unfinished">selectObject("name") |
||
1145 | |||
1146 | Повертає об'єкт з даним іменем "name". |
||
1147 | </translation> |
||
1148 | </message> |
||
1149 | <message> |
||
14474 | cbradney | 1150 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="104"/> |
12918 | cbradney | 1151 | <source>deselectAll() |
1152 | |||
1153 | Deselects all objects in the whole document. |
||
1154 | </source> |
||
1155 | <translation type="unfinished">deselectAll() |
||
1156 | |||
1157 | Відмінює вибір всіх об'єктів у всьому документі. |
||
1158 | </translation> |
||
1159 | </message> |
||
1160 | <message> |
||
14474 | cbradney | 1161 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="113"/> |
14747 | cbradney | 1162 | <source>groupObjects(list) -> string |
1163 | |||
1164 | Groups the objects named in "list" together. "list" must contain the names |
||
1165 | of the objects to be grouped. If "list" is not given the currently selected |
||
1166 | items are used. Returns the group name for further referencing. |
||
1167 | </source> |
||
1168 | <translation type="unfinished"></translation> |
||
1169 | </message> |
||
1170 | <message> |
||
15099 | cbradney | 1171 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="200"/> |
1172 | <source>setImageBrightness(n [, "name"]) |
||
1173 | |||
1174 | Set image brightness effect of the picture in the image frame "name". |
||
1175 | If "name" is not given the currently selected item is used. A number of 1 |
||
1176 | means 100 %. Brightness factor is equal to the value shown on properties palette. |
||
1177 | |||
1178 | May raise WrongFrameTypeError if the target frame is not an image frame |
||
1179 | </source> |
||
1180 | <translation type="unfinished"></translation> |
||
1181 | </message> |
||
1182 | <message> |
||
1183 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="213"/> |
||
1184 | <source>setImageGrayscale(["name"]) |
||
1185 | |||
1186 | Set image grayscale effect of the picture in the image frame "name". |
||
1187 | If "name" is not given the currently selected item is used. |
||
1188 | |||
1189 | May raise WrongFrameTypeError if the target frame is not an image frame |
||
1190 | </source> |
||
1191 | <translation type="unfinished"></translation> |
||
1192 | </message> |
||
1193 | <message> |
||
12918 | cbradney | 1194 | <source>groupObjects(list) |
1195 | |||
1196 | Groups the objects named in "list" together. "list" must contain the names |
||
1197 | of the objects to be grouped. If "list" is not given the currently selected |
||
1198 | items are used. |
||
1199 | </source> |
||
14747 | cbradney | 1200 | <translation type="obsolete">groupObjects(list) |
12918 | cbradney | 1201 | |
1202 | Згруповує об'єкти названі в списку "list". "list" повинен містити імена |
||
1203 | об'єктів, які будуть згруповані. Якщо "list" не задано, буде |
||
1204 | використано активний об'єкт. |
||
1205 | </translation> |
||
1206 | </message> |
||
1207 | <message> |
||
14474 | cbradney | 1208 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="124"/> |
12918 | cbradney | 1209 | <source>unGroupObjects("name") |
1210 | |||
1211 | Destructs the group the object "name" belongs to.If "name" is not given the currently selected item is used.</source> |
||
1212 | <translation type="unfinished">unGroupObjects("name") |
||
1213 | |||
1214 | Видаляє групу, яка містить об'єкт з іменем "name". Якщо "name" не задано, |
||
1215 | буде використано активний об'єкт.</translation> |
||
1216 | </message> |
||
1217 | <message> |
||
14474 | cbradney | 1218 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="132"/> |
12918 | cbradney | 1219 | <source>scaleGroup(factor [,"name"]) |
1220 | |||
1221 | Scales the group the object "name" belongs to. Values greater than 1 enlarge |
||
1222 | the group, values smaller than 1 make the group smaller e.g a value of 0.5 |
||
1223 | scales the group to 50 % of its original size, a value of 1.5 scales the group |
||
1224 | to 150 % of its original size. The value for "factor" must be greater than |
||
1225 | 0. If "name" is not given the currently selected item is used. |
||
1226 | |||
1227 | May raise ValueError if an invalid scale factor is passed. |
||
1228 | </source> |
||
1229 | <translation type="unfinished">scaleGroup(factor [,"name"]) |
||
1230 | |||
1231 | Змінює розмір групи, яка містить об'єкт "name". Значення понад 1 збільшують |
||
1232 | розмір, а значення менші за 1 його зменшують, напр. значення 0.5 змінює |
||
1233 | розмір групи до 50 % початкового, а значення 1.5 змінює розмір до 150 % |
||
1234 | початкового. Значення "factor" повинне бути більшим за 0. Якщо "name" не |
||
1235 | задано, буде використано активний об'єкт. |
||
1236 | |||
1237 | Може повернути помилку ValueError, якщо задано недійсний фактор масштабу. |
||
1238 | </translation> |
||
1239 | </message> |
||
1240 | <message> |
||
14474 | cbradney | 1241 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="147"/> |
12918 | cbradney | 1242 | <source>loadImage("filename" [, "name"]) |
1243 | |||
1244 | Loads the picture "picture" into the image frame "name". If "name" is |
||
1245 | not given the currently selected item is used. |
||
1246 | |||
1247 | May raise WrongFrameTypeError if the target frame is not an image frame |
||
1248 | </source> |
||
1249 | <translation type="unfinished">loadImage("filename" [, "name"]) |
||
1250 | |||
1251 | Завантажує зображення "picture" в рамку для зображень "name". Якщо |
||
1252 | "name" не задано, буде використано активний об'єкт. |
||
1253 | |||
1254 | Може повернути помилку WrongFrameTypeError, якщо рамка не є рамкою |
||
1255 | для зображень |
||
1256 | </translation> |
||
1257 | </message> |
||
1258 | <message> |
||
14474 | cbradney | 1259 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="159"/> |
12918 | cbradney | 1260 | <source>scaleImage(x, y [, "name"]) |
1261 | |||
14474 | cbradney | 1262 | Sets the internal scaling factors of the picture in the image frame "name". |
1263 | If "name" is not given the currently selected item is used. A number of 1 |
||
1264 | means 100 %. Internal scaling factors are different from the values shown on |
||
1265 | properties palette. Note : deprecated, use setImageScale() instead. |
||
1266 | |||
1267 | May raise WrongFrameTypeError if the target frame is not an image frame |
||
1268 | </source> |
||
1269 | <translation type="unfinished"></translation> |
||
1270 | </message> |
||
1271 | <message> |
||
1272 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="173"/> |
||
15099 | cbradney | 1273 | <source>setImageOffset(x, y [, "name"]) |
1274 | |||
1275 | Sets the position of the picture in the image frame "name". |
||
1276 | If "name" is not given the currently selected item is used. |
||
1277 | The specified offset values are equal to the values shown on |
||
1278 | properties palette when point unit is used. |
||
1279 | |||
1280 | May raise WrongFrameTypeError if the target frame is not an image frame |
||
1281 | </source> |
||
1282 | <translation type="unfinished"></translation> |
||
1283 | </message> |
||
1284 | <message> |
||
1285 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="187"/> |
||
14474 | cbradney | 1286 | <source>setImageScale(x, y [, "name"]) |
1287 | |||
12918 | cbradney | 1288 | Sets the scaling factors of the picture in the image frame "name". |
1289 | If "name" is not given the currently selected item is used. A number of 1 |
||
14474 | cbradney | 1290 | means 100 %. Scaling factors are equal to the values shown on properties palette. |
1291 | |||
1292 | May raise WrongFrameTypeError if the target frame is not an image frame |
||
1293 | </source> |
||
1294 | <translation type="unfinished"></translation> |
||
1295 | </message> |
||
1296 | <message> |
||
1297 | <source>scaleImage(x, y [, "name"]) |
||
1298 | |||
1299 | Sets the scaling factors of the picture in the image frame "name". |
||
1300 | If "name" is not given the currently selected item is used. A number of 1 |
||
12918 | cbradney | 1301 | means 100 %. |
1302 | |||
1303 | May raise WrongFrameTypeError if the target frame is not an image frame |
||
1304 | </source> |
||
13279 | cbradney | 1305 | <translation type="obsolete">scaleImage(x, y [, "name"]) |
12918 | cbradney | 1306 | |
1307 | Установлює масштаб зображення в рамці для зображень "name". |
||
1308 | Якщо "name" не задано, буде використано активний об'єкт. Число 1 |
||
1309 | дорівнює 100 %. |
||
1310 | |||
1311 | Може повернути помилку WrongFrameTypeError, якщо рамка не є |
||
1312 | рамкою для зображень |
||
1313 | </translation> |
||
1314 | </message> |
||
1315 | <message> |
||
15099 | cbradney | 1316 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="225"/> |
12918 | cbradney | 1317 | <source>lockObject(["name"]) -> bool |
1318 | |||
1319 | Locks the object "name" if it's unlocked or unlock it if it's locked. |
||
1320 | If "name" is not given the currently selected item is used. Returns true |
||
1321 | if locked. |
||
1322 | </source> |
||
1323 | <translation type="unfinished">lockObject(["name"]) -> bool |
||
1324 | |||
1325 | Замикає об'єкт "name", якщо він незамкнений, і навпаки. Якщо |
||
1326 | "name" не задано, буде використано активний об'єкт. Повертає |
||
1327 | булеве значення "true", якщо об'єкт замкнений. |
||
1328 | </translation> |
||
1329 | </message> |
||
1330 | <message> |
||
15099 | cbradney | 1331 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="236"/> |
12918 | cbradney | 1332 | <source>isLocked(["name"]) -> bool |
1333 | |||
1334 | Returns true if is the object "name" locked. If "name" is not given the |
||
1335 | currently selected item is used. |
||
1336 | </source> |
||
1337 | <translation type="unfinished">isLocked(["name"]) -> bool |
||
1338 | |||
1339 | Повертає булеве значення "true", якщо об'єкт замкнений. Якщо |
||
1340 | "name" не задано, буде використано активний об'єкт. |
||
1341 | </translation> |
||
1342 | </message> |
||
1343 | <message> |
||
15099 | cbradney | 1344 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="245"/> |
12918 | cbradney | 1345 | <source>setScaleImageToFrame(scaletoframe, proportional=None, name=<selection>) |
1346 | |||
1347 | Sets the scale to frame on the selected or specified image frame to `scaletoframe'. |
||
1348 | If `proportional' is specified, set fixed aspect ratio scaling to `proportional'. |
||
1349 | Both `scaletoframe' and `proportional' are boolean. |
||
1350 | |||
1351 | May raise WrongFrameTypeError. |
||
1352 | </source> |
||
1353 | <translation type="unfinished">setScaleImageToFrame(scaletoframe, proportional=None, name=<selection>) |
||
1354 | |||
1355 | Установлює масштабування зображення до розмірів рамки для вибраної |
||
1356 | або вказаної рамки для зображень до `scaletoframe'. Вибір |
||
1357 | `proportional' (пропорційне) значення встановлює фіксоване відношення |
||
1358 | сторін зображення при масштабуванні. І `scaletoframe' і `proportional' являються |
||
1359 | булевими змінними. |
||
1360 | |||
1361 | Може повернути помилку WrongFrameTypeError. |
||
1362 | </translation> |
||
1363 | </message> |
||
1364 | <message> |
||
14474 | cbradney | 1365 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="19"/> |
12918 | cbradney | 1366 | <source>setRedraw(bool) |
1367 | |||
1368 | Disables page redraw when bool = False, otherwise redrawing is enabled. |
||
1369 | This change will persist even after the script exits, so make sure to call |
||
1370 | setRedraw(True) in a finally: clause at the top level of your script. |
||
1371 | </source> |
||
1372 | <translation type="unfinished">setRedraw(bool) |
||
1373 | |||
1374 | Відключає обновлення сторінки, якщо bool = False, в протилежному |
||
1375 | випадку обновлення ввімкнене. Ця установка залишається в силі |
||
1376 | навіть після закінчення роботи сценарія. Тому в кінці сценарія |
||
1377 | необхідно помістити виклик setRedraw(True) в умові finally: в верхньому |
||
1378 | рівні сценарія.</translation> |
||
1379 | </message> |
||
1380 | <message> |
||
14474 | cbradney | 1381 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="30"/> |
12918 | cbradney | 1382 | <source>getFontNames() -> list |
1383 | |||
1384 | Returns a list with the names of all available fonts. |
||
1385 | </source> |
||
1386 | <translation type="unfinished">getFontNames() -> list |
||
1387 | |||
1388 | Повертає список з назвами доступних шрифтів. |
||
1389 | </translation> |
||
1390 | </message> |
||
1391 | <message> |
||
14474 | cbradney | 1392 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="39"/> |
12918 | cbradney | 1393 | <source>getXFontNames() -> list of tuples |
1394 | |||
1395 | Returns a larger font info. It's a list of the tuples with: |
||
1396 | [ (Scribus name, Family, Real name, subset (1|0), embed PS (1|0), font file), (...), ... ] |
||
1397 | </source> |
||
1398 | <translation type="unfinished">getXFontNames() -> список туплів |
||
1399 | |||
1400 | Повертає додаткову інформацію про шрифти у вигляді списка туплів: |
||
1401 | [ (Назва шрифта в Scribus, гарнітура, справжня назва, вибірка (1|0), |
||
1402 | вбудований PS (1|0), файл з шрифтом), (...), ... ] |
||
1403 | </translation> |
||
1404 | </message> |
||
1405 | <message> |
||
14474 | cbradney | 1406 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="52"/> |
12918 | cbradney | 1407 | <source>renderFont("name", "filename", "sample", size, format="PPM") -> bool |
1408 | |||
1409 | Creates an image preview of font "name" with given text "sample" and size. |
||
1410 | If "filename" is not "", image is saved into "filename". Otherwise |
||
1411 | image data is returned as a string. The optional "format" argument |
||
1412 | specifies the image format to generate, and supports any format allowed |
||
1413 | by QPixmap.save(). Common formats are PPM, JPEG, PNG and XPM. |
||
1414 | |||
1415 | May raise NotFoundError if the specified font can't be found. |
||
1416 | May raise ValueError if an empty sample or filename is passed. |
||
1417 | </source> |
||
1418 | <translation type="unfinished">renderFont("name", "filename", "sample", size, format="PPM") -> bool |
||
1419 | |||
1420 | Створює растрове зображення шрифта з іменем "name" з заданим |
||
1421 | текстом "sample" та розміром "size". Якщо "filename" не дорівнює "", |
||
1422 | зображення буде записане в файл з назвою "filename". В протилежному |
||
1423 | випадку зображення буде повернене, як строкова величина. |
||
1424 | Необов'язковий аргумент "format" вказує на те, який формат зображення |
||
1425 | генерувати і підтримує всі формати дозволені QPixmap.save(). Часто |
||
1426 | вживані формати включають PPM, JPEG, PNG та XPM. |
||
1427 | |||
1428 | Може повернути помилку NotFoundError, якщо вказаний шрифт не |
||
1429 | було знайдено. |
||
1430 | Може повернути помилку ValueError, якщо функції був переданий пустий |
||
1431 | зразковий текст або ім'я файла. |
||
1432 | </translation> |
||
1433 | </message> |
||
1434 | <message> |
||
14474 | cbradney | 1435 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="68"/> |
12918 | cbradney | 1436 | <source>getLayers() -> list |
1437 | |||
1438 | Returns a list with the names of all defined layers. |
||
1439 | </source> |
||
1440 | <translation type="unfinished">getLayers() -> list |
||
1441 | |||
1442 | Повертає список з назвами всіх визначених планів. |
||
1443 | </translation> |
||
1444 | </message> |
||
1445 | <message> |
||
14474 | cbradney | 1446 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="77"/> |
12918 | cbradney | 1447 | <source>setActiveLayer("name") |
1448 | |||
1449 | Sets the active layer to the layer named "name". |
||
1450 | |||
1451 | May raise NotFoundError if the layer can't be found. |
||
1452 | May raise ValueError if the layer name isn't acceptable. |
||
1453 | </source> |
||
1454 | <translation type="unfinished">setActiveLayer("name") |
||
1455 | |||
1456 | Установлює "name", як активний план. |
||
1457 | |||
1458 | Може повернути помилку NotFoundError, якщо план не знайдено. |
||
1459 | Може повернути помилку ValueError, якщо назва плану недопустима. |
||
1460 | </translation> |
||
1461 | </message> |
||
1462 | <message> |
||
14474 | cbradney | 1463 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="89"/> |
12918 | cbradney | 1464 | <source>getActiveLayer() -> string |
1465 | |||
1466 | Returns the name of the current active layer. |
||
1467 | </source> |
||
1468 | <translation type="unfinished">getActiveLayer() -> string |
||
1469 | |||
1470 | Повертає назву активного плану. |
||
1471 | </translation> |
||
1472 | </message> |
||
1473 | <message> |
||
14474 | cbradney | 1474 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="98"/> |
12918 | cbradney | 1475 | <source>sentToLayer("layer" [, "name"]) |
1476 | |||
1477 | Sends the object "name" to the layer "layer". The layer must exist. |
||
1478 | If "name" is not given the currently selected item is used. |
||
1479 | |||
1480 | May raise NotFoundError if the layer can't be found. |
||
1481 | May raise ValueError if the layer name isn't acceptable. |
||
1482 | </source> |
||
1483 | <translation type="unfinished">sentToLayer("layer" [, "name"]) |
||
1484 | |||
1485 | Переміщує об'єкт "name" на план "layer". План повинен існувати. |
||
1486 | Якщо "name" не задано, буде використано активний об'єкт. |
||
1487 | |||
1488 | Може повернути помилку NotFoundError, якщо план не знайдено. |
||
1489 | Може повернути помилку ValueError, якщо назва плану недопустима. |
||
1490 | </translation> |
||
1491 | </message> |
||
1492 | <message> |
||
14474 | cbradney | 1493 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="111"/> |
12918 | cbradney | 1494 | <source>setLayerVisible("layer", visible) |
1495 | |||
1496 | Sets the layer "layer" to be visible or not. If is the visible set to false |
||
1497 | the layer is invisible. |
||
1498 | |||
1499 | May raise NotFoundError if the layer can't be found. |
||
1500 | May raise ValueError if the layer name isn't acceptable. |
||
1501 | </source> |
||
1502 | <translation type="unfinished">setLayerVisible("layer", visible) |
||
1503 | |||
1504 | Змінює видимість плану "layer". Якщо "visible" дорівнює булевому |
||
1505 | значенню "false" - план невидимий. |
||
1506 | |||
1507 | Може повернути помилку NotFoundError, якщо план не знайдено. |
||
1508 | Може повернути помилку ValueError, якщо назва плану недопустима. |
||
1509 | </translation> |
||
1510 | </message> |
||
1511 | <message> |
||
14474 | cbradney | 1512 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="124"/> |
12918 | cbradney | 1513 | <source>setLayerPrintable("layer", printable) |
1514 | |||
1515 | Sets the layer "layer" to be printable or not. If is the |
||
1516 | printable set to false the layer won't be printed. |
||
1517 | |||
1518 | May raise NotFoundError if the layer can't be found. |
||
1519 | May raise ValueError if the layer name isn't acceptable. |
||
1520 | </source> |
||
1521 | <translation type="unfinished"></translation> |
||
1522 | </message> |
||
1523 | <message> |
||
14474 | cbradney | 1524 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="137"/> |
12918 | cbradney | 1525 | <source>setLayerLocked("layer", locked) |
1526 | |||
1527 | Sets the layer "layer" to be locked or not. If locked is set to |
||
1528 | true the layer will be locked. |
||
1529 | |||
1530 | May raise NotFoundError if the layer can't be found. |
||
1531 | May raise ValueError if the layer name isn't acceptable. |
||
1532 | </source> |
||
1533 | <translation type="unfinished"></translation> |
||
1534 | </message> |
||
1535 | <message> |
||
14474 | cbradney | 1536 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="150"/> |
12918 | cbradney | 1537 | <source>setLayerOutlined("layer", outline) |
1538 | |||
1539 | Sets the layer "layer" to be locked or not. If outline is set to |
||
1540 | true the layer will be displayed outlined. |
||
1541 | |||
1542 | May raise NotFoundError if the layer can't be found. |
||
1543 | May raise ValueError if the layer name isn't acceptable. |
||
1544 | </source> |
||
1545 | <translation type="unfinished"></translation> |
||
1546 | </message> |
||
1547 | <message> |
||
14474 | cbradney | 1548 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="163"/> |
12918 | cbradney | 1549 | <source>setLayerFlow("layer", flow) |
1550 | |||
1551 | Sets the layers "layer" flowcontrol to flow. If flow is set to |
||
1552 | true text in layers above this one will flow around objects on this layer. |
||
1553 | |||
1554 | May raise NotFoundError if the layer can't be found. |
||
1555 | May raise ValueError if the layer name isn't acceptable. |
||
1556 | </source> |
||
1557 | <translation type="unfinished"></translation> |
||
1558 | </message> |
||
1559 | <message> |
||
14474 | cbradney | 1560 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="176"/> |
12918 | cbradney | 1561 | <source>setLayerBlendmode("layer", blend) |
1562 | |||
1563 | Sets the layers "layer" blendmode to blend. |
||
1564 | |||
1565 | May raise NotFoundError if the layer can't be found. |
||
1566 | May raise ValueError if the layer name isn't acceptable. |
||
1567 | </source> |
||
1568 | <translation type="unfinished"></translation> |
||
1569 | </message> |
||
1570 | <message> |
||
14474 | cbradney | 1571 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="188"/> |
12918 | cbradney | 1572 | <source>setLayerTransparency("layer", trans) |
1573 | |||
1574 | Sets the layers "layer" transparency to trans. |
||
1575 | |||
1576 | May raise NotFoundError if the layer can't be found. |
||
1577 | May raise ValueError if the layer name isn't acceptable. |
||
1578 | </source> |
||
1579 | <translation type="unfinished"></translation> |
||
1580 | </message> |
||
1581 | <message> |
||
14474 | cbradney | 1582 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="200"/> |
12918 | cbradney | 1583 | <source>isLayerVisible("layer") -> bool |
1584 | |||
1585 | Returns whether the layer "layer" is visible or not, a value of True means |
||
1586 | that the layer "layer" is visible, a value of False means that the layer |
||
1587 | "layer" is invisible. |
||
1588 | |||
1589 | May raise NotFoundError if the layer can't be found. |
||
1590 | May raise ValueError if the layer name isn't acceptable. |
||
1591 | </source> |
||
1592 | <translation type="unfinished"></translation> |
||
1593 | </message> |
||
1594 | <message> |
||
14474 | cbradney | 1595 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="214"/> |
12918 | cbradney | 1596 | <source>isLayerPrintable("layer") -> bool |
1597 | |||
1598 | Returns whether the layer "layer" is printable or not, a value of True means |
||
1599 | that the layer "layer" can be printed, a value of False means that printing |
||
1600 | the layer "layer" is disabled. |
||
1601 | |||
1602 | May raise NotFoundError if the layer can't be found. |
||
1603 | May raise ValueError if the layer name isn't acceptable. |
||
1604 | </source> |
||
1605 | <translation type="unfinished">isLayerPrintable("layer") -> bool |
||
1606 | |||
1607 | Повертає булеве значення, яке вказує на те чи можна друкувати план "layer". |
||
1608 | True означає, що "layer" можна друкувати, False означає, що друк плана |
||
1609 | "layer" не дозволено. |
||
1610 | |||
1611 | Може повернути помилку NotFoundError, якщо план не знайдено. |
||
1612 | May raise ValueError при використанні недопустимої назви плана. |
||
1613 | </translation> |
||
1614 | </message> |
||
1615 | <message> |
||
14474 | cbradney | 1616 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="228"/> |
12918 | cbradney | 1617 | <source>isLayerLocked("layer") -> bool |
1618 | |||
1619 | Returns whether the layer "layer" is locked or not, a value of True means |
||
1620 | that the layer "layer" is editable, a value of False means that the layer |
||
1621 | "layer" is locked. |
||
1622 | |||
1623 | May raise NotFoundError if the layer can't be found. |
||
1624 | May raise ValueError if the layer name isn't acceptable. |
||
1625 | </source> |
||
1626 | <translation type="unfinished"></translation> |
||
1627 | </message> |
||
1628 | <message> |
||
14474 | cbradney | 1629 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="242"/> |
12918 | cbradney | 1630 | <source>isLayerOutlined("layer") -> bool |
1631 | |||
1632 | Returns whether the layer "layer" is outlined or not, a value of True means |
||
1633 | that the layer "layer" is outlined, a value of False means that the layer |
||
1634 | "layer" is normal. |
||
1635 | |||
1636 | May raise NotFoundError if the layer can't be found. |
||
1637 | May raise ValueError if the layer name isn't acceptable. |
||
1638 | </source> |
||
1639 | <translation type="unfinished"></translation> |
||
1640 | </message> |
||
1641 | <message> |
||
14474 | cbradney | 1642 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="256"/> |
12918 | cbradney | 1643 | <source>isLayerFlow("layer") -> bool |
1644 | |||
1645 | Returns whether text flows around objects on layer "layer", a value of True means |
||
1646 | that text flows around, a value of False means that the text does not flow around. |
||
1647 | |||
1648 | May raise NotFoundError if the layer can't be found. |
||
1649 | May raise ValueError if the layer name isn't acceptable. |
||
1650 | </source> |
||
1651 | <translation type="unfinished"></translation> |
||
1652 | </message> |
||
1653 | <message> |
||
14474 | cbradney | 1654 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="269"/> |
12918 | cbradney | 1655 | <source>getLayerBlendmode("layer") -> int |
1656 | |||
1657 | Returns the "layer" layer blendmode, |
||
1658 | |||
1659 | May raise NotFoundError if the layer can't be found. |
||
1660 | May raise ValueError if the layer name isn't acceptable. |
||
1661 | </source> |
||
1662 | <translation type="unfinished"></translation> |
||
1663 | </message> |
||
1664 | <message> |
||
14474 | cbradney | 1665 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="281"/> |
12918 | cbradney | 1666 | <source>getLayerTransparency("layer") -> float |
1667 | |||
1668 | Returns the "layer" layer transparency, |
||
1669 | |||
1670 | May raise NotFoundError if the layer can't be found. |
||
1671 | May raise ValueError if the layer name isn't acceptable. |
||
1672 | </source> |
||
1673 | <translation type="unfinished"></translation> |
||
1674 | </message> |
||
1675 | <message> |
||
14474 | cbradney | 1676 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="293"/> |
12918 | cbradney | 1677 | <source>deleteLayer("layer") |
1678 | |||
1679 | Deletes the layer with the name "layer". Nothing happens if the layer doesn't |
||
1680 | exists or if it's the only layer in the document. |
||
1681 | |||
1682 | May raise NotFoundError if the layer can't be found. |
||
1683 | May raise ValueError if the layer name isn't acceptable. |
||
1684 | </source> |
||
1685 | <translation type="unfinished">deleteLayer("layer") |
||
1686 | |||
1687 | Видаляє план з назвою "layer". При відсутності плану або якщо це |
||
1688 | останній план документа нічого не відбувається. |
||
1689 | |||
1690 | Може повернути помилку NotFoundError, якщо план не знайдено. |
||
1691 | Може повернути помилку ValueError, якщо назва плану недопустима. |
||
1692 | </translation> |
||
1693 | </message> |
||
1694 | <message> |
||
14474 | cbradney | 1695 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="306"/> |
12918 | cbradney | 1696 | <source>createLayer(layer) |
1697 | |||
1698 | Creates a new layer with the name "name". |
||
1699 | |||
1700 | May raise ValueError if the layer name isn't acceptable. |
||
1701 | </source> |
||
1702 | <translation type="unfinished">createLayer(layer) |
||
1703 | |||
1704 | Створює новий план з назвою "name". |
||
1705 | |||
1706 | Може повернути помилку ValueError, якщо назва плану недопустима. |
||
1707 | </translation> |
||
1708 | </message> |
||
1709 | <message> |
||
14474 | cbradney | 1710 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="317"/> |
15099 | cbradney | 1711 | <source>fileQuit() |
1712 | |||
1713 | Quit Scribus. |
||
1714 | </source> |
||
1715 | <translation type="unfinished"></translation> |
||
1716 | </message> |
||
1717 | <message> |
||
1718 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="326"/> |
||
12918 | cbradney | 1719 | <source>getGuiLanguage() -> string |
1720 | |||
1721 | Returns a string with the -lang value. |
||
1722 | </source> |
||
1723 | <translation type="unfinished">getGuiLanguage() -> строкова величина |
||
1724 | |||
1725 | Повертає строкову величину, яка містить значення -lang. |
||
1726 | </translation> |
||
1727 | </message> |
||
1728 | <message> |
||
15099 | cbradney | 1729 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="335"/> |
12918 | cbradney | 1730 | <source>moveSelectionToFront() |
1731 | |||
1732 | Moves current selection to front. |
||
1733 | </source> |
||
1734 | <translation type="unfinished"></translation> |
||
1735 | </message> |
||
1736 | <message> |
||
15099 | cbradney | 1737 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="344"/> |
12918 | cbradney | 1738 | <source>moveSelectionToFront() |
1739 | |||
1740 | Moves current selection to back. |
||
1741 | </source> |
||
1742 | <translation type="unfinished"></translation> |
||
1743 | </message> |
||
1744 | <message> |
||
14474 | cbradney | 1745 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="17"/> |
12918 | cbradney | 1746 | <source>createRect(x, y, width, height, ["name"]) -> string |
1747 | |||
1748 | Creates a new rectangle on the current page and returns its name. The |
||
1749 | coordinates are given in the current measurement units of the document |
||
1750 | (see UNIT constants). "name" should be a unique identifier for the object |
||
1751 | because you need this name to reference that object in future. If "name" |
||
1752 | is not given Scribus will create one for you. |
||
1753 | |||
1754 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1755 | </source> |
||
1756 | <translation type="unfinished">createRect(x, y, width, height, ["name"]) -> string |
||
1757 | |||
1758 | Створює новий прямокутник на активній сторінці і повертаю його ім'я. Координати |
||
1759 | задаються в активних одиницях виміру документа (див. константи Юнікс). "name" |
||
1760 | має унікально ідентифікувати об'єкт, тому що воно буде необхідним для звернення |
||
1761 | до цього об'єкта в майбутньому. Якщо "name" не вказане, то Scribus вибере його |
||
1762 | сам. |
||
1763 | |||
1764 | Може повернути помилку NameExistsError якщо ви вкажете ім'я, яке вже було використане. |
||
1765 | </translation> |
||
1766 | </message> |
||
1767 | <message> |
||
14474 | cbradney | 1768 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="34"/> |
12918 | cbradney | 1769 | <source>createEllipse(x, y, width, height, ["name"]) -> string |
1770 | |||
1771 | Creates a new ellipse on the current page and returns its name. |
||
1772 | The coordinates are given in the current measurement units of the document |
||
1773 | (see UNIT constants). "name" should be a unique identifier for the object |
||
1774 | because you need this name for further referencing of that object. If "name" |
||
1775 | is not given Scribus will create one for you. |
||
1776 | |||
1777 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1778 | </source> |
||
1779 | <translation type="unfinished">createEllipse(x, y, width, height, ["name"]) -> строкова величина |
||
1780 | |||
1781 | Створює новий еліпс на активній сторінці та повертає його назву. |
||
1782 | Координати задаються в активних одиницях виміру документа (див. |
||
1783 | константи UNIT). "name" повинне бути неповторним визначником |
||
1784 | об'єкта, тому що воно служить для подальших звернень до нього. |
||
1785 | Якщо "name" не задано, Scribus створить його сам. |
||
1786 | |||
1787 | Може повернути помилку NameExistsError при спробі задання вже |
||
1788 | використаної назви. |
||
1789 | </translation> |
||
1790 | </message> |
||
1791 | <message> |
||
14474 | cbradney | 1792 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="51"/> |
12918 | cbradney | 1793 | <source>createImage(x, y, width, height, ["name"]) -> string |
1794 | |||
1795 | Creates a new picture frame on the current page and returns its name. The |
||
1796 | coordinates are given in the current measurement units of the document. |
||
1797 | "name" should be a unique identifier for the object because you need this |
||
1798 | name for further access to that object. If "name" is not given Scribus will |
||
1799 | create one for you. |
||
1800 | |||
1801 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1802 | </source> |
||
1803 | <translation type="unfinished">createImage(x, y, width, height, ["name"]) -> строкова величина |
||
1804 | |||
1805 | Створює нову рамку для зображень на активній сторінці та повертає |
||
1806 | її назву. Координати задаються в активних одиницях виміру документа. |
||
1807 | "name" повинне бути неповторним визначником об'єкта, тому що воно |
||
1808 | служить для подальших звернень до нього. Якщо "name" не задано, |
||
1809 | Scribus створить його сам. |
||
1810 | |||
1811 | Може повернути помилку NameExistsError при спробі задання вже |
||
1812 | використаної назви. |
||
1813 | </translation> |
||
1814 | </message> |
||
1815 | <message> |
||
14474 | cbradney | 1816 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="66"/> |
12918 | cbradney | 1817 | <source>createText(x, y, width, height, ["name"]) -> string |
1818 | |||
1819 | Creates a new text frame on the actual page and returns its name. |
||
1820 | The coordinates are given in the actual measurement unit of the document (see |
||
1821 | UNIT constants). "name" should be a unique identifier for the object because |
||
1822 | you need this name for further referencing of that object. If "name" is not |
||
1823 | given Scribus will create one for you. |
||
1824 | |||
1825 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1826 | </source> |
||
1827 | <translation type="unfinished">createText(x, y, width, height, ["name"]) -> строкова величина |
||
1828 | |||
1829 | Створює нову текстову рамку на активній сторінці та повертає |
||
1830 | її назву. Координати задаються в активних одиницях виміру документа |
||
1831 | (див константи UNIT). "name" повинне бути неповторним визначником |
||
1832 | об'єкта, тому що воно служить для подальших звернень до нього. Якщо |
||
1833 | "name" не задано, Scribus створить його сам. |
||
1834 | |||
1835 | Може повернути помилку NameExistsError при спробі задання вже |
||
1836 | використаної назви. |
||
1837 | |||
1838 | </translation> |
||
1839 | </message> |
||
1840 | <message> |
||
14474 | cbradney | 1841 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="81"/> |
12918 | cbradney | 1842 | <source>createLine(x1, y1, x2, y2, ["name"]) -> string |
1843 | |||
1844 | Creates a new line from the point(x1, y1) to the point(x2, y2) and returns |
||
1845 | its name. The coordinates are given in the current measurement unit of the |
||
1846 | document (see UNIT constants). "name" should be a unique identifier for the |
||
1847 | object because you need this name for further access to that object. If |
||
1848 | "name" is not given Scribus will create one for you. |
||
1849 | |||
1850 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1851 | </source> |
||
1852 | <translation type="unfinished">createLine(x1, y1, x2, y2, ["name"]) -> строкова величина |
||
1853 | |||
1854 | Створює нову лінію від точки (x1, y1) до точки (x2, y2) та повертає |
||
1855 | її назву. Координати задаються в активних одиницях виміру документа |
||
1856 | (див константи UNIT). "name" повинне бути неповторним визначником |
||
1857 | об'єкта, тому що воно служить для подальших звернень до нього. Якщо |
||
1858 | "name" не задано, Scribus створить його сам. |
||
1859 | |||
1860 | Може повернути помилку NameExistsError при спробі задання вже |
||
1861 | використаної назви. |
||
1862 | </translation> |
||
1863 | </message> |
||
1864 | <message> |
||
14474 | cbradney | 1865 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="96"/> |
12918 | cbradney | 1866 | <source>createPolyLine(list, ["name"]) -> string |
1867 | |||
1868 | Creates a new polyline and returns its name. The points for the polyline are |
||
1869 | stored in the list "list" in the following order: [x1, y1, x2, y2...xn. yn]. |
||
1870 | The coordinates are given in the current measurement units of the document (see |
||
1871 | UNIT constants). "name" should be a unique identifier for the object because |
||
1872 | you need this name for further access to that object. If "name" is not given |
||
1873 | Scribus will create one for you. |
||
1874 | |||
1875 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1876 | May raise ValueError if an insufficient number of points is passed or if |
||
1877 | the number of values passed don't group into points without leftovers. |
||
1878 | </source> |
||
1879 | <translation type="unfinished">createPolyLine(list, ["name"]) -> строкова величина |
||
1880 | |||
1881 | Створює багатосегментну лінію та повертає її назву. Точки лінії |
||
1882 | зберігаються в списку "list" у визначеному порядку [x1, y1, x2, y2...xn. yn]. |
||
1883 | Координати задаються в активних одиницях виміру документа |
||
1884 | (див константи UNIT). "name" повинне бути неповторним визначником |
||
1885 | об'єкта, тому що воно служить для подальших звернень до нього. Якщо |
||
1886 | "name" не задано, Scribus створить його сам. |
||
1887 | |||
1888 | Може повернути помилку NameExistsError при спробі задання вже |
||
1889 | використаної назви. |
||
1890 | Може повернути помилку ValueError, якщо задане недостатнє число точок |
||
1891 | або число заданих координат не відповідає числу точок. |
||
1892 | </translation> |
||
1893 | </message> |
||
1894 | <message> |
||
14474 | cbradney | 1895 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="114"/> |
12918 | cbradney | 1896 | <source>createPolygon(list, ["name"]) -> string |
1897 | |||
1898 | Creates a new polygon and returns its name. The points for the polygon are |
||
1899 | stored in the list "list" in the following order: [x1, y1, x2, y2...xn. yn]. |
||
1900 | At least three points are required. There is no need to repeat the first point |
||
1901 | to close the polygon. The polygon is automatically closed by connecting the |
||
1902 | first and the last point. The coordinates are given in the current measurement |
||
1903 | units of the document (see UNIT constants). "name" should be a unique |
||
1904 | identifier for the object because you need this name for further access to that |
||
1905 | object. If "name" is not given Scribus will create one for you. |
||
1906 | |||
1907 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1908 | May raise ValueError if an insufficient number of points is passed or if |
||
1909 | the number of values passed don't group into points without leftovers. |
||
1910 | </source> |
||
1911 | <translation type="unfinished">createPolygon(list, ["name"]) -> строкова величина |
||
1912 | |||
1913 | Створює полігон та повертає його назву. Точки кутів полігона |
||
1914 | зберігаються в списку "list" у визначеному порядку [x1, y1, x2, y2...xn. yn]. |
||
1915 | Як мінімум мають бути задані три точки. Необхідності в повторенні першої |
||
1916 | точки для замикання полігона не існує. Полігон автоматично замикається |
||
1917 | з'єднанням першої та останньої заданих точок. Координати задаються в |
||
1918 | активних одиницях виміру документа (див константи UNIT). "name" повинне |
||
1919 | бути неповторним визначником об'єкта, тому що воно служить для подальших |
||
1920 | звернень до нього. Якщо "name" не задано, Scribus створить його сам. |
||
1921 | |||
1922 | Може повернути помилку NameExistsError при спробі задання вже |
||
1923 | використаної назви. |
||
1924 | Може повернути помилку ValueError, якщо задане недостатнє число точок |
||
1925 | або число заданих координат не відповідає числу точок. |
||
1926 | </translation> |
||
1927 | </message> |
||
1928 | <message> |
||
14474 | cbradney | 1929 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="134"/> |
12918 | cbradney | 1930 | <source>createBezierLine(list, ["name"]) -> string |
1931 | |||
1932 | Creates a new bezier curve and returns its name. The points for the bezier |
||
1933 | curve are stored in the list "list" in the following order: |
||
1934 | [x1, y1, kx1, ky1, x2, y2, kx2, ky2...xn. yn, kxn. kyn] |
||
1935 | In the points list, x and y mean the x and y coordinates of the point and kx |
||
1936 | and ky meaning the control point for the curve. The coordinates are given in |
||
1937 | the current measurement units of the document (see UNIT constants). "name" |
||
1938 | should be a unique identifier for the object because you need this name for |
||
1939 | further access to that object. If "name" is not given Scribus will create one |
||
1940 | for you. |
||
1941 | |||
1942 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1943 | May raise ValueError if an insufficient number of points is passed or if |
||
1944 | the number of values passed don't group into points without leftovers. |
||
1945 | </source> |
||
1946 | <translation type="unfinished">createBezierLine(list, ["name"]) -> строкова величина |
||
1947 | |||
1948 | Створює нову криву Безьє та повертає її назву. Точки кривої |
||
1949 | зберігаються в списку "list" у визначеному порядку |
||
1950 | [x1, y1, kx1, ky1, x2, y2, kx2, ky2...xn. yn, kxn. kyn] |
||
1951 | В списку точок x та y відповідають координатам точки, а kx та ky |
||
1952 | відповідають контрольним точкам кривої. Координати задаються |
||
1953 | в активних одиницях виміру документа (див константи UNIT). |
||
1954 | "name" повинне бути неповторним визначником об'єкта, тому що |
||
1955 | воно служить для подальших звернень до нього. Якщо "name" не |
||
1956 | задано, Scribus створить його сам. |
||
1957 | |||
1958 | Може повернути помилку NameExistsError при спробі задання вже |
||
1959 | використаної назви. |
||
1960 | Може повернути помилку ValueError, якщо задане недостатнє число точок |
||
1961 | або число заданих координат не відповідає числу точок. |
||
1962 | </translation> |
||
1963 | </message> |
||
1964 | <message> |
||
14474 | cbradney | 1965 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="155"/> |
12918 | cbradney | 1966 | <source>createPathText(x, y, "textbox", "beziercurve", ["name"]) -> string |
1967 | |||
1968 | Creates a new pathText by merging the two objects "textbox" and |
||
1969 | "beziercurve" and returns its name. The coordinates are given in the current |
||
1970 | measurement unit of the document (see UNIT constants). "name" should be a |
||
1971 | unique identifier for the object because you need this name for further access |
||
1972 | to that object. If "name" is not given Scribus will create one for you. |
||
1973 | |||
1974 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1975 | May raise NotFoundError if one or both of the named base object don't exist. |
||
1976 | </source> |
||
1977 | <translation type="unfinished">createPathText(x, y, "textbox", "beziercurve", ["name"]) -> строкова величина |
||
1978 | |||
1979 | Створює новий текстовий шлях (pathText) через з'єднання двох об'єктів |
||
1980 | "textbox" та "beziercurve" та повертає його назву. Координати задаються |
||
1981 | в активних одиницях виміру документа (див константи UNIT). "name" |
||
1982 | повинне бути неповторним визначником об'єкта, тому що воно служить |
||
1983 | для подальших звернень до нього. Якщо "name" не задано, Scribus створить |
||
1984 | його сам. |
||
1985 | |||
1986 | Може повернути помилку NameExistsError при спробі задання вже |
||
1987 | використаної назви. |
||
1988 | Може повернути помилку NotFoundError, якщо один чи обидва названих |
||
1989 | базових об'єкти не існують. |
||
1990 | </translation> |
||
1991 | </message> |
||
1992 | <message> |
||
14474 | cbradney | 1993 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="173"/> |
12918 | cbradney | 1994 | <source>deleteObject(["name"]) |
1995 | |||
1996 | Deletes the item with the name "name". If "name" is not given the currently |
||
1997 | selected item is deleted. |
||
1998 | </source> |
||
1999 | <translation type="unfinished">deleteObject(["name"]) |
||
2000 | |||
2001 | Видаляє об'єкт "name". Якщо "name" не вказано, буде видалено вибраний об'єкт. |
||
2002 | </translation> |
||
2003 | </message> |
||
2004 | <message> |
||
14474 | cbradney | 2005 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="184"/> |
12918 | cbradney | 2006 | <source>textFlowMode("name" [, state]) |
2007 | |||
2008 | Enables/disables "Text Flows Around Frame" feature for object "name". |
||
2009 | Called with parameters string name and optional int "state" (0 <= state <= 3). |
||
2010 | Setting "state" to 0 will disable text flow. |
||
2011 | Setting "state" to 1 will make text flow around object frame. |
||
2012 | Setting "state" to 2 will make text flow around bounding box. |
||
2013 | Setting "state" to 3 will make text flow around contour line. |
||
2014 | If "state" is not passed, text flow is toggled. |
||
2015 | </source> |
||
2016 | <translation type="unfinished"></translation> |
||
2017 | </message> |
||
2018 | <message> |
||
14474 | cbradney | 2019 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="206"/> |
12918 | cbradney | 2020 | <source>objectExists(["name"]) -> bool |
2021 | |||
2022 | Test if an object with specified name really exists in the document. |
||
2023 | The optional parameter is the object name. When no object name is given, |
||
2024 | returns True if there is something selected. |
||
2025 | </source> |
||
2026 | <translation type="unfinished">objectExists(["name"]) -> булеве значення |
||
2027 | |||
2028 | Перевіряє чи вказаний об'єкт вже існує в документі. Назва об'єкта є |
||
2029 | необов'язковим параметром. Якщо назва не задана, повертає булеве |
||
2030 | значення "True", при наявності вибраного об'єкта. |
||
2031 | </translation> |
||
2032 | </message> |
||
2033 | <message> |
||
14474 | cbradney | 2034 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="223"/> |
12918 | cbradney | 2035 | <source>setStyle("style" [, "name"]) |
2036 | |||
14474 | cbradney | 2037 | Apply the named "style" to the object named "name". If object name is |
2038 | given, style is applied to the current text selection in object "name". |
||
2039 | If no object name is given, style is applied on selected object. |
||
2040 | </source> |
||
2041 | <translation type="unfinished"></translation> |
||
2042 | </message> |
||
2043 | <message> |
||
2044 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="250"/> |
||
2045 | <source>duplicateObject(["name"]) -> string |
||
2046 | |||
2047 | creates a Duplicate of the selected Object (or Selection Group). |
||
2048 | </source> |
||
2049 | <translation type="unfinished"></translation> |
||
2050 | </message> |
||
2051 | <message> |
||
2052 | <source>setStyle("style" [, "name"]) |
||
2053 | |||
12918 | cbradney | 2054 | Apply the named "style" to the object named "name". If is no object name |
2055 | given, it's applied on the selected object. |
||
2056 | </source> |
||
14474 | cbradney | 2057 | <translation type="obsolete">setStyle("style" [, "name"]) |
12918 | cbradney | 2058 | |
2059 | Застосовує стиль "style" для об'єкта "name". Якщо "name" не вказано, |
||
2060 | буде використано вибраний об'єкт. |
||
2061 | </translation> |
||
2062 | </message> |
||
2063 | <message> |
||
14474 | cbradney | 2064 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="238"/> |
12918 | cbradney | 2065 | <source>getAllStyles() -> list |
2066 | |||
2067 | Return a list of the names of all paragraph styles in the current document. |
||
2068 | </source> |
||
2069 | <translation type="unfinished">getAllStyles() -> список |
||
2070 | |||
2071 | Повертає список всіх стилів абзаців в активному документі. |
||
2072 | </translation> |
||
2073 | </message> |
||
2074 | <message> |
||
14474 | cbradney | 2075 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="17"/> |
12918 | cbradney | 2076 | <source>newPage(where [,"masterpage"]) |
2077 | |||
2078 | Creates a new page. If "where" is -1 the new Page is appended to the |
||
2079 | document, otherwise the new page is inserted before "where". Page numbers are |
||
2080 | counted from 1 upwards, no matter what the displayed first page number of your |
||
2081 | document is. The optional parameter "masterpage" specifies the name of the |
||
2082 | master page for the new page. |
||
2083 | |||
2084 | May raise IndexError if the page number is out of range |
||
2085 | </source> |
||
2086 | <translation type="unfinished">newPage(where [,"masterpage"]) |
||
2087 | |||
2088 | Створює нову сторінку. Якщо "where" дорівнює -1 то нова сторінка добавляється в кінець документа. В іншому випадку вона вставляється в документ перед "where". Номери сторінок внутрішньо рахуються з 1 вверх незважаючи на показаний номер документа. Необов'язковий параметр "masterpage" вказує на ім'я головної сторінки. |
||
2089 | |||
2090 | Може повернути помилку IndexError, якщо номер сторінки виходить за можливий діапазон |
||
2091 | </translation> |
||
2092 | </message> |
||
2093 | <message> |
||
14474 | cbradney | 2094 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="32"/> |
12918 | cbradney | 2095 | <source>currentPage() -> integer |
2096 | |||
2097 | Returns the number of the current working page. Page numbers are counted from 1 |
||
2098 | upwards, no matter what the displayed first page number of your document is. |
||
2099 | </source> |
||
2100 | <translation type="unfinished">currentPage() -> ціле число |
||
2101 | |||
2102 | Повертає номер активної сторінки. Номери сторінок рахуються вгору від 1, |
||
2103 | незалежно від того, який номер показаний на першій сторінці документа. |
||
2104 | </translation> |
||
2105 | </message> |
||
2106 | <message> |
||
14474 | cbradney | 2107 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="42"/> |
12918 | cbradney | 2108 | <source>redrawAll() |
2109 | |||
2110 | Redraws all pages. |
||
2111 | </source> |
||
2112 | <translation type="unfinished">redrawAll() |
||
2113 | |||
2114 | Перерисовує всі сторінки. |
||
2115 | </translation> |
||
2116 | </message> |
||
2117 | <message> |
||
14474 | cbradney | 2118 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="51"/> |
12918 | cbradney | 2119 | <source>getPageType() -> integer |
2120 | |||
2121 | Returns the type of the Page, 0 means left Page, 1 is a middle Page and 2 is a right Page |
||
2122 | </source> |
||
2123 | <translation type="unfinished"></translation> |
||
2124 | </message> |
||
2125 | <message> |
||
14474 | cbradney | 2126 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="60"/> |
12918 | cbradney | 2127 | <source>savePageAsEPS("name") |
2128 | |||
2129 | Saves the current page as an EPS to the file "name". |
||
2130 | |||
2131 | May raise ScribusError if the save failed. |
||
2132 | </source> |
||
2133 | <translation type="unfinished">savePageAsEPS("name") |
||
2134 | |||
2135 | Зберігає активну сторінку, як файл EPS з назвою "name". |
||
2136 | |||
2137 | Може повернути помилку ScribusError, якщо запис не був успішним. |
||
2138 | </translation> |
||
2139 | </message> |
||
2140 | <message> |
||
14474 | cbradney | 2141 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="71"/> |
12918 | cbradney | 2142 | <source>deletePage(nr) |
2143 | |||
2144 | Deletes the given page. Does nothing if the document contains only one page. |
||
2145 | Page numbers are counted from 1 upwards, no matter what the displayed first |
||
2146 | page number is. |
||
2147 | |||
2148 | May raise IndexError if the page number is out of range |
||
2149 | </source> |
||
2150 | <translation type="unfinished">deletePage(nr) |
||
2151 | |||
2152 | Видалає дану сторінку. Якщо в документі є лише одна сторінка - нічого |
||
2153 | не відбудеться. Номери сторінок рахуються вгору від 1, незалежно від |
||
2154 | того, який номер показаний на першій сторінці документа. |
||
2155 | |||
2156 | Може повернути помилку IndexError, якщо номер сторінки виходить за |
||
2157 | межі доступного діапазону |
||
2158 | </translation> |
||
2159 | </message> |
||
2160 | <message> |
||
14474 | cbradney | 2161 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="84"/> |
12918 | cbradney | 2162 | <source>gotoPage(nr) |
2163 | |||
2164 | Moves to the page "nr" (that is, makes the current page "nr"). Note that |
||
2165 | gotoPage doesn't (currently) change the page the user's view is displaying, it |
||
2166 | just sets the page that script commands will operates on. |
||
2167 | |||
2168 | May raise IndexError if the page number is out of range. |
||
2169 | </source> |
||
2170 | <translation type="unfinished"></translation> |
||
2171 | </message> |
||
2172 | <message> |
||
14474 | cbradney | 2173 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="97"/> |
12918 | cbradney | 2174 | <source>pageCount() -> integer |
2175 | |||
2176 | Returns the number of pages in the document. |
||
2177 | </source> |
||
2178 | <translation type="unfinished">pageCount() -> ціле число |
||
2179 | |||
2180 | Повертає число сторінок в документі. |
||
2181 | </translation> |
||
2182 | </message> |
||
2183 | <message> |
||
14474 | cbradney | 2184 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="106"/> |
12918 | cbradney | 2185 | <source>getHGuides() -> list |
2186 | |||
2187 | Returns a list containing positions of the horizontal guides. Values are in the |
||
2188 | document's current units - see UNIT_<type> constants. |
||
2189 | </source> |
||
2190 | <translation type="unfinished">getHGuides() -> список |
||
2191 | |||
2192 | Повертає список розміщення горизонтальних направляючих. Значення |
||
2193 | виражаються в активних одиницях виміру документа - див. константи |
||
2194 | UNIT_<type>. |
||
2195 | </translation> |
||
2196 | </message> |
||
2197 | <message> |
||
14474 | cbradney | 2198 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="116"/> |
12918 | cbradney | 2199 | <source>setHGuides(list) |
2200 | |||
2201 | Sets horizontal guides. Input parameter must be a list of guide positions |
||
2202 | measured in the current document units - see UNIT_<type> constants. |
||
2203 | |||
2204 | Example: setHGuides(getHGuides() + [200.0, 210.0] # add new guides without any lost |
||
2205 | setHGuides([90,250]) # replace current guides entirely |
||
2206 | </source> |
||
2207 | <translation type="unfinished">setHGuides(list) |
||
2208 | |||
2209 | Установлює горизонтальні направляючі. Вхідний параметр має бути заданий |
||
2210 | як список позицій направляючих, виражених в активних одиницях виміру |
||
2211 | документа - див. константи UNIT_<type>. |
||
2212 | |||
2213 | Приклад: setHGuides(getHGuides() + [200.0, 210.0] # додати нові направляючі без |
||
2214 | заміщення існуючих |
||
2215 | setHGuides([90,250]) # повністю замінити існуючі направляючі |
||
2216 | </translation> |
||
2217 | </message> |
||
2218 | <message> |
||
14474 | cbradney | 2219 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="129"/> |
12918 | cbradney | 2220 | <source>getVGuides() |
2221 | |||
2222 | See getHGuides. |
||
2223 | </source> |
||
2224 | <translation type="unfinished">getVGuides() |
||
2225 | |||
2226 | Див. getHGuides. |
||
2227 | </translation> |
||
2228 | </message> |
||
2229 | <message> |
||
14474 | cbradney | 2230 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="138"/> |
12918 | cbradney | 2231 | <source>setVGuides() |
2232 | |||
2233 | See setHGuides. |
||
2234 | </source> |
||
2235 | <translation type="unfinished">setVGuides() |
||
2236 | |||
2237 | Див. setHGuides. |
||
2238 | </translation> |
||
2239 | </message> |
||
2240 | <message> |
||
14474 | cbradney | 2241 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="147"/> |
12918 | cbradney | 2242 | <source>getPageSize() -> tuple |
2243 | |||
2244 | Returns a tuple with page dimensions measured in the document's current units. |
||
2245 | See UNIT_<type> constants and getPageMargins() |
||
2246 | </source> |
||
2247 | <translation type="unfinished">getPageSize() -> тупль |
||
2248 | |||
2249 | Повертає тупль з розміром сторінки, вираженим в активних одиницях виміру |
||
2250 | документа. Див. константи UNIT_<type> та функцію getPageMargins() |
||
2251 | </translation> |
||
2252 | </message> |
||
2253 | <message> |
||
14474 | cbradney | 2254 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="161"/> |
2255 | <source>getPageNSize() -> tuple |
||
2256 | |||
2257 | Returns a tuple with a particular page's size measured in the document's current units. |
||
2258 | See UNIT_<type> constants and getPageMargins() |
||
2259 | </source> |
||
2260 | <translation type="unfinished"></translation> |
||
2261 | </message> |
||
2262 | <message> |
||
2263 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="174"/> |
||
2264 | <source>getPageNMargins() -> tuple |
||
2265 | |||
2266 | Returns a tuple with a particular page's margins measured in the document's current units. |
||
2267 | See UNIT_<type> constants and getPageMargins() |
||
2268 | </source> |
||
2269 | <translation type="unfinished"></translation> |
||
2270 | </message> |
||
2271 | <message> |
||
2272 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="187"/> |
||
12918 | cbradney | 2273 | <source>getPageItems() -> list |
2274 | |||
2275 | Returns a list of tuples with items on the current page. The tuple is: |
||
2276 | (name, objectType, order) E.g. [('Text1', 4, 0), ('Image1', 2, 1)] |
||
2277 | means that object named 'Text1' is a text frame (type 4) and is the first at |
||
2278 | the page... |
||
2279 | </source> |
||
2280 | <translation type="unfinished">getPageItems() -> список |
||
2281 | |||
2282 | Повертає список туплів з об'єктами, розташованими на активній сторінці. |
||
2283 | Тупль має вигляд (name, objectType, order). Наприклад 'Text1', 4, 0), ('Image1', 2, 1)] |
||
2284 | означає, що об'єкт 'Text1' є текстовою рамкою (тип 4) і є першим об'єктом сторінки... |
||
2285 | </translation> |
||
2286 | </message> |
||
2287 | <message> |
||
14474 | cbradney | 2288 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="203"/> |
12918 | cbradney | 2289 | <source>getPageMargins() |
2290 | |||
2291 | Returns the page margins as a (top, left, right, bottom) tuple in the current |
||
2292 | units. See UNIT_<type> constants and getPageSize(). |
||
2293 | </source> |
||
2294 | <translation type="unfinished">getPageMargins() |
||
2295 | |||
2296 | Повертає поля сторінки як тупль (верхнє, ліве, праве, нижнє) в активних одиницях. Дивіться UNIT_<type> константи та getPageSize(). |
||
2297 | </translation> |
||
2298 | </message> |
||
2299 | <message> |
||
14474 | cbradney | 2300 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="216"/> |
12918 | cbradney | 2301 | <source>importPage("fromDoc", (pageList), [create, imortwhere, importwherePage]) |
2302 | |||
2303 | Imports a set of pages (given as a tuple) from an existing document (the file name must be given). This functions maps the "Page->Import" dropdown menu function. |
||
2304 | fromDoc: string; the filename of the document to import pages from |
||
2305 | pageList: tuple with page numbers of pages to import |
||
2306 | create: number; 0 to replace existing pages, 1 (default) to insert new pages |
||
2307 | importWhere: number; the page number (of the current document) at which import the pages |
||
2308 | importWherePage: number; used if create==1; 0 to create pages before selected page; 1 to create pages after selected page; 2 (default) to create pages at the end of the document |
||
2309 | </source> |
||
2310 | <translation type="unfinished"></translation> |
||
2311 | </message> |
||
2312 | <message> |
||
14474 | cbradney | 2313 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="17"/> |
12918 | cbradney | 2314 | <source>setGradientFill(type, "color1", shade1, "color2", shade2, ["name"]) |
2315 | |||
2316 | Sets the gradient fill of the object "name" to type. Color descriptions are |
||
2317 | the same as for setFillColor() and setFillShade(). See the constants for |
||
2318 | available types (FILL_<type>). |
||
2319 | </source> |
||
2320 | <translation type="unfinished">setGradientFill(type, "color1", shade1, "color2", shade2, ["name"]) |
||
2321 | |||
2322 | Установлює заповнення градієнтом об'єкта "name" типом type. Описання |
||
2323 | кольорів застосовуються так же як і в setFillColor() та setFillShade(). Дивіться |
||
2324 | константи для доступних типів (FILL_<type>). |
||
2325 | </translation> |
||
2326 | </message> |
||
2327 | <message> |
||
14474 | cbradney | 2328 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="28"/> |
2329 | <source>setGradientStop("color", shade, opacity, ramppoint, ["name"]) |
||
2330 | |||
2331 | Set or add a gradient stop to the gradient fill of the object "name" at position ramppoint. |
||
2332 | Color descriptions are the same as for setFillColor() and setFillShade(). setGradientFill() |
||
2333 | must have been called previously for the gradient fill to be visible. |
||
2334 | </source> |
||
2335 | <translation type="unfinished"></translation> |
||
2336 | </message> |
||
2337 | <message> |
||
2338 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="39"/> |
||
12918 | cbradney | 2339 | <source>setFillColor("color", ["name"]) |
2340 | |||
2341 | Sets the fill color of the object "name" to the color "color". "color" |
||
2342 | is the name of one of the defined colors. If "name" is not given the |
||
2343 | currently selected item is used. |
||
2344 | </source> |
||
2345 | <translation type="unfinished">setFillColor("color", ["name"]) |
||
2346 | |||
2347 | Установлює колір заповнення "color" для об''єкта "name". "color" |
||
2348 | повинен бути попередньо визначеним. Якщо "name" не задано, |
||
2349 | буде використано активний об'єкт. |
||
2350 | </translation> |
||
2351 | </message> |
||
2352 | <message> |
||
14474 | cbradney | 2353 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="50"/> |
12918 | cbradney | 2354 | <source>setFillTransparency(transparency, ["name"]) |
2355 | |||
2356 | Sets the fill transparency of the object "name" to transparency |
||
2357 | If "name" is not given the currently selected item is used. |
||
2358 | </source> |
||
2359 | <translation type="unfinished"></translation> |
||
2360 | </message> |
||
2361 | <message> |
||
14474 | cbradney | 2362 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="60"/> |
12918 | cbradney | 2363 | <source>setFillBlendmode(blendmode, ["name"]) |
2364 | |||
2365 | Sets the fill blendmode of the object "name" to blendmode |
||
2366 | If "name" is not given the currently selected item is used. |
||
2367 | </source> |
||
2368 | <translation type="unfinished"></translation> |
||
2369 | </message> |
||
2370 | <message> |
||
14474 | cbradney | 2371 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="70"/> |
12918 | cbradney | 2372 | <source>setLineColor("color", ["name"]) |
2373 | |||
2374 | Sets the line color of the object "name" to the color "color". If "name" |
||
2375 | is not given the currently selected item is used. |
||
2376 | </source> |
||
2377 | <translation type="unfinished">setLineColor("color", ["name"]) |
||
2378 | |||
2379 | Установлює колір "color" для об''єкта "name". Якщо "name" не задано, |
||
2380 | буде використано активний об'єкт. |
||
2381 | </translation> |
||
2382 | </message> |
||
2383 | <message> |
||
14474 | cbradney | 2384 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="80"/> |
12918 | cbradney | 2385 | <source>setLineTransparency(transparency, ["name"]) |
2386 | |||
2387 | Sets the line transparency of the object "name" to transparency |
||
2388 | If "name" is not given the currently selected item is used. |
||
2389 | </source> |
||
2390 | <translation type="unfinished"></translation> |
||
2391 | </message> |
||
2392 | <message> |
||
14474 | cbradney | 2393 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="90"/> |
12918 | cbradney | 2394 | <source>setLineBlendmode(blendmode, ["name"]) |
2395 | |||
2396 | Sets the line blendmode of the object "name" to blendmode |
||
2397 | If "name" is not given the currently selected item is used. |
||
2398 | </source> |
||
2399 | <translation type="unfinished"></translation> |
||
2400 | </message> |
||
2401 | <message> |
||
14474 | cbradney | 2402 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="100"/> |
12918 | cbradney | 2403 | <source>setLineWidth(width, ["name"]) |
2404 | |||
2405 | Sets line width of the object "name" to "width". "width" must be in the |
||
2406 | range from 0.0 to 12.0 inclusive, and is measured in points. If "name" is not |
||
2407 | given the currently selected item is used. |
||
2408 | |||
2409 | May raise ValueError if the line width is out of bounds. |
||
2410 | </source> |
||
2411 | <translation type="unfinished">setLineWidth(width, ["name"]) |
||
2412 | |||
2413 | Установлює товщину об'єкта "name" до "width". "width" повинна бути в |
||
2414 | діапазоні від 0.0 до 12.0 включно і вимірюється в точках. Якщо "name" |
||
2415 | не задано, буде використано активний об'єкт. |
||
2416 | |||
2417 | Може повернути помилку ValueError, якщо товщина лінії виходить за |
||
2418 | доступний діапазон. |
||
2419 | </translation> |
||
2420 | </message> |
||
2421 | <message> |
||
14474 | cbradney | 2422 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="113"/> |
12918 | cbradney | 2423 | <source>setLineShade(shade, ["name"]) |
2424 | |||
2425 | Sets the shading of the line color of the object "name" to "shade". |
||
2426 | "shade" must be an integer value in the range from 0 (lightest) to 100 |
||
2427 | (full color intensity). If "name" is not given the currently selected item |
||
2428 | is used. |
||
2429 | |||
2430 | May raise ValueError if the line shade is out of bounds. |
||
2431 | </source> |
||
2432 | <translation type="unfinished">setLineShade(shade, ["name"]) |
||
2433 | |||
2434 | Установлює тінь ліній об'єкта "name" до "shade". "shade" повинна бути |
||
2435 | в діапазоні від 0 (найсвітліша) до 100 (повна насиченість кольору). |
||
2436 | Якщо "name" не задано, буде використано активний об'єкт. |
||
2437 | |||
2438 | Може повернути помилку ValueError, якщо тінь виходить за |
||
2439 | доступний діапазон. |
||
2440 | </translation> |
||
2441 | </message> |
||
2442 | <message> |
||
14474 | cbradney | 2443 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="127"/> |
12918 | cbradney | 2444 | <source>setLineJoin(join, ["name"]) |
2445 | |||
2446 | Sets the line join style of the object "name" to the style "join". |
||
2447 | If "name" is not given the currently selected item is used. There are |
||
2448 | predefined constants for join - JOIN_<type>. |
||
2449 | </source> |
||
2450 | <translation type="unfinished">setLineJoin(join, ["name"]) |
||
2451 | |||
2452 | Установлює тип з'єднань ліній об'єкта "name" до стиля "join". |
||
2453 | Якщо "name" не задано, буде використано активний об'єкт. |
||
2454 | Існують попередньо визначені константи для "join" - JOIN_<type>. |
||
2455 | </translation> |
||
2456 | </message> |
||
2457 | <message> |
||
14474 | cbradney | 2458 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="138"/> |
12918 | cbradney | 2459 | <source>setLineEnd(endtype, ["name"]) |
2460 | |||
2461 | Sets the line cap style of the object "name" to the style "cap". |
||
2462 | If "name" is not given the currently selected item is used. There are |
||
2463 | predefined constants for "cap" - CAP_<type>. |
||
2464 | </source> |
||
2465 | <translation type="unfinished">setLineEnd(endtype, ["name"]) |
||
2466 | |||
2467 | Установлює тип кінцівок ліній об'єкта "name" до стиля "cap". |
||
2468 | Якщо "name" не задано, буде використано активний об'єкт. |
||
2469 | Існують попередньо визначені константи для "cap" - CAP_<type>. |
||
2470 | </translation> |
||
2471 | </message> |
||
2472 | <message> |
||
14474 | cbradney | 2473 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="149"/> |
12918 | cbradney | 2474 | <source>setLineStyle(style, ["name"]) |
2475 | |||
2476 | Sets the line style of the object "name" to the style "style". If "name" |
||
2477 | is not given the currently selected item is used. There are predefined |
||
2478 | constants for "style" - LINE_<style>. |
||
2479 | </source> |
||
2480 | <translation type="unfinished">setLineStyle(style, ["name"]) |
||
2481 | |||
2482 | Установлює стиль ліній об'єкта "name" до стиля "style". |
||
2483 | Якщо "name" не задано, буде використано активний об'єкт. |
||
2484 | Існують попередньо визначені константи для "style" - LINE_<style>. |
||
2485 | </translation> |
||
2486 | </message> |
||
2487 | <message> |
||
14474 | cbradney | 2488 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="160"/> |
12918 | cbradney | 2489 | <source>setFillShade(shade, ["name"]) |
2490 | |||
2491 | Sets the shading of the fill color of the object "name" to "shade". |
||
2492 | "shade" must be an integer value in the range from 0 (lightest) to 100 |
||
2493 | (full Color intensity). If "name" is not given the currently selected |
||
2494 | Item is used. |
||
2495 | |||
2496 | May raise ValueError if the fill shade is out of bounds. |
||
2497 | </source> |
||
2498 | <translation type="unfinished">setFillShade(shade, ["name"]) |
||
2499 | |||
2500 | Установлює тінь заповнення об'єкта "name" до "shade". "shade" |
||
2501 | повинна бути в діапазоні від 0 (найсвітліша) до 100 (повна |
||
2502 | насиченість кольору). Якщо "name" не задано, буде використано |
||
2503 | активний об'єкт. |
||
2504 | |||
2505 | Може повернути помилку ValueError, якщо тінь виходить за |
||
2506 | доступний діапазон. |
||
2507 | </translation> |
||
2508 | </message> |
||
2509 | <message> |
||
14474 | cbradney | 2510 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="174"/> |
12918 | cbradney | 2511 | <source>setCornerRadius(radius, ["name"]) |
2512 | |||
2513 | Sets the corner radius of the object "name". The radius is expressed |
||
2514 | in points. If "name" is not given the currently selected item is used. |
||
2515 | |||
2516 | May raise ValueError if the corner radius is negative. |
||
2517 | </source> |
||
2518 | <translation type="unfinished">setCornerRadius(radius, ["name"]) |
||
2519 | |||
2520 | Установлює радіус кутів об'єкта "name". Радіус виражається в точках. |
||
2521 | Якщо "name" не задано, буде використано активний об'єкт. |
||
2522 | |||
2523 | Може повернути помилку ValueError, якщо радіус негативний. |
||
2524 | </translation> |
||
2525 | </message> |
||
2526 | <message> |
||
14474 | cbradney | 2527 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="186"/> |
12918 | cbradney | 2528 | <source>setMultiLine("namedStyle", ["name"]) |
2529 | |||
2530 | Sets the line style of the object "name" to the named style "namedStyle". |
||
2531 | If "name" is not given the currently selected item is used. |
||
2532 | |||
2533 | May raise NotFoundError if the line style doesn't exist. |
||
2534 | </source> |
||
2535 | <translation type="unfinished">setMultiLine("namedStyle", ["name"]) |
||
2536 | |||
2537 | Установлює стиль ліній об'єкта "name" до стиля "namedStyle". |
||
2538 | Якщо "name" не задано, буде використано активний об'єкт. |
||
2539 | |||
2540 | Може повернути помилку NotFoundError, якщо цей стиль ліній не існує. |
||
2541 | </translation> |
||
2542 | </message> |
||
2543 | <message> |
||
14474 | cbradney | 2544 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="17"/> |
4759 | cbradney | 2545 | <source>getFontSize(["name"]) -> float |
1135 | cbradney | 2546 | |
2547 | Returns the font size in points for the text frame "name". If this text |
||
2548 | frame has some text selected the value assigned to the first character of |
||
2549 | the selection is returned. |
||
2550 | If "name" is not given the currently selected item is used. |
||
2551 | </source> |
||
12612 | cbradney | 2552 | <translation type="unfinished">getFontSize(["name"]) -> float |
1234 | cbradney | 2553 | |
2554 | Повертає розмір шрифта в тчк для текстової рамки з назвою "name". Якщо в цій |
||
2555 | текстовій рамці вибрано частину тексту, то функція повертає значення для |
||
4759 | cbradney | 2556 | першого знака вибірки. Якщо "name" не вказане, буде використано активний об'єкт.</translation> |
1135 | cbradney | 2557 | </message> |
2558 | <message> |
||
14474 | cbradney | 2559 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="29"/> |
12918 | cbradney | 2560 | <source>getFont(["name"]) -> string |
2561 | |||
2562 | Returns the font name for the text frame "name". If this text frame |
||
2563 | has some text selected the value assigned to the first character |
||
2564 | of the selection is returned. If "name" is not given the currently |
||
2565 | selected item is used. |
||
2566 | </source> |
||
2567 | <translation type="unfinished">getFont(["name"]) -> string |
||
2568 | |||
2569 | Повертає ім'я шрифта в текстовій рамці "name". Якщо частина текста |
||
2570 | в цій рамці виділена, то повертає значення для першого знака вибірки. |
||
2571 | Якщо "name" не вказане - повертає значення для активного об'єкту.</translation> |
||
2572 | </message> |
||
2573 | <message> |
||
14474 | cbradney | 2574 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="41"/> |
12918 | cbradney | 2575 | <source>getTextLength(["name"]) -> integer |
2576 | |||
2577 | Returns the length of the text in the text frame "name". |
||
2578 | If "name" is not given the currently selected item is used. |
||
2579 | </source> |
||
2580 | <translation type="unfinished">getTextLength(["name"]) -> integer |
||
2581 | |||
2582 | Повертає довжину тексту в текстовій рамці з ім'ям "name". |
||
2583 | Якщо "name" не вказане, то використовується активний |
||
2584 | об'єкт.</translation> |
||
2585 | </message> |
||
2586 | <message> |
||
14474 | cbradney | 2587 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="51"/> |
12918 | cbradney | 2588 | <source>getTextLines(["name"]) -> integer |
2589 | |||
2590 | Returns the number of lines of the text in the text frame "name". |
||
2591 | If "name" is not given the currently selected item is used. |
||
2592 | </source> |
||
2593 | <translation type="unfinished"></translation> |
||
2594 | </message> |
||
2595 | <message> |
||
14474 | cbradney | 2596 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="61"/> |
12918 | cbradney | 2597 | <source>getText(["name"]) -> string |
2598 | |||
2599 | Returns the text of the text frame "name". If this text frame has some text |
||
2600 | selected, the selected text is returned. All text in the frame, not just |
||
2601 | currently visible text, is returned. If "name" is not given the currently |
||
2602 | selected item is used. |
||
2603 | </source> |
||
2604 | <translation type="unfinished">getText(["name"]) -> string |
||
2605 | |||
2606 | Повертає текст з текстової рамки "name". Якщо в цій рамці частина тексту |
||
2607 | виділена, то повертає виділений текст. Повертає весь текст в рамці, а не |
||
2608 | тільки видиму частину. Якщо "name" не вказане, то використовується |
||
2609 | активний об'єкт. |
||
2610 | </translation> |
||
2611 | </message> |
||
2612 | <message> |
||
14474 | cbradney | 2613 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="73"/> |
12918 | cbradney | 2614 | <source>getAllText(["name"]) -> string |
2615 | |||
2616 | Returns the text of the text frame "name" and of all text frames which are |
||
2617 | linked with this frame. If this textframe has some text selected, the selected |
||
2618 | text is returned. If "name" is not given the currently selected item is |
||
2619 | used. |
||
2620 | </source> |
||
2621 | <translation type="unfinished">getAllText(["name"]) -> string |
||
2622 | |||
2623 | Повертає текст із текстової рамки "name" і всіх текстових рамок зв'язаних з нею. |
||
2624 | Якщо в цій рамці частина тексту виділена, то повертає виділений текст. Якщо |
||
2625 | "name" не вказано, то використовується активний об'єкт. |
||
2626 | </translation> |
||
2627 | </message> |
||
2628 | <message> |
||
14474 | cbradney | 2629 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="85"/> |
12918 | cbradney | 2630 | <source>getLineSpacing(["name"]) -> float |
2631 | |||
2632 | Returns the line spacing ("leading") of the text frame "name" expressed in |
||
2633 | points. If "name" is not given the currently selected item is used. |
||
2634 | </source> |
||
2635 | <translation type="unfinished">getLineSpacing(["name"]) -> float |
||
2636 | |||
2637 | Повертає міжрядковий інтервал ("leading") текстової рамки з ім'ям "name", |
||
2638 | виражений в точках. Якщо "name" не вказано, то використовується активний |
||
2639 | об'єкт.</translation> |
||
2640 | </message> |
||
2641 | <message> |
||
14474 | cbradney | 2642 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="95"/> |
12918 | cbradney | 2643 | <source>getTextDistances(["name"]) -> tuple |
2644 | |||
2645 | Returns the text distances of the text frame "name" expressed in points. The |
||
2646 | distances are returned as a tuple like (left, right, top, bottom). If "name" |
||
2647 | is not given the currently selected item is used. |
||
2648 | </source> |
||
2649 | <translation type="unfinished"></translation> |
||
2650 | </message> |
||
2651 | <message> |
||
14474 | cbradney | 2652 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="106"/> |
12918 | cbradney | 2653 | <source>getColumnGap(["name"]) -> float |
2654 | |||
2655 | Returns the column gap size of the text frame "name" expressed in points. If |
||
2656 | "name" is not given the currently selected item is used. |
||
2657 | </source> |
||
2658 | <translation type="unfinished">getColumnGap(["name"]) -> float |
||
2659 | |||
2660 | Повертає розмір інтервалу між колонками тексту в текстовій рамці "name", |
||
2661 | виражений в точках. Якщо "name" не задано, використовується активний |
||
2662 | об'єкт.</translation> |
||
2663 | </message> |
||
2664 | <message> |
||
14474 | cbradney | 2665 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="116"/> |
12918 | cbradney | 2666 | <source>getColumns(["name"]) -> integer |
2667 | |||
2668 | Gets the number of columns of the text frame "name". If "name" is not |
||
2669 | given the currently selected item is used. |
||
2670 | </source> |
||
2671 | <translation type="unfinished">getColumns(["name"]) -> integer |
||
2672 | |||
2673 | Повертає число колонок тексту в текстовій рамці "name". Якщо "name" |
||
2674 | не вказано, використовується активний об'єкт.</translation> |
||
2675 | </message> |
||
2676 | <message> |
||
14474 | cbradney | 2677 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="126"/> |
12918 | cbradney | 2678 | <source>setText("text", ["name"]) |
2679 | |||
2680 | Sets the text of the text frame "name" to the text of the string "text". |
||
2681 | Text must be UTF8 encoded - use e.g. unicode(text, 'iso-8859-2'). See the FAQ |
||
2682 | for more details. If "name" is not given the currently selected item is |
||
2683 | used. |
||
2684 | </source> |
||
2685 | <translation type="unfinished">setText("text", ["name"]) |
||
2686 | |||
2687 | Змінює текст в текстовій рамці "name" на зміст текстової змінної "text". |
||
2688 | Текст має бути в кодуванні UTF8 - використовуйте, наприклад, |
||
2689 | unicode(text, 'iso-8859-2'). Додаткова інформація по цьому приводу |
||
2690 | розміщена в часто задаваних питаннях. Якщо "name" не вказано, то |
||
2691 | використовується активний об'єкт.</translation> |
||
2692 | </message> |
||
2693 | <message> |
||
14474 | cbradney | 2694 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="138"/> |
12918 | cbradney | 2695 | <source>insertText("text", pos, ["name"]) |
2696 | |||
2697 | Inserts the text "text" at the position "pos" into the text frame "name". |
||
2698 | Text must be UTF encoded (see setText() as reference) The first character has an |
||
2699 | index of 0. Inserting text at position -1 appends it to the frame. If "name" is |
||
2700 | not given the currently selected Item is used. |
||
2701 | |||
2702 | May throw IndexError for an insertion out of bounds. |
||
2703 | </source> |
||
2704 | <translation type="unfinished"></translation> |
||
2705 | </message> |
||
2706 | <message> |
||
14474 | cbradney | 2707 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="152"/> |
12918 | cbradney | 2708 | <source>setFont("font", ["name"]) |
2709 | |||
2710 | Sets the font of the text frame "name" to "font". If there is some text |
||
2711 | selected only the selected text is changed. If "name" is not given the |
||
2712 | currently selected item is used. |
||
2713 | |||
2714 | May throw ValueError if the font cannot be found. |
||
2715 | </source> |
||
2716 | <translation type="unfinished">setFont("font", ["name"]) |
||
2717 | |||
2718 | Установлює шрифт текстової рамки "name" до "font". Якщо вибрана лише |
||
2719 | частина тексту в рамці то зміна шрифта відноситься лише до неї. Якщо |
||
2720 | "name" не вказано, то використовується активний об'єкт. |
||
2721 | |||
2722 | Може повернути ValueError, якщо шрифт не може бути знайдено. |
||
2723 | </translation> |
||
2724 | </message> |
||
2725 | <message> |
||
14474 | cbradney | 2726 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="165"/> |
12918 | cbradney | 2727 | <source>setFontSize(size, ["name"]) |
2728 | |||
2729 | Sets the font size of the text frame "name" to "size". "size" is treated |
||
2730 | as a value in points. If there is some text selected only the selected text is |
||
2731 | changed. "size" must be in the range 1 to 512. If "name" is not given the |
||
2732 | currently selected item is used. |
||
2733 | |||
2734 | May throw ValueError for a font size that's out of bounds. |
||
2735 | </source> |
||
2736 | <translation type="unfinished">setFontSize(size, ["name"]) |
||
2737 | |||
2738 | Установлює розмір шрифта в текстовій рамці "name" до розміру "size". |
||
2739 | Значення "size" визначається в точках. Якщо в рамці вибрана частина |
||
2740 | тексту, то зміна розміру шрифта відноситься лише до неї. Діапазон "size" |
||
2741 | від 1 до 512. Якщо "name" не вказано, то використовується активний |
||
2742 | об'єкт. |
||
2743 | |||
2744 | Може повернути помилку ValueError, якщо розмір шрифта виходить за |
||
2745 | дозволений діапазон.</translation> |
||
2746 | </message> |
||
2747 | <message> |
||
14474 | cbradney | 2748 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="179"/> |
12918 | cbradney | 2749 | <source>setLineSpacing(size, ["name"]) |
2750 | |||
2751 | Sets the line spacing ("leading") of the text frame "name" to "size". |
||
2752 | "size" is a value in points. If "name" is not given the currently selected |
||
2753 | item is used. |
||
2754 | |||
2755 | May throw ValueError if the line spacing is out of bounds. |
||
2756 | </source> |
||
2757 | <translation type="unfinished">setLineSpacing(size, ["name"]) |
||
2758 | |||
2759 | Установлює міжрядковий інтервал (початковий) в текстовій рамці "name" |
||
2760 | до розміру "size". Значення "size" виражається в точках. Якщо "name" не |
||
2761 | вказано, використовується активний об'єкт. |
||
2762 | |||
2763 | Може повернути помилку ValueError, якщо значення інтервалу виходить |
||
2764 | за доступний діапазон. |
||
2765 | </translation> |
||
2766 | </message> |
||
2767 | <message> |
||
14474 | cbradney | 2768 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="192"/> |
2769 | <source>setLineSpacingMode(mode, ["name"]) |
||
2770 | |||
2771 | Sets the line spacing mode of the text frame "name" to "mode". |
||
2772 | If "name" is not given the currently selected |
||
2773 | item is used. |
||
2774 | Mode values are the same as in createParagraphStyle. |
||
2775 | |||
2776 | May throw ValueError if the mode is out of bounds. |
||
2777 | </source> |
||
2778 | <translation type="unfinished"></translation> |
||
2779 | </message> |
||
2780 | <message> |
||
2781 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="206"/> |
||
12918 | cbradney | 2782 | <source>setTextDistances(left, right, top, bottom, ["name"]) |
2783 | |||
2784 | Sets the text distances of the text frame "name" to the values "left" |
||
2785 | "right", "top" and "bottom". If "name" is not given the currently |
||
2786 | selected item is used. |
||
2787 | |||
2788 | May throw ValueError if any of the distances are out of bounds (must be positive). |
||
2789 | </source> |
||
2790 | <translation type="unfinished"></translation> |
||
2791 | </message> |
||
2792 | <message> |
||
14474 | cbradney | 2793 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="219"/> |
12918 | cbradney | 2794 | <source>setColumnGap(size, ["name"]) |
2795 | |||
2796 | Sets the column gap of the text frame "name" to the value "size". If |
||
2797 | "name" is not given the currently selected item is used. |
||
2798 | |||
2799 | May throw ValueError if the column gap is out of bounds (must be positive). |
||
2800 | </source> |
||
2801 | <translation type="unfinished">setColumnGap(size, ["name"]) |
||
2802 | |||
2803 | Установлює проміжок між колонками в текстовій рамці "name" до значення |
||
2804 | "size". Якщо "name" не задано, використовується активний об'єкт. |
||
2805 | |||
2806 | Може повернути помилку ValueError, якщо проміжок між колонками виходить |
||
2807 | за доступний діапазон (повинен бути позитивним). |
||
2808 | </translation> |
||
2809 | </message> |
||
2810 | <message> |
||
14474 | cbradney | 2811 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="231"/> |
12918 | cbradney | 2812 | <source>setColumns(nr, ["name"]) |
2813 | |||
2814 | Sets the number of columns of the text frame "name" to the integer "nr". |
||
2815 | If "name" is not given the currently selected item is used. |
||
2816 | |||
2817 | May throw ValueError if number of columns is not at least one. |
||
2818 | </source> |
||
2819 | <translation type="unfinished">setColumns(nr, ["name"]) |
||
2820 | |||
2821 | Установлює число колонок в текстовій рамці "name" до цілого числа "nr". |
||
2822 | Якщо "name" не задано, використовується активний об'єкт. |
||
2823 | |||
2824 | Може повернути помилку ValueError, якщо не вказана хоч одна колонка. |
||
2825 | </translation> |
||
2826 | </message> |
||
2827 | <message> |
||
14474 | cbradney | 2828 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="243"/> |
12918 | cbradney | 2829 | <source>setTextAlignment(align, ["name"]) |
2830 | |||
2831 | Sets the text alignment of the text frame "name" to the specified alignment. |
||
2832 | If "name" is not given the currently selected item is used. "align" should |
||
2833 | be one of the ALIGN_ constants defined in this module - see dir(scribus). |
||
2834 | |||
2835 | May throw ValueError for an invalid alignment constant. |
||
2836 | </source> |
||
2837 | <translation type="unfinished">setTextAlignment(align, ["name"]) |
||
2838 | |||
2839 | Установлює вирівнювання тексту в текстовій рамці "name" до вказаного. |
||
2840 | Якщо "name" не вказано, використовується активний об'єкт. "align" повинне |
||
2841 | дорівнювати одній з констант ALIGN_ constants визначених в цьому модулі - |
||
2842 | дивіться в dir(scribus). |
||
2843 | |||
2844 | Може повернути помилку ValueError, якщо константа вирівнювання задана |
||
2845 | невірно. |
||
2846 | </translation> |
||
2847 | </message> |
||
2848 | <message> |
||
14474 | cbradney | 2849 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="256"/> |
12918 | cbradney | 2850 | <source>selectText(start, count, ["name"]) |
2851 | |||
2852 | Selects "count" characters of text in the text frame "name" starting from the |
||
2853 | character "start". Character counting starts at 0. If "count" is zero, any |
||
2854 | text selection will be cleared. If "name" is not given the currently |
||
2855 | selected item is used. |
||
2856 | |||
2857 | May throw IndexError if the selection is outside the bounds of the text. |
||
2858 | </source> |
||
2859 | <translation type="unfinished">selectText(start, count, ["name"]) |
||
2860 | |||
2861 | Вибирає "count" число знаків тексту в текстовій рамці "name", починаючи з |
||
2862 | знака "start". Рахунок знаків починається з 0. Якщо "count" дорівнює нулю, |
||
2863 | текстова вибірка буде знята. Якщо "name" не задано, буде використано |
||
2864 | активний об'єкт. |
||
2865 | |||
2866 | Може повернути помилку IndexError, якщо вибірка виходить за межі |
||
2867 | тексту. |
||
2868 | </translation> |
||
2869 | </message> |
||
2870 | <message> |
||
14474 | cbradney | 2871 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="270"/> |
12918 | cbradney | 2872 | <source>deleteText(["name"]) |
2873 | |||
2874 | Deletes any text in the text frame "name". If there is some text selected, |
||
2875 | only the selected text will be deleted. If "name" is not given the currently |
||
2876 | selected item is used. |
||
2877 | </source> |
||
2878 | <translation type="unfinished">deleteText(["name"]) |
||
2879 | |||
2880 | Видаляє весь текст в текстовій рамці "name". Якщо частина тексту вибрана |
||
2881 | то видаляється лише вона. Якщо "name" не задано, використовується |
||
2882 | активний об'єкт. |
||
2883 | </translation> |
||
2884 | </message> |
||
2885 | <message> |
||
14474 | cbradney | 2886 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="281"/> |
12918 | cbradney | 2887 | <source>setTextColor("color", ["name"]) |
2888 | |||
2889 | Sets the text color of the text frame "name" to the color "color". If there |
||
2890 | is some text selected only the selected text is changed. If "name" is not |
||
2891 | given the currently selected item is used. |
||
2892 | </source> |
||
2893 | <translation type="unfinished">setTextColor("color", ["name"]) |
||
2894 | |||
2895 | Установлює колір тексту в текстовій рамці "name" до кольору "color". Якщо |
||
2896 | частина тексту вибрана - змінюється лише вона. Якщо "name" не задано, |
||
2897 | використовується активний об'єкт. |
||
2898 | </translation> |
||
2899 | </message> |
||
2900 | <message> |
||
14474 | cbradney | 2901 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="292"/> |
12918 | cbradney | 2902 | <source>setTextStroke("color", ["name"]) |
2903 | |||
2904 | Set "color" of the text stroke. If "name" is not given the currently |
||
2905 | selected item is used. |
||
2906 | </source> |
||
2907 | <translation type="unfinished">setTextStroke("color", ["name"]) |
||
2908 | |||
2909 | Установлює колір "color" текстового контура. Якщо "name" не задано, |
||
2910 | використовується активний об'єкт. |
||
2911 | </translation> |
||
2912 | </message> |
||
2913 | <message> |
||
14474 | cbradney | 2914 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="302"/> |
2915 | <source>setTextScalingV(scale, ["name"]) |
||
2916 | |||
2917 | Sets the vertical character scaling of the object "name" to "scale" in percent. |
||
2918 | If "name" is not given the currently selected item is used. |
||
2919 | </source> |
||
2920 | <translation type="unfinished"></translation> |
||
2921 | </message> |
||
2922 | <message> |
||
2923 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="312"/> |
||
2924 | <source>setTextScalingH(scale, ["name"]) |
||
2925 | |||
2926 | Sets the horizontal character scaling of the object "name" to "scale" in percent. |
||
2927 | If "name" is not given the currently selected item is used. |
||
2928 | </source> |
||
2929 | <translation type="unfinished"></translation> |
||
2930 | </message> |
||
2931 | <message> |
||
2932 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="322"/> |
||
12918 | cbradney | 2933 | <source>setTextShade(shade, ["name"]) |
2934 | |||
2935 | Sets the shading of the text color of the object "name" to "shade". If |
||
2936 | there is some text selected only the selected text is changed. "shade" must |
||
2937 | be an integer value in the range from 0 (lightest) to 100 (full color |
||
2938 | intensity). If "name" is not given the currently selected item is |
||
2939 | used. |
||
2940 | </source> |
||
2941 | <translation type="unfinished">setTextShade(shade, ["name"]) |
||
2942 | |||
2943 | Установлює тінь кольору тексту об'єкта "name" до "shade". Якщо |
||
2944 | частина тексту вибрана - змінюється лише вона. "shade" має бути |
||
2945 | цілим числом від 0 (найсвітліша) до 100 (повна насиченість кольору). |
||
2946 | Якщо "name" не задано, використовується активний об'єкт. |
||
2947 | </translation> |
||
2948 | </message> |
||
2949 | <message> |
||
14474 | cbradney | 2950 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="335"/> |
12918 | cbradney | 2951 | <source>linkTextFrames("fromname", "toname") |
2952 | |||
2953 | Link two text frames. The frame named "fromname" is linked to the |
||
2954 | frame named "toname". The target frame must be an empty text frame |
||
2955 | and must not link to or be linked from any other frames already. |
||
2956 | |||
2957 | May throw ScribusException if linking rules are violated. |
||
2958 | </source> |
||
2959 | <translation type="unfinished">linkTextFrames("fromname", "toname") |
||
2960 | |||
2961 | Зв'язує дві текстові рамки. Рамка з ім'ям "fromname" приєднується до |
||
2962 | рамки з ім'ям "toname". Кінцева рамка має бути пустою текстовою |
||
2963 | рамкою і не повинна бути з'єднана ні з якою іншою рамкою. |
||
2964 | |||
2965 | Може повернути помилку ScribusException, якщо відбувається порушення |
||
2966 | правил зв'язування рамок. |
||
2967 | </translation> |
||
2968 | </message> |
||
2969 | <message> |
||
14474 | cbradney | 2970 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="352"/> |
12918 | cbradney | 2971 | <source>unlinkTextFrames("name") |
2972 | |||
2973 | Remove the specified (named) object from the text frame flow/linkage. If the |
||
2974 | frame was in the middle of a chain, the previous and next frames will be |
||
2975 | connected, eg 'a->b->c' becomes 'a->c' when you unlinkTextFrames(b)' |
||
2976 | |||
2977 | May throw ScribusException if linking rules are violated. |
||
2978 | </source> |
||
2979 | <translation type="unfinished">unlinkTextFrames("name") |
||
2980 | |||
2981 | Видаляє вказаний (названий) об'єкт з ланцюжка зв'язаних текстових |
||
2982 | рамок. Якщо рамка знаходиться всередині ланцюжка, то рамки, які |
||
2983 | знаходилися перед і після неї будуть з'єднані, наприклад 'a->b->c' |
||
2984 | зміниться на 'a->c', при виконанні unlinkTextFrames(b)' |
||
2985 | |||
2986 | Може повернути помилку ScribusException при порушенні правил |
||
2987 | з'єднання рамок. |
||
2988 | </translation> |
||
2989 | </message> |
||
2990 | <message> |
||
14474 | cbradney | 2991 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="369"/> |
12918 | cbradney | 2992 | <source>traceText(["name"]) |
2993 | |||
2994 | Convert the text frame "name" to outlines. If "name" is not given the |
||
2995 | currently selected item is used.</source> |
||
2996 | <translation type="unfinished">traceText(["name"]) |
||
2997 | |||
2998 | Конвертує текстову рамку "name" в контурний текст. Якщо "name" |
||
2999 | не вказано, використовується активний об'єкт.</translation> |
||
3000 | </message> |
||
3001 | <message> |
||
14474 | cbradney | 3002 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="380"/> |
12918 | cbradney | 3003 | <source>textOverflows(["name", nolinks]) -> integer |
3004 | |||
3005 | Returns the actual number of overflowing characters in text frame "name". |
||
3006 | If is nolinks set to non zero value it takes only one frame - it doesn't |
||
3007 | use text frame linking. Without this parameter it search all linking chain. |
||
3008 | |||
3009 | May raise WrongFrameTypeError if the target frame is not an text frame |
||
3010 | </source> |
||
3011 | <translation type="unfinished">textOverflows(["name", nolinks]) -> ціле число |
||
3012 | |||
3013 | Повертає дійсне число знаків, які виходять за межі текстової рамки "name". |
||
3014 | Якщо nolinks не дорівнює нулю, опрацьовується лише одна рамка. Зв'язування рамок не грає ролі. При відсутності цього параметра пошук проводиться по всіх зв'язаних рамках. |
||
3015 | |||
3016 | Може повернути помилку WrongFrameTypeError, якщо цільова рамка не являється текстовою</translation> |
||
3017 | </message> |
||
3018 | <message> |
||
14474 | cbradney | 3019 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="393"/> |
12918 | cbradney | 3020 | <source>hyphenateText(["name"]) -> bool |
3021 | |||
3022 | Does hyphenation on text frame "name". |
||
3023 | If "name" is not given the currently selected item is used. |
||
3024 | |||
3025 | May raise WrongFrameTypeError if the target frame is not a text frame |
||
3026 | </source> |
||
3027 | <translation type="unfinished"></translation> |
||
3028 | </message> |
||
3029 | <message> |
||
14474 | cbradney | 3030 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="407"/> |
12918 | cbradney | 3031 | <source>dehyphenateText(["name"]) -> bool |
3032 | |||
3033 | Does dehyphenation on text frame "name". |
||
3034 | If "name" is not given the currently selected item is used. |
||
3035 | |||
3036 | May raise WrongFrameTypeError if the target frame is not a text frame |
||
3037 | </source> |
||
3038 | <translation type="unfinished"></translation> |
||
3039 | </message> |
||
3040 | <message> |
||
14474 | cbradney | 3041 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="422"/> |
12918 | cbradney | 3042 | <source>setPDFBookmark("toggle", ["name"]) |
3043 | |||
3044 | Sets whether (toggle = 1) the text frame "name" is a bookmark nor not. |
||
3045 | If "name" is not given the currently selected item is used. |
||
3046 | |||
3047 | May raise WrongFrameTypeError if the target frame is not a text frame |
||
3048 | </source> |
||
3049 | <translation type="unfinished"></translation> |
||
3050 | </message> |
||
3051 | <message> |
||
14474 | cbradney | 3052 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="434"/> |
12918 | cbradney | 3053 | <source>isPDFBookmark(["name"]) -> bool |
3054 | |||
3055 | Returns true if the text frame "name" is a PDF bookmark. |
||
3056 | If "name" is not given the currently selected item is used. |
||
3057 | |||
3058 | May raise WrongFrameTypeError if the target frame is not a text frame |
||
3059 | </source> |
||
3060 | <translation type="unfinished">isPDFBookmark(["name"]) -> bool |
||
3061 | |||
3062 | Повертає булеве значення true, якщо текстова рамка "name" є закладкою PDF. |
||
3063 | Якщо "name" не задано, буде використано активний об'єкт. |
||
3064 | |||
3065 | Може повернути помилку WrongFrameTypeError, якщо задана рамка не |
||
3066 | являється текстовою |
||
3067 | </translation> |
||
3068 | </message> |
||
3069 | <message> |
||
14474 | cbradney | 3070 | <location filename="../../../scribus/plugins/scriptplugin/guiapp.h" line="17"/> |
12918 | cbradney | 3071 | <source>messagebarText("string") |
3072 | |||
3073 | Writes the "string" into the Scribus message bar (status line). The text |
||
3074 | must be UTF8 encoded or 'unicode' string(recommended). |
||
3075 | </source> |
||
3076 | <translation type="unfinished">messagebarText("string") |
||
3077 | |||
3078 | Поміщає строкову величину "string" в панель повідомлень Scribus (полоса статусу). |
||
3079 | Текст має бути в UTF8 кодуванні або строковою величиною 'unicode' (рекомендовано). |
||
3080 | </translation> |
||
3081 | </message> |
||
3082 | <message> |
||
14474 | cbradney | 3083 | <location filename="../../../scribus/plugins/scriptplugin/guiapp.h" line="30"/> |
12918 | cbradney | 3084 | <source>progressReset() |
3085 | |||
3086 | Cleans up the Scribus progress bar previous settings. It is called before the |
||
3087 | new progress bar use. See progressSet. |
||
3088 | </source> |
||
3089 | <translation type="unfinished">progressReset() |
||
3090 | |||
3091 | Видалає попередні установки панелі прогресу. Викликається до нового |
||
3092 | використання панелі. Див. progressSet. |
||
3093 | </translation> |
||
3094 | </message> |
||
3095 | <message> |
||
14474 | cbradney | 3096 | <location filename="../../../scribus/plugins/scriptplugin/guiapp.h" line="43"/> |
12918 | cbradney | 3097 | <source>progressTotal(max) |
3098 | |||
3099 | Sets the progress bar's maximum steps value to the specified number. |
||
3100 | See progressSet. |
||
3101 | </source> |
||
3102 | <translation type="unfinished">progressTotal(max) |
||
3103 | |||
3104 | Установлює максимальне значення для панелі прогресу до заданого |
||
3105 | число. Див. progressSet. |
||
3106 | </translation> |
||
3107 | </message> |
||
3108 | <message> |
||
14474 | cbradney | 3109 | <location filename="../../../scribus/plugins/scriptplugin/guiapp.h" line="52"/> |
12918 | cbradney | 3110 | <source>progressSet(nr) |
3111 | |||
3112 | Set the progress bar position to "nr", a value relative to the previously set |
||
3113 | progressTotal. The progress bar uses the concept of steps; you give it the |
||
3114 | total number of steps and the number of steps completed so far and it will |
||
3115 | display the percentage of steps that have been completed. You can specify the |
||
3116 | total number of steps with progressTotal(). The current number of steps is set |
||
3117 | with progressSet(). The progress bar can be rewound to the beginning with |
||
3118 | progressReset(). [based on info taken from Trolltech's Qt docs] |
||
3119 | </source> |
||
3120 | <translation type="unfinished">progressSet(nr) |
||
3121 | |||
3122 | Установлює позицію панелі прогресу до значення "nr" відносно |
||
3123 | попередньо вираженого значення progressTotal. Панель прогресу |
||
3124 | виражає концепцію сходинок - задається загальне число сходинок |
||
3125 | та число пройдених сходинок і панель буде показувати прогрес |
||
3126 | проходження сходинок у відсотках від завершення. Сумма сходинок |
||
3127 | задається значенням progressTotal(). Активне число сходинок |
||
3128 | установлюється за допомогою progressSet(). Панель прогресу може |
||
3129 | бути повернена на початок за допомогою progressReset(). [основано |
||
3130 | на документації фірми Trolltech's по Qt] |
||
3131 | </translation> |
||
3132 | </message> |
||
3133 | <message> |
||
14474 | cbradney | 3134 | <location filename="../../../scribus/plugins/scriptplugin/guiapp.h" line="66"/> |
12918 | cbradney | 3135 | <source>setCursor() |
3136 | |||
3137 | [UNSUPPORTED!] This might break things, so steer clear for now. |
||
3138 | </source> |
||
3139 | <translation type="unfinished">setCursor() |
||
3140 | |||
3141 | [НЕ ПІДТРИМУЄТЬСЯ!] Може призвести до помилок в роботі програми. |
||
3142 | Поки що не використовуйте. |
||
3143 | </translation> |
||
3144 | </message> |
||
3145 | <message> |
||
14474 | cbradney | 3146 | <location filename="../../../scribus/plugins/scriptplugin/guiapp.h" line="78"/> |
12918 | cbradney | 3147 | <source>docChanged(bool) |
3148 | |||
3149 | Enable/disable save icon in the Scribus icon bar and the Save menu item. It's |
||
3150 | useful to call this procedure when you're changing the document, because Scribus |
||
3151 | won't automatically notice when you change the document using a script. |
||
3152 | </source> |
||
3153 | <translation type="unfinished">docChanged(булеве значення) |
||
3154 | |||
3155 | Ввімкнути/вимкнути іконку запису на панелі іконокScribus та в меню "Записати". |
||
3156 | Використовуйте цю функцію при зміні документа, тому що Scribus не реєструє |
||
3157 | змін автоматично при роботі сценарія. |
||
3158 | </translation> |
||
3159 | </message> |
||
3160 | <message> |
||
14474 | cbradney | 3161 | <location filename="../../../scribus/plugins/scriptplugin/guiapp.h" line="91"/> |
12918 | cbradney | 3162 | <source>zoomDocument(double) |
3163 | |||
3164 | Zoom the document in main GUI window. Actions have whole number |
||
3165 | values like 20.0, 100.0, etc. Zoom to Fit uses -100 as a marker. |
||
3166 | </source> |
||
3167 | <translation type="unfinished">zoomDocument(double) |
||
3168 | |||
3169 | Збільшує масштаб документа в головному вікні. Значення збільшення |
||
3170 | встановлюється в числах типу 20.0, 100.0, і т.д. Збільшити до розміру вікна |
||
3171 | використовує -100 як позначку. |
||
3172 | </translation> |
||
3173 | </message> |
||
3174 | <message> |
||
14474 | cbradney | 3175 | <location filename="../../../scribus/plugins/scriptplugin/guiapp.h" line="103"/> |
12918 | cbradney | 3176 | <source>scrollDocument(x,y) |
3177 | |||
3178 | Scroll the document in main GUI window by x and y. |
||
3179 | </source> |
||
3180 | <translation type="unfinished"></translation> |
||
3181 | </message> |
||
3182 | <message> |
||
14474 | cbradney | 3183 | <location filename="../../../scribus/plugins/scriptplugin/cmdstyle.h" line="22"/> |
3184 | <source>createParagraphStyle(...) |
||
12918 | cbradney | 3185 | |
14474 | cbradney | 3186 | Creates a paragraph style. This function takes the following keyword parameters: |
12918 | cbradney | 3187 | |
14474 | cbradney | 3188 | "name" [required] -> specifies the name of the paragraphstyle to create |
12918 | cbradney | 3189 | |
14474 | cbradney | 3190 | linespacingmode [optional] -> specifies the linespacing mode; possible modes are: |
12918 | cbradney | 3191 | |
14474 | cbradney | 3192 | fixed linespacing: 0 |
12918 | cbradney | 3193 | |
14474 | cbradney | 3194 | automatic linespacing: 1 |
12918 | cbradney | 3195 | |
14474 | cbradney | 3196 | baseline grid linespacing: 2 |
12918 | cbradney | 3197 | |
14474 | cbradney | 3198 | linespacing [optional] -> specifies the linespacing if using fixed linespacing |
12918 | cbradney | 3199 | |
14474 | cbradney | 3200 | alignment [optional] -> specifies the alignment of the paragraph |
13279 | cbradney | 3201 | |
14474 | cbradney | 3202 | -> left: 0 |
13279 | cbradney | 3203 | |
14474 | cbradney | 3204 | -> center: 1 |
13279 | cbradney | 3205 | |
14474 | cbradney | 3206 | -> right: 2 |
13279 | cbradney | 3207 | |
14474 | cbradney | 3208 | -> justify: 3 |
3209 | |||
3210 | -> extend: 4 |
||
3211 | |||
3212 | leftmargin [optional], rightmargin [optional] -> specify the margin |
||
3213 | |||
3214 | gapbefore [optional], gapafter [optional] -> specify the gaps to the heading and following paragraphs |
||
3215 | |||
3216 | firstindent [optional] -> the indent of the first line |
||
3217 | |||
3218 | hasdropcap [optional] -> specifies if there are caps (1 = yes, 0 = no) |
||
3219 | |||
3220 | dropcaplines [optional] -> height (in lines) of the caps if used |
||
3221 | |||
3222 | dropcapoffset [optional] -> offset of the caps if used |
||
3223 | |||
3224 | "charstyle" [optional] -> char style to use |
||
3225 | |||
13279 | cbradney | 3226 | </source> |
3227 | <translation type="unfinished"></translation> |
||
3228 | </message> |
||
3229 | <message> |
||
14474 | cbradney | 3230 | <location filename="../../../scribus/plugins/scriptplugin/cmdstyle.h" line="52"/> |
3231 | <source>createCharStyle(...) |
||
13279 | cbradney | 3232 | |
14474 | cbradney | 3233 | Creates a character style. This function takes the following keyword parameters: |
13279 | cbradney | 3234 | |
14474 | cbradney | 3235 | "name" [required] -> name of the char style to create |
3236 | |||
3237 | "font" [optional] -> name of the font to use |
||
3238 | |||
3239 | fontsize [optional] -> font size to set (double) |
||
3240 | |||
3241 | "features" [optional] -> nearer typographic details can be defined by a string that might contain the following phrases comma-seperated (without spaces!): |
||
3242 | |||
3243 | -> inherit |
||
3244 | |||
3245 | -> bold |
||
3246 | |||
3247 | -> italic |
||
3248 | |||
3249 | -> underline |
||
3250 | |||
3251 | -> underlinewords |
||
3252 | |||
3253 | -> strike |
||
3254 | |||
3255 | -> superscript |
||
3256 | |||
3257 | -> subscript |
||
3258 | |||
3259 | -> outline |
||
3260 | |||
3261 | -> shadowed |
||
3262 | |||
3263 | -> allcaps |
||
3264 | |||
3265 | -> smallcaps |
||
3266 | |||
3267 | "fillcolor" [optional], "fillshade" [optional] -> specify fill options |
||
3268 | |||
3269 | "strokecolor" [optional], "strokeshade" [optional] -> specify stroke options |
||
3270 | |||
3271 | baselineoffset [optional] -> offset of the baseline |
||
3272 | |||
3273 | shadowxoffset [optional], shadowyoffset [optional] -> offset of the shadow if used |
||
3274 | |||
3275 | outlinewidth [optional] -> width of the outline if used |
||
3276 | |||
3277 | underlineoffset [optional], underlinewidth [optional] -> underline options if used |
||
3278 | |||
3279 | strikethruoffset [optional], strikethruwidth [optional] -> strikethru options if used |
||
3280 | |||
3281 | scaleh [optional], scalev [optional] -> scale of the chars |
||
3282 | |||
3283 | tracking [optional] -> tracking of the text |
||
3284 | |||
3285 | "language" [optional] -> language code |
||
3286 | |||
13279 | cbradney | 3287 | </source> |
3288 | <translation type="unfinished"></translation> |
||
3289 | </message> |
||
3290 | <message> |
||
14474 | cbradney | 3291 | <location filename="../../../scribus/plugins/scriptplugin/svgimport.h" line="15"/> |
15099 | cbradney | 3292 | <source>placeVectorFile("filename", x, y) |
3293 | |||
3294 | Places the Vectorgrapics "filename" onto the current page, |
||
3295 | x and y specify the coordinate of the topleft corner of the graphic placed on the page |
||
3296 | |||
3297 | If loading was successful, the selection contains the imported grapic |
||
3298 | </source> |
||
3299 | <translation type="unfinished"></translation> |
||
3300 | </message> |
||
3301 | <message> |
||
3302 | <location filename="../../../scribus/plugins/scriptplugin/svgimport.h" line="27"/> |
||
14474 | cbradney | 3303 | <source>placeSVG("filename", x, y) |
13279 | cbradney | 3304 | |
14474 | cbradney | 3305 | Places the SVG "filename" onto the current page, |
3306 | x and y specify the coordinate of the topleft corner of the SVG placed on the page |
||
13279 | cbradney | 3307 | |
14474 | cbradney | 3308 | If loading was successful, the selection contains the imported SVG |
13279 | cbradney | 3309 | </source> |
3310 | <translation type="unfinished"></translation> |
||
3311 | </message> |
||
3312 | <message> |
||
15099 | cbradney | 3313 | <location filename="../../../scribus/plugins/scriptplugin/svgimport.h" line="39"/> |
14474 | cbradney | 3314 | <source>placeEPS("filename", x, y) |
13279 | cbradney | 3315 | |
14474 | cbradney | 3316 | Places the EPS "filename" onto the current page, |
3317 | x and y specify the coordinate of the topleft corner of the EPS placed on the page |
||
3318 | |||
3319 | If loading was successful, the selection contains the imported EPS |
||
13279 | cbradney | 3320 | </source> |
3321 | <translation type="unfinished"></translation> |
||
3322 | </message> |
||
3323 | <message> |
||
15099 | cbradney | 3324 | <location filename="../../../scribus/plugins/scriptplugin/svgimport.h" line="51"/> |
14474 | cbradney | 3325 | <source>placeSXD("filename", x, y) |
13279 | cbradney | 3326 | |
14474 | cbradney | 3327 | Places the SXD "filename" onto the current page, |
3328 | x and y specify the coordinate of the topleft corner of the SXD placed on the page |
||
3329 | |||
3330 | If loading was successful, the selection contains the imported SXD |
||
13279 | cbradney | 3331 | </source> |
3332 | <translation type="unfinished"></translation> |
||
3333 | </message> |
||
3334 | <message> |
||
15099 | cbradney | 3335 | <location filename="../../../scribus/plugins/scriptplugin/svgimport.h" line="63"/> |
14474 | cbradney | 3336 | <source>placeODG("filename", x, y) |
13279 | cbradney | 3337 | |
14474 | cbradney | 3338 | Places the ODG "filename" onto the current page, |
3339 | x and y specify the coordinate of the topleft corner of the ODG placed on the page |
||
3340 | |||
3341 | If loading was successful, the selection contains the imported ODG |
||
13279 | cbradney | 3342 | </source> |
3343 | <translation type="unfinished"></translation> |
||
3344 | </message> |
||
12918 | cbradney | 3345 | </context> |
3346 | <context> |
||
3347 | <name>@default</name> |
||
3348 | <message> |
||
3349 | <source>getFontSize(["name"]) -> float |
||
3350 | |||
3351 | Returns the font size in points for the text frame "name". If this text |
||
3352 | frame has some text selected the value assigned to the first character of |
||
3353 | the selection is returned. |
||
3354 | If "name" is not given the currently selected item is used. |
||
3355 | </source> |
||
3356 | <translation type="obsolete">getFontSize(["name"]) -> float |
||
3357 | |||
3358 | Повертає розмір шрифта в тчк для текстової рамки з назвою "name". Якщо в цій |
||
3359 | текстовій рамці вибрано частину тексту, то функція повертає значення для |
||
3360 | першого знака вибірки. Якщо "name" не вказане, буде використано активний об'єкт.</translation> |
||
3361 | </message> |
||
3362 | <message> |
||
4759 | cbradney | 3363 | <source>getColorNames() -> list |
1135 | cbradney | 3364 | |
3365 | Returns a list containing the names of all defined colors in the document. |
||
3366 | If no document is open, returns a list of the default document colors. |
||
3367 | </source> |
||
12918 | cbradney | 3368 | <translation type="obsolete">getColorNames() -> list |
1234 | cbradney | 3369 | |
3370 | Повертає список імен всіх кольорів визначених в документі. |
||
3371 | Якщо відкритий документ відсутній, повертає список основних |
||
3372 | кольорів.</translation> |
||
1135 | cbradney | 3373 | </message> |
3374 | <message> |
||
4759 | cbradney | 3375 | <source>newDocDialog() -> bool |
1135 | cbradney | 3376 | |
3377 | Displays the "New Document" dialog box. Creates a new document if the user |
||
3378 | accepts the settings. Does not create a document if the user presses cancel. |
||
3379 | Returns true if a new document was created. |
||
3380 | </source> |
||
12918 | cbradney | 3381 | <translation type="obsolete">newDocDialog() -> bool |
1234 | cbradney | 3382 | |
3383 | Показує діалогове вікно "Новий Документ". Створює новий документ, якщо |
||
3384 | користувач підтвердить установки. Не створює документ, якщо користувач |
||
3385 | вибирає кнопку "Вихід". Повернене значення дорівнює булевому "так", якщо |
||
3386 | документ було створено.</translation> |
||
1135 | cbradney | 3387 | </message> |
3388 | <message> |
||
4759 | cbradney | 3389 | <source>getFillColor(["name"]) -> string |
1135 | cbradney | 3390 | |
3391 | Returns the name of the fill color of the object "name". |
||
3392 | If "name" is not given the currently selected item is used. |
||
3393 | </source> |
||
12918 | cbradney | 3394 | <translation type="obsolete">getFillColor(["name"]) -> string |
1234 | cbradney | 3395 | |
4759 | cbradney | 3396 | Повертає ім'я кольору заповнення об'єкту під назвою 'name'. |
3397 | Якщо "name" не дано, то використовується активний об'єкт.</translation> |
||
1135 | cbradney | 3398 | </message> |
3399 | <message> |
||
4759 | cbradney | 3400 | <source>moveObject(dx, dy [, "name"]) |
1135 | cbradney | 3401 | |
3402 | Moves the object "name" by dx and dy relative to its current position. The |
||
3403 | distances are expressed in the current measurement unit of the document (see |
||
3404 | UNIT constants). If "name" is not given the currently selected item is used. |
||
3405 | If the object "name" belongs to a group, the whole group is moved. |
||
3406 | </source> |
||
12918 | cbradney | 3407 | <translation type="obsolete">moveObject(dx, dy [, "name"]) |
1234 | cbradney | 3408 | |
4759 | cbradney | 3409 | Зсовує об'єкт "name" на dx і dy відносно до його теперішньої позиції. Відстані |
1234 | cbradney | 3410 | визначаються активними одиницями виміру документа (див. константи Юнікс). |
4759 | cbradney | 3411 | Якщо "name" не дано, то використовується активний об'єкт. Якщо об'єкт "name" |
1234 | cbradney | 3412 | належить до групи, то рухається вся група. |
3413 | </translation> |
||
1135 | cbradney | 3414 | </message> |
3415 | <message> |
||
4759 | cbradney | 3416 | <source>setRedraw(bool) |
1135 | cbradney | 3417 | |
3418 | Disables page redraw when bool = False, otherwise redrawing is enabled. |
||
3419 | This change will persist even after the script exits, so make sure to call |
||
3420 | setRedraw(True) in a finally: clause at the top level of your script. |
||
3421 | </source> |
||
12918 | cbradney | 3422 | <translation type="obsolete">setRedraw(bool) |
1234 | cbradney | 3423 | |
3424 | Відключає обновлення сторінки, якщо bool = False, в протилежному |
||
3425 | випадку обновлення ввімкнене. Ця установка залишається в силі |
||
3426 | навіть після закінчення роботи сценарія. Тому в кінці сценарія |
||
3427 | необхідно помістити виклик setRedraw(True) в умові finally: в верхньому |
||
3428 | рівні сценарія.</translation> |
||
1135 | cbradney | 3429 | </message> |
3430 | <message> |
||
4759 | cbradney | 3431 | <source>createRect(x, y, width, height, ["name"]) -> string |
1135 | cbradney | 3432 | |
3433 | Creates a new rectangle on the current page and returns its name. The |
||
3434 | coordinates are given in the current measurement units of the document |
||
3435 | (see UNIT constants). "name" should be a unique identifier for the object |
||
3436 | because you need this name to reference that object in future. If "name" |
||
3437 | is not given Scribus will create one for you. |
||
3438 | |||
4759 | cbradney | 3439 | May raise NameExistsError if you explicitly pass a name that's already used. |
1135 | cbradney | 3440 | </source> |
12918 | cbradney | 3441 | <translation type="obsolete">createRect(x, y, width, height, ["name"]) -> string |
1234 | cbradney | 3442 | |
4759 | cbradney | 3443 | Створює новий прямокутник на активній сторінці і повертаю його ім'я. Координати |
1234 | cbradney | 3444 | задаються в активних одиницях виміру документа (див. константи Юнікс). "name" |
4759 | cbradney | 3445 | має унікально ідентифікувати об'єкт, тому що воно буде необхідним для звернення |
3446 | до цього об'єкта в майбутньому. Якщо "name" не вказане, то Scribus вибере його |
||
1234 | cbradney | 3447 | сам. |
3448 | |||
4759 | cbradney | 3449 | Може повернути помилку NameExistsError якщо ви вкажете ім'я, яке вже було використане. |
1234 | cbradney | 3450 | </translation> |
1135 | cbradney | 3451 | </message> |
3452 | <message> |
||
4759 | cbradney | 3453 | <source>setGradientFill(type, "color1", shade1, "color2", shade2, ["name"]) |
1135 | cbradney | 3454 | |
3455 | Sets the gradient fill of the object "name" to type. Color descriptions are |
||
3456 | the same as for setFillColor() and setFillShade(). See the constants for |
||
4759 | cbradney | 3457 | available types (FILL_<type>). |
1135 | cbradney | 3458 | </source> |
12918 | cbradney | 3459 | <translation type="obsolete">setGradientFill(type, "color1", shade1, "color2", shade2, ["name"]) |
1234 | cbradney | 3460 | |
4759 | cbradney | 3461 | Установлює заповнення градієнтом об'єкта "name" типом type. Описання |
1234 | cbradney | 3462 | кольорів застосовуються так же як і в setFillColor() та setFillShade(). Дивіться |
4759 | cbradney | 3463 | константи для доступних типів (FILL_<type>). |
1234 | cbradney | 3464 | </translation> |
1135 | cbradney | 3465 | </message> |
3466 | <message> |
||
4759 | cbradney | 3467 | <source>messagebarText("string") |
1135 | cbradney | 3468 | |
3469 | Writes the "string" into the Scribus message bar (status line). The text |
||
4759 | cbradney | 3470 | must be UTF8 encoded or 'unicode' string(recommended). |
1135 | cbradney | 3471 | </source> |
12918 | cbradney | 3472 | <translation type="obsolete">messagebarText("string") |
1234 | cbradney | 3473 | |
3474 | Поміщає строкову величину "string" в панель повідомлень Scribus (полоса статусу). |
||
4759 | cbradney | 3475 | Текст має бути в UTF8 кодуванні або строковою величиною 'unicode' (рекомендовано). |
1234 | cbradney | 3476 | </translation> |
1135 | cbradney | 3477 | </message> |
3478 | <message> |
||
4759 | cbradney | 3479 | <source>newPage(where [,"masterpage"]) |
1135 | cbradney | 3480 | |
3064 | cbradney | 3481 | Creates a new page. If "where" is -1 the new Page is appended to the |
3482 | document, otherwise the new page is inserted before "where". Page numbers are |
||
3483 | counted from 1 upwards, no matter what the displayed first page number of your |
||
3484 | document is. The optional parameter "masterpage" specifies the name of the |
||
3485 | master page for the new page. |
||
3486 | |||
3487 | May raise IndexError if the page number is out of range |
||
3488 | </source> |
||
12918 | cbradney | 3489 | <translation type="obsolete">newPage(where [,"masterpage"]) |
3443 | cbradney | 3490 | |
4759 | cbradney | 3491 | Створює нову сторінку. Якщо "where" дорівнює -1 то нова сторінка добавляється в кінець документа. В іншому випадку вона вставляється в документ перед "where". Номери сторінок внутрішньо рахуються з 1 вверх незважаючи на показаний номер документа. Необов'язковий параметр "masterpage" вказує на ім'я головної сторінки. |
3443 | cbradney | 3492 | |
3493 | Може повернути помилку IndexError, якщо номер сторінки виходить за можливий діапазон |
||
3494 | </translation> |
||
3064 | cbradney | 3495 | </message> |
3496 | <message> |
||
4759 | cbradney | 3497 | <source>importSVG("string") |
3064 | cbradney | 3498 | |
3499 | The "string" must be a valid filename for a SVG image. The text |
||
4759 | cbradney | 3500 | must be UTF8 encoded or 'unicode' string(recommended). |
3064 | cbradney | 3501 | </source> |
9729 | cbradney | 3502 | <translation type="obsolete">importSVG("string") |
3443 | cbradney | 3503 | |
4759 | cbradney | 3504 | Строкова величина "string" повинна містити ім"я файла з зображенням у форматі SVG. Текст повинет бути у кодуванні UTF8 або в строковій величині 'unicode' str (рекоменд.). |
3443 | cbradney | 3505 | </translation> |
3064 | cbradney | 3506 | </message> |
3824 | cbradney | 3507 | <message> |
4759 | cbradney | 3508 | <source>newDocument(size, margins, orientation, firstPageNumber, |
3509 | unit, pagesType, firstPageOrder) -> bool |
||
3824 | cbradney | 3510 | |
3511 | Creates a new document and returns true if successful. The parameters have the |
||
3512 | following meaning: |
||
3513 | |||
3514 | size = A tuple (width, height) describing the size of the document. You can |
||
4759 | cbradney | 3515 | use predefined constants named PAPER_<paper_type> e.g. PAPER_A4 etc. |
3824 | cbradney | 3516 | |
3517 | margins = A tuple (left, right, top, bottom) describing the document |
||
3518 | margins |
||
3519 | |||
3520 | orientation = the page orientation - constants PORTRAIT, LANDSCAPE |
||
3521 | |||
3522 | firstPageNumer = is the number of the first page in the document used for |
||
4759 | cbradney | 3523 | pagenumbering. While you'll usually want 1, it's useful to have higher |
3524 | numbers if you're creating a document in several parts. |
||
3824 | cbradney | 3525 | |
3526 | unit: this value sets the measurement units used by the document. Use a |
||
3527 | predefined constant for this, one of: UNIT_INCHES, UNIT_MILLIMETERS, |
||
3528 | UNIT_PICAS, UNIT_POINTS. |
||
3529 | |||
3530 | pagesType = One of the predefined constants PAGE_n. PAGE_1 is single page, |
||
3531 | PAGE_2 is for double sided documents, PAGE_3 is for 3 pages fold and |
||
3532 | PAGE_4 is 4-fold. |
||
3533 | |||
3534 | firstPageOrder = What is position of first page in the document. |
||
3535 | Indexed from 0 (0 = first). |
||
3536 | |||
3537 | The values for width, height and the margins are expressed in the given unit |
||
3538 | for the document. PAPER_* constants are expressed in points. If your document |
||
3539 | is not in points, make sure to account for this. |
||
3540 | |||
3541 | example: newDocument(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 7, UNIT_POINTS, |
||
3542 | PAGE_4, 3) |
||
3543 | |||
3544 | May raise ScribusError if is firstPageOrder bigger than allowed by pagesType. |
||
3545 | </source> |
||
6434 | cbradney | 3546 | <translation type="obsolete">newDocument(size, margins, orientation, firstPageNumber, |
4759 | cbradney | 3547 | unit, pagesType, firstPageOrder) -> bool |
4444 | cbradney | 3548 | |
3549 | Створює новий документ та повертає true після успішного завершення. |
||
3550 | Параметри мають такі значення: |
||
3551 | |||
3552 | size (розмір) = Тупль (ширина, висота), який описує розмір документа. Ви |
||
4759 | cbradney | 3553 | можете використовувати визначені константи типу PAPER_<paper_type>, |
4444 | cbradney | 3554 | наприклад PAPER_A4 і т.п. |
3555 | |||
3556 | margins (поля) = Тупль (ліве, праве, верхнє, нижнє), який описує поля |
||
3557 | документа. |
||
3558 | |||
3559 | orientation (орієнтація) = Орієнтація сторінки - константи PORTRAIT, LANDSCAPE |
||
3560 | |||
3561 | firstPageNumer (номер першої сторінки) = Номер першої пронумерованої сторінки |
||
3562 | документа. В більшості випадків рахунок починається з 1, але може бути корисним |
||
3563 | і використання більших чисел при створенні документа з кількох частин. |
||
3564 | |||
3565 | unit (одиниця) = Це значення установлює одиниці виміру, які використувуються |
||
3566 | в документі. Використовуйте попередньо визначені константи типу UNIT_INCHES, |
||
3567 | UNIT_MILLIMETERS, UNIT_PICAS, UNIT_POINTS. |
||
3568 | |||
3569 | pagesType (тип сторінок) = Одна з попередньо визначених констант PAGE_n. |
||
3570 | PAGE_1 - одинарна сторінка, |
||
3571 | PAGE_2 - для двохсторонніх документів, |
||
3572 | PAGE_3 - для 3-х сторінкових складок та |
||
3573 | PAGE_4 - для 4-х сторінкових складок. |
||
3574 | |||
3575 | firstPageOrder (порядок першої сторінки) = В якій позиції знаходиться перша |
||
3576 | пронумерована сторінка в документі. Індекс починається з 0. |
||
3577 | |||
3578 | Значення ширини, висоти та поля виражаються в одиницях виміру документа. |
||
3579 | Константи PAPER_* виражаються в точках. Якщо Ваш документ не вимірюється |
||
3580 | в точках, Ви маєте прийняти це до уваги. |
||
3581 | |||
3582 | Приклад: newDocument(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 7, UNIT_POINTS, |
||
3583 | PAGE_4, 3) |
||
3584 | |||
3585 | Може повернути помилку ScribusError, якщо значення firstPageOrder виходить за |
||
3586 | дозволений для pagesType діапазон. |
||
3587 | </translation> |
||
3824 | cbradney | 3588 | </message> |
1135 | cbradney | 3589 | <message> |
4759 | cbradney | 3590 | <source>getFont(["name"]) -> string |
1135 | cbradney | 3591 | |
3592 | Returns the font name for the text frame "name". If this text frame |
||
3593 | has some text selected the value assigned to the first character |
||
3594 | of the selection is returned. If "name" is not given the currently |
||
3595 | selected item is used. |
||
3596 | </source> |
||
12918 | cbradney | 3597 | <translation type="obsolete">getFont(["name"]) -> string |
1234 | cbradney | 3598 | |
4759 | cbradney | 3599 | Повертає ім'я шрифта в текстовій рамці "name". Якщо частина текста |
1234 | cbradney | 3600 | в цій рамці виділена, то повертає значення для першого знака вибірки. |
4759 | cbradney | 3601 | Якщо "name" не вказане - повертає значення для активного об'єкту.</translation> |
1135 | cbradney | 3602 | </message> |
3603 | <message> |
||
4759 | cbradney | 3604 | <source>getTextLength(["name"]) -> integer |
1135 | cbradney | 3605 | |
3606 | Returns the length of the text in the text frame "name". |
||
3607 | If "name" is not given the currently selected item is used. |
||
3608 | </source> |
||
12918 | cbradney | 3609 | <translation type="obsolete">getTextLength(["name"]) -> integer |
1234 | cbradney | 3610 | |
4759 | cbradney | 3611 | Повертає довжину тексту в текстовій рамці з ім'ям "name". |
1234 | cbradney | 3612 | Якщо "name" не вказане, то використовується активний |
4759 | cbradney | 3613 | об'єкт.</translation> |
1135 | cbradney | 3614 | </message> |
3615 | <message> |
||
4759 | cbradney | 3616 | <source>getText(["name"]) -> string |
1135 | cbradney | 3617 | |
3618 | Returns the text of the text frame "name". If this text frame has some text |
||
3619 | selected, the selected text is returned. All text in the frame, not just |
||
3620 | currently visible text, is returned. If "name" is not given the currently |
||
3621 | selected item is used. |
||
3622 | </source> |
||
12918 | cbradney | 3623 | <translation type="obsolete">getText(["name"]) -> string |
1234 | cbradney | 3624 | |
3625 | Повертає текст з текстової рамки "name". Якщо в цій рамці частина тексту |
||
3626 | виділена, то повертає виділений текст. Повертає весь текст в рамці, а не |
||
3627 | тільки видиму частину. Якщо "name" не вказане, то використовується |
||
4759 | cbradney | 3628 | активний об'єкт. |
1234 | cbradney | 3629 | </translation> |
1135 | cbradney | 3630 | </message> |
3631 | <message> |
||
4759 | cbradney | 3632 | <source>getAllText(["name"]) -> string |
1135 | cbradney | 3633 | |
3634 | Returns the text of the text frame "name" and of all text frames which are |
||
3635 | linked with this frame. If this textframe has some text selected, the selected |
||
3636 | text is returned. If "name" is not given the currently selected item is |
||
3637 | used. |
||
3638 | </source> |
||
12918 | cbradney | 3639 | <translation type="obsolete">getAllText(["name"]) -> string |
1234 | cbradney | 3640 | |
4759 | cbradney | 3641 | Повертає текст із текстової рамки "name" і всіх текстових рамок зв'язаних з нею. |
1234 | cbradney | 3642 | Якщо в цій рамці частина тексту виділена, то повертає виділений текст. Якщо |
4759 | cbradney | 3643 | "name" не вказано, то використовується активний об'єкт. |
1234 | cbradney | 3644 | </translation> |
1135 | cbradney | 3645 | </message> |
3646 | <message> |
||
4759 | cbradney | 3647 | <source>getLineSpacing(["name"]) -> float |
1135 | cbradney | 3648 | |
3649 | Returns the line spacing ("leading") of the text frame "name" expressed in |
||
3650 | points. If "name" is not given the currently selected item is used. |
||
3651 | </source> |
||
12918 | cbradney | 3652 | <translation type="obsolete">getLineSpacing(["name"]) -> float |
1234 | cbradney | 3653 | |
4759 | cbradney | 3654 | Повертає міжрядковий інтервал ("leading") текстової рамки з ім'ям "name", |
1234 | cbradney | 3655 | виражений в точках. Якщо "name" не вказано, то використовується активний |
4759 | cbradney | 3656 | об'єкт.</translation> |
1135 | cbradney | 3657 | </message> |
3658 | <message> |
||
4759 | cbradney | 3659 | <source>getColumnGap(["name"]) -> float |
1135 | cbradney | 3660 | |
3661 | Returns the column gap size of the text frame "name" expressed in points. If |
||
3662 | "name" is not given the currently selected item is used. |
||
3663 | </source> |
||
12918 | cbradney | 3664 | <translation type="obsolete">getColumnGap(["name"]) -> float |
1234 | cbradney | 3665 | |
3666 | Повертає розмір інтервалу між колонками тексту в текстовій рамці "name", |
||
3667 | виражений в точках. Якщо "name" не задано, використовується активний |
||
4759 | cbradney | 3668 | об'єкт.</translation> |
1135 | cbradney | 3669 | </message> |
3670 | <message> |
||
4759 | cbradney | 3671 | <source>getColumns(["name"]) -> integer |
1135 | cbradney | 3672 | |
3673 | Gets the number of columns of the text frame "name". If "name" is not |
||
3674 | given the currently selected item is used. |
||
3675 | </source> |
||
12918 | cbradney | 3676 | <translation type="obsolete">getColumns(["name"]) -> integer |
1234 | cbradney | 3677 | |
3678 | Повертає число колонок тексту в текстовій рамці "name". Якщо "name" |
||
4759 | cbradney | 3679 | не вказано, використовується активний об'єкт.</translation> |
1135 | cbradney | 3680 | </message> |
3681 | <message> |
||
4759 | cbradney | 3682 | <source>setText("text", ["name"]) |
1135 | cbradney | 3683 | |
3684 | Sets the text of the text frame "name" to the text of the string "text". |
||
4759 | cbradney | 3685 | Text must be UTF8 encoded - use e.g. unicode(text, 'iso-8859-2'). See the FAQ |
1135 | cbradney | 3686 | for more details. If "name" is not given the currently selected item is |
3687 | used. |
||
3688 | </source> |
||
12918 | cbradney | 3689 | <translation type="obsolete">setText("text", ["name"]) |
1234 | cbradney | 3690 | |
3691 | Змінює текст в текстовій рамці "name" на зміст текстової змінної "text". |
||
3692 | Текст має бути в кодуванні UTF8 - використовуйте, наприклад, |
||
4759 | cbradney | 3693 | unicode(text, 'iso-8859-2'). Додаткова інформація по цьому приводу |
1234 | cbradney | 3694 | розміщена в часто задаваних питаннях. Якщо "name" не вказано, то |
4759 | cbradney | 3695 | використовується активний об'єкт.</translation> |
1135 | cbradney | 3696 | </message> |
3697 | <message> |
||
4759 | cbradney | 3698 | <source>setFont("font", ["name"]) |
1135 | cbradney | 3699 | |
3700 | Sets the font of the text frame "name" to "font". If there is some text |
||
3701 | selected only the selected text is changed. If "name" is not given the |
||
3702 | currently selected item is used. |
||
3703 | |||
3704 | May throw ValueError if the font cannot be found. |
||
3705 | </source> |
||
12918 | cbradney | 3706 | <translation type="obsolete">setFont("font", ["name"]) |
1234 | cbradney | 3707 | |
3708 | Установлює шрифт текстової рамки "name" до "font". Якщо вибрана лише |
||
3709 | частина тексту в рамці то зміна шрифта відноситься лише до неї. Якщо |
||
4759 | cbradney | 3710 | "name" не вказано, то використовується активний об'єкт. |
1234 | cbradney | 3711 | |
3712 | Може повернути ValueError, якщо шрифт не може бути знайдено. |
||
3713 | </translation> |
||
1135 | cbradney | 3714 | </message> |
3715 | <message> |
||
4759 | cbradney | 3716 | <source>setFontSize(size, ["name"]) |
1135 | cbradney | 3717 | |
3718 | Sets the font size of the text frame "name" to "size". "size" is treated |
||
3719 | as a value in points. If there is some text selected only the selected text is |
||
3720 | changed. "size" must be in the range 1 to 512. If "name" is not given the |
||
3721 | currently selected item is used. |
||
3722 | |||
4759 | cbradney | 3723 | May throw ValueError for a font size that's out of bounds. |
1135 | cbradney | 3724 | </source> |
12918 | cbradney | 3725 | <translation type="obsolete">setFontSize(size, ["name"]) |
1234 | cbradney | 3726 | |
3727 | Установлює розмір шрифта в текстовій рамці "name" до розміру "size". |
||
3728 | Значення "size" визначається в точках. Якщо в рамці вибрана частина |
||
3729 | тексту, то зміна розміру шрифта відноситься лише до неї. Діапазон "size" |
||
3730 | від 1 до 512. Якщо "name" не вказано, то використовується активний |
||
4759 | cbradney | 3731 | об'єкт. |
1234 | cbradney | 3732 | |
3733 | Може повернути помилку ValueError, якщо розмір шрифта виходить за |
||
3734 | дозволений діапазон.</translation> |
||
1135 | cbradney | 3735 | </message> |
3736 | <message> |
||
4759 | cbradney | 3737 | <source>setLineSpacing(size, ["name"]) |
1135 | cbradney | 3738 | |
3739 | Sets the line spacing ("leading") of the text frame "name" to "size". |
||
3740 | "size" is a value in points. If "name" is not given the currently selected |
||
3741 | item is used. |
||
3742 | |||
3743 | May throw ValueError if the line spacing is out of bounds. |
||
3744 | </source> |
||
12918 | cbradney | 3745 | <translation type="obsolete">setLineSpacing(size, ["name"]) |
1234 | cbradney | 3746 | |
3747 | Установлює міжрядковий інтервал (початковий) в текстовій рамці "name" |
||
3748 | до розміру "size". Значення "size" виражається в точках. Якщо "name" не |
||
4759 | cbradney | 3749 | вказано, використовується активний об'єкт. |
1234 | cbradney | 3750 | |
3751 | Може повернути помилку ValueError, якщо значення інтервалу виходить |
||
3752 | за доступний діапазон. |
||
3753 | </translation> |
||
1135 | cbradney | 3754 | </message> |
3755 | <message> |
||
4759 | cbradney | 3756 | <source>setColumnGap(size, ["name"]) |
1135 | cbradney | 3757 | |
3758 | Sets the column gap of the text frame "name" to the value "size". If |
||
3759 | "name" is not given the currently selected item is used. |
||
3760 | |||
3761 | May throw ValueError if the column gap is out of bounds (must be positive). |
||
3762 | </source> |
||
12918 | cbradney | 3763 | <translation type="obsolete">setColumnGap(size, ["name"]) |
1234 | cbradney | 3764 | |
3765 | Установлює проміжок між колонками в текстовій рамці "name" до значення |
||
4759 | cbradney | 3766 | "size". Якщо "name" не задано, використовується активний об'єкт. |
1234 | cbradney | 3767 | |
3768 | Може повернути помилку ValueError, якщо проміжок між колонками виходить |
||
3769 | за доступний діапазон (повинен бути позитивним). |
||
3770 | </translation> |
||
1135 | cbradney | 3771 | </message> |
3772 | <message> |
||
4759 | cbradney | 3773 | <source>setColumns(nr, ["name"]) |
1135 | cbradney | 3774 | |
3775 | Sets the number of columns of the text frame "name" to the integer "nr". |
||
3776 | If "name" is not given the currently selected item is used. |
||
3777 | |||
3778 | May throw ValueError if number of columns is not at least one. |
||
3779 | </source> |
||
12918 | cbradney | 3780 | <translation type="obsolete">setColumns(nr, ["name"]) |
1234 | cbradney | 3781 | |
3782 | Установлює число колонок в текстовій рамці "name" до цілого числа "nr". |
||
4759 | cbradney | 3783 | Якщо "name" не задано, використовується активний об'єкт. |
1234 | cbradney | 3784 | |
3785 | Може повернути помилку ValueError, якщо не вказана хоч одна колонка. |
||
3786 | </translation> |
||
1135 | cbradney | 3787 | </message> |
3788 | <message> |
||
4759 | cbradney | 3789 | <source>setTextAlignment(align, ["name"]) |
1135 | cbradney | 3790 | |
3791 | Sets the text alignment of the text frame "name" to the specified alignment. |
||
3792 | If "name" is not given the currently selected item is used. "align" should |
||
3793 | be one of the ALIGN_ constants defined in this module - see dir(scribus). |
||
3794 | |||
3795 | May throw ValueError for an invalid alignment constant. |
||
3796 | </source> |
||
12918 | cbradney | 3797 | <translation type="obsolete">setTextAlignment(align, ["name"]) |
1234 | cbradney | 3798 | |
3799 | Установлює вирівнювання тексту в текстовій рамці "name" до вказаного. |
||
4759 | cbradney | 3800 | Якщо "name" не вказано, використовується активний об'єкт. "align" повинне |
1234 | cbradney | 3801 | дорівнювати одній з констант ALIGN_ constants визначених в цьому модулі - |
3802 | дивіться в dir(scribus). |
||
3803 | |||
3804 | Може повернути помилку ValueError, якщо константа вирівнювання задана |
||
3805 | невірно. |
||
3806 | </translation> |
||
1135 | cbradney | 3807 | </message> |
3808 | <message> |
||
4759 | cbradney | 3809 | <source>selectText(start, count, ["name"]) |
1135 | cbradney | 3810 | |
3811 | Selects "count" characters of text in the text frame "name" starting from the |
||
3812 | character "start". Character counting starts at 0. If "count" is zero, any |
||
3813 | text selection will be cleared. If "name" is not given the currently |
||
3814 | selected item is used. |
||
3815 | |||
3816 | May throw IndexError if the selection is outside the bounds of the text. |
||
3817 | </source> |
||
12918 | cbradney | 3818 | <translation type="obsolete">selectText(start, count, ["name"]) |
1234 | cbradney | 3819 | |
3820 | Вибирає "count" число знаків тексту в текстовій рамці "name", починаючи з |
||
3821 | знака "start". Рахунок знаків починається з 0. Якщо "count" дорівнює нулю, |
||
3822 | текстова вибірка буде знята. Якщо "name" не задано, буде використано |
||
4759 | cbradney | 3823 | активний об'єкт. |
1234 | cbradney | 3824 | |
3825 | Може повернути помилку IndexError, якщо вибірка виходить за межі |
||
3443 | cbradney | 3826 | тексту. |
1234 | cbradney | 3827 | </translation> |
1135 | cbradney | 3828 | </message> |
3829 | <message> |
||
4759 | cbradney | 3830 | <source>deleteText(["name"]) |
1135 | cbradney | 3831 | |
3832 | Deletes any text in the text frame "name". If there is some text selected, |
||
3833 | only the selected text will be deleted. If "name" is not given the currently |
||
3834 | selected item is used. |
||
3835 | </source> |
||
12918 | cbradney | 3836 | <translation type="obsolete">deleteText(["name"]) |
1234 | cbradney | 3837 | |
3838 | Видаляє весь текст в текстовій рамці "name". Якщо частина тексту вибрана |
||
3839 | то видаляється лише вона. Якщо "name" не задано, використовується |
||
4759 | cbradney | 3840 | активний об'єкт. |
1234 | cbradney | 3841 | </translation> |
1135 | cbradney | 3842 | </message> |
3843 | <message> |
||
4759 | cbradney | 3844 | <source>setTextColor("color", ["name"]) |
1135 | cbradney | 3845 | |
3846 | Sets the text color of the text frame "name" to the color "color". If there |
||
3847 | is some text selected only the selected text is changed. If "name" is not |
||
3848 | given the currently selected item is used. |
||
3849 | </source> |
||
12918 | cbradney | 3850 | <translation type="obsolete">setTextColor("color", ["name"]) |
1234 | cbradney | 3851 | |
3852 | Установлює колір тексту в текстовій рамці "name" до кольору "color". Якщо |
||
3853 | частина тексту вибрана - змінюється лише вона. Якщо "name" не задано, |
||
4759 | cbradney | 3854 | використовується активний об'єкт. |
1234 | cbradney | 3855 | </translation> |
1135 | cbradney | 3856 | </message> |
3857 | <message> |
||
4759 | cbradney | 3858 | <source>setTextStroke("color", ["name"]) |
1135 | cbradney | 3859 | |
3860 | Set "color" of the text stroke. If "name" is not given the currently |
||
3861 | selected item is used. |
||
3862 | </source> |
||
12918 | cbradney | 3863 | <translation type="obsolete">setTextStroke("color", ["name"]) |
1234 | cbradney | 3864 | |
3865 | Установлює колір "color" текстового контура. Якщо "name" не задано, |
||
4759 | cbradney | 3866 | використовується активний об'єкт. |
1234 | cbradney | 3867 | </translation> |
1135 | cbradney | 3868 | </message> |
3869 | <message> |
||
4759 | cbradney | 3870 | <source>setTextShade(shade, ["name"]) |
1135 | cbradney | 3871 | |
3872 | Sets the shading of the text color of the object "name" to "shade". If |
||
3873 | there is some text selected only the selected text is changed. "shade" must |
||
3874 | be an integer value in the range from 0 (lightest) to 100 (full color |
||
3875 | intensity). If "name" is not given the currently selected item is |
||
3876 | used. |
||
3877 | </source> |
||
12918 | cbradney | 3878 | <translation type="obsolete">setTextShade(shade, ["name"]) |
1234 | cbradney | 3879 | |
4759 | cbradney | 3880 | Установлює тінь кольору тексту об'єкта "name" до "shade". Якщо |
1234 | cbradney | 3881 | частина тексту вибрана - змінюється лише вона. "shade" має бути |
3882 | цілим числом від 0 (найсвітліша) до 100 (повна насиченість кольору). |
||
4759 | cbradney | 3883 | Якщо "name" не задано, використовується активний об'єкт. |
1234 | cbradney | 3884 | </translation> |
1135 | cbradney | 3885 | </message> |
3886 | <message> |
||
4759 | cbradney | 3887 | <source>linkTextFrames("fromname", "toname") |
1135 | cbradney | 3888 | |
3889 | Link two text frames. The frame named "fromname" is linked to the |
||
3890 | frame named "toname". The target frame must be an empty text frame |
||
3891 | and must not link to or be linked from any other frames already. |
||
3892 | |||
3893 | May throw ScribusException if linking rules are violated. |
||
3894 | </source> |
||
12918 | cbradney | 3895 | <translation type="obsolete">linkTextFrames("fromname", "toname") |
1234 | cbradney | 3896 | |
4759 | cbradney | 3897 | Зв'язує дві текстові рамки. Рамка з ім'ям "fromname" приєднується до |
3898 | рамки з ім'ям "toname". Кінцева рамка має бути пустою текстовою |
||