From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29318 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Vin Cent Newsgroups: gmane.text.pandoc Subject: What must I do to get any LUA script to work ? Date: Fri, 1 Oct 2021 06:04:21 -0700 (PDT) Message-ID: <1ad4d633-8045-4611-97de-63757c38fa9fn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2494_578373719.1633093461942" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4308"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCT6LC6Q3QDBBWEO3SFAMGQEEDPUT5Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Oct 01 15:04:29 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f62.google.com ([209.85.161.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mWIDF-0000sb-0s for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 01 Oct 2021 15:04:29 +0200 Original-Received: by mail-oo1-f62.google.com with SMTP id j27-20020a4ad2db000000b0029ac522e7d5sf7005149oos.7 for ; Fri, 01 Oct 2021 06:04:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=X1BHPMmIjFHVNBDUNrX3TeQAR1TaJcZIgvSAAB3cXZg=; b=jg1cSikBs02vBLMELltLC+4xVRVbYVVUaPlHafJ3R07q8BPx+klS8YgWdEN5bk7p7m LsfBmE3RnWwNXPA9IA4jjmIPfXiTLJjIBU3nWoQh7nWI0UJKtEGLQxWRAYkA+Ta0Fij2 7yzlnP8Ty+O7fZFkoveT1DpSSBunb584EoHFqYWqT2qS2omjAdZUzk8gSPXLQhATjPOs 8WD2xWfskfk/3mCBL0U2T+JO/zNr0Sfga53aAc4eKxVl53vOpF/mBUtzOJX6kf8E0G+x wZmOCET5PEEw5yhuuw0NTVIPIf8KaAaBgCiIDNlgAlTOupu1kEmfmbyvuJy76ooLUJSR zvpQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=X1BHPMmIjFHVNBDUNrX3TeQAR1TaJcZIgvSAAB3cXZg=; b=YPpHqzzxFnpX1Ys0wXs5y8UTDfVWpfMlcKP4B3y8DNn303Pa4x9Kdy99IT4qlTfCP4 Z3FQi2usN3nVOH5CgEwVVnIRd6hreSsKM5VC18eY/LlpXzooNVqZhUwLP9UXJw/nrAfz iGicLItBNkINBNYYA7VJif50nz+LDG4aGv0oRw70rLLMplDoX0ECLZaniJvIrayr7z/f JvsRESJMmA91XaArv6uo4BYCZOHL41QSADPSYLqki2j+5xdZLtLhlK2F7Jv956RVz4+c TBM3UPM5nbYl79FFJBJwdSahNmrVJGq09QOB11vLLOOIHXy6WOa49fWzUlhKXaQhQOrk Dp4Q== 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: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=X1BHPMmIjFHVNBDUNrX3TeQAR1TaJcZIgvSAAB3cXZg=; b=RQXHRKGC/0bOpzHzEprZ8KvMblTfRGgRsTYmc1zW1f2BaiB21mDqOvG2BSHxTfPEJ7 YMz6jYJiM0/IR5rxjVxXpBhtDQHJX53896seSWUizrumN8qBnXwHdCuQ/O8Nd8ds3a3N iktkHTOtjKA6aPixem1DZIAzwWwwotXRB8B4g90mq8qcFh0bEZPQkMJVPjk9ADPl7QSU BurpRl7AhGDM2vfRP+9YxiAqG770ClWIL82exf8yNjhWCU8pxNDWJfzo2Zh90FInk905 SDiwq792SdDUpoC3TtycfCEYRMJPZozpmIEWNCMXiIsWG7/1Gdw+EF0ESH8pVgjohE9g vUBw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532l9qArid5MSxoUtISfN9yxVPS4Kqlp7svIpyS4XKvPikZJrR01 J4axgnxzUFAL5RFX0eHqk0Q= X-Google-Smtp-Source: ABdhPJzs2pdvr1TCaYvE1jP+fgD1Jeq7Ce9Grb+AckTaNTbjYLODMWMsmtqsphR7pRvXOxDsrNEiUQ== X-Received: by 2002:a05:6820:358:: with SMTP id m24mr9538529ooe.34.1633093467507; Fri, 01 Oct 2021 06:04:27 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:239a:: with SMTP id l26ls3018863ots.10.gmail; Fri, 01 Oct 2021 06:04:24 -0700 (PDT) X-Received: by 2002:a05:6830:1ddd:: with SMTP id a29mr3131129otj.228.1633093462564; Fri, 01 Oct 2021 06:04:22 -0700 (PDT) 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:29318 Archived-At: ------=_Part_2494_578373719.1633093461942 Content-Type: multipart/alternative; boundary="----=_Part_2495_1601345741.1633093461942" ------=_Part_2495_1601345741.1633093461942 Content-Type: text/plain; charset="UTF-8" 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 :

[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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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. ------=_Part_2495_1601345741.1633093461942 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Greetings,

I have been spending time pulling my ha= ir and reducing my code and ambitions.
Now (based on the BlockCode exam= ple from my LUA code is simply reduced to :

function Span(s)
          s.identifier =3D= "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 :

<p&= gt;<span id=3D"fig:LettreChessCarleyCo" label=3D"fig:LettreChessCarleyCo= ">[fig:LettreChessCarleyCo]</span></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=3Djpg
=

../pandocLabelFilter.lua contains what I pasted above.<= br>

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

Thanks,
=

Vincent

--
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/1ad4d633-8045-4611-97de-63757c38fa9fn%40googlegroups.= com.
------=_Part_2495_1601345741.1633093461942-- ------=_Part_2494_578373719.1633093461942--