From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31081 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Becker Newsgroups: gmane.text.pandoc Subject: Re: Output HTML to DOCx file Tables Not Getting Formatted Date: Sun, 24 Jul 2022 16:05:41 -0700 Message-ID: <9f3b5b5e-7116-4432-9fe6-c11bc1865a2d@Spark> References: <56f6388c-72f5-41c0-9d51-2a803644b6dcn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="62ddd050_9daf632_18210" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26033"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCUNV74YYMKBBVNA66LAMGQEG6KGTDQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Jul 25 01:06:01 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-vs1-f62.google.com ([209.85.217.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oFkfh-0006aJ-52 for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 25 Jul 2022 01:06:01 +0200 Original-Received: by mail-vs1-f62.google.com with SMTP id d3-20020a671d03000000b0035854b40cb5sf103204vsd.22 for ; Sun, 24 Jul 2022 16:06:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1658703960; cv=pass; d=google.com; s=arc-20160816; b=n6IgoX2FaC4PVTcMABP+qO7zyJB2SkBVe87p3SrhvuZSdib01vNPEXZ07hAf5YME4U jNHUJNEJxViPioN1plnq7t4b/45qAv+OaWI6WEYKi3b6vb/mfAzd+MMZ8//y8o7YvhZs saFlIYK5/smArYtzubdODWyjReZ/5abB35H9mge9iYbTfl6oLVHDsdoNVnIR+J2FmdEV taaanyctNFE/OFCoFIBoSxGpua1zdnJxz8fGa/34Um+ITgUdefuRiPF2ZAJ4P1Fznlp1 /uKyyO8270zFBvIHNiPq9Ddc0bnoM3vGAt9ROmBEFvU2fTyIsyktSfgQbfdwZMmfQm7s fjBw== 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:mime-version:subject :references:in-reply-to:message-id:to:from:date:sender :dkim-signature; bh=iYiYjL9P7BX2qkYKilK/oVbVHhecot88ptj3DUGfqMo=; b=nzVn+Pu7rxv0KJeGe2VJd0NKrLhrH9gbnA5TWnkqdy+JmWlp1oGVHIQmnU/tm8eIeh 7pFDe1BVt3xCNpL4inUzhRG4N94AZBQroAalTkxPJyM4Y5Hg23ZCDlP5RdpN4jgltsiQ PqnlILn4q9Gg06VUsh1imS+XhnwXPoXTgMOdHvbDFR/UbUJBjcL+hj1w3IXrYYHLCKhC B+mglCfvNrrDRALpm0+oSLZnKu50/mwfIvZlzBRL4qbdA6pNRhGverUF9j9cEA9CkIsZ p4EYHW8EjkGD5R1VMnS5xmIVAXuJwIMisUDl7SbbtiT6uye8W2K6wqaT9nDTGWPFX15G xZ+Q== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@identitypraxis-com.20210112.gappssmtp.com header.s=20210112 header.b=FbU0eTxy; spf=neutral (google.com: 2607:f8b0:4864:20::102b is neither permitted nor denied by best guess record for domain of michael-QF1XyMwE1Uwv0rdu9s6TydBPR1lH4CV8@public.gmane.org) smtp.mailfrom=michael-QF1XyMwE1Uwv0rdu9s6TydBPR1lH4CV8@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:in-reply-to:references:subject :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=iYiYjL9P7BX2qkYKilK/oVbVHhecot88ptj3DUGfqMo=; b=a9IU/dUXuYfhPv2dqPJ/QWih+vsBGAXxTdYTNimfyCq2hyTw+2ABGTXQCO8DloyHQL 73aPVMviDxf0nHFFtrIslminsVdJ37O145M1LmeaF/oitf5JWq8QN2YX9oOIEV0Lo7eZ r6PYFLv+rwwKtojuIrGjgV5HJZcdeenHNK5NAl8pjfi24/XuOQPJQVvjItGWmMsYeseh Nc8LAjt07sY+InuCh1hySI/0OwQpIAp+tML6JoQsNdxhvzz+KNtHcPDH2w14EPhn/sox QUw3ubp38hz9hNDik4w5E9sH4KBrJc6hhoR1XlV66MQIr8hYARypt/BwavUcB2TQQvUw 8CZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject: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=iYiYjL9P7BX2qkYKilK/oVbVHhecot88ptj3DUGfqMo=; b=CdOW/TNecH1QhXIe+CMQRJ/AEnLfTLTg/BZgcgt+rLMgRCMYHTwXhVdO6kGlB16Zq4 wbm/sf4ma+vrCDINRKZcOvow9Tlx6jxqjkoWCCGweIqpaEPGZVQTTZWyo/Nj1B49T6gb hLhKBGmJxi+8X/PgzEUen+fz/Xpw/LTchRWXxSv4xZVl0bvwZZz0SJX8HJ/h+IcpJBVk zq5+LZ/X/iLF6aIgN8rzy8ZKIVVes++2KKmrd2tJMQsPT53Au0iky8RIvMDWyVOvBpX2 +U4/d/NOqhNGPfYluvVk1EHrPWJjN2+PpeJx0iRiOyMxMJKCbAdNGLj0eAoYvjnzP2lD HONQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora+pLTDUF097+rF1adxh1Pu3/X2HwngybLKffEmVrv/MkpOdf81e Vgwe38zWVgwetLDrBSE/e5c= X-Google-Smtp-Source: AGRyM1s5SqSy564F3/LYtBQGnGNTLU63qiW3DvcToOR8/bFW8TXQ9m3RP1AzIaK5kScYRMCJTuRhNg== X-Received: by 2002:a1f:bf54:0:b0:375:fdf2:e014 with SMTP id p81-20020a1fbf54000000b00375fdf2e014mr2459367vkf.4.1658703960110; Sun, 24 Jul 2022 16:06:00 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a67:df0d:0:b0:357:5666:c73e with SMTP id s13-20020a67df0d000000b003575666c73els520525vsk.0.-pod-prod-gmail; Sun, 24 Jul 2022 16:05:56 -0700 (PDT) X-Received: by 2002:a67:b749:0:b0:357:8757:6e25 with SMTP id l9-20020a67b749000000b0035787576e25mr2648190vsh.84.1658703956545; Sun, 24 Jul 2022 16:05:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658703956; cv=none; d=google.com; s=arc-20160816; b=NHRHocoM+meFbdXO3e+0YmfPfYT+lDwfC0w5eESXEtQ5oKyWscBmeMxIo2b5srQgcm ZhX9LXcviiKv8D0BnBerZTTvQ5Gbovexw3fpvxDADlk+QwImRW6N/foUzxIeQM8rQ0iB d7AF2V3PHsD3MA0pbMR6tTs1vMkAjmf4T8IRh1LPduU9EZbl00boTREyZm4FhhMuC/jf autFoUKTlXNMUaBZOj8jYLdZhu25qo4aWrjiU/e87JvUbnMUTAcBXlaru5+kMTUMsvZd LzBjoT/m9D4hh911KjuMtk8/3GVW9hih5xVoa0ZUJLGzEyKWSunAc6OFURLUOfrn9GfQ PAlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:subject:references:in-reply-to:message-id:to:from:date :dkim-signature; bh=z/yEEGSLxUIoiFSALVHwBo3YpEOSsOvT+4JHW2S+50E=; b=tRx/qJWxW6qcP/c/drLchSKeE4M6C3u+3TEfDw0UaYQUIqD6VZLzPHAWToYY67ue1V sqvJ1qIIv9sTMiQaC18QXxFLuiO2RbviBTUvi0A+eS1ua9P7L7+51Uo4nD7ML8/62QFF qraESNIIX1RGAxXewxMi2GKpv/YeUZ+WsDY1v80wZHz4ul5WS9Mn/W2Tdckha7Wl0Naa tJ8sYfz2b3fTGZFcTJOzX1+9hGci4eViP9Y5KMlfCvPSh1Sh+H4VRMDBIP8ZDQPBgfLB UOJeQQdvYhWzbUZ/WQqSkY76JMFrqb7gFgua5lP7FFtSS5aqyoaCEn313FvKXegE5JR8 r7KA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@identitypraxis-com.20210112.gappssmtp.com header.s=20210112 header.b=FbU0eTxy; spf=neutral (google.com: 2607:f8b0:4864:20::102b is neither permitted nor denied by best guess record for domain of michael-QF1XyMwE1Uwv0rdu9s6TydBPR1lH4CV8@public.gmane.org) smtp.mailfrom=michael-QF1XyMwE1Uwv0rdu9s6TydBPR1lH4CV8@public.gmane.org Original-Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com. [2607:f8b0:4864:20::102b]) by gmr-mx.google.com with ESMTPS id ba19-20020a056130041300b003843b8913fcsi307537uab.2.2022.07.24.16.05.56 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 24 Jul 2022 16:05:56 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:4864:20::102b is neither permitted nor denied by best guess record for domain of michael-QF1XyMwE1Uwv0rdu9s6TydBPR1lH4CV8@public.gmane.org) client-ip=2607:f8b0:4864:20::102b; Original-Received: by mail-pj1-x102b.google.com with SMTP id b10so8806745pjq.5 for ; Sun, 24 Jul 2022 16:05:56 -0700 (PDT) X-Received: by 2002:a17:90b:1bc5:b0:1f2:9f59:3383 with SMTP id oa5-20020a17090b1bc500b001f29f593383mr4631341pjb.37.1658703954898; Sun, 24 Jul 2022 16:05:54 -0700 (PDT) Original-Received: from [172.24.1.231] ([98.45.176.123]) by smtp.gmail.com with ESMTPSA id z11-20020a17090a7b8b00b001f21f5c81a5sm9208985pjc.19.2022.07.24.16.05.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Jul 2022 16:05:54 -0700 (PDT) In-Reply-To: X-Readdle-Message-ID: 9f3b5b5e-7116-4432-9fe6-c11bc1865a2d@Spark X-Original-Sender: michael-QF1XyMwE1Uwv0rdu9s6TydBPR1lH4CV8@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@identitypraxis-com.20210112.gappssmtp.com header.s=20210112 header.b=FbU0eTxy; spf=neutral (google.com: 2607:f8b0:4864:20::102b is neither permitted nor denied by best guess record for domain of michael-QF1XyMwE1Uwv0rdu9s6TydBPR1lH4CV8@public.gmane.org) smtp.mailfrom=michael-QF1XyMwE1Uwv0rdu9s6TydBPR1lH4CV8@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.io gmane.text.pandoc:31081 Archived-At: --62ddd050_9daf632_18210 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Fantastic.=C2=A0=C2=A0Thanks I finally go something working.=C2=A0 =C2=A0I = will report back once I have the complete workflow up and running. Pretty c= ool!!!!! Michael J. Becker CEO Identity Praxis, Inc. michael-QF1XyMwE1Uwv0rdu9s6TydBPR1lH4CV8@public.gmane.org M: +1-408-242-5733 https://www.linkedin.com/in/privacyshaman/ Check my availability & schedule a meeting with me:=C2=A030 MIN=C2=A0or=C2= =A060 MIN On Jul 24, 2022, 15:20 -0700, Anton Sharonov , wr= ote: > > > > Michael Becker schrieb am So., 24. Juli 20= 22, 20:46: > > > Hi there, I have found a way to manually do this with BBEDIT. After e= xporting the file I Open the doxc file with BBEDIT (no zip or unzip require= d).=C2=A0 I can then do a global replace and replace the table style I want= word to use, e.g. replace "Table" with "MyTable". > > > > > > Here is my question. Does anyone know of a list to terminal commands = that I could write that would automatically go into the docx file and make = the changes I want. > > Something like this should do the trick (untested): > > unzip -x ~/storage/file-sample_100kB.docx word/document.xml > > sed -i -e 's!!!g' word/document.xml > > zip -u ~/storage/file-sample_100kB.docx word/document.xml > > Best regards, Anton > > > > Tinderbox can trigger runCommands. It is not clear to me what the ste= ps would be to get into the document.xml file, globally replace the style v= al and save it. > > > > > > Manually, this works every time. Now I'd like to automate the process= . > > > > > > <2022-07-24_11-42-52.png> > > > > On Sunday, July 24, 2022 at 9:32:07 AM UTC-7 Michael Becker wrote: > > > > > I'm really struggling with outputting formatted tables using pand= oc in MS Word.=C2=A0 I'm exporting HTML from a tool called Tinderbox. I the= n convert the clean HTML to a docx file with pandoc. The tables always come= through with NO styling, even after I've modified the default table style = in the the reference.docx file. > > > > > > > > > > I read tons of post on this, but for the life of me I can't figur= e it out. There are some that suggest going into the word XML but I'm not s= ure how to automate this. I'm on maxOS Silicon Anyone of any idea on how to= make this work? > > > -- > > > You received this message because you are subscribed to the Google Gr= oups "pandoc-discuss" group. > > > To unsubscribe from this group and stop receiving emails from it, sen= d 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/56f6388c-72f5-41c0-9d51-2a803644b6dcn%40googlegroups.c= om. > -- > You received this message because you are subscribed to a topic in the Go= ogle Groups "pandoc-discuss" group. > To unsubscribe from this topic, visit https://groups.google.com/d/topic/p= andoc-discuss/KoGYWQGhRm8/unsubscribe. > To unsubscribe from this group and all its topics, send an email to pando= c-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/CAMoRF4k0gDFQTzKTYKPCh5Uiyp2zm2BWsKji2rE9DRfJdvAKSw%40mail= .gmail.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/9f3b5b5e-7116-4432-9fe6-c11bc1865a2d%40Spark. --62ddd050_9daf632_18210 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Fantastic.  Thanks I finally go something worki= ng.   I will report back once I have the complete workflow up and= running. Pretty cool!!!!!


=
Michael J. Becker
CEO<= br style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" /> Identity Pr= axis, Inc. 
michael@ide= ntitypraxis.com
M: +1-408-2= 42-5733
https://www.linkedin.com/in/privacysham= an/

Check my av= ailability & schedule a meeting with me: 30= MIN= 60;or 60 MIN

On Jul 24, 2022, 15:20 -0700, Anton Sharo= nov <anton.sharonov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>, wrote:


Michael Becker <michael-QF1XyMwE1Uwv0rdu9s6TydBPR1lH4CV8@public.gmane.org> schrieb am S= o., 24. Juli 2022, 20:46:
Hi there, I have found a way to manually do = this with BBEDIT. After exporting the file I Open the doxc file with BBEDIT= (no zip or unzip required).  I can then do a global replace and repla= ce the table style I want word to use, e.g. replace "Table" with "MyTable".=  

Here is my question. Does anyone know of a list to terminal commands t= hat I could write that would automatically go into the docx file and make t= he changes I want.

Something like this should do the trick (untested):

unzip -x ~/storage/file-sample_100kB.docx word/document.x= ml    

sed -i -e 's!<w:tblStyle w:val=3D"Table"/>!<w:tb= lStyle w:val=3D"MyTable"/>!g' word/document.xml

zip -u ~/storage/file-sample_100kB.docx word/document.xml=

Best regards, Anton

Tinderbox can trigger runCommands. It is not clear to me what the step= s would be to get into the document.xml file, globally replace the style va= l and save it. 

Manually, this works every time. Now I'd like to automate the process.=  

<2022-07-24_11-42-52.png>
On Sunday, July 24, 2022 at 9:32:07 = AM UTC-7 Michael Becker wrote:
I'm really struggling with outp= utting formatted tables using pandoc in MS Word.  I'm exporting HTML f= rom a tool called Tinderbox. I then convert the clean HTML to a docx file w= ith pandoc. The tables always come through with NO styling, even after I've= modified the default table style in the the reference.docx file. 

I read tons of post on this, but for the life of me I can't figure it = out. There are some that suggest going into the word XML but I'm not sure h= ow to automate this. I'm on maxOS Silicon Anyone of any idea on how to make= this work?

--
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-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/56f6388c-7= 2f5-41c0-9d51-2a803644b6dcn%40googlegroups.com.

--
You received this message because you are subscribed to a topic in the Goog= le Groups "pandoc-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d= /topic/pandoc-discuss/KoGYWQGhRm8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pandoc-discuss+unsu= bscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://gro= ups.google.com/d/msgid/pandoc-discuss/CAMoRF4k0gDFQTzKTYKPCh5Uiyp2zm2BWsKji= 2rE9DRfJdvAKSw%40mail.gmail.com.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/pando= c-discuss/9f3b5b5e-7116-4432-9fe6-c11bc1865a2d%40Spark.
--62ddd050_9daf632_18210--