ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Creating SVG: using MetaFun, exporting proper units, conversion to DXF
Date: Thu, 27 Jul 2017 16:21:23 +0200	[thread overview]
Message-ID: <CALBOmsb6MPbehgk+2WO5YSy0edZE8aWbrfE1zvC1u3qg-qYDHQ@mail.gmail.com> (raw)
In-Reply-To: <70f1846a-d24e-562a-7c70-4f05f06165a5@wxs.nl>

On 27 July 2017 at 10:49, Hans Hagen wrote:
> On 7/27/2017 3:52 AM, Mojca Miklavec wrote:
>>
>> Hi,
>>
>> I just wanted to say that I found a more reliable way to go from
>> metapost to dxf.
>>
>> First run "context something.mp" and then
>>
>> pstoedit -dt -f dxf:-polyaslines\ -mm something.1 something.dxf
>>
>> For some reason the SVG files from metapost get wrong dimensions when
>> converted via inkscape, but pstoedit works super reliably.
>
>
> in that case you can consider:
>
> mp -> pdf -> mudraw/mutool -> svg

The thing is: I don't need svg at all. All I need is dxf and now I
finally have a reliable way to get it from metapost via pstoedit. SVG
was just a workaround since converting from PDF was slightly more
difficult (latest versions of expensive tools provide that conversion
too, but OpenSource is more limited).

I could check if there's any difference in SVG code as generated by
metapost vs. the one generated by mudraw. But SVG images made by
CorelDraw were misconverted by Inkscape as well.

Mojca
___________________________________________________________________________________
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
___________________________________________________________________________________

      reply	other threads:[~2017-07-27 14:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-29 10:31 Mojca Miklavec
2016-06-29 12:12 ` Hans Hagen
2016-06-29 20:49   ` Mojca Miklavec
2016-06-30  7:15     ` Hans Hagen
2017-02-16 20:07       ` William Adams
2017-02-17  6:33         ` Mojca Miklavec
2016-06-29 21:05 ` Jan Tosovsky
2017-07-27  1:52 ` Mojca Miklavec
2017-07-27  8:49   ` Hans Hagen
2017-07-27 14:21     ` Mojca Miklavec [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CALBOmsb6MPbehgk+2WO5YSy0edZE8aWbrfE1zvC1u3qg-qYDHQ@mail.gmail.com \
    --to=mojca.miklavec.lists@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).