From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/11566 Path: news.gmane.org!not-for-mail From: Gordon Steemson Newsgroups: gmane.text.pandoc Subject: =?UTF-8?Q?=E2=80=9CPANIC=E2=80=9D_error_message_with_custom_writer?= Date: Sat, 20 Dec 2014 13:07:33 -0800 (PST) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1213_274126322.1419109653007" X-Trace: ger.gmane.org 1419109665 7667 80.91.229.3 (20 Dec 2014 21:07:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Dec 2014 21:07:45 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCU3VGUM3AGRBFWK26SAKGQELY7ZTVQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Dec 20 22:07:38 2014 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ig0-f189.google.com ([209.85.213.189]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y2RFP-0001uo-Qe for gtp-pandoc-discuss@m.gmane.org; Sat, 20 Dec 2014 22:07:35 +0100 Original-Received: by mail-ig0-f189.google.com with SMTP id h15sf361244igd.26 for ; Sat, 20 Dec 2014 13:07:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=date:from:to:message-id:subject:mime-version:content-type :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe; bh=/+M0nM+jDIM7Bsso0PPrZyzrcPHiIcLsdK+J0P1dGWM=; b=dZSARuGqIPDJV2fOZJjqzRNda5EG9SVfhQNxdaHAWuEmn4y24XHqtdjGBU0gGHQ4fD jTXBf64+XvyrX8uhA2kTDmCY/7p7ug2HrpcM1D+4KrJB4/98h1FYIj+oi76Zy4Kp2wK7 oPlBoppHFRXIgq6Y0KWi2pUq91qObc6ZqVZEIoGzhPEZiWmikBmCCm4cFDIFOXff0Zzy Z/P/pAu9i1u+JvreTQVZhOr+i34Tx5kwwl80inKiBxSe/92fQOhZm7VuvaIAb2ji6lAg ssRVGC4Ilf2QCQPD7GRu9yKXdyw5KUWLCckC9mziY8F1vtwliod0nZL7fJMqt17lj3f3 0qWw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:subject:mime-version:content-type :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe; bh=/+M0nM+jDIM7Bsso0PPrZyzrcPHiIcLsdK+J0P1dGWM=; b=fBzFd4QjjCkWn3izgjtzXLwtbX9A2E35dcvRYshOKwbj4kFAisPJYgGzXnjtk0ivif l4/GTE+t3JetY8DGxvfixx8d7xpBaiZtOUQXsC8f9sS8XiZtmaPslhl343KaK9Y2k3cR 03EluyerU90mZjR7JflsecDjHwPxv/gbcujoZttJlizZs/qaG8b43TEUk+4PD4u7hLSj qGf9UjevWPW9bbWcAV9Ct+DSc7o+CL2YUSKFMWtp69lAVo96evRwiREbgaj5Pejs7y39 9ICKFUiBEvMdRahr5xlsv0c9mAaumiFO9MWwM4886zj7h4r+RdDkgljxD4/RdelIx3ie LOlg== X-Received: by 10.50.164.136 with SMTP id yq8mr27790igb.16.1419109654953; Sat, 20 Dec 2014 13:07:34 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.107.5.140 with SMTP id 134ls2908074iof.8.gmail; Sat, 20 Dec 2014 13:07:34 -0800 (PST) X-Received: by 10.50.7.100 with SMTP id i4mr144449iga.11.1419109654288; Sat, 20 Dec 2014 13:07:34 -0800 (PST) X-Original-Sender: gsteemso-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.org gmane.text.pandoc:11566 Archived-At: ------=_Part_1213_274126322.1419109653007 Content-Type: multipart/alternative; boundary="----=_Part_1214_888671039.1419109653007" ------=_Part_1214_888671039.1419109653007 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi all, I am using Pandoc (by way of a Perl script called from within TextWrangler= =20 on Mac OS 10.6.8) to publish my amateurish scribblings to a variety of fan= =20 fiction repositories on the Web. All of them bar my own personal site use= =20 an extremely crippled subset of HTML with no stylesheet support as an input= =20 format, and just to make things extra fun, the nature of the HTML crippling= =20 varies from repository to repository. This is easily gotten around in=20 theory by making a custom writer for each repository, but the first one I= =20 tried (for fanfiction.net) is giving me serious and intractable problems. First was the fact that nowhere is it apparently documented what directory= =20 the =E2=80=9C-t path/to/custom_writer.lua=E2=80=9D is relative to (it defin= itely isn=E2=80=99t the=20 same directory the =E2=80=9Ctemplates=E2=80=9D folder lives in), and using = =E2=80=9C~=E2=80=9D as an=20 abbreviation for my home directory is apparently not supported. I finally= =20 got around that one by specifying an absolute path from the root of my=20 filesystem, which seems unnecessarily fragile and inflexible. Second, when I FINALLY got the damn thing to actually try to call the=20 custom writer, it immediately bombed out with the following error message: > > PANIC: unprotected error in call to Lua API (attempt to call a string=20 value) > This is=E2=80=A6 less than informative. Does anyone have any idea what=E2= =80=99s going on=20 here? I went over my modifications to the sample.lua file and I can=E2=80= =99t find=20 anything very different from what was supplied initially=E2=80=94my changes= were=20 almost all cosmetic, of the =E2=80=9Cturn an insertion of unsupported HTML = tag X=20 into an insertion of

(or , or whatever)=E2=80=9D variety. In the abs= ence of=20 more helpful diagnostic messages, I am completely at a loss for how to=20 proceed. --=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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/fc67fe32-8b42-4ba3-9ef5-a072a47fd8d9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_1214_888671039.1419109653007 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Hi all,

I am using Pandoc (by way of a = Perl script called from within TextWrangler on Mac OS 10.6.8) to publish my= amateurish scribblings to a variety of fan fiction repositories on the Web= . All of them bar my own personal site use an extremely crippled subset of = HTML with no stylesheet support as an input format, and just to make things= extra fun, the nature of the HTML crippling varies from repository to repo= sitory. This is easily gotten around in theory by making a custom writer fo= r each repository, but the first one I tried (for fanfiction.net) is giving= me serious and intractable problems.

First was th= e fact that nowhere is it apparently documented what directory the =E2=80= =9C-t path/to/custom_writer.lua=E2=80=9D is relative to (it definitely isn= =E2=80=99t the same directory the =E2=80=9Ctemplates=E2=80=9D folder lives = in), and using =E2=80=9C~=E2=80=9D as an abbreviation for my home directory= is apparently not supported. I finally got around that one by specifying a= n absolute path from the root of my filesystem, which seems unnecessarily f= ragile and inflexible.

Second, when I FINALLY got = the damn thing to actually try to call the custom writer, it immediately bo= mbed out with the following error message:

>
> PANIC: unprotected error in call to Lua API (attempt to c= all a string value)
>

This is=E2= =80=A6 less than informative. Does anyone have any idea what=E2=80=99s goin= g on here? I went over my modifications to the sample.lua file and I can=E2= =80=99t find anything very different from what was supplied initially=E2=80= =94my changes were almost all cosmetic, of the =E2=80=9Cturn an insertion o= f unsupported HTML tag X into an insertion of <p> (or <b>, or w= hatever)=E2=80=9D variety. In the absence of more helpful diagnostic messag= es, I am completely at a loss for how to proceed.

--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/fc67fe32-8b42-4ba3-9ef5-a072a47fd8d9%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_1214_888671039.1419109653007-- ------=_Part_1213_274126322.1419109653007--