From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32238 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Bernardo C. D. A. Vasconcelos" Newsgroups: gmane.text.pandoc Subject: Re: Error caused by document length Date: Mon, 27 Feb 2023 04:49:58 -0800 (PST) Message-ID: <8f11cfaf-7c36-4cc6-9866-aa3741d965a4n@googlegroups.com> References: <7ed278f7-071b-4bcc-9f9a-e9dd5c09ee55n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_4054_272992641.1677502198598" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17829"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDUKFWODQ4ARB56N6KPQMGQESH2FE6Y-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Feb 27 13:50:04 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qk1-f191.google.com ([209.85.222.191]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pWcx8-0004V3-SJ for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 27 Feb 2023 13:50:02 +0100 Original-Received: by mail-qk1-f191.google.com with SMTP id q25-20020a37f719000000b00742bfdd63ecsf484713qkj.4 for ; Mon, 27 Feb 2023 04:50:02 -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 :sender:from:to:cc:subject:date:message-id:reply-to; bh=EUJXJQjZcU5buB/M/HyBonknV7LjIJEtb/ECJ/IJ3NM=; b=Q1j5CfLk62xZbDcWb5gNqOEWiSnie7UXhdVWZssqQ97B0+9BT0LhFtZowtbKgNCmzJ kNm4SI7z4nwPKuWJxKyEabf+XQExvUIFZH5DtGLUznEampHmbjeAD/RNPuv8fnIAw6AH YCzHdxIGBas+48HBptaNxK4va3QNE0IP0dCwu5fvw43nptvD3FtQwSol39/j77s1qIBM P/DX+q1mW6WgPIjpJX/7aKJX1hzb5TvO7dXfIBfnwRIUVQjc4qkKk8q1lJ406d9edUew i5p36fYdCaj1ibplMJN3V7qrKw5cJwP5641boK3MjK0ZsNro3eXyo5QYi3+CX/M4lQYh Td5g== 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-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=EUJXJQjZcU5buB/M/HyBonknV7LjIJEtb/ECJ/IJ3NM=; b=Wd2isDWhfj33O/VFK3VBsi4cyU2LUFhpowViBmcoLF5A5mNNfda5yGR8idqShlVNMc qa9gUSCQ+eZxfX0wYRKLjqH2dmBN85pBNvXuvOziKMEJWgaDvygWbS5g6PfoRgEVscz6 Y5u6kHxh4WLxUQJeIkVWKmd4ZliVWpk+oU8OSbe0Agn2J5Vv/Hksu16fcI/a/gAzmzXN SexjdFnQJKCUH0O6nMclvlNiH7P6kuK/GdC23aLmt/ZeVVKNfhEsCZEhcIh0qSeBhy1G qIiGvZODtgzp03RN4OQP4bMHZixYGu59F4mF6SXwtHLsw/mCpq2E8Cdg+IwnvUapiS2t YjRw== 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:sender:from:to:cc :subject:date:message-id:reply-to; bh=EUJXJQjZcU5buB/M/HyBonknV7LjIJEtb/ECJ/IJ3NM=; b=khcXCyD9SpeDtVgmxrlTTtqaq4AQYtMn6FfpJQ9a/2+ncRVB052E85B21JVxOuVSnx 51Bsq2Lkpwb/izvmNozqUz/qu7p7Nv44a8AaR59xydWmRI9rLhyx+kBT3pVCIZAS0Cgr Zph74OgLWXDrPy67Dxji8rt28pjRrXFdZQNaFZHELm/vH5kDIMnSk59gsr1nv9hy+vxS dg7Mn33HFR6Wx/0OXKay4v8fmoLSn5RyOzfd9fsO0waFc2NOGbSCkcUQSg9iKgTSTKYq olvhSLyyfaiKSh1wM9+Fplxft1fiq+6Mb9FLHxwMsoITc/faeBjCcL3uFoILjFuf4E5R cnyw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKUhOOxjR/+Sr2zzYlFdkzANlU6Arpbcee0sAMqgu/uHU7IlV9xz iocT+x70omHMnj610nxxZfw= X-Google-Smtp-Source: AK7set8GGwhXBcdjGgNytJLP9BAzcj6cGQbUCmLQwstxA3h2+y53Eaj9zMGAvAf7Xwx67inafE4FlA== X-Received: by 2002:ac8:701e:0:b0:3bf:cd85:4d95 with SMTP id x30-20020ac8701e000000b003bfcd854d95mr1172246qtm.2.1677502201730; Mon, 27 Feb 2023 04:50:01 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:622a:4d98:b0:3bf:a3ac:d13c with SMTP id ff24-20020a05622a4d9800b003bfa3acd13cls10021429qtb.2.-pod-prod-gmail; Mon, 27 Feb 2023 04:49:59 -0800 (PST) X-Received: by 2002:aed:2782:0:b0:3bd:1620:5e88 with SMTP id a2-20020aed2782000000b003bd16205e88mr4844910qtd.5.1677502199259; Mon, 27 Feb 2023 04:49:59 -0800 (PST) In-Reply-To: <7ed278f7-071b-4bcc-9f9a-e9dd5c09ee55n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: bernardovasconcelos-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:32238 Archived-At: ------=_Part_4054_272992641.1677502198598 Content-Type: multipart/alternative; boundary="----=_Part_4055_1477789089.1677502198598" ------=_Part_4055_1477789089.1677502198598 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 strange= =20 problems that result 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= =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=98getAttri= bute=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've= =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 pando= c=20 > <-> Bibi, but I'd be grateful for general troubleshooting 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/8f11cfaf-7c36-4cc6-9866-aa3741d965a4n%40googlegroups.com. ------=_Part_4055_1477789089.1677502198598 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I do not know the answer to this problem in particular, but perhaps it is w= orth checking the main document and the bibliography for invisible c= ontrol characters (e.g. `\X{A0}`). They tend to cause all sorts of strange = problems that result in random error msgs.

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

Our res= ulting EPUBs work fine with both debuggers and viewers like calibre. They w= ork in Bibi, but only when they are reduced to a certain length. Whenever t= he files exceed approx 100 lines or 600 words, Bibi claims:

<= /div>
TypeError: Cannot read properties of undefined = (reading =E2=80=98getAttribute=E2=80=99)

Meanwhile, the same documents = works when converted to EPUB using other converters, or when I reduce the l= ength (length, not size in bytes-- I've tried with graphics, still work= s).=C2=A0It suddenly works when I reduce the length by removing pure paragr= aph text, even though all the formatted elements (abstract, references, etc= ) are the same.=C2=A0

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

Thanks in advance,=C2=A0

Pete= r

--
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/8f11cfaf-7c36-4cc6-9866-aa3741d965a4n%40googlegroups.= com.
------=_Part_4055_1477789089.1677502198598-- ------=_Part_4054_272992641.1677502198598--