From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32041 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Fun with 'pandoc lua' Date: Thu, 19 Jan 2023 16:45:36 -0800 Message-ID: References: <208248AE-608E-4E19-AA46-C902BE91FBE9@gmail.com> <875yd2mm3i.fsf@zeitkraut.de> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) 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="5656"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBBNOIU6PAMGQELNSWUGI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jan 20 01:45:46 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pf1-f184.google.com ([209.85.210.184]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pIfXO-0001DG-00 for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 20 Jan 2023 01:45:46 +0100 Original-Received: by mail-pf1-f184.google.com with SMTP id n22-20020a62e516000000b005817b3a197asf1655799pff.14 for ; Thu, 19 Jan 2023 16:45:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1674175544; cv=pass; d=google.com; s=arc-20160816; b=0fIpnRNUI2PSE9cMCHtqqjAOSyiw3pNlahqkwd+3tQPlRqbl2N/WTc+uN3AgsxZ9Jc /TSuANjjNgACPgC1FHpLIpTtmmSfDiLiAIbdVB8A4IRa99fjCCyZA3BD6ptnjXRF4lXM G3jmKovwznZ9S5XkaIKi6EkWaFaruoJI1aiXcyKtXKtR+TtuVncVRA2oTEgdJ7UmDty2 6VpJTKhLq1i+uFwMetLkQ/SYNGKa9HBUL072yKPiDz2U9RgT5V9WE5P71m0SEmrPkb0T 5Q3+PJ7vaABdK5qRbP8+hw2TKiFxzgb2pKtJndi1iYHzFMIHLLE+5aGWhrgK4NpTqwzY tcng== 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:message-id:in-reply-to:to :references:date:subject:mime-version:content-transfer-encoding:from :sender:dkim-signature:dkim-signature; bh=fffZBrcpC8sRPJCAeXgseHXQ2C7tw20aqTYUucVfcYU=; b=FfZ4WKTTH8Of8onvWzOV1sVbBY2m1NtggUahWcmMfrfp9GtuvxRq6DuNfW10A1zi2C LpcNEvmRiFQY0t6WuRi8+Y9uuTkAcj5UYBjAWeYXJSqAQr2eLt5/g+kQID2YM5x07u/Z 1Z939hg6SOqt52uip+5G8wHyzHsi8ySBAHJ6Mh9tR7uH47Bx5iL4/4Xq1chbwdcw2Dtf sMbXOEJ9qhDRlgYm96vKhqf38pOEp47+GWH1dVXJ9GThmZEW118ChZ8rRZwH/AjAs0LS ImY4FT8X2C06Ik9yXrpOxYC9oCwKEb3X1UarEHo0yIgt/0z1VTEjmVZ8ItjWV3nmmHDv iK4A== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dOLivITK; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::534 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=fffZBrcpC8sRPJCAeXgseHXQ2C7tw20aqTYUucVfcYU=; b=Byx+Nj01TXaK6qDWRnf2KBAKf3ME4Pxh7BOy/yIZVlPp5q/7L29VSDVETsO8kuYKFl YY8H1uECyqoCk7W+hpjh68LbipUnqxEWcpoNtmdm1hgPF8OcUEoRz27nXcASrGYu6pUa DBZn4OFv1T0BxJqTew1doiXKsfMSEjIJXOqOpraIvshWhXYSJFp1KieURFrRU5dZMfq5 c9WwDclgswohMn0MQeg/jaZOWLju4sOvlYG/qnvdfT63F/kgfA7dFbL4k1WtVAdmyddq qLh30Ug+XuFttZQXXoQzP/wssqvtmF4DGvmKMoI9NR6VhgBr/y50EAN2669QrhuTu DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.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:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=fffZBrcpC8sRPJCAeXgseHXQ2C7tw20aqTYUucVfcYU=; b=p/jNB8QZanqv4hqI49qpiwVSOaHeUc5rUy5o0qmHOgN+PI/WZyqaG7K+8uhV0G8INR gZwq2G2THfbdOTh5jqsE65g4M/eLmdRK/o93qIKkwXvQFOCA9xUbLI/YQBJWWamU/gl7 rUzL5x8sNL80M8351LIhmhazBtcr4mY45PSgAgZJThJ1nzQxJWw4uuX9TruL+Gta1HDP v08uSWNrAIeACHKFznChq73ihgOJY+eSdO9on0HEHcnTqTCHuei+e1MSVb7QIybWI/NP R1qa0umSBliGElbzJOy4AjQd1OO7yioPeypWjsW7MM4PFTZDbs/N6AFAQ9X5P7MGlyYv B 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:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=fffZBrcpC8sRPJCAeXgseHXQ2C7tw20aqTYUucVfcYU=; b=rjZFiSOFd3tKEibETm7haL3UH5DmGuaQZ7ITLyjfzskRxRCzNibu8d4ZJGRRkuLzF5 9pIvT3XtzZd8asROBOS8AAFuWKGmOeadLcREm13ajIv6ZUOcozX/H9ALCIqn1Cx5YzUV t5qL+/ysSn3AnodABwIfnCprJ+wBVXGRqalq7dnlQS+KhJk6b/na1QASRaqMe5pmwNsa awkQeYytmnEfKj1Q+bul95z3m2InB39KhBH0Ops8werIcmST2GNLRBxvsAkgICiXSHOh 5oHFhWhmlO+oLMK8LCzM Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AFqh2krm1qJ6gGGXz+wckoEYgPpS9mFKv7DwPuMRgrpwiSbJsHitrnnq trtiIOHhJ03yiu1Z4qrpcY0= X-Google-Smtp-Source: AMrXdXtzQ9bChrGntq6aq3/U3hLJ5JRwCHByDsKPLICJFbrMiB79TXNkNxK4qo0gfJ9VtUv6PYiOvw== X-Received: by 2002:a63:4e51:0:b0:4d1:851b:7bad with SMTP id o17-20020a634e51000000b004d1851b7badmr595818pgl.203.1674175544581; Thu, 19 Jan 2023 16:45:44 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:90a:3801:b0:227:1b53:908c with SMTP id w1-20020a17090a380100b002271b53908cls6994012pjb.1.-pod-canary-gmail; Thu, 19 Jan 2023 16:45:41 -0800 (PST) X-Received: by 2002:a17:90b:11d4:b0:229:f3ff:f63d with SMTP id gv20-20020a17090b11d400b00229f3fff63dmr2925265pjb.49.1674175541141; Thu, 19 Jan 2023 16:45:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674175541; cv=none; d=google.com; s=arc-20160816; b=g68jLGi9HHktXCc3pfIbfPSFtS2tven+u/Y5LD6MPPAneAxErTxQKIGTWugo2fbix2 dQsu3SqUrjGatcLK+qBb6L0KcHTjRhevMlQ1vYdoB7F3UbbSG3LYVpMArlw2ZCxJDUor XUakfMQEQGQCYWZv++fjjU6X1trfen5c8dar4j7wk0JcPYtmRnm4CXXwB+WMj7dYPBRg 1b4/CdsraCWy55fYFE68Ch435GHMMsWTXIViwnl4S0NxlMrf6XWNkwfACJCJOpI7s+WT yH1yTkYK9aipXtky56pftU/1vskZkrBjVHjsNF1f5S3wd+RsKkU7uwE0wNqe26Pvwh69 eJHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:dkim-signature; bh=x2dwejO0fftReYABTVwxGvEum6wko2Bw6rlKJyDzZUE=; b=ofNDCzw6GqF1ar7yhzBXJyQTHi6FOFEKyPb5QVxXmus0zxVGA9Enu4ulrvp4Z74X8/ GVsJ6C0kyIPuZV/8XxTAwZWywqqr+RepL1dvQICLJYb8yrrl2hbYQoClM0jMKpjfO300 01QRlNdsxzWnRBYpolzDgLLACeKy+IwnG3fXilNOfGVy62CULM6PrnMzbcRKTslDuC4I lMkqet/CNtg59Omzfg32pw7WT+kypu3QHyFrVXv0zVjcG4nsYuiPqBVuxbvYWCSy8a8C qgSJaBSv1sXh2lM9QFrbNymcSYcc7seM3PggZ9yebsGFTIYFMQ3HU078gB2ti5XqnoZX f4Pw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dOLivITK; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::534 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com. [2607:f8b0:4864:20::534]) by gmr-mx.google.com with ESMTPS id g4-20020a17090a9b8400b0022bad3e05edsi16806pjp.0.2023.01.19.16.45.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Jan 2023 16:45:41 -0800 (PST) Received-SPF: pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::534 as permitted sender) client-ip=2607:f8b0:4864:20::534; Original-Received: by mail-pg1-x534.google.com with SMTP id d10so2941621pgm.13 for ; Thu, 19 Jan 2023 16:45:41 -0800 (PST) X-Received: by 2002:a05:6a00:4c0b:b0:58d:bffa:db25 with SMTP id ea11-20020a056a004c0b00b0058dbffadb25mr17259813pfb.19.1674175540499; Thu, 19 Jan 2023 16:45:40 -0800 (PST) Original-Received: from smtpclient.apple (protagoras.phil.berkeley.edu. [128.32.252.45]) by smtp.gmail.com with ESMTPSA id b5-20020a62cf05000000b005821db4fd84sm12256693pfg.131.2023.01.19.16.45.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jan 2023 16:45:40 -0800 (PST) In-Reply-To: <875yd2mm3i.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Original-Sender: fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dOLivITK; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::534 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:32041 Archived-At: I think I see what is happening. HTML writer has: abstractTitle <- translateTerm Abstract And apparently the term isn=E2=80=99t defined. Why not? Well, normally it = would be defined by configureCommonState, whic his run at the beginning of = convertWithOpts=E2=80=99. This sets the user data directory, tracing option= s, verbosity, the resource path, the input and output file variables, reque= st headers, and translations (based on `lang` in metadata). I=E2=80=99m not sure how we should deal with this is a Lua context. Perhap= s Lua initialization should include running configureCommonState? There se= ems to be no way to load the translations manually from Lua. > On Jan 19, 2023, at 10:08 AM, Albert Krewinkel wrote: >=20 >=20 > John MacFarlane writes: >=20 >> Pandoc 3.0 can be used as a lua interpreter, with full access to the Lua= API: >>=20 >> $ cat test.lua >> local formats =3D {"latex", "html5", "docbook", "ms"} >> local doc =3D (pandoc.read("> *hello* world!", "markdown")) >> for _,format in ipairs(formats) do >> print(string.format("%s:\n%s\n\n", format, pandoc.write(doc, format))) >> end >>=20 >> [...] >>=20 >> latex: >> [WARNING] The term Abstract has no translation defined. >>=20 >> Albert: do you know why we get that warning? >=20 > No clue, sorry >=20 >=20 > --=20 > Albert Krewinkel > GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 >=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/875yd2mm3i.fsf%40zeitkraut.de. --=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/EF2D1F45-A155-4DA5-9C4B-12D21F46B6D8%40gmail.com.