From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32215 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.text.pandoc Subject: listAttributes not working Date: Tue, 21 Feb 2023 14:21:33 -0500 Message-ID: <000001d94629$b6cc3520$24649f60$@blinksoft.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01D945FF.CDF8C530" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28307"; mail-complaints-to="usenet@ciao.gmane.io" To: Original-X-From: pandoc-discuss+bncBCM7D66H7ULRBQ5T2SPQMGQEVP7POOA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Feb 21 20:21:43 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-vs1-f60.google.com ([209.85.217.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pUYCt-0007DA-5c for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 21 Feb 2023 20:21:43 +0100 Original-Received: by mail-vs1-f60.google.com with SMTP id k2-20020a0561023f0200b00411c70e9579sf1247526vsv.17 for ; Tue, 21 Feb 2023 11:21:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1677007302; cv=pass; d=google.com; s=arc-20160816; b=xsKlcJFOUQm4QQy/i9DYbtJqEzXyVtzQ0hs8Tj3isEITo1rIZ9Hjhq9640+7X5/hK2 nrShLyGMlmsFHG5dQNH0grYag9eqjtaNJa8tGralxyM0l0r3kw1rLorDOB34fx6mc4X4 HVmVeKvbN+trCHRASN44BsGJRBTeihKm2c4qxSz/1/S7PhHICJOvvq1MuQjckx9a+1dj dDoejaN3oakV+muts4FHn7nq6rkEepiP1ZhlnTknDY5p8Iodn3ZRTwtXnRWkCbLbIOQo aE6TacokQubdH/HiLMoaRBcBpV4jxXD/okKqmAF+eypzKZJjJsnnfGqbFBHAfDzYmL23 r50w== 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:content-language :thread-index:mime-version:message-id:date:subject:to:from:sender :dkim-signature; bh=zsa/gJuEBdpMpg3NpQL8mz76ssHfB2VrUEn4xkUS0Ic=; b=iPE83OSEkcXC5xNZ+NrGqNqIakppe8P3fQ67QA7nyuc+s3vdHnAIQcEm66odwfkJG7 HtNHQ5odLAI5HQ22iNBNc97obuYRrFnOElPyX1jtGYI9KPAVixGfCzSrjr0nLEyLRTOn 9RGKc0k0sSr0RiU98OdO+AmT0Sys/Uo6fncrueA0zbdRuf5lf8JbxQrcN/gXP1pTogZV xOKsJGjy64lea//6MXWS2v3S7yHpv7mhV+ppIChJy9RgykglHgoXTewYbEo86/UMVK+r I+2ZfFKpiA7yRK5BdeUnPbTKy6Ch47QWX/QJ8qEstpB6xxMR/RJR4vdxmCqz20PYKace I2Vg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@blinksoft-com.20210112.gappssmtp.com header.s=20210112 header.b=enULOJy1; spf=neutral (google.com: 2607:f8b0:4864:20::82c is neither permitted nor denied by best guess record for domain of kperry-rhKcP+tiLR7by3iVrkZq2A@public.gmane.org) smtp.mailfrom=kperry-rhKcP+tiLR7by3iVrkZq2A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; 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 :content-language:thread-index:mime-version:message-id:date:subject :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=zsa/gJuEBdpMpg3NpQL8mz76ssHfB2VrUEn4xkUS0Ic=; b=GJdAsJZkW3Nd6er/e3h8Iq2s7Lch3JzBofVmLmIxmdtu4IfyEFh+BpU5ziWYAylhyz zH58wtb5bmFZDW2mH/y4PqVBij4YjuTL6nYTO/XnJpG1TF2DHRwt9rClGWlWB0QZf88z fx2UAT7s/cIIpHcPGtttWoVPBTc24SXk+BiLfRTDBpq9tzGz4+vritcUN+S6PvMWdJV6 IvlZY1k6o/Qg1tB5PNWfwP/nq8IgNHQeQVMcCNMSainPOK05Dn9rioWHsbMWgAi5ekCD USKrjwP02XyyrqU3/dENBHPaMI2WkkmZxlE3KH9VjlFevlO6yAyhTc+eOUCEnVl+KDk7 Hcdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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 :content-language:thread-index:mime-version:message-id:date:subject :to:from:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=zsa/gJuEBdpMpg3NpQL8mz76ssHfB2VrUEn4xkUS0Ic=; b=aWey6IyY89Yv84JVlLtuqHZnWjpJDmXdBE6MbY9eqx/Fw7vDiLuiEDhgKm8afkYVJQ H4Ia1EV/qwHSrwc0D14EYLMELbk92b+EmELowdFuICBQtIT2BID80hNa38VQ3xIcCn1/ Qy5o5oD52yoqXVprLKBULXI515T2WDaztCp4hCSC1sHa0le9n1eCRSR1t5wdq1PgQgg3 7wzVn4hur3kMTs0feNspOmgfDImNgZc5USdEuKBRKdy8edaEDWyt0PAgQuuQJ6pKQjV/ B15QBiMZ2PmA4G4jpva9gpbCri56VUJr8i48saN Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKUr+PgyNCtMuHcBeFh9GZhyTgwcoCwWn84dHQ3pO8wiZI44yu93 P7fA+mOiugQzfaFB8TTk6q4= X-Google-Smtp-Source: AK7set/lqqRaGExuGwUt2ss/W3NLaIZWB2msjz7R5xJMo2GWeUhKk9kUCSLWMIlXLPLPP47FcMtKDw== X-Received: by 2002:a05:6102:f84:b0:412:33c1:ec57 with SMTP id e4-20020a0561020f8400b0041233c1ec57mr1430090vsv.34.1677007301953; Tue, 21 Feb 2023 11:21:41 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6102:3e24:b0:412:56a5:8c5c with SMTP id j36-20020a0561023e2400b0041256a58c5cls1882443vsv.0.-pod-prod-gmail; Tue, 21 Feb 2023 11:21:39 -0800 (PST) X-Received: by 2002:a05:6102:3713:b0:417:dc9:9374 with SMTP id s19-20020a056102371300b004170dc99374mr3409356vst.32.1677007299265; Tue, 21 Feb 2023 11:21:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677007299; cv=none; d=google.com; s=arc-20160816; b=bOLWuYW9tHs8oobECyFgO5vm3+5xbAyYecyO9AM//J91c9sa3R5iPDMrcapRqMT25E CsjJ/nFNZwZsmKMnv/yZGcyIjmuEKlowo7x6SrqIzQIMkYkbGJL5R6ogOKbes8q97sHC WHmXkOrGcdKzj7euvJM0x91dWD05CbFpw15soqYdFZUvb32SqtXahe4JpYXVF+9o14qs EjQWgvhotT9obEkpnnemdmK8+trMSfUBX8QbHCO9GHRSV0E91OGno37Y7TIhrpIzwnlm GDQhPh+EKtaSTOx04/pKlNh5dZFYp0iW3F0+iinGxoKpd0OOtw0tBxkEpTc/W244/WpI 4MCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-language:thread-index:mime-version:message-id:date:subject :to:from:dkim-signature; bh=QO7mSarVMPNgdGtkicXStrtgIVnQFom+vCuF/mN4ve8=; b=gC7XiStCH03JeNQzRNr52TtkZzWR9BuL4onYHMyPMOTbzBCn85XXj5JrQbOKLXdzV5 2P5YfovFpgGbtAmgEoCXuIh6Q0OnFi0wGRStEZQOGQisqEioCO2w9LZIaMnjH5pFRPsi dmaHgIFpuR+JZ4nemI6w7iUZjAyMEUmjNYIj3KhrFdxwfFLThc+2ddsRV48MlXkevO/e SmlckEi8uw1xEYyb13euShabAvQLjRUAGedLsbOvQTX4QvsHVi8ZC3N7F93puTQkYSEF LJOcD2jrVBpSWKXVemD4KGP8XOhbO6FzJBKfq8FMYBkLTjLBzX5wPly4RHDwSwfRia91 Sh3A== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@blinksoft-com.20210112.gappssmtp.com header.s=20210112 header.b=enULOJy1; spf=neutral (google.com: 2607:f8b0:4864:20::82c is neither permitted nor denied by best guess record for domain of kperry-rhKcP+tiLR7by3iVrkZq2A@public.gmane.org) smtp.mailfrom=kperry-rhKcP+tiLR7by3iVrkZq2A@public.gmane.org Original-Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com. [2607:f8b0:4864:20::82c]) by gmr-mx.google.com with ESMTPS id r22-20020a1fc116000000b00401bba86a64si385283vkf.5.2023.02.21.11.21.39 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Feb 2023 11:21:39 -0800 (PST) Received-SPF: neutral (google.com: 2607:f8b0:4864:20::82c is neither permitted nor denied by best guess record for domain of kperry-rhKcP+tiLR7by3iVrkZq2A@public.gmane.org) client-ip=2607:f8b0:4864:20::82c; Original-Received: by mail-qt1-x82c.google.com with SMTP id v19so5348141qtx.1 for ; Tue, 21 Feb 2023 11:21:39 -0800 (PST) X-Received: by 2002:a05:622a:d5:b0:3b9:a523:2bb5 with SMTP id p21-20020a05622a00d500b003b9a5232bb5mr25018907qtw.14.1677007298001; Tue, 21 Feb 2023 11:21:38 -0800 (PST) Original-Received: from Darkstar (cpe-98-157-222-174.ma.res.rr.com. [98.157.222.174]) by smtp.gmail.com with ESMTPSA id 16-20020ac85950000000b003b82489d8acsm2592695qtz.21.2023.02.21.11.21.36 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Feb 2023 11:21:36 -0800 (PST) X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdlGKHg2ylQIde1UQdaZFpFF7mg1vg== Content-Language: en-us X-Original-Sender: kperry-rhKcP+tiLR7by3iVrkZq2A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@blinksoft-com.20210112.gappssmtp.com header.s=20210112 header.b=enULOJy1; spf=neutral (google.com: 2607:f8b0:4864:20::82c is neither permitted nor denied by best guess record for domain of kperry-rhKcP+tiLR7by3iVrkZq2A@public.gmane.org) smtp.mailfrom=kperry-rhKcP+tiLR7by3iVrkZq2A@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:32215 Archived-At: This is a multipart message in MIME format. ------=_NextPart_000_0001_01D945FF.CDF8C530 Content-Type: text/plain; charset="UTF-8" I am either doing something wrong or the listAttributes are not working. To make sure it was not my filter I did the following: Pandoc -print-default-data-file sample.lua >sample.lua Then I added a log function to sample.lua that was created by the above command like: local function log (msg) file = io.open("log.txt","a") file:write(msg .. "\n") file:close() end This was so I could see the output. Yes it continues to append to log.txt in the folder but it was just for simple testing. Finally I added this line to the ordered list function. Log(attributes(items.listAttributes)) The attributes function comes in the sample.lua and is supposed to print all the attributes you send it. Well this says it is nil and errors. I have tried putting if statements and print statements of all kinds in and I can not get the listAttributes to show up on items. After doing some testing it seems the items passed into orderedList is just a table of items so there are no attributes on it. When I read the pandoc documents it explains that an orderedList has listAttributes. How do I get them since the above test shows that I can't get them from items in the orderedList function. As I said in a previous email I am able to get the style and start values from json but not from the lua API. I have to be doing something wrong unless no one has tried this before and that would be shocking. -- 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/000001d94629%24b6cc3520%2424649f60%24%40blinksoft.com. ------=_NextPart_000_0001_01D945FF.CDF8C530 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

 

 = ;

I  am either doing something wrong or = the listAttributes are not working.  To make sure it was not my filter= I did the following:

 <= /p>

Pandoc –print-default-data-file sample.lua &g= t;sample.lua

 

Then I added a log function to sample.lua that was created b= y the above command like:

 

local function log (msg)

file =3D io.open("log.txt","a")=

file:write(msg .. "\n")

        file:close()<= o:p>

end

<= o:p> 

 

This was so I could see the output.  Yes it continues to appen= d to log.txt  in the folder but it was just for simple testing.  =

 

Finally I added this line to the ordered list function.

 

Log(attributes= (items.listAttributes))

 

The attributes function comes in the sample.lua a= nd is supposed to print all the attributes you send it.  Well this say= s it is nil and errors.  I have  tried putting if statements and = print statements of all kinds in and I can not get the listAttributes to sh= ow up on items.  After doing some testing it seems the items passed in= to orderedList is just a table of items so there are no attributes on it.&n= bsp;

 

When I read the pandoc documents  it explains that an orderedL= ist has listAttributes.  How do I get them since the above test shows = that I can’t get them from items in the orderedList function.  <= o:p>

 

As I said in a previous email I am able to get the style and start values= from json but not from the lua API.  I have to be doing something wro= ng unless no one has tried this before and that would be shocking.

 

&= nbsp;

 

--
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/ms= gid/pandoc-discuss/000001d94629%24b6cc3520%2424649f60%24%40blinksoft.com.
------=_NextPart_000_0001_01D945FF.CDF8C530--