ukiryu 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '09496e921523ef4d99248688fee0293e542ff1cbfc7759403e062822d843f9ba'
4
- data.tar.gz: 3e094dc9c7af3313d3d3e5d6179a491b037ce643ecf79d00715c5c6099f7b3e2
3
+ metadata.gz: 0af2822d14d27e06afc5012c97c78655269a13bfca5307f0d462f3e0e50195a1
4
+ data.tar.gz: 517edc8bbeb9ca98b37acaf37a62baf8a65ce20ced1020896b1d4310f139d45d
5
5
  SHA512:
6
- metadata.gz: d357286b89e3edaa8a495f965146effd6ffe06250f8f378c1e38ca6eef8d349abbe1698648e986c6bde2be52ff57637433ef6360175172e171d9db6155856fc4
7
- data.tar.gz: b3cd0be008011acc0f659b77b651163b61af823e63af3e68486acdc82beb82d074b6a0cb84a21ea299c813e1c201d3089123dc83e687a3366f12ce3cd10318b6
6
+ metadata.gz: c653e0a7960d1fc917364cebb2c44ef31be1d47c1ba7353baddb8026f6b445c9a77add880e8e992872713eb75c73e291c7ce6b96157f3829a18f1ab5df4a77ae
7
+ data.tar.gz: 477e82673424e6d9a3b95e9b1bbf3cc8d19a5c2d9604b0c47d9faf5acaff9b7499c2813f97ae7a49cc778d8b34161cce72841b3b6636dea7f894f7cb93f4c058
@@ -233,7 +233,11 @@ module Ukiryu
233
233
  exe_escaped = exe_normalized.gsub("'", "''")
234
234
 
235
235
  args_escaped = args.map do |a|
236
- arg_str = a.to_s.gsub('/', '\\')
236
+ # NOTE: Do NOT convert forward slashes to backslashes in arguments!
237
+ # Many tools (like Inkscape) on Windows expect forward slashes in paths
238
+ # because backslashes can be interpreted as escape characters.
239
+ # PowerShell single quotes handle paths correctly regardless of separator.
240
+ arg_str = a.to_s
237
241
  if arg_str.start_with?('-')
238
242
  # Arguments starting with - must be single-quoted to prevent PowerShell's
239
243
  # parameter binder from stripping the prefix (e.g., -sDEVICE=pdfwrite -> =pdfwrite)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ukiryu
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
@@ -0,0 +1,444 @@
1
+ # INKSCAPE MAN PAGE
2
+
3
+ Source: https://inkscape.org/doc/inkscape-man.html
4
+
5
+ ---
6
+
7
+ ## NAME
8
+
9
+ Inkscape - an SVG (Scalable Vector Graphics) editing program.
10
+
11
+ ## SYNOPSIS
12
+
13
+ `inkscape [options] [filename_1 filename_2 ...]`
14
+
15
+ ### options:
16
+
17
+ ```
18
+ -?, --help
19
+ --help-all
20
+ --help-gapplication
21
+ --help-gtk
22
+
23
+ -V, --version
24
+ --debug-info
25
+ --system-data-directory
26
+ --user-data-directory
27
+
28
+ -p, --pipe
29
+ -n, --pages=PAGE[,PAGE]
30
+ --pdf-poppler
31
+ --convert-dpi-method=METHOD
32
+ --no-convert-text-baseline-spacing
33
+
34
+ -o, --export-filename=FILENAME
35
+ --export-overwrite
36
+ --export-type=TYPE[,TYPE]*
37
+ --export-extension=EXTENSION-ID
38
+
39
+ -C, --export-area-page
40
+ -D, --export-area-drawing
41
+ -a, --export-area=x0:y0:x1:y1
42
+ --export-area-snap
43
+ -d, --export-dpi=DPI
44
+ -w, --export-width=WIDTH
45
+ -h, --export-height=HEIGHT
46
+ --export-margin=MARGIN
47
+
48
+ --export-page=all|n[,a-b]
49
+ -i, --export-id=OBJECT-ID[;OBJECT-ID]*
50
+ -j, --export-id-only
51
+ -l, --export-plain-svg
52
+ --export-png-color-mode=COLORMODE
53
+ --export-png-compression=LEVEL
54
+ --export-png-antialias=LEVEL
55
+ --export-png-use-dithering=BOOLEAN
56
+ --export-ps-level=LEVEL
57
+ --export-pdf-version=VERSION
58
+ -T, --export-text-to-path
59
+ --export-latex
60
+ --export-ignore-filters
61
+ -t, --export-use-hints
62
+ -b, --export-background=COLOR
63
+ -y, --export-background-opacity=VALUE
64
+
65
+ -I, --query-id=OBJECT-ID[,OBJECT-ID]*
66
+ -S, --query-all
67
+ -X, --query-x
68
+ -Y, --query-y
69
+ -W, --query-width
70
+ -H, --query-height
71
+
72
+ --vacuum-defs
73
+ --select=OBJECT-ID[,OBJECT-ID]*
74
+ --actions=ACTION(:ARG)[;ACTION(:ARG)]*
75
+ --action-list
76
+ --actions-file=FILENAME
77
+
78
+ -g, --with-gui
79
+ -q, --active-window
80
+ --display=DISPLAY
81
+ --app-id-tag=TAG
82
+ --batch-process
83
+ --shell
84
+ ```
85
+
86
+ ## DESCRIPTION
87
+
88
+ **Inkscape** is a Free and open source vector graphics editor. It offers a rich set of features and is widely used for both artistic and technical illustrations such as cartoons, clip art, logos, typography, diagramming and flowcharting. It uses vector graphics to allow for sharp printouts and renderings at unlimited resolution and is not bound to a fixed number of pixels like raster graphics. Inkscape uses the standardized **SVG** file format as its main format, which is supported by many other applications including web browsers.
89
+
90
+ The interface is designed to be comfortable and efficient for skilled users, while remaining conformant to **GNOME** standards so that users familiar with other GNOME applications can learn its interface rapidly.
91
+
92
+ **SVG** is a W3C standard XML format for 2D vector drawing. It allows defining objects in the drawing using points, paths, and primitive shapes. Colors, fonts, stroke width, and so forth are specified as `style' attributes to these objects. The intent is that since SVG is a standard, and since its files are text/xml, it will be possible to use SVG files in a sizeable number of programs and for a wide range of uses.
93
+
94
+ **Inkscape** uses SVG as its native document format, and has the goal of becoming the most fully compliant drawing program for SVG files available in the Open Source community.
95
+
96
+ ## OPTIONS
97
+
98
+ **-?**, **--help**
99
+ : Shows a help message.
100
+
101
+ **--help-all**
102
+ : Shows all help options.
103
+
104
+ **--help-gapplication**
105
+ : Shows the GApplication options.
106
+
107
+ **--help-gtk**
108
+ : Shows the GTK+ options.
109
+
110
+ **-V**, **--version**
111
+ : Shows the Inkscape version and build date.
112
+
113
+ **--debug-info**
114
+ : Prints technical information including Inkscape version, dependency versions and operating system. This Information is useful when debugging issues with Inkscape and should be included whenever filing a bug report.
115
+
116
+ **--system-data-directory**
117
+ : Prints the system data directory where data files that ship with Inkscape are stored. This includes files which Inkscape requires to run (like unit definitions, built-in key maps, files describing UI layout, icon themes, etc.), core extensions, stock resources (filters, fonts, markers, color palettes, symbols, templates) and documentation (SVG example files, tutorials).
118
+
119
+ The location in which Inkscape expects the system data directory can be overridden with the INKSCAPE_DATADIR environment variable.
120
+
121
+ **--user-data-directory**
122
+ : Prints the user profile directory where user-specific data files and preferences are stored. Custom extensions and resources (filters, fonts, markers, color palettes, symbols, templates) should be installed into their respective subdirectories in this directory. In addition placing a file with a name identical to one in the system data directory here allows to override most presets from the system data directory (e.g. default templates, UI files, etc.).
123
+
124
+ The default location of the profile directory can be overridden with the INKSCAPE_PROFILE_DIR environment variable.
125
+
126
+ **-p**, **--pipe**
127
+ : Reads input file from standard input (stdin).
128
+
129
+ **--pages**=_PAGE_
130
+ : Imports the given comma separated list of pages from a PDF, or multi page SVG file.
131
+
132
+ This replaces the _--pdf-page_ from previous Inkscape versions.
133
+
134
+ **--pdf-poppler**
135
+ : By default Inkscape imports PDF files via an internal (poppler-derived) library. Text is stored as text. Meshes are converted to tiles. Use --pdf-poppler to import via an external (poppler with cairo backend) library instead. Text consists of groups containing cloned glyphs where each glyph is a path. Images are stored internally. Meshes cause entire document to be rendered as a raster image.
136
+
137
+ **--convert-dpi-method**=_METHOD_
138
+ : Choose method used to rescale legacy (pre-0.92) files which render slightly smaller due to the switch from 90 DPI to 96 DPI when interpreting lengths expressed in units of pixels. Possible values are \"none\" (no change, document will render at 94% of its original size), \"scale-viewbox\" (document will be rescaled globally, individual lengths will stay untouched) and \"scale-document\" (each length will be re-scaled individually).
139
+
140
+ **--no-convert-text-baseline-spacing**
141
+ : Do not automatically fix text baselines in legacy (pre-0.92) files on opening. Inkscape 0.92 adopts the CSS standard definition for the 'line-height' property, which differs from past versions. By default, the line height values in files created prior to Inkscape 0.92 will be adjusted on loading to preserve the intended text layout. This command line option will skip that adjustment.
142
+
143
+ **-o**, **--export-filename**=_FILENAME_
144
+ : Sets the name of the output file. The default is to re-use the name of the input file. If --export-type is also used, the file extension will be adjusted (or added) as appropriate. Otherwise the file type to export will be inferred from the extension of the specified filename.
145
+
146
+ Usage of the special filename \"-\" makes Inkscape write the image data to standard output (stdout).
147
+
148
+ **--export-overwrite**
149
+ : Overwrites input file.
150
+
151
+ **--export-type**=_TYPE[,TYPE]*_
152
+ : Specify the file type to export. Possible values: svg, png, ps, eps, pdf, emf, wmf and every file type for which an export extension exists. It is possible to export more than one file type at a time.
153
+
154
+ Note that PostScript does not support transparency, so any transparent objects in the original SVG will be automatically rasterized. Used fonts are subset and embedded. The default export area is page; you can set it to drawing by --export-area-drawing.
155
+
156
+ Note that PDF format preserves the transparency in the original SVG.
157
+
158
+ **--export-extension**=_EXTENSION-ID_
159
+ : Allows to specify an output extension that will be used for exporting, which is especially relevant if there is more than one export option for a given file type. If set, the file extension in --export-filename and --export-type may be omitted. Additionally, if set, only one file type may be given in --export-type.
160
+
161
+ **-C**, **--export-area-page**
162
+ : In SVG, PNG, PDF, PS exported area is the page. This is the default for SVG, PNG, PDF, and PS, so you don't need to specify this unless you are using --export-id to export a specific object. For EPS this option is currently not supported.
163
+
164
+ **-D**, **--export-area-drawing**
165
+ : In SVG, PNG, PDF, PS, and EPS export, exported area is the drawing (not page), i.e. the bounding box of all objects of the document (or of the exported object if --export-id is used). With this option, the exported image will display all the visible objects of the document without margins or cropping. This is the default export area for EPS. For PNG, it can be used in combination with --export-use-hints.
166
+
167
+ **-a** _x0:y0:x1:y1_, **--export-area**=_x0:y0:x1:y1_
168
+ : In PNG export, set the exported area of the document, specified in px (1/96 in). The default is to export the entire document page. The point (0,0) is the lower-left corner.
169
+
170
+ **--export-area-snap**
171
+ : For PNG export, snap the export area outwards to the nearest integer px values. If you are using the default export resolution of 96 dpi and your graphics are pixel-snapped to minimize antialiasing, this switch allows you to preserve this alignment even if you are exporting some object's bounding box (with --export-id or --export-area-drawing) which is itself not pixel-aligned.
172
+
173
+ **-d** _DPI_, **--export-dpi**=_DPI_
174
+ : The resolution used for PNG export. It is also used for fallback rasterization of filtered objects when exporting to PS, EPS, or PDF (unless you specify --export-ignore-filters to suppress rasterization). The default is 96 dpi, which corresponds to 1 SVG user unit (px, also called \"user unit\") exporting to 1 bitmap pixel. This value overrides the DPI hint if used with --export-use-hints.
175
+
176
+ **-w** _WIDTH_, **--export-width**=_WIDTH_
177
+ : The width of generated bitmap in pixels. This value overrides the --export-dpi setting (or the DPI hint if used with --export-use-hints).
178
+
179
+ **-h** _HEIGHT_, **--export-height**=_HEIGHT_
180
+ : The height of generated bitmap in pixels. This value overrides the --export-dpi setting (or the DPI hint if used with --export-use-hints).
181
+
182
+ **--export-margin**=_MARGIN_
183
+ : Adds a margin around the exported area. The size of the margin is specified in units of page size (for SVG) or millimeters (for PS/PDF). The option currently has no effect for other export formats.
184
+
185
+ **-i** _ID_, **--export-page**=_all|n[,a-b]*
186
+ : Exports the selected pages only. If more than one page is specified then the resulting document may contain multiple pages if the format supports it.
187
+
188
+ Value can be a comma separated list of page numbers, or page ranges of two numbers separated by a dash. The keyword 'all' can be used to indicate all pages would be exported.
189
+
190
+ **-i** _ID_, **--export-id**=_OBJECT-ID[;OBJECT-ID]*_
191
+ : For PNG, PS, EPS, PDF and plain SVG export, the id attribute value of the object(s) that you want to export from the document; all other objects are not exported. By default the exported area is the bounding box of the object; you can override this using --export-area (PNG only) or --export-area-page.
192
+
193
+ If you specify many values with a semicolon separated list of objects, each one will be exported separately. In this case the exported files will be named this way: [input_filename]_[ID].[export_type]
194
+
195
+ **-j**, **--export-id-only**
196
+ : For PNG, PS, EPS, PDF and plain SVG export, only export the object whose id is given in --export-id. All other objects are hidden and won't show in export even if they overlay the exported object. Without --export-id, this option is ignored.
197
+
198
+ **-l**, **--export-plain-svg**
199
+ : Export document(s) to plain SVG format, without sodipodi: or inkscape: namespaces and without RDF metadata. Use the --export-filename option to specify the filename.
200
+
201
+ **--export-png-color-mode**=_COLORMODE_
202
+ : Set the color mode (bit depth and color type) for exported bitmaps (Gray_1/Gray_2/Gray_4/Gray_8/Gray_16/RGB_8/RGB_16/GrayAlpha_8/GrayAlpha_16/RGBA_8/RGBA_16)
203
+
204
+ **--export-png-compression**=_LEVEL_
205
+ : Set the compression level for PNG export (0 to 9); default is 6.
206
+
207
+ **--export-png-antialias**=_LEVEL_
208
+ : Set the antialiasing level for PNG export (0 to 3); default is 2.
209
+
210
+ **--export-png-use-dithering**=_false|true_
211
+ : Forces dithering or disables it (the Inkscape build must support dithering for this).
212
+
213
+ **--export-ps-level**=_LEVEL_
214
+ : Set language version for PS and EPS export. PostScript level 2 or 3 is supported. Default is 3.
215
+
216
+ **--export-pdf-version**=_VERSION_
217
+ : Select the PDF version of the exported PDF file. This option basically exposes the PDF version selector found in the PDF-export dialog of the GUI. You must provide one of the versions from that combo-box, e.g. \"1.4\". The default pdf export version is \"1.4\".
218
+
219
+ **-T**, **--export-text-to-path**
220
+ : Convert text objects to paths on export, where applicable (for PS, EPS, PDF and SVG export).
221
+
222
+ **--export-latex**
223
+ : (for PS, EPS, and PDF export) Used for creating images for LaTeX documents, where the image's text is typeset by LaTeX. When exporting to PDF/PS/EPS format, this option splits the output into a PDF/PS/EPS file (e.g. as specified by --export-type) and a LaTeX file. Text will not be output in the PDF/PS/EPS file, but instead will appear in the LaTeX file. This LaTeX file includes the PDF/PS/EPS. Inputting (\\input{image.tex}) the LaTeX file in your LaTeX document will show the image and all text will be typeset by LaTeX. See the resulting LaTeX file for more information. Also see GNUPlot's `epslatex' output terminal.
224
+
225
+ **--export-ignore-filters**
226
+ : Export filtered objects (e.g. those with blur) as vectors, ignoring the filters (for PS, EPS, and PDF export). By default, all filtered objects are rasterized at --export-dpi (default 96 dpi), preserving the appearance.
227
+
228
+ **-t**, **--export-use-hints**
229
+ : While exporting to PNG, use export filename and DPI hints stored in the exported object (only with --export-id). These hints are set automatically when you export selection from within Inkscape. So, for example, if you export a shape with id=\"path231\" as /home/me/shape.png at 300 dpi from document.svg using Inkscape GUI, and save the document, then later you will be able to reexport that shape to the same file with the same resolution simply with
230
+
231
+ ```
232
+ inkscape -i path231 -t document.svg
233
+ ```
234
+
235
+ If you use --export-dpi, --export-width, or --export-height with this option, then the DPI hint will be ignored and the value from the command line will be used. If you use --export-filename with this option, then the filename hint will be ignored and the filename from the command line will be used.
236
+
237
+ **-b** _COLOR_, **--export-background**=_COLOR_
238
+ : Background color of exported PNG. This may be any SVG supported color string, for example \"#ff007f\" or \"rgb(255, 0, 128)\". If not set, then the page color set in Inkscape in the Document Properties dialog will be used (stored in the pagecolor= attribute of sodipodi:namedview).
239
+
240
+ **-y** _VALUE_, **--export-background-opacity**=_VALUE_
241
+ : Opacity of the background of exported PNG. This may be a value either between 0.0 and 1.0 (0.0 meaning full transparency, 1.0 full opacity) or greater than 1 up to 255 (255 meaning full opacity). If not set and the -b option is not used, then the page opacity set in Inkscape in the Document Properties dialog will be used (stored in the inkscape:pageopacity= attribute of sodipodi:namedview). If not set but the -b option is used, then the value of 255 (full opacity) will be used.
242
+
243
+ **-I**, **--query-id**=_OBJECT-ID[,OBJECT-ID]*_
244
+ : Set the ID(s) of the object(s) whose dimensions are queried in a comma-separated list. If not set, query options will return the dimensions of the drawing (i.e. all document objects), not the page or viewbox.
245
+
246
+ If you specify many values with a comma separated list of objects, any geometry query (e.g. --query-x) will return a comma separated list of values corresponding to the list of objects in _--query-id_.
247
+
248
+ **-S**, **--query-all**
249
+ : Prints a comma delimited listing of all objects in the SVG document with IDs defined, along with their x, y, width, and height values.
250
+
251
+ **-X**, **--query-x**
252
+ : Query the X coordinate of the drawing or, if specified, of the object with --query-id. The returned value is in px (SVG user units).
253
+
254
+ **-Y**, **--query-y**
255
+ : Query the Y coordinate of the drawing or, if specified, of the object with --query-id. The returned value is in px (SVG user units).
256
+
257
+ **-W**, **--query-width**
258
+ : Query the width of the drawing or, if specified, of the object with --query-id. The returned value is in px (SVG user units).
259
+
260
+ **-H**, **--query-height**
261
+ : Query the height of the drawing or, if specified, of the object with --query-id. The returned value is in px (SVG user units).
262
+
263
+ **--vacuum-defs**
264
+ : Remove all unused items from the `<defs>` section of the SVG file. If this option is invoked in conjunction with --export-plain-svg, only the exported file will be affected. If it is used alone, the specified file will be modified in place.
265
+
266
+ **--select**=_OBJECT-ID[,OBJECT-ID]*_
267
+ : The --select command will cause objects that have the ID specified to be selected. You can select many objects width a comma separated list. This allows various verbs to act upon them. To remove all the selections use `--verb=EditDeselect`. The object IDs available are dependent on the document specified to load.
268
+
269
+ **--actions**=_ACTION(:ARG)[;ACTION(:ARG)]*_
270
+ : Actions are a new method to call functions with an optional single parameter. To get a list of the action IDs available, use the --action-list command line option. Eventually all verbs will be replaced by actions. Temporarily, any verb can be used as an action (without a parameter). Note, most verbs require a GUI (even if they don't use it). To close the GUI automatically at the end of processing, use --batch-process. In addition all export options have matching actions (remove the '--' in front of the option and replace '=' with ':').
271
+
272
+ If only actions are used --batch-process must be used.
273
+
274
+ Export can be forced at any point with the export-do action. This allows one to do multiple exports on a single file.
275
+
276
+ **--action-list**
277
+ : Prints a list of all available actions.
278
+
279
+ **--actions-file**=_FILENAME_
280
+ : Execute all actions listed in the file. The file contents must be formatted using the syntax of --actions. This option overrides the --actions argument when both are given.
281
+
282
+ **-g**, **--with-gui**
283
+ : Try to use the GUI (on Unix, use the X server even if $DISPLAY is not set).
284
+
285
+ **-q**, **--active-window**
286
+ : Instead of launching a new Inkscape process, this will run the command in the most recently focused Inkscape document.
287
+
288
+ **--display**=_DISPLAY_
289
+ : Sets the X display to use for the Inkscape window.
290
+
291
+ **--app-id-tag**=_TAG_
292
+ : Creates a unique instance of Inkscape with the application ID 'org.inkscape.Inkscape.TAG'. This is useful to separate the Inkscape instances when running different Inkscape versions or using different preferences files concurrently.
293
+
294
+ **--batch-process**
295
+ : Close GUI after executing all actions or verbs.
296
+
297
+ **--shell**
298
+ : With this parameter, Inkscape will enter an interactive command line shell mode. In this mode, you type in commands at the prompt and Inkscape executes them, without you having to run a new copy of Inkscape for each command. This feature is mostly useful for scripting and server uses: it adds no new capabilities but allows you to improve the speed and memory requirements of any script that repeatedly calls Inkscape to perform command line tasks (such as export or conversions).
299
+
300
+ In shell mode Inkscape expects a sequence of actions (or verbs) as input. They will be processed line by line, that means typically when pressing enter. It is possible (but not necessary) to put all actions on a single line.
301
+
302
+ This option can be combined with the --active-window parameter, to execute the shell commands in an already opened Inkscape document.
303
+
304
+ The following example opens a file and exports it into two different formats, then opens another file and exports a single object:
305
+
306
+ ```
307
+ file-open:file1.svg; export-type:pdf; export-do; export-type:png; export-do
308
+ file-open:file2.svg; export-id:rect2; export-id-only; export-filename:rect_only.svg; export-do
309
+ ```
310
+
311
+ ## EXAMPLES
312
+
313
+ While obviously **Inkscape** is primarily intended as a GUI application, it can be used for doing SVG processing on the command line as well.
314
+
315
+ Open an SVG file in the GUI:
316
+
317
+ ```
318
+ inkscape filename.svg
319
+ ```
320
+
321
+ Export an SVG file into PNG with the default resolution of 96 dpi (one SVG user unit translates to one bitmap pixel):
322
+
323
+ ```
324
+ inkscape --export-filename=filename.png filename.svg
325
+ ```
326
+
327
+ Same, but force the PNG file to be 600x400 pixels:
328
+
329
+ ```
330
+ inkscape --export-filename=filename.png -w 600 -h 400 filename.svg
331
+ ```
332
+
333
+ Same, but export the drawing (bounding box of all objects), not the page:
334
+
335
+ ```
336
+ inkscape --export-filename=filename.png --export-area-drawing filename.svg
337
+ ```
338
+
339
+ Export two different files into four distinct file formats each:
340
+
341
+ ```
342
+ inkscape --export-type=png,ps,eps,pdf filename1.svg filename2.svg
343
+ ```
344
+
345
+ Export to PNG the object with id=\"text1555\", using the output filename and the resolution that were used for that object last time when it was exported from the GUI:
346
+
347
+ ```
348
+ inkscape --export-id=text1555 --export-use-hints filename.svg
349
+ ```
350
+
351
+ Same, but use the default 96 dpi resolution, specify the filename, and snap the exported area outwards to the nearest whole SVG user unit values (to preserve pixel-alignment of objects and thus minimize aliasing):
352
+
353
+ ```
354
+ inkscape --export-id=text1555 --export-filename=text.png --export-area-snap filename.svg
355
+ ```
356
+
357
+ Convert an Inkscape SVG document to plain SVG:
358
+
359
+ ```
360
+ inkscape --export-plain-svg --export-filename=filename2.svg filename1.svg
361
+ ```
362
+
363
+ Convert an SVG document to EPS, converting all texts to paths:
364
+
365
+ ```
366
+ inkscape --export-filename=filename.eps --export-text-to-path filename.svg
367
+ ```
368
+
369
+ Query the width of the object with id=\"text1555\"):
370
+
371
+ ```
372
+ inkscape --query-width --query-id=text1555 filename.svg
373
+ ```
374
+
375
+ Duplicate the objects with id=\"path1555\" and id=\"rect835\", rotate the duplicates 90 degrees, save SVG, and quit:
376
+
377
+ ```
378
+ inkscape --select=path1555,rect835 --actions=\"duplicate;object-rotate-90-cw\" --export-overwrite filename.svg
379
+ ```
380
+
381
+ Select all objects with ellipse tag, rotate them 30 degrees, save the file, and quit.
382
+
383
+ ```
384
+ inkscape --actions=\"select-by-element:ellipse;transform-rotate:30\" --export-overwrite filename.svg
385
+ ```
386
+
387
+ Export the object with the ID MyTriangle with a semi transparent purple background to the file triangle_purple.png and with a red background to the file triangle_red.png.
388
+
389
+ ```
390
+ inkscape --actions=\"export-id:MyTriangle; export-id-only; export-background:purple; export-background-opacity:0.5;export-filename:triangle_purple.png; export-do; export-background:red; export-background-opacity:1; export-filename:triangle_red.png; export-do\" filename.svg
391
+ ```
392
+
393
+ Read an SVG from standard input (stdin) and export it to PDF format:
394
+
395
+ ```
396
+ cat filename.svg | inkscape --pipe --export-filename=filename.pdf
397
+ ```
398
+
399
+ Export an SVG to PNG format and write it to standard output (stdout), then convert it to JPG format with ImageMagick's convert program:
400
+
401
+ ```
402
+ inkscape --export-type=png --export-filename=- filename.svg | convert - filename.jpg
403
+ ```
404
+
405
+ Same as above, but also reading from a pipe (--export-filename can be omitted in this case)
406
+
407
+ ```
408
+ cat filename.svg | inkscape --pipe --export-type=png | convert - filename.jpg
409
+ ```
410
+
411
+ ## ENVIRONMENT VARIABLES
412
+
413
+ **INKSCAPE_PROFILE_DIR**
414
+ : Set a custom location for the user profile directory.
415
+
416
+ **INKSCAPE_DATADIR**
417
+ : Set a custom location for the Inkscape data directory (e.g. **$PREFIX**/share if Inkscape's shared files are in **$PREFIX**/share/inkscape).
418
+
419
+ **INKSCAPE_LOCALEDIR**
420
+ : Set a custom location for the translation catalog.
421
+
422
+ For more details see also http://wiki.inkscape.org/wiki/index.php/Environment_variables
423
+
424
+ ## SEE ALSO
425
+
426
+ potrace, cairo, rsvg, batik, ghostscript, pstoedit.
427
+
428
+ SVG compliance test suite: https://www.w3.org/Graphics/SVG/WG/wiki/Test_Suite_Overview
429
+
430
+ SVG validator: https://validator.w3.org/
431
+
432
+ **Scalable Vector Graphics (SVG) 1.1 Specification** _W3C Recommendation 16 August 2011_ https://www.w3.org/TR/SVG11/
433
+
434
+ **Scalable Vector Graphics (SVG) 1.2 Specification** _W3C Working Draft 13 April 2005_ https://www.w3.org/TR/SVG12/
435
+
436
+ **Scalable Vector Graphics (SVG) 2 Specification** _W3C Candidate Recommendation 15 September 2016_ https://www.w3.org/TR/SVG2/
437
+
438
+ **Document Object Model (DOM): Level 2 Core** _W3C Recommendation 13 November 2000_ https://www.w3.org/TR/DOM-Level-2-Core/
439
+
440
+ ## COPYRIGHT AND LICENSE
441
+
442
+ **Copyright (C)** 1999-2023 by Authors.
443
+
444
+ **Inkscape** is free software; you can redistribute it and/or modify it under the terms of the GPL version 2 or later.
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ukiryu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
+ autorequire:
8
9
  bindir: exe
9
10
  cert_chain: []
10
- date: 1980-01-02 00:00:00.000000000 Z
11
+ date: 2026-02-19 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: git
@@ -313,6 +314,7 @@ files:
313
314
  - spec/fixtures/register/tools/imagemagick/default/6.9.yaml
314
315
  - spec/fixtures/register/tools/imagemagick/default/7.1.yaml
315
316
  - spec/fixtures/register/tools/imagemagick/index.yaml
317
+ - spec/fixtures/register/tools/inkscape/INKSCAPE_MAN.md
316
318
  - spec/fixtures/register/tools/inkscape/default/0.92.yaml
317
319
  - spec/fixtures/register/tools/inkscape/default/1.0.yaml
318
320
  - spec/fixtures/register/tools/inkscape/index.yaml
@@ -412,6 +414,7 @@ homepage: https://github.com/ukiryu/ukiryu
412
414
  licenses:
413
415
  - BSD-2-Clause
414
416
  metadata: {}
417
+ post_install_message:
415
418
  rdoc_options: []
416
419
  require_paths:
417
420
  - lib
@@ -426,7 +429,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
426
429
  - !ruby/object:Gem::Version
427
430
  version: '0'
428
431
  requirements: []
429
- rubygems_version: 3.6.9
432
+ rubygems_version: 3.5.22
433
+ signing_key:
430
434
  specification_version: 4
431
435
  summary: The "OpenAPI" for Command Line Interfaces
432
436
  test_files:
@@ -470,6 +474,7 @@ test_files:
470
474
  - spec/fixtures/register/tools/imagemagick/default/6.9.yaml
471
475
  - spec/fixtures/register/tools/imagemagick/default/7.1.yaml
472
476
  - spec/fixtures/register/tools/imagemagick/index.yaml
477
+ - spec/fixtures/register/tools/inkscape/INKSCAPE_MAN.md
473
478
  - spec/fixtures/register/tools/inkscape/default/0.92.yaml
474
479
  - spec/fixtures/register/tools/inkscape/default/1.0.yaml
475
480
  - spec/fixtures/register/tools/inkscape/index.yaml