From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/17994 Path: news.gmane.org!.POSTED!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Prelude.!!: negative index Date: Thu, 3 Aug 2017 09:10:19 -0700 Message-ID: <20170803161019.GA56119@Johns-MacBook-Pro.local> 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: text/plain; charset="UTF-8"; format=flowed X-Trace: blaine.gmane.org 1501776643 3268 195.159.176.226 (3 Aug 2017 16:10:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 3 Aug 2017 16:10:43 +0000 (UTC) User-Agent: Mutt/1.6.2 (2016-07-01) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBB54VRXGAKGQE7I6ELZQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Aug 03 18:10:36 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-it0-f55.google.com ([209.85.214.55]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ddIhe-0008Pc-Kv for gtp-pandoc-discuss@m.gmane.org; Thu, 03 Aug 2017 18:10:27 +0200 Original-Received: by mail-it0-f55.google.com with SMTP id m34sf1328603iti.0 for ; Thu, 03 Aug 2017 09:10:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1501776632; cv=pass; d=google.com; s=arc-20160816; b=B6WVuUKxj0IZzuii/VO9rwoliYbDxYLKXefuCkupsgk+1G1cxqc7O2fF7rG6U8kY09 KuEAWUcCgon4gPJXG6YMD8AeZEyhxBbRvmKZugQHdy2E7scHG7ufDuLoOr/Cn5LfakS7 7PAsI8Z9bUZ5jBtvRLnvtdQMrYHf4BMqPdXNiFIvkMhIvygy06uhzMwyvqEBule26hCR WufuxSaUYGvVgVpnDXQBGbKrziLpk6G4NXPSbzVQUvadRUodb7tRcjKmNyu95UGmodD4 sC2YoRsNUEttXpiSmQW1FGXwu7kqsBHSJtwqMWmbywBVJ/+2sOIiopjwgIYwuTaw4hZW 7RpA== 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:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :date:from:arc-authentication-results:arc-message-signature:sender :dkim-signature:arc-authentication-results; bh=muukR++H0bS0Yqf5ZlIUyBZh6oof3mEFjTKXD6XbvgE=; b=PZhwN6Fyuy5mEhEn3gkYDR+JJDeCOnh8jRHge/aTs2wAtk/YTMiz1Uv7BH4SSwe1OV Y6nzSprzQKlO8VbQk8gjFQwgdS3qSAq9lHyCtQx0yTH6oHHUYsTm66Jpx3UoFVj2aPQH LZGlSdPTy82+KM9N3pXKtn6n7O6W310VLHKYxjC01U5vdA6p2nlV0nn7JzJb4e4i2i+G yBzRiG9UCJHj3UVURLb08j0m3Y0TQtWRfh0lFUKFGBZfY+I+wQQq37mgJJ0x3FHTXOi9 RjWjf4edy+O8AgluHQOilEkQd/mU/S/xa3G0lgpGCsmd5DDpve6Ets9n0N7s/JFIzMOt ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.b=CifOlYbf; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::244 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:date:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=muukR++H0bS0Yqf5ZlIUyBZh6oof3mEFjTKXD6XbvgE=; b=d2FbM56JPgopXvTwWhS35/dedgkgb8vS7OiRGA0P1jOLDl3FR337bbH3SqM/K/wbgf gi0cVRswf9ikln35hGOmnz1aOYU2YZBEzvzMG8PN/rFBFi1zUtrFf8n38fqsck8ahk7R PPu1sw3i7NCIyvcORsfX476ooJ6wu0Tl80ZW6UEc4ZC2Ov3HXD67oBBsnfkVkMXcNZUJ uKEzQrswEg4gf3Z4nUkXnwpYi2S3SFFvSghT6GSvZI3OXIV2rQ1TTJ/fPJYmQJKhORme jg+Ok4iAH6M/lQ86+Bq5EszjGmqu+/QWiEWb3TNRgQPqTzfLnwjvYot9BjhhlohkKx0+ SGSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:date:to:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=muukR++H0bS0Yqf5ZlIUyBZh6oof3mEFjTKXD6XbvgE=; b=hviloAk2Ps1tHeL/TjSftHjaXke6fg5lpbexjAcnWZyF3JrkYg+AvF3RkNST9e5pZH za4cMLxBECeyE8TNX+IpzlMvhtkf9c5XD6xcDSKdXfXMSrRMMffFrasc6aAAezoyTN/h RlOqcor6ZSnhm8JNQL7h0tNjqgYcx8jwGE8L2MFHFX5QVsy59FxvbQH1PG53AsEo18c5 JIvkbgJl6mVXmLdiPFNQDxKEvcgoJm8tvmsZua63uSW8YntcAwo75uvJfUCjVlPEmqr+ IMsiKDzIgw3+ZGJtEZPqJC8VV+Pn24r8JWsw6A7WsatX/SBqCpif8UWsvNNYksH1PVJ8 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AIVw1134CozHRmz+w+HnhcgBGcMwkU0ZcmCmSn/7AcapnQOzqXHhGY/S dalNCIOX1zTK/A== X-Received: by 10.36.34.209 with SMTP id o200mr88110ito.0.1501776632574; Thu, 03 Aug 2017 09:10:32 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.107.131.200 with SMTP id n69ls1712236ioi.16.gmail; Thu, 03 Aug 2017 09:10:31 -0700 (PDT) X-Received: by 10.107.163.80 with SMTP id m77mr1329554ioe.58.1501776631746; Thu, 03 Aug 2017 09:10:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501776631; cv=none; d=google.com; s=arc-20160816; b=kxpQVjk3zAegaKUopk4r43pe6jNWd3v82SruzjKvULpAQy/pmGbCfC2fzf0NWRyh7m iSu7PWhn0fyBpurVBwaWBeWi9ETcJEAxBryEsPjmQjWHyBcA3zwDBtCgZ8sKoQr/sbUQ QmlhWNOtPiyyO61SH3a3MD9mSx8Y0t9W9eXvV1cCsK+i+/UDkLTLvlzTR2VkInL+cgyY UMQnyJM8LIYJambgScLEKuDSK8YGu49v6ALSWH5AQnxDD8OyqUxClcjnhFa/a8XGWWry 0CzONcBqeI5cg3Z4qd/INanNOmTemIaZsaNZnsJ9+ED43W4NJHuzfdMfrMMmF6ajUidY PkVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:to:date:from:dkim-signature :arc-authentication-results; bh=whiu/E3QS+pwbnKgvxHaoKribiBFCETD7Lb9VOfFlPg=; b=hkAx95xJQp7RHuOH5J1NOlpXKesMn7t+mt2x271ev8OrwIHfZGV7PQDOaRd2EhV6sL pa9mG3djBt1qMi/nf2prlH3isf2KB3bQVXaU1Y7OLLAXtl7L9U6tMdiD7qdqHvH1ORK7 OBQiJ7QLu9DxMcc6ibAGvUD1vTjcF8w/6sVZbds+s4iNxWGJPpNOFVzf5ooyrtS2A0b+ cNCSOICMyKduKunGNSN6zo/QX5zGHx3fX9Z+ThJtmuEje74CQXrsjJwC/ap7rL66An0R FifyWVcTWIFm1MNstLRH4DWnMWuLGfXjSQQIrJ00DRj3SU12Bv/GtgxCeGEDNZpgiDqr iHVg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.b=CifOlYbf; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::244 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg0-x244.google.com (mail-pg0-x244.google.com. [2607:f8b0:400e:c05::244]) by gmr-mx.google.com with ESMTPS id z83si1324022pfd.17.2017.08.03.09.10.31 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Aug 2017 09:10:31 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::244 as permitted sender) client-ip=2607:f8b0:400e:c05::244; Original-Received: by mail-pg0-x244.google.com with SMTP id u185so1899540pgb.0 for ; Thu, 03 Aug 2017 09:10:31 -0700 (PDT) X-Received: by 10.99.139.65 with SMTP id j62mr2032513pge.202.1501776631192; Thu, 03 Aug 2017 09:10:31 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id h3sm65986311pfj.72.2017.08.03.09.10.30 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 03 Aug 2017 09:10:30 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id AD8D2A1C5; Thu, 3 Aug 2017 12:10:19 -0400 (EDT) Content-Disposition: inline In-Reply-To: X-PGP-Key: http://johnmacfarlane.net/jgm.asc X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.b=CifOlYbf; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::244 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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:17994 Archived-At: Thanks! I've created an issue to track this: https://github.com/jgm/pandoc/issues/3830 Please submit the docx file there, if you come up with it. That would be helpful indeed. +++ Greg Bullock [Aug 02 17 18:56 ]: > 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 [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to > [2]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > [3]https://groups.google.com/d/msgid/pandoc-discuss/e2a60168-8d99-43f4- > 854e-b4bd25524edb%40googlegroups.com. > For more options, visit [4]https://groups.google.com/d/optout. > >References > > 1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 2. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 3. https://groups.google.com/d/msgid/pandoc-discuss/e2a60168-8d99-43f4-854e-b4bd25524edb-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer > 4. https://groups.google.com/d/optout