From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/17989 Path: news.gmane.org!.POSTED!not-for-mail From: Greg Bullock Newsgroups: gmane.text.pandoc Subject: Re: Prelude.!!: negative index Date: Wed, 2 Aug 2017 18:56:44 -0700 (PDT) Message-ID: References: <4ed75c9b-5447-42e1-a69b-a79e5f0b2ac2@googlegroups.com> <20170802135519.GC38349@Johns-MacBook-Pro.local> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_6836_2036392480.1501725404517" X-Trace: blaine.gmane.org 1501725406 31860 195.159.176.226 (3 Aug 2017 01:56:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 3 Aug 2017 01:56:46 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCP2B3EJY4JBBXMFRLGAKGQE5ON62WI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Aug 03 03:56:40 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-qk0-f192.google.com ([209.85.220.192]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dd5NP-0007vb-PZ for gtp-pandoc-discuss@m.gmane.org; Thu, 03 Aug 2017 03:56:40 +0200 Original-Received: by mail-qk0-f192.google.com with SMTP id u139sf28027qka.2 for ; Wed, 02 Aug 2017 18:56:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=DiNaNCZJgL4v2ibU83ZJ0QK1jPwaAkicra+NGmUXaV8=; b=kBjbCqY/pMo7ZfOXGRtdJGkPrDoqiaHHkgXiF9is+xqD3L9LX7SkXflrzaQjLl02y8 PTSl5yVrygAAy5w4rIkLPxQj1sVi00qHig/neDXq2Tg/fIhmBWpopg9k4fOXRZ1RwOnl 9Gs7GdiUPcdMAn19c+OOpyGPfr7oxEvzKRyIODOnnEqL7BhIHN+QSdGRP5TMlzw0dniL bVoSMbFOLLZi+bgk829oGkAUBefapDSkW3VCDmIsC1ug9JkHvaOZnORIY+zVPZyEEwpz dzCaAdgJv5X18amcra6IIw48It54BWTGmsa5oNOmqe2jRlUKas5GUGOhjGs68fyamfa8 68sA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=DiNaNCZJgL4v2ibU83ZJ0QK1jPwaAkicra+NGmUXaV8=; b=gV0ZAHwiAOahXBEyn9MqQJT+cWNLssJuowqZlTS/NEOO76VUZB21eOrPMmbSBNos0I jNigKAMaDc/IYS+NTSmeeO5i3CWVHHwpqyRii16kKFuc8AasDh/u3ZuqBsFFWSHNT9A+ mtiMmLu2xjM7SGh++5Q8hhKiad4S348XkLGHGN3KUF0q8hneTknbg0dMZ6XaFUxp/N/e NDrWN2E6aSKocgFkc+BstMTm9HP+LFsN9oSMub9/o4PIuXQ4dJborf73qQpm6lPmuWoY NrceUCzacVb65HjPJQJU+W+Qy2MqGXcXuj3pGQmEWGx0gSob7DG4t/DRCLUjRn2yDDRY EntA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=DiNaNCZJgL4v2ibU83ZJ0QK1jPwaAkicra+NGmUXaV8=; b=eT4nf/R/bxDcXlB/HOaayl3FBHHB3dCC/DIfjiOaZI+I/3tJHF9eVQEUUBr9X/vb65 TrIaK6n23Qt8CqW1C3r7A0jRPE0dgCwu+6HD6E/6caL1jFXkJw0fqkis8RWANo8PRCze tGYvibmA4eEM7hk88usSZFnI8dRqOI0VZNayjgylhmUzUdYrg6rCSBBlHTTjKHAsYu4i owqe/UY/CdpeBvGPEpllvHFfzmfzyUSWKzRUb5uqgRYq3WIDzXiRqBN4/NBHZyvhOFBk qlINTqiTrv7Qc68kP/hiJUu+RazifC+L5vbGyWJ4xhTp6nFnPUJrtsBS4nsw70MaHrF2 ULgQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AIVw112E5+cDoiKNgnjpSSc8of396arBPr9+G7bfZPnCLbCg+fPHY3xJ R+pVZsKz5rTz/A== X-Received: by 10.36.137.194 with SMTP id s185mr6840itd.0.1501725405860; Wed, 02 Aug 2017 18:56:45 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.36.51.76 with SMTP id k73ls573432itk.10.canary-gmail; Wed, 02 Aug 2017 18:56:45 -0700 (PDT) X-Received: by 10.36.103.84 with SMTP id u81mr6114itc.13.1501725405111; Wed, 02 Aug 2017 18:56:45 -0700 (PDT) In-Reply-To: <20170802135519.GC38349-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org> X-Original-Sender: grg.bullock-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:17989 Archived-At: ------=_Part_6836_2036392480.1501725404517 Content-Type: multipart/alternative; boundary="----=_Part_6837_815090426.1501725404517" ------=_Part_6837_815090426.1501725404517 Content-Type: text/plain; charset="UTF-8" Thank you for the reply. I'll try to create a small input docx file to demonstrate the problem. Indeed gug.native contains two instances of Header 0, as seen in this snippet: ... ,BlockQuote [Para [Str "Appendix"]] ,Para [Str "A",Space,Str "Instructions",Space,Str "for",Space,Str "Adding", Space,Str "an",Space,Str "Appendix",Space,Str "29"] ,Header 0 ("figures",[],[]) [Str "FIGURES"] ,Para [Strong [Str "Figure",Space,Str "Page"]] ,Para [Strong [Str "No",Space,Str "table",Space,Str "of",Space,Str "figures" ,Space,Str "entries",Space,Str "found."]] ,Header 0 ("tables",[],[]) [Str "TABLES"] ,Para [Strong [Str "Table",Space,Str "Page"]] ,Para [Strong [Str "No",Space,Str "table",Space,Str "of",Space,Str "figures" ,Space,Str "entries",Space,Str "found."]] ... In a re-post of the original message, I reported that the problem seems to occur only when writing a reStructuredText file. Converting the same docx file to another format (e.g., odt or html) works without complaint. (I'd tried to delete the original post and leave only the re-post, but it seems that didn't take effect, or didn't take effect in time.) On Wednesday, August 2, 2017 at 6:55:34 AM UTC-7, John MacFarlane wrote: > > That's certainly a bug in pandoc, not a mistake on your part! > > I have a guess about what's going on. It would be easiest > to test if you could send or link to an input docx file > sufficient to reproduce the problem. If you can't do that, > could you try the following experiment? > > pandoc -f docx -t native -o gug.native gug.docx > > Then search gug.native to see if it contains > > Header 0 > > at any point... > > -- 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 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/e2a60168-8d99-43f4-854e-b4bd25524edb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_6837_815090426.1501725404517 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you for the reply.

I'll try to create a s= mall input docx file to demonstrate the problem.

Indeed gug.native = contains two instances of Header 0, as seen in this snippet:

...
,BlockQuote
=C2=A0
[Para [Str = "Appe= ndix"= ]]
,Para [Str "A",Space,Str "Instructions&qu= ot;,
Space,Str "for",Space,Str &= quot;Adding",Sp= ace,Str "an",Space,Str "Appendix",Space,Str "29"= ]
,Header 0 ("= figures",[],[])= [<= span style=3D"color: #606;" class=3D"styled-by-prettify">Str
"FIGURES"]
,Para [Strong <= /span>[Str "Figure",Space,Str "Page"]]
= ,Para
[Strong [Str "No",S= pace,Str "table",Space,Str "of",Space,Str "figures",Space,Str "entries",Space,Str "= found."]]
,Header
0 ("tables",[],[]) [Str "TABLES&= quot;]
,
Para [Strong [Str "Table&qu= ot;,Space,Str "Page"]]
,Para = [Strong [Str "No",Space,Str "= table",Space,Str "of",Space,Str "figures",Space,<= /span>Str<= span style=3D"color: #000;" class=3D"styled-by-prettify"> "entries"<= span style=3D"color: #660;" class=3D"styled-by-prettify">,
Space,Str "found."]]
...

In a re-post of the original message= , I reported that the problem seems to occur only when writing a reStructur= edText file.=C2=A0 Converting the same docx file to another format (e.g., o= dt or html) works without complaint. (I'd tried to delete the original = post and leave only the re-post, but it seems that didn't take effect, = or didn't take effect in time.)



On Wednesday, August 2, = 2017 at 6:55:34 AM UTC-7, John MacFarlane wrote:
That's certainly a bug in pandoc, not a mistake on yo= ur part!

I have a guess about what's going on. =C2=A0It would be easiest
to test if you could send or link to an input docx file
sufficient to reproduce the problem. =C2=A0If you can't do that,
could you try the following experiment?

=C2=A0 =C2=A0 pandoc -f docx -t native -o gug.native gug.docx

Then search gug.native to see if it contains

=C2=A0 =C2=A0 Header 0

at any point...

--
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/e2a60168-8d99-43f4-854e-b4bd25524edb%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_6837_815090426.1501725404517-- ------=_Part_6836_2036392480.1501725404517--