From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32239 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'Peter Vedal Utnes' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Re: Error caused by document length Date: Mon, 27 Feb 2023 05:48:37 -0800 (PST) Message-ID: <4bd152b5-32f7-4f4c-9a9b-0d20afebea84n@googlegroups.com> References: <7ed278f7-071b-4bcc-9f9a-e9dd5c09ee55n@googlegroups.com> <8f11cfaf-7c36-4cc6-9866-aa3741d965a4n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_5926_567047244.1677505717889" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39324"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWNVA7FUIMRBN7J6KPQMGQEFV4PNPA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Feb 27 14:48:44 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qk1-f190.google.com ([209.85.222.190]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pWdru-000A5U-Uq for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 27 Feb 2023 14:48:42 +0100 Original-Received: by mail-qk1-f190.google.com with SMTP id 19-20020a370c13000000b007428253bb55sf4013734qkm.23 for ; Mon, 27 Feb 2023 05:48:42 -0800 (PST) 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-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=KHK1NHr6Buloeny2J8FLOP3TJjA4o3QjjZT7ljOOgOk=; b=aaCNRGoPsgC2wfWPbgZiBBT813OIepYHccX1E3ZU9jFv4pOGF5km7LcPFGuNHTAeYH 4+uFvI3t6K7Hlz1FZyM5qZhsu3p+O1oxGbTwGCVrGKix+36Hmw5KAqXQbi8n35uOJD0f 7mbf7B6tPDmfgwoCKtpMSC0LouCRa08WEpRjVEAK8kOTO4aXQornyAdPp55oefWXS8Q8 v3zC3p4aXU7sdA1JHAsuZfVoxW2m0p3m/H3Wovk9LX0UHjbdpsqx9+1qd2iLp8O383eU CYBch4Cclf2SIEdIiWIHzo0dml6UzmP6S8Cpp/iy0GwclFkU+ooPOlJQdwLhjDuMiSx9 HEHw== 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-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=KHK1NHr6Buloeny2J8FLOP3TJjA4o3QjjZT7ljOOgOk=; b=ViCNbpe1OP5Nuaz+o/b6M6YKofpYqz7+SkO0iCyDml+Y5uafyilH3W0O9ij/t5pBPG bmWGrw992nCEPdJSOwnp2eVliTy8H5NAN0ZKFZFr0C0o1sIQmj4Cp8PEFGBncSVZwxJ6 TOE75QqZuJjalN1Zr0vhUa4wDh/ljhjXczigZrJTlW/RsHz6j2Hl9gZ01RJ9jqFfFVus V9pDOR2MS2UcTKUWLE2o2jnNnvqzVIntUbIE6Q014PcZXQiCqoxMz+EevlTO85/A52T+ qIoM00412VzkAltY22hBg/d/RBF1rC8KdBHgBDk1W4gV9pn2rSS2KdFGupA/5z8S+q9C PZAw== X-Gm-Message-State: AO0yUKUaIqI06+dUUxIQ/GGDCt4xzRnPm3ZmjzXz8JGcrxfp1G6ov2Ro RudROGMH2RU5n81fzDtHk+c= X-Google-Smtp-Source: AK7set/AI7PkZiAJ2c46Hz0uHoyO8xGZmiQQiDRbulcDIz+VrFaCgrWx5EgaaAcp3BmY585H+OkPfw== X-Received: by 2002:ae9:e313:0:b0:742:8868:bfd1 with SMTP id v19-20020ae9e313000000b007428868bfd1mr1852256qkf.7.1677505721947; Mon, 27 Feb 2023 05:48:41 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:620a:3199:b0:6fb:e284:cb6 with SMTP id bi25-20020a05620a319900b006fbe2840cb6ls2061973qkb.3.-pod-prod-gmail; Mon, 27 Feb 2023 05:48:38 -0800 (PST) X-Received: by 2002:a05:620a:851b:b0:71f:b88c:a63a with SMTP id pe27-20020a05620a851b00b0071fb88ca63amr5209077qkn.1.1677505718452; Mon, 27 Feb 2023 05:48:38 -0800 (PST) In-Reply-To: <8f11cfaf-7c36-4cc6-9866-aa3741d965a4n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: peter.v.utnes-hYqmg196XYc@public.gmane.org X-Original-From: Peter Vedal Utnes 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:32239 Archived-At: ------=_Part_5926_567047244.1677505717889 Content-Type: multipart/alternative; boundary="----=_Part_5927_1432848272.1677505717889" ------=_Part_5927_1432848272.1677505717889 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I thank you for the suggestion. It is proving somewhat hard to=20 (dis)confirm. I have made a testfile with just the word "test" pasted over= =20 and over again, with and without various formatting and with the same=20 length or longer as the proper papers. This file consistently works. But=20 when I attempt to do it with a regular research paper, it only works if I= =20 shorten it. Curiously, I can remove either half of the main text, or indeed= =20 sections here and there, randomly, and it works, but not with all of them= =20 present. I have combed it for special characters or tags, but cannot find= =20 any.=20 mandag 27. februar 2023 kl. 13:49:58 UTC+1 skrev Bernardo C. D. A.=20 Vasconcelos: > I do not know the answer to this problem in particular, but perhaps it is= =20 > worth checking the main document *and* the bibliography for invisible=20 > control characters (e.g. `\X{A0}`). They tend to cause all sorts of stran= ge=20 > problems that result in random error msgs. > > On Monday, February 27, 2023 at 8:16:20=E2=80=AFAM UTC-3 Peter Vedal Utne= s wrote: > >> We have a workflow in Open Journal Systems where we use Pandoc to conver= t=20 >> word documents to EPUB, and then display them with an embedded EPUB app= =20 >> (Bibi).=20 >> >> Our resulting EPUBs work fine with both debuggers and viewers like=20 >> calibre. They work in Bibi, but only when they are reduced to a certain= =20 >> length. Whenever the files exceed approx 100 lines or 600 words, Bibi=20 >> claims: >> >> TypeError: Cannot read properties of undefined (reading =E2=80=98getAttr= ibute=E2=80=99) >> >> Meanwhile, the same documents works when converted to EPUB using other= =20 >> converters, or when I reduce the length (length, not size in bytes-- I'v= e=20 >> tried with graphics, still works). It suddenly works when I reduce the= =20 >> length by removing pure paragraph text, even though all the formatted=20 >> elements (abstract, references, etc) are the same.=20 >> >> I recognize that this problem is very specific to the interrelation=20 >> pandoc <-> Bibi, but I'd be grateful for general troubleshooting=20 >> suggestions.=20 >> >> Thanks in advance,=20 >> >> Peter >> >> --=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/4bd152b5-32f7-4f4c-9a9b-0d20afebea84n%40googlegroups.com. ------=_Part_5927_1432848272.1677505717889 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I thank you for the suggestion. It is proving somewhat hard to (dis)confirm= . I have made a testfile with just the word "test" pasted over and over aga= in, with and without various formatting and with the same length or longer = as the proper papers. This file consistently works. But when I attempt to d= o it with a regular research paper, it only works if I shorten it. Curiousl= y, I can remove either half of the main text, or indeed sections here and t= here, randomly, and it works, but not with all of them present. I have comb= ed it for special characters or tags, but cannot find any.=C2=A0

mandag 2= 7. februar 2023 kl. 13:49:58 UTC+1 skrev Bernardo C. D. A. Vasconcelos:
I do not know th= e answer to this problem in particular, but perhaps it is worth checking th= e main document and the bibliography for invisible control character= s (e.g. `\X{A0}`). They tend to cause all sorts of strange problems that re= sult in random error msgs.

On Monday, February 27, 2023 at 8:16:20=E2=80=AFAM= UTC-3 Peter Vedal Utnes wrote:
We have a workflow in Open Journal Systems where we use Pandoc to= convert word documents to EPUB, and then display them with an embedded EPU= B app (Bibi).=C2=A0

Our resulting EPUBs work fine with b= oth debuggers and viewers like calibre. They work in Bibi, but only when th= ey are reduced to a certain length. Whenever the files exceed approx 100 li= nes or 600 words, Bibi claims:

T= ypeError: Cannot read properties of undefined (reading =E2=80=98getAttribut= e=E2=80=99)

Meanwhile, the same documents works when converted to EPUB = using other converters, or when I reduce the length (length, not size in by= tes-- I've tried with graphics, still works).=C2=A0It suddenly works wh= en I reduce the length by removing pure paragraph text, even though all the= formatted elements (abstract, references, etc) are the same.=C2=A0<= /div>

I recognize that this problem is very specifi= c to the interrelation pandoc <-> Bibi, but I'd be grateful for g= eneral troubleshooting suggestions.=C2=A0

Thanks i= n advance,=C2=A0

Peter

<= /blockquote>

--
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/4bd152b5-32f7-4f4c-9a9b-0d20afebea84n%40googlegroups.= com.
------=_Part_5927_1432848272.1677505717889-- ------=_Part_5926_567047244.1677505717889--