ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	"Jan U. Hasecke" <juh+ntg-context@mailbox.org>
Subject: Re: metapost: remapping colors of an SVG picture
Date: Thu, 20 Feb 2020 18:30:43 +0100	[thread overview]
Message-ID: <5e70257a-97ad-e0b2-d69a-59d544aa0017@xs4all.nl> (raw)
In-Reply-To: <24e203d7-8f2d-d0fd-932d-c00f8ad70ce2@mailbox.org>

On 2/20/2020 10:29 AM, Jan U. Hasecke wrote:
> Am 18.02.20 um 19:24 schrieb Jan U. Hasecke:
>> Am 18.02.20 um 19:17 schrieb mf:
>>> Il 18/02/20 19:07, Jan U. Hasecke ha scritto:
>>>> Am 18.02.20 um 14:53 schrieb Hans Hagen:
>>>>
>>>>> \setupcolors[rgb=no]
>>>>> \startMPcode
>>>>>       draw lmt_svg [ filename = "sample.svg" ] ;
>>>>> \stopMPcode
>>>> I get this error.
>>>>
>>>> ! Not implemented: (unknown numeric)=(string).
>>>> <to be read again>
>>>> ]
>>>> <*> ... ; p := lmt_svg [ filename = "sample.svg" ]
>>>>
>>> That's because it's LMTX only (the "lmt" prefix of "lmt_svg" should
>>> stand for "luametatex").
>>
>> Yes, with lmtx it works but there is no image in the resulting file.
> 
> Sorry for digging deeper.
> 
> I am very thrilled by the idea that I could simply adjust a RGB SVG to
> well defined CMYK colors with this trick.
> 
> Can anybody confirm if this works?
mf and i are playing with an overload mechanism (actually pretty 
trivial) ... more later but in principle the answer is yes, but

- first we have to play around a bit
- then it needs to end up in the core
- then there need to be a new context upload
- and mf has to wikify it

so, some patience is needed

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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:[~2020-02-20 17:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-18 11:18 mf
2020-02-18 13:53 ` Hans Hagen
2020-02-18 18:07   ` Jan U. Hasecke
2020-02-18 18:17     ` mf
2020-02-18 18:24       ` Jan U. Hasecke
2020-02-20  9:29         ` Jan U. Hasecke
2020-02-20 17:30           ` Hans Hagen [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=5e70257a-97ad-e0b2-d69a-59d544aa0017@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=juh+ntg-context@mailbox.org \
    --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).