From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id A200F24082 for ; Wed, 24 Jan 2024 18:17:25 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 1B194483FC2 for ; Wed, 24 Jan 2024 18:15:57 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mU_H5Ftjuiue for ; Wed, 24 Jan 2024 18:15:56 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id CA0BD4840F7 for ; Wed, 24 Jan 2024 18:14:33 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 16DFC483860 for ; Wed, 24 Jan 2024 18:13:47 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gYOtOSDW8vXj for ; Wed, 24 Jan 2024 18:13:46 +0100 (CET) Received: from mail-oi1-f174.google.com (mail-oi1-f174.google.com [209.85.167.174]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 9EA7F483580 for ; Wed, 24 Jan 2024 18:13:46 +0100 (CET) Received: by mail-oi1-f174.google.com with SMTP id 5614622812f47-3bda5be862eso3624336b6e.0 for ; Wed, 24 Jan 2024 09:13:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706116424; x=1706721224; darn=ntg.nl; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=tqT8udKDibMLuKqvS2qhM5sp68b/U4HV/4KsMrbiYR8=; b=iuPsZW5+zR/60dIlUEuhY5J+S/Py7klcPddn/2S/SdK8taYPmqDcQnhwr8PvaKHrOA 8UJNztBR2tBOGH32Wk61s+HqXlIuW83IjHQz7lWhDOkQAuCm+ssWgxsYChbhr8lEDQIV kPxekmmhSbugTTMHx1ceqkzc0jBywFxg3uLmnmVdgPNO68zDoziM8sI4BlE3g2oBPaEH WW9tk6GNqZ3D5MPtXAXVTu0oNyhpXQR9y03tEXFebBaZ1j+LEdcGsFSFsUcV/vBO4a9O iNDb27s+KXLekwBdolHYHETm1Tyz2Oiyo9hxbVHQ/Zl5I5GP0XDbxlLRA02P8QKjrMFf 07wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706116424; x=1706721224; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tqT8udKDibMLuKqvS2qhM5sp68b/U4HV/4KsMrbiYR8=; b=tnb0hHTlkIpQ4mGRfts4NIQuZ0QNM84Wt3LpbUHHig9Vj6kI3m6thdEOQpbH4zvUq7 33jErA8t8iDwuCAYOobJ3alPlBJ480csJOGmMa5ysHFE/DHYMJV3qZ0O7SdapfgDM+Ta 9NSq1/bz7yMtPrKPLZ1d5GtM5NRvqu8dRiDUuEOLKBeeZACL02j3ToQGxsyHa8EKmA2U mHAYwgoR3ZiLck7QBc25QnsgNZOTLLWuPgQCfklq4r6Sjhn8pBgABcTMty7aViCD9R6C rDTunRm4bgquZCnKLUx1LuFFJGMyvC85cC6WaeNHNKBZlIzIU82u4/P5qBB0JgJBEA0R AEMA== X-Gm-Message-State: AOJu0YwbzIKCGGNnwiy8gWuvfdPsbPME5K/lbWEQqWbZZDEJ1t0mi9iv X9ArfH+LHpfLkgb4lhfRIOem581BE9p0Sn3m/Mz/PayWACF7/Gu0ueGSjONWaMhIJBByAokElul lxURb0bM52SWpEBlu/MqfWL0JM5ZZXMi+e7A= X-Google-Smtp-Source: AGHT+IHVieOIqcng9K9XQmCRlTUgjaqhMe6W4F+/TqBsjuMMm87zX7q3Gs7b84KS7rbUFyzKIaBx/KRkPELQUVEqWhA= X-Received: by 2002:a05:6870:d1c4:b0:214:5f73:4075 with SMTP id b4-20020a056870d1c400b002145f734075mr3399125oac.17.1706116424197; Wed, 24 Jan 2024 09:13:44 -0800 (PST) MIME-Version: 1.0 References: <3n5n370p-ors0-22ps-4p82-1o59942nr7p5@hzvpu.rqh> <3332595b-5203-471d-a029-5f0cdcdc1317@xs4all.nl> In-Reply-To: <3332595b-5203-471d-a029-5f0cdcdc1317@xs4all.nl> From: Shiv Shankar Dayal Date: Wed, 24 Jan 2024 22:43:32 +0530 Message-ID: To: mailing list for ConTeXt users Message-ID-Hash: LKHTQXSRCIAKZXQMGDD47O25G2OP4KQJ X-Message-ID-Hash: LKHTQXSRCIAKZXQMGDD47O25G2OP4KQJ X-MailFrom: shivshankar.dayal@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: Caching Metafun images and VIM Syntax highlighted code List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============5769047832135920417==" --===============5769047832135920417== Content-Type: multipart/alternative; boundary="00000000000068ec6f060fb42fb9" --00000000000068ec6f060fb42fb9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear Hans, Aditya, Thanks for clarifying. In any case, I will process chapter-by-chapter, so runtime should be manageable. On Wed, Jan 24, 2024 at 10:32=E2=80=AFPM Hans Hagen wro= te: > On 1/24/2024 5:50 PM, Aditya Mahajan wrote: > > On Wed, 24 Jan 2024, Shiv Shankar Dayal wrote: > > > >> Perhaps Aditya Mahajan can tell me how can I cache code snippets. > Invoking > >> VIM will have heavy penalty on highlighting the code otherwise. > > > > Have you tried the vim module: > > > > https://github.com/adityam/filter/blob/dev/vim-README.md > > > > Caching is enabled out of the box, so you don't need to configure > anything. > > > >> Other than that, how can I cache Metafun images so that they are not > >> recomputed on every processing of file. > > > > There used to a command for caching metafun images in MkII, but I don't > know if that is really needed in LMTX. In most cases, metapost processing > does not have a significant processing delay. > if images are the same one can use the reuseMPgraphic or uniqueMPgraphic > features .. plenty of examples can be found, but as Aditya poined out mp > is quite fast (but reuse saves on file size) > > 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 / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror= ) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > _________________________________________________________________________= __________ > --=20 Respect, Shiv Shankar Dayal --00000000000068ec6f060fb42fb9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Dear Hans, Aditya,

Thanks fo= r clarifying. In any case, I will process chapter-by-chapter,
so = runtime should be manageable.

On Wed, Jan 24, 2024 at 10:32=E2=80= =AFPM Hans Hagen <j.hagen@xs4all.nl= > wrote:
= On 1/24/2024 5:50 PM, Aditya Mahajan wrote:
> On Wed, 24 Jan 2024, Shiv Shankar Dayal wrote:
>
>> Perhaps Aditya Mahajan can tell me how can I cache code snippets. = Invoking
>> VIM will have heavy penalty on highlighting the code otherwise. >
> Have you tried the vim module:
>
> https://github.com/adityam/filter/blob/= dev/vim-README.md
>
> Caching is enabled out of the box, so you don't need to configure = anything.
>
>> Other than that, how can I cache Metafun images so that they are n= ot
>> recomputed on every processing of file.
>
> There used to a command for caching metafun images in MkII, but I don&= #39;t know if that is really needed in LMTX. In most cases, metapost proces= sing does not have a significant processing delay.
if images are the same one can use the reuseMPgraphic or uniqueMPgraphic features .. plenty of examples can be found, but as Aditya poined out mp is quite fast (but reuse saves on file size)

Hans

-----------------------------------------------------------------
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0Hans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Ridderstraat 27 | 80= 61 GH Hasselt | The Netherlands
=C2=A0 =C2=A0 =C2=A0 =C2=A0 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 t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / https://mailman.ntg.nl/mail= man3/lists/ntg-context.ntg.nl
webpage=C2=A0 : https://www.pragma-ade.nl / https://context.aanhet.net= (mirror)
archive=C2=A0 : https://github.com/contextgarden/context=
wiki=C2=A0 =C2=A0 =C2=A0: https://wiki.contextgarden.net
___________________________________________________________________________= ________


--
Respect,
Shiv Shankar Dayal
--00000000000068ec6f060fb42fb9-- --===============5769047832135920417== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ --===============5769047832135920417==--