Re: [NTG-context] Inkscape 1 without gui

2020-12-12 Thread mf

See here:

https://www.mail-archive.com/ntg-context@ntg.nl/msg94431.html

and here:

https://wiki.contextgarden.net/SVG#ConTeXt_and_Inkscape

Massi

Il 12/12/20 12:00, Martin Hasoň ha scritto:

Hi all,

Inkscape version detection doesn't work for Inkscape 1 and non-gui 
environments (eg docker). The output of the `inkscape --version` command is


 > Unable to init server: Could not connect: Connection refused
 > Inkscape 1.0 (4035a4fb49, 2020-05-01)
 >    Pango version: 1.44.7

This is standard commands behaviour without `--batch-process` and 
`--without-gui` options 
https://wiki.inkscape.org/wiki/index.php/Using_the_Command_Line 



Because the version of inkscape is on the second line, ConTeXt use 
options for 0.92 version and Inkscape 1 ends with an error message:


 > Unable to init server: Could not connect: Connection refused
Unknown option --export-pdf=/app/pages/m_k_i_v_01.svg.pdf

Best regards
Martin Hasoň


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Inkscape 1 without gui

2020-12-12 Thread Martin Hasoň
Hi all,

Inkscape version detection doesn't work for Inkscape 1 and non-gui
environments (eg docker). The output of the `inkscape --version` command is

> Unable to init server: Could not connect: Connection refused
> Inkscape 1.0 (4035a4fb49, 2020-05-01)
>Pango version: 1.44.7

This is standard commands behaviour without `--batch-process` and
`--without-gui` options
https://wiki.inkscape.org/wiki/index.php/Using_the_Command_Line

Because the version of inkscape is on the second line, ConTeXt use options
for 0.92 version and Inkscape 1 ends with an error message:

> Unable to init server: Could not connect: Connection refused
Unknown option --export-pdf=/app/pages/m_k_i_v_01.svg.pdf

Best regards
Martin Hasoň
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___