From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33338 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Apprentice Ship Newsgroups: gmane.text.pandoc Subject: Lua filters and possible error Date: Sat, 18 Nov 2023 15:39:04 -0800 Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000c1d40c060a75c248" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28690"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBD24HNPFQIMRBJEW4WVAMGQETV66N2A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Nov 19 00:39:20 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yw1-f187.google.com ([209.85.128.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1r4UuG-0007HN-62 for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 19 Nov 2023 00:39:20 +0100 Original-Received: by mail-yw1-f187.google.com with SMTP id 00721157ae682-5a909b4e079sf46233857b3.2 for ; Sat, 18 Nov 2023 15:39:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700350759; cv=pass; d=google.com; s=arc-20160816; b=ND9v5ZWhoT5uMDid+Qp7NQ9PeIWSe4BA4h6DlLInkKfvmS/NVHcEWk+PjwF+rblev4 a9P+tlv91fQxmmgEVSWyvgPDVYt5TEXSkPxVje1Mvwv+8vGNDGialyXp94cIsYGZN0JD qhXT57UfSbZVsyFBZwYWuRIDBw4eIu8cDmFyAnF4Q/0iNByE4meRWfdbwz8Dz/asYnf0 7c4mzQnjDc0z1uSkLFEpsvQELWcE3aAKhZjNTiZ7+BZWBxfzhwtw+irIVAIuCq9Vt3e/ JqPaaHVm1Z3bOcGl4enKefltS2AoW4IpzwOv/37NEByexxk0OYGESv/DhYonjQAmnB+q NCaQ== 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:to:subject:message-id:date :from:mime-version:sender:dkim-signature:dkim-signature; bh=OkKl3hHtox5mXN74Wkn2p9puJH8kSqLllh5vNecUf0k=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=hBbiC7cbzCsfEHoLfTlFKB3HMbO4yPsBnFIAa0dEm5shX0qLKtcV1Xja90suRZQZaN U+jTlQFW0xD4dvmmrgkbPE52WqocMw03PFsm7Y/G12gZaxV5CwgtFGz2jEvKYQnKIMjB W4Tlpvy9STeRxJSSOrjAzZUNKpNFf84hrE339zrWXAniWMbhQlbZC9szbb9NDHnu7s7t Rwiua8d8O+3yoMSFfEBVbdnxF1RybjDq6lYkfsX6PXDEiV2pSAZyIGyg3g09s14Ml8d4 I+aIK4lDJG/auJADwcbbyBZf1kFv85Fb29u+N6SY6jsouF9s8oFFxX/TOrOLw5WRRmZZ 64Sg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="kM3/0Mcq"; spf=pass (google.com: domain of tex.apprentice-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::112b as permitted sender) smtp.mailfrom=tex.apprentice-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1700350759; x=1700955559; darn=m.gmane-mx.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:mime-version:sender:from:to:cc:subject:date :message-id:reply-to; bh=OkKl3hHtox5mXN74Wkn2p9puJH8kSqLllh5vNecUf0k=; b=ICS47S+QwASaoREiFQrJdTza4F0hIKl5HXUl0rejmoI7oqC1fvbUBTVGYGBbBtBGE+ Z5rfSiLfBN1IY8JmXrTyPGZFwWto6rH1PwGtKNiewNY+JXphvF5EmJahXA5Do16HLJhy L1HyRfxye9nraH27Ivi6PdUzDxgpWgVQANNDKyc1emklX4VUCRznIiiypCOE8fboIhVr T/cUTnAHVsmvHGWj6C5cSUGqdDtepdmxziNs7SwF0AZDm9s3j7pTV6ihkKwq2cGOJJAY yEdJ6BvvK9V2kDY9eLzv92ftRKDoGexYQbInyltJ6ldxh8St3Ns9TXVK2bxeyfvnmlDC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700350759; x=1700955559; darn=m.gmane-mx.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=OkKl3hHtox5mXN74Wkn2p9puJH8kSqLllh5vNecUf0k=; b=HQl4thxg+REI7TI7BT2hONRb+3L8KM46uEIzqFfeC12B0wcoyr9C44SNmQ2nOFOl18 S+qZlPBfRdhUxlIHfdeqeaQWR9tKdYhSlHP1YoUfSA30I0iFnIXf9UdRr0ygY8j/3PF9 sEqO7Kpn0xE4VmfUrPZC1HtEiMMZhAE73vXOh0YiO3AcbPD84l2ehhK/8/HFQE1ybvyk Hl4AXKOHmT3jv9W006KDSHNIz+ZFPm4ZEwIcPolRGWeswuDD1i8XGYrpQy5UzJIjQxOw 8pdmtxyCby/1XtS6CO/DhylW8LtgStR96lpl9xkGs+Ho8mOzaYTJR0fYW4vCFvYTCT5Z gwgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700350759; x=1700955559; 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-authentication-results:x-original-sender:to:subject :message-id:date:from:mime-version:x-beenthere:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=OkKl3hHtox5mXN74Wkn2p9puJH8kSqLllh5vNecUf0k=; b=nxZvJuQfC7/D6Sw/5wqv2ULU8ZM/HjWqiiA/ANVIXE7qwzxWfbweH6/yGnRmmrMdjD fuKmZfeLEnTNF6nTMER6zFDjldiXzvqOvA1A/IsigOVBaT6c1M4g/TierB5fy3wjKL23 6nAkNqlZl99ByIMXN32FoMoK1wuO7IkFuhPyFBPGUExSlkxtiY5bzNZdNI9OsS+pIQOr ux4m1t9g+6yJXXPmvE+xwsKv3w57aw9hRS19fuQ+8sj8Lqv1dQ+LpJZCsZDQOhcRmu61 N/ohnw/dXUQ74p4h6svl0t4CPEfQGihS3WrqOsI Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0YxCKWHJCXk508QFyEgV7eq7WSjaXmYi+YZGxDrKvRa12fTVtn3z bNsQN/LsSOB7Ky+YPPsXIiU= X-Google-Smtp-Source: AGHT+IFWdElcGGSWEj/LCCPvB3eDkhM2urZik0Ek7cEzhCN5GSLsD62EtcQoNQwnbxWCiA4M1NB4sg== X-Received: by 2002:a0d:d595:0:b0:5c4:3613:4f73 with SMTP id x143-20020a0dd595000000b005c436134f73mr3889229ywd.31.1700350759156; Sat, 18 Nov 2023 15:39:19 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a0c:becd:0:b0:677:e7da:9886 with SMTP id f13-20020a0cbecd000000b00677e7da9886ls844876qvj.2.-pod-prod-05-us; Sat, 18 Nov 2023 15:39:16 -0800 (PST) X-Received: by 2002:a05:6102:20c3:b0:462:9b33:fce5 with SMTP id i3-20020a05610220c300b004629b33fce5mr508857vsr.13.1700350755783; Sat, 18 Nov 2023 15:39:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700350755; cv=none; d=google.com; s=arc-20160816; b=OJnNxzrIkEGb1rmMYIksHe/9pZxi3tf6rbZ9coDUlLrs0/CSonpNcB+PXZakXJZOtd p1hDeopCvnEEu1PgAdcuZPETNSHlOnGQmEP6LafxUomS3dXeq1l3f7M7zoFvlcC/mqZM xVX7MClc6GtM8RwNKVCF1xnwaO9Y29bJzfuc0GR2PTcVpBlJroHM+dBc7f8/uHHefPgD l0TFREfeCPzTLR0qr00LzQEQ70MbLjOVEwM6M+cnc56ehvVMyiP6ZnKBPOHITNMvQcE5 RXaamY136yXiA5s/8UxwDhiG6F/mqsGin5LZ3+lR0240hrEmoE76TpcLAOWclwZBJ7ml bOUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=xbS8dwU4W6XNY38lfkgEgg5ofB1TGMPuRvAcNZl7FcI=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=ARsCh41fruBldYLuheAQ3NIKuQFaVqqr0x6l21DoL/H+i07PxGkaHrwFo265/YaY4w 6Z35pbOgYjHYKuHjCrjjNT2Z5S9w2KSWjGJ7xqw/4C2jPhM2UH2XO9gafyi0k9KqOgnb fi94+E7YbvYZg1WrBrCeIXw8eSv6lYhDpFEPigyC11eM9MnLhVsxsVWiCsZmds4TtA8q ufcseQsyGXFkbGukWBZCBBs5ogm2pLDlIeFc0tCotQlZ/w37I0Kupw9rZmgaH6lI7/4B 4veMsK4XNn5/RTdRXa4uG8QtwOfOfebGmlgq0advl8o9pE6A3ARitqtL0azwffPkDeH8 YWww== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="kM3/0Mcq"; spf=pass (google.com: domain of tex.apprentice-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::112b as permitted sender) smtp.mailfrom=tex.apprentice-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-yw1-x112b.google.com (mail-yw1-x112b.google.com. [2607:f8b0:4864:20::112b]) by gmr-mx.google.com with ESMTPS id fz24-20020a05622a5a9800b004181fc30323si660672qtb.0.2023.11.18.15.39.15 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 18 Nov 2023 15:39:15 -0800 (PST) Received-SPF: pass (google.com: domain of tex.apprentice-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::112b as permitted sender) client-ip=2607:f8b0:4864:20::112b; Original-Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-5b31c5143a0so34752007b3.3 for ; Sat, 18 Nov 2023 15:39:15 -0800 (PST) X-Received: by 2002:a25:bb10:0:b0:d9b:353b:9e24 with SMTP id z16-20020a25bb10000000b00d9b353b9e24mr2665033ybg.11.1700350755196; Sat, 18 Nov 2023 15:39:15 -0800 (PST) X-Original-Sender: tex.apprentice-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="kM3/0Mcq"; spf=pass (google.com: domain of tex.apprentice-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::112b as permitted sender) smtp.mailfrom=tex.apprentice-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:33338 Archived-At: --000000000000c1d40c060a75c248 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I am trying to understand a bit more about Lua filters, in particular "spellcheck" in the repository. https://github.com/pandoc/lua-filters/tree/master/spellcheck and my understanding is that the filters will act on the AST, but a sequence of: $ pandoc sample.md -s -o sample.tex $ pandoc --lua-filter spellcheck.lua sample.md summer missspeling [en] $ pandoc --lua-filter spellcheck.lua sample.tex des fran=C3=A7ais missspeling english sont Ces Mais seems to show that the Pandoc (ver 3.1.9) is not understanding the language metadata, as used by the LaTeX-writer. In fact, I do not see the the main-language metadata entry under either of the commands: pandoc -t native sample.md pandoc -t native sample.tex Is that what is going on here? Joshua --=20 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 e= mail 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/CAH114nCcs0R1-ayRGf5W%2BR7VAAMLAYY-L62MvSK4AtWoqON%3Dtw%40ma= il.gmail.com. --000000000000c1d40c060a75c248 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I am trying to understand a bit more about Lua filters, in= particular "spellcheck" in the repository.


and my understanding=C2=A0is that the filters wil= l act on the AST, but a sequence of:

$ pandoc samp= le.md -s -o sample.tex

$ pandoc --lua-filter spellcheck.lua s= ample.md
summer
missspeling [en]

$ pandoc --lua-filter = spellcheck.lua sample.tex
des
fran=C3=A7ais
missspeling
english=
sont
Ces
Mais

seems to show that the= Pandoc (ver 3.1.9) is not understanding the language=C2=A0metadata, as use= d by the LaTeX-writer. In fact, I do not see the the main-language metadata= =C2=A0entry under either of the commands:

=C2=A0 = =C2=A0 =C2=A0pandoc -t native sample.md
=C2=A0 =C2=A0 =C2=A0pandoc -t = native sample.tex

Is that what is going on here?=C2= =A0

Joshua




--
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://gro= ups.google.com/d/msgid/pandoc-discuss/CAH114nCcs0R1-ayRGf5W%2BR7VAAMLAYY-L6= 2MvSK4AtWoqON%3Dtw%40mail.gmail.com.
--000000000000c1d40c060a75c248--