From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33341 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: Lua filters and possible error Date: Sun, 19 Nov 2023 19:16:38 +0000 Message-ID: References: <69D4EAA3-A22A-47BA-ACD5-3F694B47CEAB@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11313"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRBGF65GVAMGQENJX56WQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Nov 19 20:16:44 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f63.google.com ([209.85.160.63]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1r4nHg-0002j9-58 for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 19 Nov 2023 20:16:44 +0100 Original-Received: by mail-oa1-f63.google.com with SMTP id 586e51a60fabf-1f93d1136d0sf166945fac.1 for ; Sun, 19 Nov 2023 11:16:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700421403; cv=pass; d=google.com; s=arc-20160816; b=P8zri7t6cSpTheNaJCyCieL/ZFIkRiefx+zjJqHYJy/ZxRT0WZE3oEHLhi/UyHo+qi 6DQFfV44VqwGc1fTXW3ZoVkj60+xLa6KI5qkOgqF/h6WFf3bbnjpZ5eWOY1RX/UYjmim SqUZHEVkWwPoO3yCMVmGJje2fxITsaFbr0GHf77xxHBOakW5qDm6hdBUs2FKfsDbyaM7 FWAZxLtBOPa+Tn4x71V4U5O+6bp4AetrYw3aZKiStxNN4EDmTDFvpqMOhCqYmb8Jycee 1ubDp4BdAxGXCVPdz0WOKl1CZF0oT8PPR8mLaDH2kPtru7S59phZBBfRezFxI5Ehl63U iHpQ== 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:dkim-signature; bh=pbeeO3AqsPrswWc0YeuzoatiNfPozko9uy9xvS3dHds=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=nlik1buaAiynhL9uazMCUZfsenX9Low3it0+yPoVQixGwDrQKRZEDZobTLQCpuJ+PK dh5uy/KkHpiSV2BkQ83Em/vdZcyNYASa3UFZqXq3aU9lY0uE+qL38jz8PC5XbNyWjBZD hyhJLqHLB5d69Pml7w+e41b2sRVBQOl9ScdbfmLWN6YtskI6owKltTkyqkp/RM1CWB0k 9DZAXWGBRWJ0ZvieOboKfhhUtecUigybv+9HWi02/PfMUVk4mkD/3+GPk9PWZ9tQ4wxl DnO1ireuipHVWWGDyNXBfnAGQlTJc7JmEgvqsAC5g8hqmGq6+2p6zyw0gfXWnYY0N2RO tv4A== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=Dt6TcMQ1; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1700421403; x=1701026203; 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=pbeeO3AqsPrswWc0YeuzoatiNfPozko9uy9xvS3dHds=; b=btU/8UbYosDBXVMCkx/zIZ89sLMr0jKfn+WxT2H0VAfFKfCwmoPW0g/ELm/Y1a/43O 5z+zqDIdRM228Cfz/eGz2OEMBjB39voPMLMzGh8io7IaeqtAly/nROQfBBnmDKYmybJ9 vq5ZaDEYuP2iQKeAhzYGrS7N7fvEEkqsgqv4ythIWKWZpJbs8j76EVMKAA7M+yO7Tm2b 4du3r9nB1qgFZ+SvbLd6UIQILO2aZmxa6lCO/byrSDJqIoQCdQqNAmzxe9zw5LEzg2qn X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700421403; x=1701026203; 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=pbeeO3AqsPrswWc0YeuzoatiNfPozko9uy9xvS3dHds=; b=JDMRdryyunAx3xg1OtFK1mN4PsNurb2tnMY1TNpTpv8EAoKmPA4ylQC08TZF2YCaJn iajXBgbWvOnf8jd+APj+AKGf+YFhk39XmX9x7uFGPF0yOC//nsHWF2Q3BeAj8oSGDCst vVL6T2XDPW+CnjLmOVYz9Tk99W/l3yAtsCwlJEWvLzN04bSB9qXvLQRtGhnYp8iW57Cl fjN0UvU4ywPHnWZLTzDdvY5fP9fb Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0YwtiSybl/3QcC04b26yppkXKRAFcnCU9Lv7RETtY9CP+KNlVjAN mkjqXxLCwe6sFGIzv/+fZoE= X-Google-Smtp-Source: AGHT+IF+fLuBDTyHtyH+K9XDNZ2py+nGh9ZrYbiH8wzpQX/UWPQbRDyTO0tjwAtwkS6+50ZT8tZYGg== X-Received: by 2002:a05:6870:8184:b0:1e9:cb91:1b05 with SMTP id k4-20020a056870818400b001e9cb911b05mr6676876oae.53.1700421402989; Sun, 19 Nov 2023 11:16:42 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6870:3c0e:b0:1dd:651a:720f with SMTP id gk14-20020a0568703c0e00b001dd651a720fls2489921oab.0.-pod-prod-07-us; Sun, 19 Nov 2023 11:16:40 -0800 (PST) X-Received: by 2002:a05:6871:5808:b0:1ea:1e74:c377 with SMTP id oj8-20020a056871580800b001ea1e74c377mr6995814oac.36.1700421400335; Sun, 19 Nov 2023 11:16:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700421400; cv=none; d=google.com; s=arc-20160816; b=dI+JyDc3H+dvyNOIaa1cy0Xi0RXgMM8X/OEEpds3M9WSY4Vj83swPdY2hs/5hXWto1 t5uDVYOw2g9L+dbsW0K9goIW0wRtyrrcIwygu3RCph9Klg29vzXrn2FASb9IsP1RqUxR T2drirESu7xSxB80Vy7/DmgDKv/LjsfMHKi8UTcnz0Ivfw3EfGLhB1gZ2mSpRp5Xlyww LIBJMPVEYvNEtmYKGmrESpaG4+0jcyIxVlIOwLtSJcEm2zEdYth2b/iUeIY9A6QfuNUS RSqBBS8GVyqqLrOhCWRyU/kX6GB8Li0wmZoslytZiaOxYUIf6ZRMwlDCcvh22bruNadx Mz1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=RGjNPB9vUN3azTLeFCtNLd118sJ6+uNzM9TAJ8EEqKQ=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=wqFKnjLdhnVToQOg2X2kcRCWyflWHw7l/Zhsb71jd9IcjMuwWousSXgWtyJMHAQZ86 9xM6kWc5DtBnqQ9LOhNJI+z/9OGK5I68J5A02n4AobTXsfWhve/QEXwyNKK5CF+nsEeS sw5dSuFc+ZWv3uJ2oA8cqeBmO9wLlLWPBBTFBP8eTHGIb3CRc3jhmvfqKoaFFmAvs0Kb AQ0XGIhyF6zHUXxHFV4/hxmQU2uc0DPg02OUIbf1sYYrmQD7Rj0ggQ+g1L4rflfVFMY0 V6mETvDrytylVdHcV26RFz1jZVg93xiNTBGcDSY7+ml+iLuGoBpmj34w/cgDlvT34RwR LZyw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=Dt6TcMQ1; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Original-Received: from mout01.posteo.de (mout01.posteo.de. [185.67.36.65]) by gmr-mx.google.com with ESMTPS id o15-20020a05620a110f00b0077bd52a1935si386420qkk.5.2023.11.19.11.16.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 11:16:40 -0800 (PST) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) client-ip=185.67.36.65; Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 3EFF1240027 for ; Sun, 19 Nov 2023 20:16:39 +0100 (CET) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SYL3V6FMnz9rxL for ; Sun, 19 Nov 2023 20:16:38 +0100 (CET) Content-Disposition: inline In-Reply-To: <69D4EAA3-A22A-47BA-ACD5-3F694B47CEAB-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> X-Original-Sender: bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=Dt6TcMQ1; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net 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:33341 Archived-At: If I understand the question correctly, it has to do with the fact that the= LaTeX reader doesn't read the line \babelprovide[main,import]{french} from= the file produced by `pandoc sample.md -s -o sample.tex`, as the following= command evidences: $ pandoc -t latex -s <<< ' --- lang: fr-FR date: 01/01/2001 --- Mot ' | pandoc -f latex -t native -s Le Sunday 19 November 2023 =C3=A0 11:02:45AM, John MacFarlane a =C3=A9crit = : > Do you have something like this in sample.md? >=20 > --- > lang: fr-FR > ... >=20 >=20 > > On Nov 18, 2023, at 3:39 PM, Apprentice Ship = wrote: > >=20 > > I am trying to understand a bit more about Lua filters, in particular "= spellcheck" in the repository. > >=20 > > https://github.com/pandoc/lua-filters/tree/master/spellcheck > >=20 > > and my understanding is that the filters will act on the AST, but a seq= uence of: > >=20 > > $ pandoc sample.md -s -o sample.tex > >=20 > > $ pandoc --lua-filter spellcheck.lua sample.md > > summer > > missspeling [en] > >=20 > > $ pandoc --lua-filter spellcheck.lua sample.tex > > des > > fran=C3=A7ais > > missspeling > > english > > sont > > Ces > > Mais > >=20 > > seems to show that the Pandoc (ver 3.1.9) is not understanding the lang= uage metadata, as used by the LaTeX-writer. In fact, I do not see the the m= ain-language metadata entry under either of the commands: > >=20 > > pandoc -t native sample.md > > pandoc -t native sample.tex > >=20 > > Is that what is going on here?=20 > >=20 > > Joshua > >=20 > >=20 > >=20 > >=20 > >=20 > > --=20 > > You received this message because you are subscribed to the Google Grou= ps "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/ms= gid/pandoc-discuss/CAH114nCcs0R1-ayRGf5W%2BR7VAAMLAYY-L62MvSK4AtWoqON%3Dtw%= 40mail.gmail.com. >=20 > --=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= email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/69D4EAA3-A22A-47BA-ACD5-3F694B47CEAB%40gmail.com. --=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/ZVpfFntx258OC54W%40localhost.