public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* pandoc: Error in array index
@ 2022-06-02 11:19 Harsh Donga
       [not found] ` <9cbed52f-ee9b-4ab2-b41b-efbe55264aefn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Harsh Donga @ 2022-06-02 11:19 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 768 bytes --]

Hey guys,

I am having problem converting pandoc AST (json) to DOCX
Error displayed : "pandoc: Error in array index"

It works well while converting to HTML.

Can someone please help out please? Huge thanks in advance!!!

Pandoc AST JSON : outPandoc.json 
<https://drive.google.com/file/d/1xbM2XnvbXsv9Z_28J5QlTEcvocQeyp9n/view?usp=sharing>

Regards,
Harsh

-- 
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/msgid/pandoc-discuss/9cbed52f-ee9b-4ab2-b41b-efbe55264aefn%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 1209 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: pandoc: Error in array index
       [not found] ` <9cbed52f-ee9b-4ab2-b41b-efbe55264aefn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2022-06-02 11:20   ` Harsh Donga
       [not found]     ` <718c53ee-f005-4049-a56c-1ccbfb4300c0n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Harsh Donga @ 2022-06-02 11:20 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1046 bytes --]

Pandoc info:
pandoc 2.14.2
Compiled with pandoc-types 1.22, texmath 0.12.3.1, skylighting 0.11,
citeproc 0.5, ipynb 0.1.0.1


Command used : 
pandoc -t docx outPandoc.json -o pandoc.docx
On Thursday, 2 June 2022 at 16:49:26 UTC+5:30 Harsh Donga wrote:

> Hey guys,
>
> I am having problem converting pandoc AST (json) to DOCX
> Error displayed : "pandoc: Error in array index"
>
> It works well while converting to HTML.
>
> Can someone please help out please? Huge thanks in advance!!!
>
> Pandoc AST JSON : outPandoc.json 
> <https://drive.google.com/file/d/1xbM2XnvbXsv9Z_28J5QlTEcvocQeyp9n/view?usp=sharing>
>
> Regards,
> Harsh
>

-- 
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/msgid/pandoc-discuss/718c53ee-f005-4049-a56c-1ccbfb4300c0n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 1997 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: pandoc: Error in array index
       [not found]     ` <718c53ee-f005-4049-a56c-1ccbfb4300c0n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2022-06-02 13:14       ` Albert Krewinkel
       [not found]         ` <87y1yf4347.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Albert Krewinkel @ 2022-06-02 13:14 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


Harsh Donga <harsh-7+aFW328pE6p1wGUEcWPqti2O/JbrIOy@public.gmane.org> writes:

> I am having problem converting pandoc AST (json) to DOCX
>
> Error displayed : "pandoc: Error in array index"
>
> It works well while converting to HTML.
>
> Can someone please help out please? Huge thanks in advance!!!
>
> Pandoc AST JSON : outPandoc.json

Wow, that's a big file. The error makes me believe that this could be a
problem with tables. Can you try to cut the file down such that it
contains only the tables?

-- 
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe  e836 388d c0b2 1f63 1124


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: pandoc: Error in array index
       [not found]         ` <87y1yf4347.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
@ 2022-06-03 10:35           ` Harsh Donga
       [not found]             ` <6007f4ef-8fd2-4e75-a1b0-1073738cbd04n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Harsh Donga @ 2022-06-03 10:35 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1414 bytes --]

Definitely!

I am working with json directly, so tried my best to retain only tables!
Same error persists! So your speculation is true!

Tables File : OutPandoc Tables 
<https://drive.google.com/file/d/1Rbv30cUlGuJaNo5KHXdxl0ecEmJEZmgL/view?usp=sharing>
Still, its an 8MB file


Thanks in advance! 
Best.
Harsh

On Thursday, 2 June 2022 at 18:46:48 UTC+5:30 Albert Krewinkel wrote:

>
> Harsh Donga <ha...-7+aFW328pE6p1wGUEcWPqti2O/JbrIOy@public.gmane.org> writes:
>
> > I am having problem converting pandoc AST (json) to DOCX
> >
> > Error displayed : "pandoc: Error in array index"
> >
> > It works well while converting to HTML.
> >
> > Can someone please help out please? Huge thanks in advance!!!
> >
> > Pandoc AST JSON : outPandoc.json
>
> Wow, that's a big file. The error makes me believe that this could be a
> problem with tables. Can you try to cut the file down such that it
> contains only the tables?
>
> -- 
> Albert Krewinkel
> GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124
>

-- 
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/msgid/pandoc-discuss/6007f4ef-8fd2-4e75-a1b0-1073738cbd04n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 2187 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: pandoc: Error in array index
       [not found]             ` <6007f4ef-8fd2-4e75-a1b0-1073738cbd04n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2022-06-03 13:07               ` Albert Krewinkel
       [not found]                 ` <87a6atoolg.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Albert Krewinkel @ 2022-06-03 13:07 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


Harsh Donga <harsh-7+aFW328pE6p1wGUEcWPqti2O/JbrIOy@public.gmane.org> writes:

> Definitely!
>
> I am working with json directly, so tried my best to retain only
> tables!
>
> Same error persists! So your speculation is true!

I managed to pinpoint the problem to the row with cell ID "fbc3b066".
You can avoid the issue by making sure that all table rows contain the
same number of cells.

I've opened an issue to keep track of the bug in the docx writer, see
<https://github.com/jgm/pandoc/issues/8102>.

Cheers,
Albert

PS: It seems that some elements in your JSON share the same ID. That
    might lead to invalid output or other problems in some cases.

-- 
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe  e836 388d c0b2 1f63 1124


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: pandoc: Error in array index
       [not found]                 ` <87a6atoolg.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
@ 2022-06-03 16:41                   ` Harsh Donga
  0 siblings, 0 replies; 6+ messages in thread
From: Harsh Donga @ 2022-06-03 16:41 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1513 bytes --]

Hey Albert,

Thanks a bunch for this!!
I'll make sure about that in table row.

I just wanted to extend a little more appreciation, till now i have raised 
2-3 issues, and always I have got excellent support for it!
You guys seriously rock!

Best,
Harsh
On Friday, 3 June 2022 at 19:07:07 UTC+5:30 Albert Krewinkel wrote:

>
> Harsh Donga <ha...-7+aFW328pE6p1wGUEcWPqti2O/JbrIOy@public.gmane.org> writes:
>
> > Definitely!
> >
> > I am working with json directly, so tried my best to retain only
> > tables!
> >
> > Same error persists! So your speculation is true!
>
> I managed to pinpoint the problem to the row with cell ID "fbc3b066".
> You can avoid the issue by making sure that all table rows contain the
> same number of cells.
>
> I've opened an issue to keep track of the bug in the docx writer, see
> <https://github.com/jgm/pandoc/issues/8102>.
>
> Cheers,
> Albert
>
> PS: It seems that some elements in your JSON share the same ID. That
> might lead to invalid output or other problems in some cases.
>
> -- 
> Albert Krewinkel
> GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124
>

-- 
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/msgid/pandoc-discuss/01338765-6469-45f0-bd56-0f68ce1c7137n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 2528 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-06-03 16:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-02 11:19 pandoc: Error in array index Harsh Donga
     [not found] ` <9cbed52f-ee9b-4ab2-b41b-efbe55264aefn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-06-02 11:20   ` Harsh Donga
     [not found]     ` <718c53ee-f005-4049-a56c-1ccbfb4300c0n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-06-02 13:14       ` Albert Krewinkel
     [not found]         ` <87y1yf4347.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2022-06-03 10:35           ` Harsh Donga
     [not found]             ` <6007f4ef-8fd2-4e75-a1b0-1073738cbd04n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-06-03 13:07               ` Albert Krewinkel
     [not found]                 ` <87a6atoolg.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2022-06-03 16:41                   ` Harsh Donga

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).