From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32240 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: bernardovasconcelos-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Newsgroups: gmane.text.pandoc Subject: Re: Error caused by document length Date: Mon, 27 Feb 2023 11:16:56 -0300 Message-ID: References: <7ed278f7-071b-4bcc-9f9a-e9dd5c09ee55n@googlegroups.com> <8f11cfaf-7c36-4cc6-9866-aa3741d965a4n@googlegroups.com> <4bd152b5-32f7-4f4c-9a9b-0d20afebea84n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000053ef0505f5af22af" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26007"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDUKFWODQ4ARBZHW6KPQMGQE5C2BYDI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Feb 27 15:17:13 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f61.google.com ([209.85.160.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pWeJT-0006cL-W9 for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 27 Feb 2023 15:17:12 +0100 Original-Received: by mail-oa1-f61.google.com with SMTP id 586e51a60fabf-172d82939eesf3259915fac.13 for ; Mon, 27 Feb 2023 06:17:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1677507431; cv=pass; d=google.com; s=arc-20160816; b=Qsxdi7CIkyxcA1zEDulxJ/4cHwjn3XQ8yx9iHKOLp2nIiRYTryWkEXsfzr5/bjZGg3 DWKJUL8ItB+7unICb1uAgpEUu97o2lQoysYWw+4HrH+8MW3GMFci4GCybN/T+iWkoZac F0RvKZG/hHioduM84MNQql8w3jcf56fSCSleNCmGR6Q2Sk7gH4Z6M1Fo8i0VSCLVJ1Dq Wj3nk8RVaSih1l82iUaPz6VEBrrpib1O3tQpYY+kFvx/3UVvCsKy9k2DqHN07uBGJ9ld REvkTyWvV8fA1HilsGbG+n71vd0gV5GoBz4xcCgYh8ZKCJtWX4rBDOxSOpMvUm7nkS9F nTSA== 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:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=VHejqmRKKvOMeaROmhUGFS2LuF76pFlo7+DQQeLGgi4=; b=B+Zamvgg/lCDiLNVGBfTsGHUJkmQVhhuAz0hN9dIr5lsdTYVPPX1QwRL4I8bJ6YE7H vpJcYy4ib7weF08lwBtSRB6v4kSgw6zOc/eyWc57MvGe9nKVyjupWV29xEEN6PqR9ZYq gkhIzbIXULZgl2IaJPfStqJarm6pLRcqgqnjJTi8NvE78BF2AtcPqjvUcT4EUiLz97P3 EeAoeEiXiB45LQsMxTOxXc1RTZQPihIuXXR/c0oAhP4CA7aHt6VElNgfy6qzV1b/CRTO dc0PXFF+rEQ97UUllMIkZ1LpVs8fp5e9X+Was6vB8Tg739VZ1R16OzqT12kiHcFj71dL nwng== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gIjVI0OT; spf=pass (google.com: domain of bernardovasconcelos-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::e2b as permitted sender) smtp.mailfrom=bernardovasconcelos-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:to:subject :message-id:date:from:in-reply-to:references:mime-version:sender :from:to:cc:subject:date:message-id:reply-to; bh=VHejqmRKKvOMeaROmhUGFS2LuF76pFlo7+DQQeLGgi4=; b=NE2yBrPfP8+FKbU7RAeiuhrDzeR8/9IlaTrNkG4qLTq/jRSsGOj8IeK4YXCCt/QNUh 9JJLFfM8+JxTB25aEaYYF0gom263NjPRYxATk/gXkRPxv69bywJRFNV0ZKsIFjm3cr3n lyKFu/FrxuQ97nShBPHhKpO2sbuDH50Ji8Z4J53L36Yh98kzbCVni9ScqXVIPNsiRyJ2 /JjTMlqroFariCNsO1kivdEn+FQkAvThuSELt45MicVmGYTCdFUM0o/7Sx35ImYy1Hne U77V+6gHdJq7jfa7KetVh5dymkBQK3YMwmYx2amayifC5KBr5mBWpMlaLNmHMZo4zrLH lgAA== 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:to:subject :message-id:date:from:in-reply-to:references:mime-version:from:to:cc :subject:date:message-id:reply-to; bh=VHejqmRKKvOMeaROmhUGFS2LuF76pFlo7+DQQeLGgi4=; b=E+FXrHjOrkr7DQjlbC/qcd3W4RqMYx+/6L1bFEqDXvEqXmsv9ADFvEqDC2PPNIrkdn ovLTGkbXMEovmE1SKs8+3N7V3rUTbTtK2dN9FtnSRXzKIGdbW3VhWFBO9o24MdYBrHCN XEyL247kqvkxcTo4a0p05s/fCXwFRJJtdaQODpQJIEkK/YZ/Wn6APME8edAbSHtMai6S ot9qn1H2bcqkR8y2UFK5FVnNhxbPXcysmpwQ1cYgJMCw96yUUfapnpGpsH6TpXxB1mNi cd/FZVwYTRt5XoMxP1y9ya27yAJeCL07HYuWGgervERSYtCIdFgdYhwnNxnql0BrfcwH 61yA== 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:to:subject :message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=VHejqmRKKvOMeaROmhUGFS2LuF76pFlo7+DQQeLGgi4=; b=1edFXoqvQ3L1Q68qYFCB3KyyjaKW1XhzpNGI73NRgSEwEUzUbSoObrJnRp/IUQ+ZzM cJUQimW6BlgFNN2xZi5IAgmswp5SBZkZckPehDYYY7ZS7vF1FyouoVrFyCn0/YZIx/XZ xEULLn2GkeX8BTANFoxGjlgS3V/O8kM8DmLc2x1x4ziDFY3Ty5Tb1/onRNp8YflhIROA 78kRrKqo0IlTs+kd03hBfqfcMbZ7nmNKNRU0Btik33XaSnLLEKARm75KUy0wMS4rFOOh I7/SubBM+5ucRYBSMuIZrBvY0AhJuEwAEukAeGh0TbMJIE Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKV6np6oGaMyk23eZBeIB4KEMGF8hjpa062C/YnveV391Hkkcp/5 pv8e2FVjCCuzV+DwKusMcCQ= X-Google-Smtp-Source: AK7set91Kt4n151zLBD3Rw8h6+MZJA8yHi8pR2/Tng4BfWwVl+mgsxzxKSsPWZieFh9yqtBZM1PpHA== X-Received: by 2002:a4a:a4ca:0:b0:525:2b11:9632 with SMTP id c10-20020a4aa4ca000000b005252b119632mr4040520oom.1.1677507430724; Mon, 27 Feb 2023 06:17:10 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:ef8a:0:b0:36e:b79c:1343 with SMTP id n132-20020acaef8a000000b0036eb79c1343ls3080511oih.7.-pod-prod-gmail; Mon, 27 Feb 2023 06:17:08 -0800 (PST) X-Received: by 2002:a05:6808:2885:b0:37a:c64b:2369 with SMTP id eu5-20020a056808288500b0037ac64b2369mr8291682oib.28.1677507428452; Mon, 27 Feb 2023 06:17:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677507428; cv=none; d=google.com; s=arc-20160816; b=TxSILfeWoH6jtHyTWNV1B/fpTSZFuY4TjPdLK3Dby9FnRXvMdnDWSTDwe4f0DvBYrT iJXdZNeU9JQepFnP0KAaTrrgmrZYkpjDV107bRzEVdtBn+SeHM8D2yfXEv/6Hgvw6J2o Gjpq27KNRNZkau7gLFKKTjBh3alLP1oTnm5Tsd/tux4iCw1aC8TTlMdpVlQZt08hHwVe a2ENwh8rxiZK0OsEwAtL4PiT7Gzue+8Dv3hlvFageWjJeTa1Ire+ZnLasiQayU/x9qE4 sb3oDT//UwSqTU54nb2LWp61f5wGH9BRITe8uhv1HcGPfQ9y3vlVA1r+Z5ksP6oKdu6U t/fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=DqmX2+UOZLV5bQx0acWYZHWWa+qXq7mq7E0Y5h9GZQk=; b=orXMT8R9A86+ooEQulkLRA+rDu0QegGBFjg1S/IWRLs4chnHK1mMUL/6YIO32yUIp+ bbYwuGCNX9e1FBPQCrslO61kNevBn2G2nKK1/J9h2QI3pfnDCBfdQvYQdBWxENZ7wics X27AslyaVwtxNAzPfW+5caDn7eVTF8aMtXwCxiU6XJJe/ovICqBsa6Z3eL/t+Cr54/JR gQlol8PorQ4+1qV0LI8c+MyfWgAsurFLN3RKjeNPAvO/UUiE2Uuby920rcbZeEcX4gzm gyMgQCjFvCVj1LnQNzKx7V/T90Fr2MtOtynU6WTmSu4bkjgLx7Tmn+R3Px+WgDke7zlJ z1BQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gIjVI0OT; spf=pass (google.com: domain of bernardovasconcelos-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::e2b as permitted sender) smtp.mailfrom=bernardovasconcelos-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-vs1-xe2b.google.com (mail-vs1-xe2b.google.com. [2607:f8b0:4864:20::e2b]) by gmr-mx.google.com with ESMTPS id bi5-20020a056808188500b0036bbb25d978si370591oib.3.2023.02.27.06.17.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Feb 2023 06:17:08 -0800 (PST) Received-SPF: pass (google.com: domain of bernardovasconcelos-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::e2b as permitted sender) client-ip=2607:f8b0:4864:20::e2b; Original-Received: by mail-vs1-xe2b.google.com with SMTP id d7so11282273vsj.2 for ; Mon, 27 Feb 2023 06:17:08 -0800 (PST) X-Received: by 2002:a67:c584:0:b0:41f:641c:f775 with SMTP id h4-20020a67c584000000b0041f641cf775mr5601775vsk.3.1677507427559; Mon, 27 Feb 2023 06:17:07 -0800 (PST) In-Reply-To: <4bd152b5-32f7-4f4c-9a9b-0d20afebea84n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: bernardovasconcelos-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gIjVI0OT; spf=pass (google.com: domain of bernardovasconcelos-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::e2b as permitted sender) smtp.mailfrom=bernardovasconcelos-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:32240 Archived-At: --00000000000053ef0505f5af22af Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Have you tried editing the original research paper in some minor way (adding or removing a couple of characters) and then running it? This is a completely wild guess, but maybe the text in the file is getting normalized upon editing them, whereas the original research paper still contains the unedited, unnormalized text. On Mon, Feb 27, 2023 at 10:48=E2=80=AFAM 'Peter Vedal Utnes' via pandoc-dis= cuss < pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> wrote: > 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 ove= r > and over again, 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 do it with a regular research paper, it only works if I > shorten it. Curiously, I can remove either half of the main text, or inde= ed > sections here and there, randomly, and it works, but not with all of them > present. I have combed it for special characters or tags, but cannot find > any. > > mandag 27. februar 2023 kl. 13:49:58 UTC+1 skrev Bernardo C. D. A. > Vasconcelos: > >> I do not know the answer to this problem in particular, but perhaps it i= s >> worth checking the main document *and* the bibliography for invisible >> control characters (e.g. `\X{A0}`). They tend to cause all sorts of stra= nge >> problems that result in random error msgs. >> >> On Monday, February 27, 2023 at 8:16:20=E2=80=AFAM UTC-3 Peter Vedal Utn= es 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 = EPUB >>> app (Bibi). >>> >>> Our resulting EPUBs work fine with both debuggers and viewers like >>> calibre. They work in Bibi, but only when they are reduced to a certain >>> length. Whenever the files exceed approx 100 lines or 600 words, Bibi >>> claims: >>> >>> TypeError: Cannot read properties of undefined (reading =E2=80=98getAtt= ribute=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 bytes-- I'= ve >>> tried with graphics, still works). It suddenly works when I reduce the >>> length by removing pure paragraph text, even though all the formatted >>> elements (abstract, references, etc) are the same. >>> >>> I recognize that this problem is very specific to the interrelation >>> pandoc <-> Bibi, but I'd be grateful for general troubleshooting >>> suggestions. >>> >>> Thanks in advance, >>> >>> Peter >>> >>> -- > You received this message because you are subscribed to a topic in the > Google Groups "pandoc-discuss" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/pandoc-discuss/hPUa1uWGS_k/unsubscribe. > To unsubscribe from this group and all its topics, 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/4bd152b5-32f7-4f4c-9a9b-= 0d20afebea84n%40googlegroups.com > > . > --=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/CAEJ71f529ORrJ%2BaaLU-8JFbE3uLvYkQdKcJjKSJb5mJSt%2BjOvA%40ma= il.gmail.com. --00000000000053ef0505f5af22af Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Have you tried editing the ori= ginal research paper in some minor way (adding or removing a couple of char= acters) and then running it? This is a completely wild guess, but maybe the= text in the file is getting normalized upon editing them, whereas the orig= inal research paper still contains the unedited, unnormalized text.

On= Mon, Feb 27, 2023 at 10:48=E2=80=AFAM 'Peter Vedal Utnes' via pand= oc-discuss <pandoc-di= scuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> wrote:
I thank you= for the suggestion. It is proving somewhat hard to (dis)confirm. I have ma= de a testfile with just the word "test" pasted over and over agai= n, with and without various formatting and with the same length or longer a= s the proper papers. This file consistently works. But when I attempt to do= it with a regular research paper, it only works if I shorten it. Curiously= , I can remove either half of the main text, or indeed sections here and th= ere, randomly, and it works, but not with all of them present. I have combe= d it for special characters or tags, but cannot find any.=C2=A0

mandag 27. fe= bruar 2023 kl. 13:49:58 UTC+1 skrev Bernardo C. D. A. Vasconcelos:
I do not know the answer to this problem in particular, b= ut perhaps it is worth checking the main document and the bibliograp= hy for invisible control characters (e.g. `\X{A0}`). They tend to cause all= sorts of strange problems that result in random error msgs.

On Monday, Febru= ary 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 Pa= ndoc to convert word documents to EPUB, and then display them with an embed= ded EPUB app (Bibi).=C2=A0

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

TypeError: Cannot read properties of undefined (reading =E2=80=98getA= ttribute=E2=80=99)

=
Meanwhile, the same documents works when converted t= o EPUB using other converters, or when I reduce the length (length, not siz= e in bytes-- I've tried with graphics, still works).=C2=A0It suddenly w= orks when I reduce the length by removing pure paragraph text, even though = all the formatted elements (abstract, references, etc) are the same.=C2=A0<= /span>

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

T= hanks in advance,=C2=A0

Peter

=

--
You received this message because you are subscribed to a topic in the Goog= le Groups "pandoc-discuss" group.
To unsubscribe from this topic, visit https://g= roups.google.com/d/topic/pandoc-discuss/hPUa1uWGS_k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to p= andoc-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-0d20afe= bea84n%40googlegroups.com.

--
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://gro= ups.google.com/d/msgid/pandoc-discuss/CAEJ71f529ORrJ%2BaaLU-8JFbE3uLvYkQdKc= JjKSJb5mJSt%2BjOvA%40mail.gmail.com.
--00000000000053ef0505f5af22af--