From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29378 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'Jesse Rosenthal' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Re: docx parsing bug: nested fldChar fields are interpreted incorrectly Date: Sun, 17 Oct 2021 11:02:12 +0000 Message-ID: References: <2f5489af-f5a9-4ea4-9155-9f85c4808756n@googlegroups.com> <9bdb337d-fa68-4c66-8f5c-d4fa81547953n@googlegroups.com> <24273fbf-2ce9-4c26-886b-50d504cb7b05n@googlegroups.com> <50bcbdc6-8d4b-49c1-badb-f35fb968112dn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="664"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDF7DMU574PBBO4FWCFQMGQEODSPZ5I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Oct 17 13:02:23 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pf1-f192.google.com ([209.85.210.192]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mc3vq-000AT7-Rk for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 17 Oct 2021 13:02:23 +0200 Original-Received: by mail-pf1-f192.google.com with SMTP id x25-20020aa79199000000b0044caf0d1ba8sf7465594pfa.1 for ; Sun, 17 Oct 2021 04:02:22 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1634468541; cv=pass; d=google.com; s=arc-20160816; b=yiAGXPs8e0FP7jCp6obeNcYLCgbku2+Nt5d2hK/8LkUTyDDI6vQWYdYHC+hwMhBh0E 3kJRdoBLqEKieR1yIrJaeOZAnLrXE2XR8lNQVNiuSgnhrmciB3H1WFM8ml+R1CXFejOu dyVjnNlKz2wggSC4qHwi8Ax4/BXuqurr2sZfmNSS0rps2mR0qbDHktCZGDAx82cdq1Hm QdBylFsBfIaLg3hfUxSHyvpIuAQlhJGBjECZQhFrb2W/pOYqv+wd30E1u9cu/KxRMiC6 naoy166UmWwfxzyzV0SUAGQzd/KAu01m0ibO6nfHya0WO16KVPAfN18evI8TB/Mkh48v rzog== ARC-Message-Signature: i=3; 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:mime-version :content-transfer-encoding:suggested_attachment_session_id :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:to:from:ironport-hdrordr :ironport-data:ironport-phdr:ironport-sdr:dkim-signature; bh=DZcXymUNnB/Fa8KkSFenY4TO3EqX85rePDtEZzWIZ64=; b=LbfwdWECbnqKycg8Fn+/mtkeJwIkNWHrGW4DIW3Onj/M1iEVDtAQHmSkc+g6A82JfS 5rEQUDybtiQMXorPxbWIOTWJ1YIlvm9a6ZAcBPQtRlttcDn4sbkYYX+mW6FaWq/lud33 S0ox+ze9AN40o0Y4QnjeMST/d7dxmgRodGn8eOE2cOOM66FkQ6UsB/A1j9JUWoh5CKvu UwMxSQFk1gBmy1ks3AE4wdLITKWlllthAxlk566iKu82p0InL23xon3eanGqdY7ZDQMY f8Qa9DS ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@jhu.edu header.s=jhuiron header.b=UP7hfQVQ; dkim=pass header.i=@livejohnshopkins.onmicrosoft.com header.s=selector2-livejohnshopkins-onmicrosoft-com header.b=L8z7zFKO; arc=pass (i=1 spf=pass spfdomain=jhu.edu dkim=pass dkdomain=jhu.edu dmarc=pass fromdomain=jhu.edu); spf=pass (google.com: domain of prvs=91710a062=jrosenthal-4GNroTWusrE@public.gmane.org designates 162.129.199.190 as permitted sender) smtp.mailfrom="prvs=91710a062=jrosenthal-4GNroTWusrE@public.gmane.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=jhu.edu DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=ironport-sdr:ironport-phdr:ironport-data:ironport-hdrordr:from:to :subject:thread-topic:thread-index:date:message-id:references :in-reply-to:accept-language:content-language :suggested_attachment_session_id:content-transfer-encoding :mime-version: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=DZcXymUNnB/Fa8KkSFenY4TO3EqX85rePDtEZzWIZ64=; b=GyW3pvgFeWIzkxsqEAV5sxxFnZ+QBZCxz+r36KVu8b9Y2eodV2ZzN/5BgmEvqMu+YW mKRZqwLTh7FGSJHW10OCyUdCtGmvlCM2IDHCjRyX+HYhgn/wdsxNcJXuCEeu40UczOG5 DyDuXIeFsiJQiGZO2zj6TFqeVs3lstlSShSMfe736jTWePSa0sbt0sCdA76z8ylh8VIp SSS2PiXYPC3eHxnMryzrPuZ9h1E42+hICQQ X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:ironport-sdr:ironport-phdr:ironport-data :ironport-hdrordr:from:to:subject:thread-topic:thread-index:date :message-id:references:in-reply-to:accept-language:content-language :suggested_attachment_session_id:content-transfer-encoding :mime-version: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=DZcXymUNnB/Fa8KkSFenY4TO3EqX85rePDtEZzWIZ64=; b=fYLvL6i3uFbFE76d/hZlFX+TUWIwMKYJR+iJalDCzl88lqTDOx8OqmpfqylOL+jpwD QyQ7OtXTHYJkDVUQib0F+diAOxLCrlPD62T1uG6NYV7nR1N+XFHwHg7C6oet3sCgnCNN okjoXnARcjaNf2EhpkIinH7+IdfEYCQW6TIoTUqgvn803JMIZhv85ET/WTfvkBvTOVIz X-Gm-Message-State: AOAM531m80NiUk4o5/ojtyeUVuBNZgiwuZs4UQWe7IQRYqZUK/D4ATmF TXd6fnDU/m0zxi1qoVK0Pss= X-Google-Smtp-Source: ABdhPJzIAb+zWgfQvrSjT2h/TNcVzoJqfSMeEFt8ZphwuATrf5y7190tD45vtQfp1DC/yilKQ7RgdA== X-Received: by 2002:a17:902:ce8c:b0:13f:9678:230c with SMTP id f12-20020a170902ce8c00b0013f9678230cmr11557298plg.62.1634468541022; Sun, 17 Oct 2021 04:02:21 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a63:ef51:: with SMTP id c17ls4686430pgk.7.gmail; Sun, 17 Oct 2021 04:02:19 -0700 (PDT) X-Received: by 2002:a05:6a00:ccb:b0:44c:eb4b:f24e with SMTP id b11-20020a056a000ccb00b0044ceb4bf24emr22163660pfv.16.1634468538915; Sun, 17 Oct 2021 04:02:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1634468538; cv=pass; d=google.com; s=arc-20160816; b=Z2xLXWB/djYRBD1XhQiEfSChtJASQQTJtes+T0pZa6lKffC6+Paf9WeVTKe1Wp5BNN HQLviAZ/3/4AaOPpu2z29I7+k4K2SKnTbO0a2JA30vedcavfab9XGWSSsKG1hLqzBFaP UGLxQY1irwGYoO4dKOYbubgJBL/mBkclXcG0jLVlYtik0sQspLwPDs9jSeyi1Kh9tgMQ IPJzSkSXCOsemBCZNVS8whpvCYhOm4Td7aYRwCRfKWp8XV8vBpAT4MPi8SUNc7GyBiVa RVKJH+tV7qOD1pEqHcnok4cqKmk9Vq/kTGJsIQhrhBEJkhuhdThZMneixqWGW17l2nhl xD5A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-transfer-encoding :suggested_attachment_session_id:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:to:from:dkim-signature:ironport-hdrordr:ironport-data :ironport-phdr:ironport-sdr:dkim-signature; bh=BVHpvDStkmaQJcZdx0VgV2ir5XOAHg34FTN9UgWTS+c=; b=yMfJXrDSOtTKNyM+C0hglxHnR3VTXFpVpMYkEAB3tPMa/NmWjgivzbaEX9+UvG0goK swDhqueSEteDVMxqkQAt/hQNozQCc01zYGSs1/zB5fekukMJUzR1XFkscqlF6926NO7B YgNi9Qou5gN5lMPye74m4vSLTxYb5gnbAUYVgzzHjlOLcstcYzxE/RrR8I9daD3NnWKt 6u1j22vxwSDnb3GO0yURDImhgQhXZbTUVKya11O3YYTb/dvVzTcTzXcRUmwNZ5KoVbOk gXhk8DjlZoi0MMagQc4Jvy2Mn+RqOeC0p6QK23SMwD+9XrlxXGwYP9gSwZAcs3wHGZcc jMzg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@jhu.edu header.s=jhuiron header.b=UP7hfQVQ; dkim=pass header.i=@livejohnshopkins.onmicrosoft.com header.s=selector2-livejohnshopkins-onmicrosoft-com header.b=L8z7zFKO; arc=pass (i=1 spf=pass spfdomain=jhu.edu dkim=pass dkdomain=jhu.edu dmarc=pass fromdomain=jhu.edu); spf=pass (google.com: domain of prvs=91710a062=jrosenthal-4GNroTWusrE@public.gmane.org designates 162.129.199.190 as permitted sender) smtp.mailfrom="prvs=91710a062=jrosenthal-4GNroTWusrE@public.gmane.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=jhu.edu Original-Received: from IronEB9.johnshopkins.edu (ironeb9.johnshopkins.edu. [162.129.199.190]) by gmr-mx.google.com with ESMTPS id q75si778044pfc.5.2021.10.17.04.02.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Oct 2021 04:02:18 -0700 (PDT) Received-SPF: pass (google.com: domain of prvs=91710a062=jrosenthal-4GNroTWusrE@public.gmane.org designates 162.129.199.190 as permitted sender) client-ip=162.129.199.190; IronPort-SDR: Rs9A0wUPp40l258ZN9FjVvegsU68kgjPBwuaCSLFt6+8G5ShdWxyJo5lICKJF0kcA8wG7/wqpU IYX520kvY6nEPfORXkRG89ceayOwFmUeF0Erw2Le4elmRp8tZE+kAuIi8ghzjO9HYzOnxOijJp F45H0VoBLLbhB5O0EfTQ/lBB1+eBQcE4WzzqHr4ZnYy4uZ4GIfZdpraD2sBW6NFaBGt8Z633dy LXTaLPGE9HIbyPshsVJ3QKXt6XWmI3Z6Ir3wUEopegCNuYSzvFc5Ws2P1guKnM4tTowXntkk4w F0xSABCOmHONbO0k/a+RxdSK X-IPAS-Result: =?us-ascii?q?A2F9CQBqAWxh/3uErQpaHQEBPAEFBQECAQkBFYFbgToCE?= =?us-ascii?q?1EZAWRYaoRBkRgDinSNK4JTgUKBEQMYFhYQAgkBAQEBAQEBAQEIARICEQUPC?= =?us-ascii?q?AQBAQMEhHUCAgKCTiY4EwECBAEBAQEDAgMBAQEBAQEDAQEBBQEBAQEBAQUDA?= =?us-ascii?q?QEBAoE6ZGiBT4F0CzQNgjUFAgMCJAtjTQMDNQEBAQEBAQEBAQEBAQEBAQEBA?= =?us-ascii?q?QEBAQEBAQEBAQEBAQEBAQEBAQUCDAFRASk9AQEBAQMSKAYBAQwsDwIBCBEEA?= =?us-ascii?q?QEWCQkHIRABFAkIAgQIBwQBBxECAgQBglCCVQMvAQ6gFwF5ARIuAoofeIEzg?= =?us-ascii?q?QGCCAEBBgQEgTYBg1MNC0QBCQ2BWgMGCQGBLgIBAYMEhAiHCEOBSUSBWIJnP?= =?us-ascii?q?oIhKxcCAoEXDQUBEgEhAj2DEIIMIowqgQI1OBAgAlkWBy0IChJJNg+MK4UBO?= =?us-ascii?q?hypf3o8Z4M7ikqNQn6GBxSgKoZvlguJKYFkgWKDRJAuJoRpAgQCBAUCEAaBe?= =?us-ascii?q?DIsMHBNJU6CaU4BAgECDQIBAgMBAgECCQEBApIPil5CMgIPJwIGCwEBAwmFD?= =?us-ascii?q?4wlgQ5eAQE?= IronPort-PHdr: A9a23:P2wn4RDU+ClZ8/XzlQyXUyQUXEcY04WdBeb1wqQuh78GSKm/5ZOqZ BWZua81ygWQDc6AsLptsKn/i+jYQ2sO4JKM4jgpUadncFs7s/gQhBEqG8WfCEf2f7bAZi0+G 9leBhc+pynoeUdaF9zjaFLMv3a88SAdGgnlNQpyO+/5BpPeg9642uys55HfeRtEiCe+bL99I hi7oxjau9ULj4dlNqs/0AbCrGFSe+RRy2NoJFaTkAj568yt4pNt8Dletuw4+cJYXqr0Y6o3T bpDDDQ7KG81/9HktQPCTQSU+HQRVHgdnwdSDAjE6BH6WYrxsjf/u+Fg1iSWIdH6QLYpUjul8 qlrVQToiD8ZODEl7GHZhMtwjKdBrxKgoRx03orYbY6ROfZ7eK7WYNEUSndbXstJVyJPHJ6yb 5cBAeQCM+ZXrZXyqVQBohalGQmsHf/jxiNUinPqw6E31fkqHwHc3AwnGtIDqHDao8vuNKcJT +++0bXGzTLYb/xI3zf99IjIfQolofqRWr9wc9DRyU40FwzbiFWQtYzlMCmR1ukWsWib7/dgW fixhGE6tgF8uz6izdojhYfVnIwa0EzE9Tlnz4YvI921UE51bMOmHZZeqS2XKoV7T8EmTm9ov Cs0xKELtIK0ciUJyJkpyRrSZ+GEfoaH4B/uW/udLDd7iXxqdr+zmRK//Eumx+bhWMe011NKo TBEktnKrn0N2B3T6tSHSvtg5UitwyqA1wfW6u1cJkA0iLbbK5omwr43lZofq1jMHijzmEnug 6+WcUIk+ues6+v5eLnpupicN4pyhwrjMaougtSyDfkkPgQUQmSW++qx2Kf+8UD3XrlGlOA6n rfXvZzCO8g IronPort-Data: A9a23:qPL9Tqn2HB1UmfV9ynIPH3ro5gxIJkRdPkR7XQ2eYbSJt1+Wr1Gzt xIfD2yOMviPZWXxfN10bIy/pEJT6JOHnNFlGws+rnpmES4T+ZvOCP2ndUqhZCn6wu8v7q5Ex 55HNoSfdpBcolv0/ErF3m3J9CEkvU2wqz6V5NfsYkidfyc9IMsaoU8ly7NRbrJA24DjWlrV4 Iyq+qUzBXf8s9JKGjNEg068gE431BjCkGtwUosWP6gjUPf2zhH5PbpHTU2DByKQrrp8R4ZWc 93+IISRpQs1yT92U4/4zeyrGqE9auW60QCm0hK6UkU56/RIjnRaPq0TbJLwZarL4tkgch8YJ Nhl7PSNpQkV0qLk38AZQx0BT2ZFAqR8wZz6fGGRn97N5hiTG5fs660G4EAeELY339pILFEXq 7lCc3YSbxbFju7wwrKmDORgm6zPLuGyZMVG5SomlGqDS698GvgvQI2TjTNc9DUqgdtDG+reb s4xazpyKhnMfnWjP39NV8pgwrb31ieXnztwtXaVpfM+vHjo5xF7k6X3Kuvccd+MfJAA9qqfj iecl4jjOTkCPdqTzjHA/nO3jfLUhgv0X4UdELC37Pl3mEbVzWsWYCD6TnO2uva8llGzS4sBb hZPvDUvq+47+AqpTsS7UhGlyJKZgiMhtxNrO7VSwGmwJmD8um5130AIEWxMbsIIrsgzSWB43 1OFhYq5Vz51t6aYT26d/7O8rzOvfyUZMDZaNyMDSAIE5fjloZ0y006UF487TPbtg42nAyz0z hCLsDM62+cZg/kN2vjp5lvAmT+t+sXEQ1dttAXaV26o9C1jY4uha9D64FTX968QfoSDSUKMu mQEksy27uA IronPort-HdrOrdr: A9a23:yJ58TaOvV4YQZMBcTtijsMiBIKoaSvp037BN7TETdfU1SKylfq +V8sjzuSWYtN9zYhodcLK7WZVoKEm0naKdirN/AV7NZmXbUROTRr1f0Q== X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="5.85,380,1624334400"; d="scan'208";a="270669786" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-MessageIPDirection: Outgoing Original-Received: from esgmtwex16-23.win.ad.jhu.edu ([10.173.132.123]) by IronEB9.johnshopkins.edu with ESMTP/TLS/AES256-GCM-SHA384; 17 Oct 2021 07:02:17 -0400 Original-Received: from ESGMTWEX16-22.win.ad.jhu.edu (10.173.132.122) by ESGMTWEX16-23.win.ad.jhu.edu (10.173.132.123) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Sun, 17 Oct 2021 07:02:16 -0400 Original-Received: from NAM10-MW2-obe.outbound.protection.outlook.com (128.220.36.252) by ESGMTWEX16-22.win.ad.jhu.edu (10.173.132.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Sun, 17 Oct 2021 07:02:15 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RUCGwSNLDWxel37XRBRSaRLFeHWuqpvxYv3WxuKBdIsvbbEIZl6VcKojSSzk6C77NbbJeB92MP9M+W0bXFn+hF8AO0MYFAcNYVML3oL2IIYaPDlzFxM4Vquja9m4KxeHal4q3iRXI0NnFlwg3KcjlRayj1+leiUdmvp3uAPIV4pn+lmr5If4wCO4mtahRYoje+4jylYCet1lu2J5e5uEiud8P1ZgB+iBGDwLh7MS8azPlxQ+w/npGOvi1eFe1s+gmFr+9X5Id8DehLd/vCNDMM+ZIWmORp0YAEhkDz5cBxzKQR9MF5zW7jaehhwXSbEIfXmw6ExjD9udq460+SvTgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=BVHpvDStkmaQJcZdx0VgV2ir5XOAHg34FTN9UgWTS+c=; b=jz3KLvwRJ53T/u0YOuxWkSHuufSR68zVUKwMIbcAn6imQK9qyPdYkE6WlJAUHKiV5LszT5bpVsyGY/SZ5/P2dwJY42fj+kN8wrOQ7hjb7CobsjbhaF7DX1Y0VSH8SuIz/KB9PT0j3aguvPJJcin1AlxL8Dx5s7cQAy8RcNtoL4vei7dcHCqo6cld35cD8lJ+R2uGIfPcukW2ve/i4ubrjcXXCDgOWw/Ba/7WQ6aSiwgyneVlh9PUfNx6ofibAc/c5Ri8GjiuxZgbPx7aDnJYdMoCSjUNNDKtXwAaay9bJ5GVTAu38dvpL2J91kRf1gph4j48VW/FDAxjU8iwiGWPPg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=jhu.edu; dmarc=pass action=none header.from=jhu.edu; dkim=pass header.d=jhu.edu; arc=none Original-Received: from BL3PR01MB7100.prod.exchangelabs.com (2603:10b6:208:33b::12) by MN2PR01MB6096.prod.exchangelabs.com (2603:10b6:208:192::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16; Sun, 17 Oct 2021 11:02:13 +0000 Original-Received: from BL3PR01MB7100.prod.exchangelabs.com ([fe80::49a1:f80f:b77c:2c5e]) by BL3PR01MB7100.prod.exchangelabs.com ([fe80::49a1:f80f:b77c:2c5e%7]) with mapi id 15.20.4608.018; Sun, 17 Oct 2021 11:02:13 +0000 Thread-Topic: docx parsing bug: nested fldChar fields are interpreted incorrectly Thread-Index: AQHXeYfzXOAwmGiNTUe7VHoqgBZUyqtEHQvVgI6tBACABM9T0w== In-Reply-To: <50bcbdc6-8d4b-49c1-badb-f35fb968112dn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Accept-Language: en-US Content-Language: en-US suggested_attachment_session_id: 860f12ef-b01c-3821-3984-20c9203779fe x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0537b1d3-57a6-430a-41d6-08d9915d92e6 x-ms-traffictypediagnostic: MN2PR01MB6096: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ehne5l9jjCeGtD75Vn73AuMa3ewIrhHN/KSzSS/xi9ceVSnWBAarcFyyWMe8EEt/NBRr+xXVwqOXdmhDSUOxd3GvbkWwNvmZwSxfyvCNsu8MEBg4C4K6rlj6kzFVYnuam+Mg1t60aZHKY7w1iD8b0oHNqZtOF7qPL9J5auykn8cmuLz0Dmq/SQFklzGO+AdOaTckXMyNSpdkadi/xGLnWCxDll9t2MJkbYhqCU/fJhDqMTgiEDH0uK2SEzYPmGc3PzAsWF7EkOLIJOC1v42Abbk6MseeXp8xrX6I95+RC32oP4O4FB9Hc2SJaKcuZiqnrQW9eW5AKN84UmFZGdyLKST+0Gq6UOJlJO5Qc6ISveoC0p6Z8YuV50VhapoYpGW4JcQNx/yBZtjfSsNnH37bOswuEcfOAjKdLvKiZElUhpxTclWcDesi2gZN3T2rDBatoHU5ErAZJAHpsWhPs2/C/J1/n+9zTgCNrdiAQfmbTwfjSJV35cgAC6sZVbzBfs9IULaAiXPSoGX+lkmH920IUESvoJPktElI2LqaXSpi+XR/C/TuhrQClZR/hkeb7NQjtwNtb/J9uyp8WmWxolj4xiPr+9sncVBk+jyUvz0/snsKlKPshgvhs8n3zNwqsS/qhqQA/K1mbg/5PJWrYzmXwOZ7TOVu1lisBbkq3ujhtUVZT9D1xWVbq6ie7pyWfdlUtuVttxet9Et7BGo3qaDnnc69cw9MLXkrox9yGcxLobbZ/is4q2MZGan3o7x7P hfET687Adj75F3ElkX4as8vdzrEMNG9LHZ7T3ZnB2IQYqbw037M4MoLGoy3TiLDsjauojYdBCGeHzkcHyBKncy5EA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL3PR01MB7100.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(66946007)(75432002)(33656002)(7696005)(9686003)(2906002)(83380400001)(8676002)(66476007)(508600001)(6916009)(66556008)(66446008)(966005)(6506007)(53546011)(8936002)(38100700002)(786003)(5660300002)(186003)(316002)(38070700005)(64756008)(76116006)(86362001)(122000001)(55016002)(71200400001)(91956017)(52536014);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?LjDfs3iCJiG/iHJcBA8rvKgAkVa1SrqixomK3D0rm2bsh3P4PRGZ9TcDrKcF?= =?us-ascii?Q?V40yDZUKwwirOraPbZ7+VY9HR3PZNufQlizpE72wjSh6BCKe8O1ynaH0z8i8?= =?us-ascii?Q?M72AsDxRWvSmsf8SqYJkyTElxamBf2IWMquGtF2XWjEuBCeOjp76SA/E7teD?= =?us-ascii?Q?1PbvaIyKpZFd+wemGF6jBgKmmOcbP+B86k0WQl2JpW6e54m8GWDSv4IicGE+?= =?us-ascii?Q?lljwVVoazuATyvQ+YOzLlepkJnbPq0sVpCcZWGkwbn7u0+pM7EXpobGkjjtc?= =?us-ascii?Q?FyxHk1Lx5aNSGnSpvrZzuN8lwScT0M1LI1o+Q20vErpvYO9rK4VoTlRbl6ya?= =?us-ascii?Q?l4epl2VRbnhfFTEVOaHJydU7Hqk+fEWq/adGUD2KP6UO47BWCPR0mh2W1YHg?= =?us-ascii?Q?BT6ztjZ7EI+KsjSTj67ZmYTLikgG43Flv9Dzv9sXxRMexw7gfRuxIAdmAmWz?= =?us-ascii?Q?CDTpjGvCDi38Iu08UONxP+jX1jBljprw4qZSBuJYPCyq9ijxtXBcw0uKKrWa?= =?us-ascii?Q?o0/LFhA+3Yo29bdZmRNHOFYEaW13Lgx7Dek07YIZjIh1ZWzGZHp7UQ38e5BC?= =?us-ascii?Q?/7oXltADEFAfgzInFxNMFXIPzROT8RCrYGppVxNiZyHuuNq3QBCWFcumo5y0?= =?us-ascii?Q?Gz x-ms-exchange-transport-forked: True X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BL3PR01MB7100.prod.exchangelabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0537b1d3-57a6-430a-41d6-08d9915d92e6 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Oct 2021 11:02:12.9746 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 9fa4f438-b1e6-473b-803f-86f8aedf0dec X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: AzG2nl2D4LI09Bs2i4HUiGIBddHYJTjPP96/0t9zleCUl56KFlYbVL4p02+5Jl/R X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR01MB6096 X-OriginatorOrg: jhu.edu X-Original-Sender: jrosenthal-4GNroTWusrE@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@jhu.edu header.s=jhuiron header.b=UP7hfQVQ; dkim=pass header.i=@livejohnshopkins.onmicrosoft.com header.s=selector2-livejohnshopkins-onmicrosoft-com header.b=L8z7zFKO; arc=pass (i=1 spf=pass spfdomain=jhu.edu dkim=pass dkdomain=jhu.edu dmarc=pass fromdomain=jhu.edu); spf=pass (google.com: domain of prvs=91710a062=jrosenthal-4GNroTWusrE@public.gmane.org designates 162.129.199.190 as permitted sender) smtp.mailfrom="prvs=91710a062=jrosenthal-4GNroTWusrE@public.gmane.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=jhu.edu X-Original-From: Jesse Rosenthal 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:29378 Archived-At: Dear Milan, Just commented on github. This looks good to me. I apologize for the long w= ait here, and for taking so long to turn my attention to this. Thanks for making this work, and for sharing it with everyone else. Sorry t= o stand in the way of that process being a bit smoother. Best, Jesse ________________________________________ From: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org on = behalf of Milan Bracke Sent: Thursday, October 14, 2021 5:33 AM To: pandoc-discuss Subject: Re: docx parsing bug: nested fldChar fields are interpreted incorr= ectly Hi Jesse, I hope you had a good summer. Do you have time to look at my pull request i= n the coming weeks? I'm now using a fork of Pandoc to have this fix and I have to rebase every = time something useful is done in the main repo, so I would really like to have this fix merged. Best, Milan On Thursday, July 15, 2021 at 4:47:19 PM UTC+2 Jesse Rosenthal wrote: Hi Milan, Thanks for the heads up. Honestly just summer craziness: visiting family fo= r the first time in almost two years, shuttling the kids around. Life stuff= . I'll take a look at it ASAP. Best, Jesse ________________________________________ From: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org on behalf o= f Milan Bracke Sent: Thursday, July 15, 2021 10:43 AM To: pandoc-discuss Subject: Re: docx parsing bug: nested fldChar fields are interpreted incorr= ectly Hi all, I've had this pull request open for more than 3 weeks now: https://github.c= om/jgm/pandoc/pull/7401 Is there a reason it's not getting any reaction? I'd be happy to improve or= explain it. If I've done something wrong, I'd like to know, so I can fix it. Best, Milan On Thursday, June 17, 2021 at 8:42:48 AM UTC+2 Milan Bracke wrote: Hi Jesse, Thanks for the feedback. I'll ping you when making the PR. Most of my code = seems to work so far, but I still have some trouble with the fact that the fields now need to contain ParPart= s instead of Runs. It's harder to match all the cases and treat them correctly. I'll try some more and let yo= u know how it goes. Best, Milan On Wednesday, June 16, 2021 at 4:21:05 PM UTC+2 Jesse Rosenthal wrote: Hi Milan, I wrote the original fldChar code (and that comment) and I figured it would= have to evolve as further requirements became necessary. If nesting is a r= equirement, a stack instead of a toggle seems appropriate. As far as crossing paragraphs goes -- your approach seems right (and simila= r to how we've dealt with similar issues like comments crossing paragraphs = in docx parsing). I'd be happy to take a look and offer comments/feedback on your code. Just = make sure to ping me (@jkr) on your PRs. Best, Jesse ________________________________________ From: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org on behalf o= f Milan Bracke Sent: Wednesday, June 16, 2021 5:33 AM To: pandoc-discuss Subject: Re: docx parsing bug: nested fldChar fields are interpreted incorr= ectly I can't fix this without at least some feedback. It's a complex issue and t= he fix will take some time, so I need to at least know that my proposed sol= ution seems good and would be accepted if implemented correctly. On Tuesday, June 15, 2021 at 8:38:30 AM UTC+2 Milan Bracke wrote: I've encountered a new problem. A fldChar field can span multiple paragraph= s, but it doesn't have to start at the beginning of the first one. Because of this, a field across multiple paragraphs will merge those paragr= aphs. There is no way to represent this exactly in the pandoc model I think. So m= y current solution is to have different fields with the same field info in the different paragraphs. This can at least make the hyperlink fiel= ds work and I think it will work for the other fields we might add in the future as well (I've checked the list). What do you think about this ? On Monday, June 14, 2021 at 9:17:13 AM UTC+2 Milan Bracke wrote: For those who don't know fldChar fields, this comment from the docx parse c= ode (parse.hs, starting on line 825) explains it: fldChar fields work by first having a in a run, then a run with , then a run, then the content runs, and finally a run. For example (omissions and my comments in brackets): [...] [...] HYPERLINK [hyperlink url] [...] [...] Foundations of Analysis, 2nd Edition [...] The current way of parsing fldChar fields doesn't take into account that th= ey can be nested. So the end of the nested flcChar field will be interprete= d as the end of the surrounding one. This could for example lead to a hyper= link that ends too soon. See attached example for a docx that demonstrates = this. I propose to fix this by turning the fldChar state into a stack, so that a = field can be started and ended inside other fields. I will include this in = my pull request for PAGEREF fields that I announced here a while ago, since= they are related. -- 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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org. To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/9bdb337d-fa68-4c66-8f5c-d4fa81547953n%40googlegroups.com>>>. -- 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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org. To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/24273fbf-2ce9-4c26-886b-50d504cb7b05n%40googlegroups.com>. -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org. To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/50bcbdc6-8d4b-49c1-badb-f35fb968112dn%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/BL3PR01MB7100280CEDC0AA33F788D8C9C9BB9%40BL3PR01MB7100.prod.= exchangelabs.com.