From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/27472 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Lua filter applied to a specific input file Date: Thu, 14 Jan 2021 13:57:56 -0800 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24717"; mail-complaints-to="usenet@ciao.gmane.io" To: Peter , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBB4P4QKAAMGQEUPVREBY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jan 14 22:58:12 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yb1-f190.google.com ([209.85.219.190]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1l0Ad9-0006Jn-Lg for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 14 Jan 2021 22:58:11 +0100 Original-Received: by mail-yb1-f190.google.com with SMTP id g17sf3263062ybh.5 for ; Thu, 14 Jan 2021 13:58:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1610661490; cv=pass; d=google.com; s=arc-20160816; b=x0U7EKkLxnfpiURmp9kJTx+mzW/5yprpRkblb65CRTzl93+74EIVY66r0RiP4t1oWR Dct6456WktJK2gYkSUGL66+XnfnAN0d5x8UATO7eGqCFTKsK7G3tAGteHk0WEKWGCAYE CLDXEtStPdqcT45l62P/hGfWf10LUNJB7ehMevUqnDyiMaGO5/azA9rlku7kIlRUseIo QBLVK09mSNqA56PRGFLSagOQgb3SnEgeLU+YFzW3iH1qjH6eYIhY8lgscy0AIixoIKEH yQ3Be7dOdHBVRekvtGRmZ8H/B7khyGTBL4HdEuH1VggmDjKD+XPGvmMUe7pOaCYQpmVW P3rA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=2FMw7aMF9JaknCc4VLWT53w9m9myQFtGLdtrW/Luj1s=; b=VJCio4BA8HR2P9ZJXc0K0xPRlvPeIrzAG7u4qwD5d0DDzhZxxRkWxFzIFkxd3KWLyR uUKzUkzTghpVcV9coDwCw0/t8hoDAfY6aSdB8VyPSUngpCOyzIaw98SPRPgh7AssJi7p Ievn3taTZ5ws4nS9l9PboOJZPRX2GiIbpCDrWnm+3F6KtOnPSS/ClLKKtWgU3v1/OM0l Blk8h4BR0vK9WDbUpJJW2nu/j2KjiiYcRi+4hWwWYnzYpuWWXMXz0GgXwnkRc//P2r/r o8260hnO2d+hYBSQq9mhebrAg3AiSqNl7fKvIcyeBPm0osRYVW1v/TPGBz8i76fJ4ec1 rZTw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=NGSsWszx; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::62f as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=2FMw7aMF9JaknCc4VLWT53w9m9myQFtGLdtrW/Luj1s=; b=bu6DuXwndDjF/+Aryk+zhz+PvWFUu5u6Xopi55kOzGk9VZ+a4MLiVamVcgxMvUMgyS qcPKR04yNDz4kQM2QIJcbey9sWfSPp8JhLtiHCuiJxWIVhK8LNuZ+3fXqAhkWg4jPB5S czgaIdPvnt25x/JM9shVZFauS8PIZhJGrXlw7IkpqqctVtNLGuFH+EcgeEOhuXyi74hc 4ls447fKhbrOErwswTAhXPl+odpg8PNpLZF6M8QmqFVO7oPFHxfQikfdeE2fPm79mJ5U LSYoBGEWdBa0jCkheeAFs7XoPGIQncfkimkqC1orI2Y1Kwt8txqO+kDNk1S4NnV13J/E w/SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=2FMw7aMF9JaknCc4VLWT53w9m9myQFtGLdtrW/Luj1s=; b=P1uhU/mzaKzay+a05sHFzpv3DcNADdZflN/NGfdRNAa0Huk2fORzF+iJJeUNDBBuxJ njPpAbdWCg7pdninXfwYA7jv9oUI8av1VcuQ0TnpJesI/uqCILGI3pOtiEmRvlmT8hwh 8IWYXstlmFS96vHGm/FTwz82e2g4rcKZsD/FRCtQVihie12I3mGnjoP8i9EysSJIwxVm zmuU82dEexcN03V4mN8hMGVuAAU/+hmccOGLVwnqwy+ua/v94/9EvmtjF+9oslqCB5Qa flMDState2r50gTpnOOSzgLrmrxZVtM/4s3M+YhYL77ZxIz7B464C4RwwhAGaQmrjLgH 0u8g== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530u8cadsS//yZv0DNSwIeGjEueqWI2CF4gOaAtNKXzkjR7ib/Ts ibcC6U5u6CfkkuxUm/VY5rA= X-Google-Smtp-Source: ABdhPJy1a2dS6f8buiUE+kPPC+/9GByeYB1Dp4j33xSPzfPal+gvLcJXMglO07mQKjTSRt8vXSLAbw== X-Received: by 2002:a25:2d5:: with SMTP id 204mr14113925ybc.204.1610661490727; Thu, 14 Jan 2021 13:58:10 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a25:8b88:: with SMTP id j8ls770633ybl.3.gmail; Thu, 14 Jan 2021 13:58:09 -0800 (PST) X-Received: by 2002:a25:a228:: with SMTP id b37mr13515962ybi.460.1610661489131; Thu, 14 Jan 2021 13:58:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610661489; cv=none; d=google.com; s=arc-20160816; b=MVLHCAnvT+VEiqW3QHwthhbHHTjYPsQAt1X2hH9mpZk2CzfpnalKIIl2YVZ8CjQzn0 hcMZYjUquI3ylbhRcDFo72Uss9Aknj61Aevlh/8Eug+F/pH7MrqkUhYuX7f9JM+C+wEY ggBcyKgMs3H1HUG8mBY/QYIiVk6+40niUX2IyQSC3JxrW+1v4y2NhC7e7rRU6NHUjASh YqtK+VqZHY0f65qH7sh6NpRwqcUXolr/mjrpBM5K51sf5Nwqq6Cay7oeJL2/hazP6IL9 MA/aiYFXhOxmdy7tbRWzBZlXzb9vx4hFLatGHQqFYrsiDpnN0flNCtkEpCNE5+EyE+4L 5lcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=8Lgl+TEjRJnLYVQzVcL2F3aKKTmFWRYX/DHxK1nG20Q=; b=Jcl/8KdmJRN8V0CVd2sPnSUhysgunsG+4a4gdH3M+MC1EAmafOD4IT61w1T7E1tS/4 O2VilQ19GvgMaRFIiAj8KXpH5sGXOZjDCMPrshpQXwrlQP470Z1GX32yCAp5s57z5WZj O50FPzbRUhOgsewUKIz//ACZU/VtxSSYQPsYc4UkfKqBwPHh2DT0M+h0fwhSlAjI/1s9 okx3Docjr3AgKREOIW/oynouoz2PA0dFY2bumDO36kVW/xRUGR9ncG9M6/BP4yLO4Gog s3Lhnon1t5LTuBqnPyfAYdNFzfw2HEqkex6GGANdHnJfJGodDhBrYHivcD7DBSHkZQb1 lhkQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=NGSsWszx; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::62f as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com. [2607:f8b0:4864:20::62f]) by gmr-mx.google.com with ESMTPS id i70si488579ybg.1.2021.01.14.13.58.09 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Jan 2021 13:58:09 -0800 (PST) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::62f as permitted sender) client-ip=2607:f8b0:4864:20::62f; Original-Received: by mail-pl1-x62f.google.com with SMTP id r4so3604631pls.11 for ; Thu, 14 Jan 2021 13:58:09 -0800 (PST) X-Received: by 2002:a17:90a:d145:: with SMTP id t5mr7093837pjw.104.1610661488170; Thu, 14 Jan 2021 13:58:08 -0800 (PST) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id 32sm6578150pgq.80.2021.01.14.13.58.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Jan 2021 13:58:07 -0800 (PST) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 7407DA268; Thu, 14 Jan 2021 16:57:56 -0500 (EST) In-Reply-To: X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=NGSsWszx; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::62f as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:27472 Archived-At: PANDOC_STATE.input_files should give you an array of the input files in the filter. Peter writes: > I have a working Lua filter and I'll be having pandoc iterate over multiple > input files (for loop). However, I know in advance that my filter will only > match on a specific file's data. Is it possible, within the AST model, to > have the filter bail unless it's inspecting data associated with this > specific file? Or do I need to deal with this at the pandoc invocation > level (i.e. specify what filter to use based on the input files)? > > -- > You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/b921eb81-70fe-43c5-aba0-d4b9317c270dn%40googlegroups.com.