From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23277 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Utf8 and docx Date: Mon, 19 Aug 2019 23:25:17 -0700 Message-ID: References: <9c5b4ae3-6e1c-4bb3-a504-f472dec69bc2@googlegroups.com> <1bdfdfc0-e6bd-4530-866b-738d53ca3dfc@googlegroups.com> <6da54d4c-f86f-4fa8-9b32-2d6349184ade@googlegroups.com> <42c13a39-67e3-47e1-be96-ebddfd3e3298@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: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="184631"; mail-complaints-to="usenet@blaine.gmane.org" To: Antoine vidal , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBWNE53VAKGQEXOK4Q5Y-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Aug 20 08:25:32 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-pl1-f184.google.com ([209.85.214.184]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hzxaG-000lvG-3h for gtp-pandoc-discuss@m.gmane.org; Tue, 20 Aug 2019 08:25:32 +0200 Original-Received: by mail-pl1-f184.google.com with SMTP id p9sf3445126pls.18 for ; Mon, 19 Aug 2019 23:25:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1566282330; cv=pass; d=google.com; s=arc-20160816; b=DxtOUSPGzgw38OQGWl+3Zhzcut46If2eKN2YobsQ73xlY54wRECOf6Xgh5SmJm0GQq bX5avAmUcKUXrtd182l4v7FvzcwT7s6e0VhU+LzyNbQJNt3QCYyDVZuWefasDrShh5Nt FKfxwl3xLBEV+okmCjn5KVC8ZNRB6xERoiQY7psFQHWHYXg0AW4Y+OkDIMI7mVzE9hRq BE4/kvOUg+/79t+DDGxNFYEREaihVt9CkSwWCKX71pH5SlPmvS3o71oActteapY+oAyC GsXKxEtFtUrnb89w5iRDqxzgpVKfB4ceG7oTN7HssT39WFqyhsvZoc8titgvoctZIXiu 7s8Q== 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:content-transfer-encoding :mime-version:message-id:date:references:in-reply-to:subject:to:from :sender:dkim-signature; bh=Y3I2RWuxRgzI2xFiC/8xwp/c6BZnIQBtxlg0MucKuoY=; b=SRkbtR+f14TEUNnBIQovxOGH52mJp3hqxxM2appA3sR22yP31/hsLRr8M1Qyrw/7Fz Izg5jtIzfS7WpKJ/8f7NXV3/7dZ1QXN9rsSFVjGH0m+YckCQV5gaVyFI7G2LirGbsM8k xo/47Y7esOgVo/A1TsY/gJqK7HIxtjFIP3pdvxWdj5zB9wDWmndPk9lwo3TI98zv8s+v m7jbnthlYmXIlQ+D3YswaAYPu2zQZiIlAZuBvOPiYA6wQZEIpIXPgijGlf2rcPhkdU84 iyw+jgbMbxRz5SjeVH+R+14dUoDiCxSnzypcyj3dN3aWV7dMg749BoXFLQo3r3bhZ+pJ tjNQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=JN2XgU5Z; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::636 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:to:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding: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=Y3I2RWuxRgzI2xFiC/8xwp/c6BZnIQBtxlg0MucKuoY=; b=S56QVRejVW9diKUqnTYWPm7Tb/YLbjR2eNS49xRHYsnhK/JS1c95An+f7aq+wgL2Mt IPJ2NNtL/JXKW3st6lOlIl4GHzmX84OG3bPnuEebM34085E5uO+S9lE7t1Rxb4PLRLK7 8hEYDO8ol2Zr8jukQT1MkLmLIQYX8P5tZPL+gtpGIpR+Nq3yHtUCmrBtfDpdMiu9QCJR TVXlUVuBucjbamD0z2owuaQfRUg6b1JiPPgQV0pGxd+5F7aylrjYJZ8sUdGqBJEIRU+Q 9E1ybtDLz+Gp4/VfmKXHrn61od1X7Ne+jBotYW5zy6uVUV6nALL+n4vBW1eUlW9cq+W9 M+9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:content-transfer-encoding :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=Y3I2RWuxRgzI2xFiC/8xwp/c6BZnIQBtxlg0MucKuoY=; b=tG313s6sG1VGui/rCKZVQ8k0wPUTFhuqUKo+dcogweP0ccBESIMsR+IB7wPCroRZTP vmBUmGxYudbGTqYgGVaIHRatsEZl+XB9Ap+/RHEj0dOob1Q6A+eg73Z5x6BmyAmbL1o2 xjOCFRNGoPLp0At1UR3hDs2zUtDaLGbV54uVWaCEp2NjHyfjs66Ozh1t+inBBEUFVYQd x68rMIj/9Q6fzNNPrwT8oPjPm2BNlM68yqhXcF04r7Gm8QGJ1iYag0WPxjWMzeQX4BVd vuXlbNHyYNmhFKMQ0/ANoJ2iu8Ew6RvuJY0zNXL2WL3QYpEeM0Td4hRxKnBe6WyXcgvV Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAVus9EBS6SWYl4HLaZ5QC2kwuQERoUR2GCUCLc1ZYQYNB9Rgv/C n3e/+m83tBm1SdtpfxPHqSg= X-Google-Smtp-Source: APXvYqx/M9NHdJRmiU+WKTcFOj6O1FAoSGop8wHRWq2zS/Njp/x0eWRqUu1eMz6qgR5L2DbAsyV7Aw== X-Received: by 2002:a17:902:2aea:: with SMTP id j97mr26276003plb.153.1566282330054; Mon, 19 Aug 2019 23:25:30 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a63:954c:: with SMTP id t12ls4042988pgn.12.gmail; Mon, 19 Aug 2019 23:25:29 -0700 (PDT) X-Received: by 2002:a62:37c5:: with SMTP id e188mr10665359pfa.207.1566282329354; Mon, 19 Aug 2019 23:25:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566282329; cv=none; d=google.com; s=arc-20160816; b=TYw9wfv1z5pL4q7TZOfi/EwvmgOrAm13fqFpNlGIVkqOuMm4wuQU47UGrpHwQSXWHb CnNLfHtmymuaw+0/2jOurYliNl2io5nw04r/A1O1UuPt9sCNOKjiKMvuByOHviygQW4N gAlYTlVtjSGLJi2pdYcYG7iWwhqR4GLh7Q2ltkR3xImFIgDepmVvfWEGHV6oBdmwJSZ7 Kad2UAXQJ0mHXHrm7alvioS1VWHBRW+oS2TrSIRTrdrIb2kPms/FJSxgQN2yhLhCMpTj QeGzS9f74ruQycePXoFCQlvdUayUEpE/msWmnQ3WsDAVdTvmjG55q0Fcfw206IiW33+L w93w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:dkim-signature; bh=nCJJb5zg/T6Z61G3BL2RIdDro4zmvYVZhl1J/NdQv5E=; b=YZgswkSgD4S/xOskdzIsSHchh3RhKSEnTLCuuB8Ud0jmomna/UogmD9OzpGRwvc5TT e0AdpvUKrf7e1Wb+RFoa2IRlvCUqLUYtrroKF8Rlph5LzyijrmCq/Degc2mQQ1ne4GjT evN8FDNOGGarZYvPhAzCDKKUrqbJB7O4Ou2PTFUkoLDyd+jXg+GbuBuPIEimDShEr2jL vcJtBMouv5nHCOUGZtrb1rgmvTRU08NkoKQMpMY4+WDkjOalPHY/llEhl1/R8WfifZ3f Cb2PXLMJx1DljNbURdMdOXkmtFSvIZOjGJ2pY68SU7z7AyvXNigUUrC6UoQt1gxYTgd2 s7CA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=JN2XgU5Z; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::636 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com. [2607:f8b0:4864:20::636]) by gmr-mx.google.com with ESMTPS id cq9si588917pjb.0.2019.08.19.23.25.29 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Aug 2019 23:25:29 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::636 as permitted sender) client-ip=2607:f8b0:4864:20::636; Original-Received: by mail-pl1-x636.google.com with SMTP id y8so2215187plr.12 for ; Mon, 19 Aug 2019 23:25:29 -0700 (PDT) X-Received: by 2002:a17:902:41:: with SMTP id 59mr4214682pla.268.1566282329065; Mon, 19 Aug 2019 23:25:29 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id g11sm18702355pfh.121.2019.08.19.23.25.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Aug 2019 23:25:28 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 713F6A18E; Tue, 20 Aug 2019 02:25:17 -0400 (EDT) In-Reply-To: <42c13a39-67e3-47e1-be96-ebddfd3e3298-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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.s=20150623 header.b=JN2XgU5Z; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::636 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:23277 Archived-At: I'm not sure what you mean by "layout." Do you mean line breaks? If so, you could try with `-f markdown+hard_line_breaks`. Antoine vidal writes: > Hi John, well it is working today but I don't know why. > thank you for your help. > > I have an another question: > How do I keep the layout of the input file? > I want to copy a file from md to a docx but when I do so, it doesnt keep= =20 > the markdown layout; it just copy the raw text from the markdown file to= =20 > the docx. > > Can you help me with that? > Antoine > > Le jeudi 15 ao=C3=BBt 2019 00:27:21 UTC+2, John MacFarlane a =C3=A9crit : >> >> >> That means that pandoc has tried to unpack a malformed zip file.=20 >> It is more likely for the reference docx than for an output=20 >> file (try without specifying a reference.docx to see if it goes=20 >> away).=20 >> >> Antoine vidal > writes:=20 >> >> > It is working, thank uoy Dmmitriy=20 >> >=20 >> > But I am running into a new error message (I think it is for the outpu= t=20 >> > which is: -o /home/username/Bureau/input/arrivee.docx')=20 >> >=20 >> > pandoc: Data.Binary.Get.runGet at position 4: Did not find end of=20 >> central=20 >> > directory signature=20 >> > CallStack (from HasCallStack):=20 >> > error, called at libraries/binary/src/Data/Binary/Get.hs:351:5 in=20 >> > binary-0.8.5.1:Data.Binary.Get=20 >> >=20 >> > Do you know how to solve this problem?=20 >> >=20 >> > Antoine=20 >> >=20 >> > Le mercredi 14 ao=C3=BBt 2019 12:42:44 UTC+2, Dmitriy Krasilnikov a = =C3=A9crit :=20 >> >>=20 >> >> this should be --reference-doc=3D/file, at least.=20 >> >>=20 >> >> =D1=81=D1=80=D0=B5=D0=B4=D0=B0, 14 =D0=B0=D0=B2=D0=B3=D1=83=D1=81=D1= =82=D0=B0 2019 =D0=B3., 10:57:49 UTC+3 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE= =D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C Antoine vidal=20 >> >> =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB:=20 >> >>>=20 >> >>>=20 >> >>> I made a screenshot of the error message=20 >> >>> Le mardi 13 ao=C3=BBt 2019 20:33:24 UTC+2, John MacFarlane a =C3=A9c= rit :=20 >> >>>>=20 >> >>>>=20 >> >>>> What is the exact command line you're using, and the exact output= =20 >> >>>> (error message)?=20 >> >>>>=20 >> >>>> Antoine vidal writes:=20 >> >>>>=20 >> >>>> > Hello=20 >> >>>> >=20 >> >>>> > I am using the latest version of pandoc (2.7.3) on Ubuntu.=20 >> >>>> >=20 >> >>>> > I am trying to merge a markdown file with a docx file.=20 >> >>>> >=20 >> >>>> > but I have this errror : The input must be a UTF-8 encoded text.= =20 >> >>>> > I cheked the xml files of the docx, and they are in utf8.=20 >> >>>> >=20 >> >>>> > docx file are supported as input file. However docx file are bina= ry=20 >> >>>> file=20 >> >>>> > but it said that they are supported as input file.=20 >> >>>> >=20 >> >>>> > Can you help me with this issue?=20 >> >>>> >=20 >> >>>> > Kind regards=20 >> >>>> >=20 >> >>>> > Antoine=20 >> >>>> >=20 >> >>>> > --=20 >> >>>> > You received this message because you are subscribed to the Googl= e=20 >> >>>> Groups "pandoc-discuss" group.=20 >> >>>> > To unsubscribe from this group and stop receiving emails from it,= =20 >> send=20 >> >>>> an email to pandoc-...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org=20 >> >>>> > To view this discussion on the web visit=20 >> >>>>=20 >> https://groups.google.com/d/msgid/pandoc-discuss/9c5b4ae3-6e1c-4bb3-a504= -f472dec69bc2%40googlegroups.com.=20 >> >> >>>>=20 >> >>>>=20 >> >>>=20 >> >=20 >> > --=20 >> > You received this message because you are subscribed to the Google=20 >> Groups "pandoc-discuss" group.=20 >> > To unsubscribe from this group and stop receiving emails from it, send= =20 >> an email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org .=20 >> > To view this discussion on the web visit=20 >> https://groups.google.com/d/msgid/pandoc-discuss/fddff39a-71c6-4f05-bcd8= -c0a4553a3b23%40googlegroups.com.=20 >> >> > > --=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= email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/42c13a39-67e3-47e1-be96-ebddfd3e3298%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/m2k1b8icaa.fsf%40johnmacfarlane.net.