From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29322 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:33:27 -0700 (PDT) Message-ID: <7bd66ace-26db-4aa0-911d-dc8abe999928n@googlegroups.com> References: <1ad4d633-8045-4611-97de-63757c38fa9fn@googlegroups.com> <54c55b4dc2234d6cb0015bb40d8a8ac7@unibe.ch> <0ed66c25-3797-4cf4-986a-92ff787f30cbn@googlegroups.com> <1178c58675b0461e9f49669ab19d29d2@unibe.ch> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_5100_1450000618.1633095207556" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38470"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCT6LC6Q3QDBBKU43SFAMGQEAG2K66Y-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Oct 01 15:33:33 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f61.google.com ([209.85.161.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mWIfN-0009pA-DR for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 01 Oct 2021 15:33:33 +0200 Original-Received: by mail-oo1-f61.google.com with SMTP id j27-20020a4ad2db000000b0029ac522e7d5sf7050262oos.7 for ; Fri, 01 Oct 2021 06:33:33 -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=aHSqF38cTU6fG6XZ9JBRymmsls/KzwpgjBteoxe9aVI=; b=XpMFJXFKICHugrEeUPaCKaZkmahV3b672QzPsriYBOh90Ro9lfL5cUF0OU3NtP/ubF zHcfxyLv0f1uXQyMnILbb/SOFwFHq0+ahkuEDb0B5X3f59ywq5DLdrU/rmi/n4ZoksS/ crH+dQow5nyCSOz5Ndwgw+hTtqTUdmjWZwPrtSjLkWZq4vF/wpc/IetYlg5JjAVnioGT sU6LRaqHZH1WVAmwc2746V5VWABV3aLsHXLRd2ciKo1oz/VrOfbUCA1hU6aiQVTkkqKe r9l4I5WQegwN4T2gk7C5AyAGdCNDUUGjC59E4i0L0oJicKAiIviqSip5u/v+3ty5cLl/ CbXA== 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=aHSqF38cTU6fG6XZ9JBRymmsls/KzwpgjBteoxe9aVI=; b=pziTB+KcDdyjl48Mm7+dkiH6maZvByGuQ/DklO4fPgJiJuUapQP+kXmIYV4MVMMCmY F36afOtu7zr0Iu+xl5sBAjIZ/I+C3G5GcWtXr7cs13Mrytc2b/IpkVxNRSABAlR+7fh1 bZHc7ZiLOdtUvOU2CBF/tVvjXadsEVH7wSsnR6tiw1S26Ecof14huezafRPq0Uoom/YJ aiTSH569bDWsNzrh7Fk8n27zPuN3/uowIK5/5joqGUoCa5sMsHdM+V5vocXIAPh8xhhV BUInAIDNbnIt6n/zowzSs5+F13PCgz0XBHXx3WqpCi+ncohxXjwadHWA29IzDJX1AA3y aZtg== 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=aHSqF38cTU6fG6XZ9JBRymmsls/KzwpgjBteoxe9aVI=; b=CSv7mDIeMa2wsEwyULQ4h/Mdq0vsfIl2NTShxCeM3fm8flRetG0mLeWqYJf8OfrGhV tKEusfxvP9OTasHWHSdwhywdtHCLHIOCl+IzHfJJVf4Zjs+ium63iHeaiUM7Enc4ZGXs EEIIz0MiDJkNsP/B3k7BOyREPSxgq6nIYIjy8QtjAAu063LjzyvcMUa/3ku22CY5YOVt 80wkZIWXI7Iu8XOHpknZ8IU3ADr7fZzSnJnJPjXDmdeeEZXTe31RZ/SXBs3QpJfq48vO iCIMa7SjO2x96WtyXNfwyJ9ugKxcqslH8cqG7i141MCj+H6xP6gtc4kg22BprTg6OLl6 u2IQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM5318cYLwlAfC9iwJgjdiw+DG5kL/5sDUT+RgzvZepr7TE7EkQMeh xQN9xt12hbLAGWoJ14Tk/q4= X-Google-Smtp-Source: ABdhPJy6pbcqp28F2e1HjlZHgyNaIbNfdOts7fr3JIT7p5A/7o4u+2GmxxHY8Bqoxck1EdlubUpXfQ== X-Received: by 2002:aca:3114:: with SMTP id x20mr3869815oix.174.1633095211858; Fri, 01 Oct 2021 06:33:31 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:547:: with SMTP id l7ls3057490otb.4.gmail; Fri, 01 Oct 2021 06:33:30 -0700 (PDT) X-Received: by 2002:a9d:609:: with SMTP id 9mr10346356otn.231.1633095208326; Fri, 01 Oct 2021 06:33:28 -0700 (PDT) In-Reply-To: <1178c58675b0461e9f49669ab19d29d2-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:29322 Archived-At: ------=_Part_5100_1450000618.1633095207556 Content-Type: multipart/alternative; boundary="----=_Part_5101_654877157.1633095207556" ------=_Part_5101_654877157.1633095207556 Content-Type: text/plain; charset="UTF-8" Yes. My stupid code works with "return s;" at the end of the function. On Friday, October 1, 2021 at 3:25:03 PM UTC+2 denis...-NSENcxR/0n0@public.gmane.org wrote: > It works now? > ________________________________________ > Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org im Auftrag > von Vin Cent > Gesendet: Freitag, 1. Oktober 2021 15:24:21 > An: pandoc-discuss > Betreff: Re: What must I do to get any LUA script to work ? > > 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-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/0ed66c25-3797-4cf4-986a-92ff787f30cbn%40googlegroups.com > < > https://groups.google.com/d/msgid/pandoc-discuss/0ed66c25-3797-4cf4-986a-92ff787f30cbn%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/7bd66ace-26db-4aa0-911d-dc8abe999928n%40googlegroups.com. ------=_Part_5101_654877157.1633095207556 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Yes. My stupid code works with "return s;" at the end of the function.
<= br>
On Fri= day, October 1, 2021 at 3:25:03 PM UTC+2 denis...-NSENcxR/0n0@public.gmane.org wrote:
It works now?
________________________________________
Von: pandoc-...@googlegroups= .com <pandoc-...@googlegr= oups.com> im Auftrag von Vin Cent <irak...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Gesendet: Freitag, 1. Oktober 2021 15:24:21
An: pandoc-discuss
Betreff: Re: What must I do to get any LUA script to work ?

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-...@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 blo= cks 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 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/0ed66c25-37= 97-4cf4-986a-92ff787f30cbn%40googlegroups.com<https://groups.google.com/d/msgid/pandoc-di= scuss/0ed66c25-3797-4cf4-986a-92ff787f30cbn%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/7bd66ace-26db-4aa0-911d-dc8abe999928n%40googlegroups.= com.
------=_Part_5101_654877157.1633095207556-- ------=_Part_5100_1450000618.1633095207556--