* Inkscape command line arguments have changed @ 2020-05-19 18:26 Thangalin 2020-05-19 18:50 ` Thangalin 0 siblings, 1 reply; 4+ messages in thread From: Thangalin @ 2020-05-19 18:26 UTC (permalink / raw) To: mailing list for ConTeXt users $ inkscape --version Inkscape 1.0 (4035a4fb49, 2020-05-01) Pango version: 1.44.7 With the new release of Inkscape, --export-pdf no longer exists. The new options appear to be: --export=type=pdf --export=pdf-version=1.5 (or 1.4) --export-filename=filename.pdf Aditya has shown a work-around on TeX.SE. I've changed the code a little: \startluacode figures.programs.inkscape={ command="inkscape", pdfargument=[[ "%oldname%" --export-dpi=600 --export=type=pdf --export-filename="%newname%" ]], pngargument=[[ "%oldname%" --export-dpi=600 --export=type=png --export-filename="%newname%" ]], } \stopluacode Unfortunately, this does override outdated command line argument. ConTeXt appears to pass in the old argument: context --purgeall --trackers=graphics.conversion filename.tex Shows: Unknown option --export-pdf=images/m_k_i_v_genealogy.svg.pdf How would you replace the export-pdf option for the new version of Inkscape? (I'll send a bug to the Inkscape issue tracker; it strikes me that --export-pdf could have remained an alias.) Thank you! ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Inkscape command line arguments have changed 2020-05-19 18:26 Inkscape command line arguments have changed Thangalin @ 2020-05-19 18:50 ` Thangalin 2020-05-19 19:20 ` mf [not found] ` <e39e10a0-ce58-f605-7982-33aa2534773d@fastwebnet.it> 0 siblings, 2 replies; 4+ messages in thread From: Thangalin @ 2020-05-19 18:50 UTC (permalink / raw) To: mailing list for ConTeXt users Minor correction: \startluacode figures.programs.inkscape={ command="inkscape", pdfargument=[[ "%oldname%" --export-dpi=600 --export-type=pdf --export-filename="%newname%" ]], pngargument=[[ "%oldname%" --export-dpi=600 --export-type=png --export-filename="%newname%" ]], } \stopluacode Still doesn't work, though. ConTeXt persists with using --export-pdf=... Cheers! ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Inkscape command line arguments have changed 2020-05-19 18:50 ` Thangalin @ 2020-05-19 19:20 ` mf [not found] ` <e39e10a0-ce58-f605-7982-33aa2534773d@fastwebnet.it> 1 sibling, 0 replies; 4+ messages in thread From: mf @ 2020-05-19 19:20 UTC (permalink / raw) To: mailing list for ConTeXt users Il 19/05/20 20:50, Thangalin ha scritto: > Minor correction: > > \startluacode > figures.programs.inkscape={ > command="inkscape", > pdfargument=[[ > "%oldname%" > --export-dpi=600 > --export-type=pdf > --export-filename="%newname%" > ]], > pngargument=[[ > "%oldname%" > --export-dpi=600 > --export-type=png > --export-filename="%newname%" > ]], > } > \stopluacode > > Still doesn't work, though. ConTeXt persists with using --export-pdf=... > Cheers! > The latest version of ConTeXt should detect Inkscape's version and adapt the command line options accordingly (I tested it successfully on Debian 64 Buster + Inkscape 0.92 and Debian 64 Sid + Inkscape 1.0rc). Next year's versions will no longer detect Inkscape's version and will use the newer syntax. See https://wiki.contextgarden.net/SVG This topic has already been discussed in this thread: https://www.mail-archive.com/ntg-context@ntg.nl/msg94153.html Massi ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <e39e10a0-ce58-f605-7982-33aa2534773d@fastwebnet.it>]
[parent not found: <e384bb93-1827-3f2c-eee0-b00ed886cd28@fastwebnet.it>]
[parent not found: <CAANrE7qdHw0jFbFhKXUeZOvBXOQ7JL1+frWOAVS1mMi0Ny-NyA@mail.gmail.com>]
* Re: Inkscape command line arguments have changed [not found] ` <CAANrE7qdHw0jFbFhKXUeZOvBXOQ7JL1+frWOAVS1mMi0Ny-NyA@mail.gmail.com> @ 2020-05-19 20:32 ` Thangalin 0 siblings, 0 replies; 4+ messages in thread From: Thangalin @ 2020-05-19 20:32 UTC (permalink / raw) To: mailing list for ConTeXt users As a work around, rename /usr/bin/inkscape to new-inkscape, such as: # mv /usr/bin/inkscape /usr/bin/new-inkscape Then change /usr/bin/inkscape to intercept and replace the command line argument: #!/usr/bin/env bash /usr/bin/new-inkscape \ $(echo "$@" | sed 's/--export-pdf/--export-type=pdf --export-filename/') Then make sure the shell script is executable: chmod +x /usr/bin/inkscape This produces the expected results: graphics > inclusion > checking conversion of 'genealogy-sm', fullname 'images/genealogy-sm.svg', old format 'svg', new format 'pdf', conversion 'default', resolution 'default', arguments '' graphics > inclusion > converting 'genealogy-sm' ('images/genealogy-sm.svg') from 'svg' to 'pdf' graphics > inclusion > new graphic, using hash 'images/m_k_i_v_genealogy-sm.svg.pdf->1->crop->->->default->default->default' Stay safe everybody. ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-05-19 20:32 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2020-05-19 18:26 Inkscape command line arguments have changed Thangalin 2020-05-19 18:50 ` Thangalin 2020-05-19 19:20 ` mf [not found] ` <e39e10a0-ce58-f605-7982-33aa2534773d@fastwebnet.it> [not found] ` <e384bb93-1827-3f2c-eee0-b00ed886cd28@fastwebnet.it> [not found] ` <CAANrE7qdHw0jFbFhKXUeZOvBXOQ7JL1+frWOAVS1mMi0Ny-NyA@mail.gmail.com> 2020-05-19 20:32 ` Thangalin
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).