From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32608 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: ThomasH Newsgroups: gmane.text.pandoc Subject: Lua Filter: How to write a filter function for a Cell of a Table Date: Mon, 15 May 2023 01:18:37 -0700 (PDT) Message-ID: <4e77e8b9-2ca9-4da0-8c5c-c3e1cb005e50n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_5236_2120065311.1684138717983" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35330"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCOJJAXZ7EPBBXWVQ6RQMGQEAVG6K4A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon May 15 10:18:42 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f55.google.com ([209.85.161.55]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pyTPm-00094B-2T for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 15 May 2023 10:18:42 +0200 Original-Received: by mail-oo1-f55.google.com with SMTP id 006d021491bc7-54fa8068805sf5306158eaf.0 for ; Mon, 15 May 2023 01:18:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1684138720; x=1686730720; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=iBU2Y1pqgAA+0Bd9MixsCCf7IBV1IvkPOacBAz4TEvo=; b=IvI5G/Gn1gRf7xJ+ISOFxxBsmQy4WFGprFE8Gj+dl/7tK4UQ6UQemKoODkQeLS38zj edFz7s5lCDswHKPXH0JvyUoNimEPp1rhDnQ9W8neA3wFlqdC1p1XPzFZnDoMYyw5FPV3 mgaVpjmUgyWG7LLeq5rw11XJ8VCsopQQH2cGc1uviJmd5XMT3OJaW9/InwM8y+T91ykU 5Bud9HzdvMq6GFuC3buTFPh3PZZvXIo3v9IJpv4qnqNhWI5vbTFMgAu79mSQDTyzfTrB ABDm4XX8yFJR3PQHQHXE/HjQ8mxVAqBeeZv+L4m0H9AJs1YRPOB+I/rO4H4k4ytdxjdW Me/w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684138720; x=1686730720; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=iBU2Y1pqgAA+0Bd9MixsCCf7IBV1IvkPOacBAz4TEvo=; b=F1t4lD9o3t7mgNvS8G0LqYRz/8zFu11D9EJxdnupBuMXRjN9uUlJkURPsMvtqp+PRW P3PSCf7hIET1jDXraVmkUbhMv7jvIVkbEtyZ0t37xMCEsZc9ylfHEi2m6mZ19yPNR1nv 5wwhU21oaTBW/klpAUyj4oq/nHJz5/9rKGI9Cyi+GsQ6JJzAD/b6Zk4V/MdWk61SB7i3 hkI7obLs6A2+E7J0B3BPWuNW4lGGZlTtNZHf3LMHzkBB/D4e6+NcXU1CRUJle3VUeu/o Di/LaG9V//aXYdoZZqCm4pT2F+m0cmOQE3oE9NooDjZ3T/enSjxA8AJjs8Lr7QLg1sga k9gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684138720; x=1686730720; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:message-id:to:from:date :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=iBU2Y1pqgAA+0Bd9MixsCCf7IBV1IvkPOacBAz4TEvo=; b=YB+AT7qYIQzhpjqBz3kiis6GqghpdM6/uenN8ovoAJl1EikRrsKXV26RUZR9fRTSqs egVXxp7maoNX2WVMTPYK8eo1y0wkE9MMup0MubWCnLBXh+8v7RYgjLNArUR7nS1RY/Iy NzCnn0slv50qE7fsWqksqHtiNLKznTwnQh8ZXmw6D9XQ1NX3YgOeNHC8wHekr2a0N6VQ uQPqMxmPrISKBc2MSlTsH1KahpfrB7JZCxB4JbYzb+5uNmXIO9GBTBOQbi5kSdl1aUkY QpIiOUyav8Ja+SMNw2MrOhWlbKbFYwcw/E+GiIDa/Vecb2dnLiJ0hO8U5QiFSt1iG89O Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDzKg/4kwni5nnmEIjQZP9C+pAQNtS5JkIeIUI4WZYgB13pIBlJA DHWJeaNsrGcSgHgzuMIq0wU= X-Google-Smtp-Source: ACHHUZ4bhhpUge5tM8rne8nK/0GM2NFk8ia31PBecHHFyDnjhgEj36D1ZcSlGKi0B8OQa5fBYKP2sQ== X-Received: by 2002:a05:6870:13d8:b0:199:d9aa:4aa1 with SMTP id 24-20020a05687013d800b00199d9aa4aa1mr349366oat.6.1684138720837; Mon, 15 May 2023 01:18:40 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6870:a687:b0:18e:7c56:c70f with SMTP id i7-20020a056870a68700b0018e7c56c70fls7847690oam.5.-pod-prod-gmail; Mon, 15 May 2023 01:18:38 -0700 (PDT) X-Received: by 2002:a05:6870:3b1b:b0:187:e0b6:40de with SMTP id gh27-20020a0568703b1b00b00187e0b640demr13317047oab.0.1684138718512; Mon, 15 May 2023 01:18:38 -0700 (PDT) X-Original-Sender: therch-Re5JQEeQqe8AvxtiuMwx3w@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:32608 Archived-At: ------=_Part_5236_2120065311.1684138717983 Content-Type: multipart/alternative; boundary="----=_Part_5237_1852982633.1684138717983" ------=_Part_5237_1852982633.1684138717983 Content-Type: text/plain; charset="UTF-8" I want to modify how table cells are translated. I started out like with other AST types, e.g. function Cell(cell) ... (do something with cell) end This function is never called, although the input document contains a table with cells. I assume, element components like cells are treated differently (although they seem to appear in the AST like other AST nodes). What is the correct way to write filter functions for element components? Thanks, T. -- 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/4e77e8b9-2ca9-4da0-8c5c-c3e1cb005e50n%40googlegroups.com. ------=_Part_5237_1852982633.1684138717983 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I want to modify how table cells are translated. I started out like wi= th other AST types, e.g.

function Cell(cell)
=C2=A0=C2=A0 ... (do something with cell)
end
This function is never called, although the input document c= ontains a table with cells.

I assume, ele= ment components like cells are treated differently (although they seem to a= ppear in the AST like other AST nodes).

What is = the correct way to write filter functions for element components?

Thanks, T.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/4e77e8b9-2ca9-4da0-8c5c-c3e1cb005e50n%40googlegroups.= com.
------=_Part_5237_1852982633.1684138717983-- ------=_Part_5236_2120065311.1684138717983--