From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29320 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Vin Cent Newsgroups: gmane.text.pandoc Subject: Re: What must I do to get any LUA script to work ? Date: Fri, 1 Oct 2021 06:24:21 -0700 (PDT) Message-ID: <0ed66c25-3797-4cf4-986a-92ff787f30cbn@googlegroups.com> References: <1ad4d633-8045-4611-97de-63757c38fa9fn@googlegroups.com> <54c55b4dc2234d6cb0015bb40d8a8ac7@unibe.ch> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3568_1077391634.1633094661490" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29417"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCT6LC6Q3QDBBBUY3SFAMGQEO47T57Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Oct 01 15:24:25 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f60.google.com ([209.85.210.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mWIWX-0007VE-1U for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 01 Oct 2021 15:24:25 +0200 Original-Received: by mail-ot1-f60.google.com with SMTP id r3-20020a056830236300b0054d43b72ba5sf824069oth.17 for ; Fri, 01 Oct 2021 06:24:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=5C7/kvW2CBqiPlsDGOSvBa2SsHGtmFm/rmXGHfcSCS8=; b=PzRXPOXxJngwYdqnYKAcG6qfawhxIW/JYOJLkfD5zzl2yzjTKwmWID8D7fq9xy1egx QCThTUbOgLMqAX4X9qSM2yD8ynCwJGqFJYoYJC1mK5n+DblLqr/nBJ2erFH1xU2z0x8I Yz+Is+sCt6DgCkbihxy4/TQo5zhKbY9BsxJAgHy0IT8CBNZMWWOyhO5TUPUWSZ3pov/a U9T9YClGjFe0r461UZJuC4zyXe4cWggslP3k2+ywO5Ozt8NVEDeFPPMncYzBhifHGaSx eKUh+TWAVZYnmqnbVuHR9NEkgYwIB4cE5/v/Hkkxgh+2ybNExYyrHHe1EoMtWvRN8tot mKWg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=5C7/kvW2CBqiPlsDGOSvBa2SsHGtmFm/rmXGHfcSCS8=; b=eY8Sx2AQikyMlvaxHUg8ehGX3kVTdfpwPiq6JrICZpBwck0pq4a82hqZTG+ecsM0Fn h07dQR7iQcfDW2EXI0OvbHP9aRkjqYLPhQVaPYaaqP9KrHd9nv8VdMEPWJwNa8IYKkYB OfO22W6wdlBTcVPAfI20V/0YAKv1d1PWOJLnlfhuf2fIrbgsmZgt5wrIc2mTtak0Q0Hn OmrylyduVGYpwdObL1c7i7o8lgB2BCiE7OP+Rrdxrnw6cugHvcPnWNHAgTr69hVO/fDW Xy0qGGWCj7SEqnfcULw+xiMgbprsItMajAbc15riwujfpjvA/65x7UEiEKgUMhV3QDRL L7iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=5C7/kvW2CBqiPlsDGOSvBa2SsHGtmFm/rmXGHfcSCS8=; b=6H74mCws5RgfpRMCgOPo7ITPAkuEaxhzKCqSdEQMvk7VHmQN22ZlzQ8+UFHymwZpK4 0q2x3o2KRr9usOAjffJmtFsGm/t+3jefNJesOu2C1ci1PDbMDzY8s5uHmb0knL0UcgLY 7YBalat3KPfqY7o33shz7I/2lO5OiQq+OTbTLtHbIZoSZGGO3ZbzIVM8fdBlxAkOL0Na D8fCiU2LDBILQgg1pJ03uO/S8WWOMrMKLyGXs5+qKnIZ9aY6BY3gGV6ms2+JxwnnGgeE 5E3T+8DozIDyK+Y0/vrZ40THtvcaYsMPGBw6eE4+HZO9Y+u5L7j7hUAmqGIoNvL/5U5d sdjQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532cD1NNyBW7LqBy54YElO07hvWgNtfYTnFbUtXTxy+dnIqHJZu1 5fDpN9aFgNIhhOXmR0alPHI= X-Google-Smtp-Source: ABdhPJzo4DYe8phw9hqAChZetfi8u8BnGk1lo9+hxUU0xyevQd5AtDjqXYA5OTCUrly7kR2kMxQEXA== X-Received: by 2002:a9d:d84:: with SMTP id 4mr10119449ots.383.1633094663895; Fri, 01 Oct 2021 06:24:23 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:19e7:: with SMTP id k94ls3043551otk.7.gmail; Fri, 01 Oct 2021 06:24:22 -0700 (PDT) X-Received: by 2002:a9d:6347:: with SMTP id y7mr10161138otk.241.1633094662097; Fri, 01 Oct 2021 06:24:22 -0700 (PDT) In-Reply-To: <54c55b4dc2234d6cb0015bb40d8a8ac7-NSENcxR/0n0@public.gmane.org> X-Original-Sender: irakay17-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:29320 Archived-At: ------=_Part_3568_1077391634.1633094661490 Content-Type: multipart/alternative; boundary="----=_Part_3569_1691086874.1633094661490" ------=_Part_3569_1691086874.1633094661490 Content-Type: text/plain; charset="UTF-8" Thank you. On Friday, October 1, 2021 at 3:07:22 PM UTC+2 denis...-NSENcxR/0n0@public.gmane.org wrote: > Return s > > > ________________________________________ > Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org im Auftrag > von Vin Cent > Gesendet: Freitag, 1. Oktober 2021 15:04:21 > An: pandoc-discuss > Betreff: What must I do to get any LUA script to work ? > > Greetings, > > I have been spending time pulling my hair and reducing my code and > ambitions. > Now (based on the BlockCode example from my LUA code is simply reduced to : > > function Span(s) > s.identifier = "ggg"; > end > > I based that on examples I found here : > https://issueexplorer.com/issue/lierdakil/pandoc-crossref/319 > and based on the Span description from https://pandoc.org/lua-filters.html > > My very obvious expectation is that any generated span element has a "ggg" > identifier. > I don't know how I could define a more trivial function. However, nothing > ever works. > > This started with comparisons and real code. Since nothing works, I have > reduced it to this oneliner, which still doesn't. > > When I compile my (.tex) code (into epub), this continues producing blocks > such as : > >

label="fig:LettreChessCarleyCo">[fig:LettreChessCarleyCo]

> > My compilation is run with this command : > pandoc -L ../pandocLabelFilter.lua -Fpandoc-crossref -o ebook.epub > epub.tex --epub-metadata=metadata.xml --epub-cover-image=IMG/couverture.jpg > --toc --toc-depth=2 --resource-path=IMG/ --default-image-extension=jpg > > ../pandocLabelFilter.lua contains what I pasted above. > > So, what must I do additionnally so that any LUA code accepts to be run > for real ? > > Thanks, > > Vincent > > -- > 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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/1ad4d633-8045-4611-97de-63757c38fa9fn%40googlegroups.com > < > https://groups.google.com/d/msgid/pandoc-discuss/1ad4d633-8045-4611-97de-63757c38fa9fn%40googlegroups.com?utm_medium=email&utm_source=footer > >. > -- 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/0ed66c25-3797-4cf4-986a-92ff787f30cbn%40googlegroups.com. ------=_Part_3569_1691086874.1633094661490 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you.

On Friday, October 1, 2021 at 3:07:22 PM UTC+2 denis...-NSENcxR/0n0@public.gmane.org w= rote:
Return = s


________________________________________
Von: pandoc-...@googlegroups= .com <pandoc-...@googlegr= oups.com> im Auftrag von Vin Cent <irak...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Gesendet: Freitag, 1. Oktober 2021 15:04:21
An: pandoc-discuss
Betreff: What must I do to get any LUA script to work ?

Greetings,

I have been spending time pulling my hair and reducing my code and ambi= tions.
Now (based on the BlockCode example from my LUA code is simply reduced = to :

function Span(s)
s.identifier =3D "ggg";
end

I based that on examples I found here : h= ttps://issueexplorer.com/issue/lierdakil/pandoc-crossref/319
and based on the Span description from https://pandoc.org/lua-filters.html

My very obvious expectation is that any generated span element has a &q= uot;ggg" identifier.
I don't know how I could define a more trivial function. However, n= othing ever works.

This started with comparisons and real code. Since nothing works, I hav= e reduced it to this oneliner, which still doesn't.

When I compile my (.tex) code (into epub), this continues producing bl= ocks such as :

<p><span id=3D"fig:LettreChessCarleyCo" label=3D&quo= t;fig:LettreChessCarleyCo">[fig:LettreChessCarleyCo]</span>&l= t;/p>

My compilation is run with this command :
pandoc -L ../pandocLabelFilter.lua -Fpandoc-crossref -o ebook.epub epub= .tex --epub-metadata=3Dmetadata.xml --epub-cover-image=3DIMG/couverture.jpg= --toc --toc-depth=3D2 --resource-path=3DIMG/ --default-image-extension=3Dj= pg

../pandocLabelFilter.lua contains what I pasted above.

So, what must I do additionnally so that any LUA code accepts to be run= for real ?

Thanks,

Vincent

--
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-discus...@goo= glegroups.com<mailto:pand= oc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/1ad4d633-80= 45-4611-97de-63757c38fa9fn%40googlegroups.com<https://groups.google.com/d/msgid/pandoc-di= scuss/1ad4d633-8045-4611-97de-63757c38fa9fn%40googlegroups.com?utm_medium= =3Demail&utm_source=3Dfooter>.

--
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/0ed66c25-3797-4cf4-986a-92ff787f30cbn%40googlegroups.= com.
------=_Part_3569_1691086874.1633094661490-- ------=_Part_3568_1077391634.1633094661490--