From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/11741 Path: news.gmane.org!not-for-mail From: Matt Dawson Newsgroups: gmane.text.pandoc Subject: Re: Table cell horizontal alignment (docx) Date: Thu, 15 Jan 2015 07:17:07 -0800 (PST) Message-ID: <9e32a3c7-826d-4a55-9f57-962ffad1823e@googlegroups.com> References: <8ce26c52-2502-4c4a-bcc5-9de9d0f62928@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_6901_220357715.1421335027403" X-Trace: ger.gmane.org 1421335033 12818 80.91.229.3 (15 Jan 2015 15:17:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Jan 2015 15:17:13 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCZZKOOVUMRB45T36SQKGQEJVZO4DY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jan 15 16:17:09 2015 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-qa0-f56.google.com ([209.85.216.56]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YBmAW-00004w-Uz for gtp-pandoc-discuss@m.gmane.org; Thu, 15 Jan 2015 16:17:09 +0100 Original-Received: by mail-qa0-f56.google.com with SMTP id n8sf2103576qaq.1 for ; Thu, 15 Jan 2015 07:17:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :content-type:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe; bh=s3F4AJWyEYZZjxcpAHaL4aCQKLh2upthoKPWclVz+Vk=; b=lbia/fRnR8YO3uf/NdwEuKgwtixFZ7X+TWDVyNaKadup0igULNJd55h59N7RZHs3uT 1ib8Avw0C1RJoztghEK0Aw/o7jJp9t/BjJnbryZR9URE/JOTWJ48d4y2un8Zv49lzlIl 34oDdi9kjVDnNUc9zFM5ODa9IE+SOElPp3rwui6a5CkptLQOtZXywqT3TGiIM+llQ1Sr kfnxp0eXsxIJ+JVfq2r4UUOZ0WYIVXlFX3giw24BsPaR+P/RxvwlNrtI48zmGMS1hQgF K56URzbmEIoJbQ6lhL43i3RhpsqP/imKvl2wd4HWwWhhp+Vj2jEQjx2BSgAblt7LS2iZ nUeg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :content-type:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe; bh=s3F4AJWyEYZZjxcpAHaL4aCQKLh2upthoKPWclVz+Vk=; b=iMUt9XaNqk7ngJKVIdx5qiRWQtpCrPHq2w6lOxmopHCxkuwQWTuno8crGIF4Fwn1g3 58P+sjxd3JGrhWp+Uagq/8pnBErTzHjPUT4cA03z994o3iolZ6dvdhqkfl8O1GjDNzhc J7qmA/FCKzB8T1anUIvcnFCuFLhp2kG6t8k9RC9CfU+NInQcTiwRkXZeWawcpmMWvTSS TT94Ht+1/3jWuWH1tpROQiGg2zATI4Dxxrd97fmu4ZgnEyJj8jidgPc2TPDQ5cbpL6xY 4q38CJ6SOT/EAB4nFYcGdtM6Bb1zV4fggLQkYURSEisBycwJvHGW8bpxQD4Y+C/0Top0 FUTg== X-Received: by 10.140.32.164 with SMTP id h33mr79207qgh.4.1421335028344; Thu, 15 Jan 2015 07:17:08 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.140.48.35 with SMTP id n32ls1031056qga.30.gmail; Thu, 15 Jan 2015 07:17:07 -0800 (PST) X-Received: by 10.140.48.97 with SMTP id n88mr9894qga.35.1421335027760; Thu, 15 Jan 2015 07:17:07 -0800 (PST) In-Reply-To: X-Original-Sender: matt.dawson84-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:11741 Archived-At: ------=_Part_6901_220357715.1421335027403 Content-Type: multipart/alternative; boundary="----=_Part_6902_1290308577.1421335027403" ------=_Part_6902_1290308577.1421335027403 Content-Type: text/plain; charset=UTF-8 Thanks Matthew. @Mark Szepieniec mentioned using a filter as a work-arround. I have just read up on them in the documentation but it seems a little out of my skill-set! I guess i'll just have to see the outcome of the issue you have raised. thanks again. Matt On Thursday, January 15, 2015 at 12:46:00 PM UTC, Matthew Pickering wrote: > > I opened an issue here. https://github.com/jgm/pandoc/issues/1881 > > On Thu, Jan 15, 2015 at 10:47 AM, Matt Dawson > wrote: > > I have just ran a test using markdown as the input that includes a table > > with alignment: > > > > # Tables > > ## multi-line table example > > > > ------------------------------------------------------------- > > Centered Default Right Left > > Header Aligned Aligned Aligned > > ----------- ------- --------------- ------------------------- > > First row 12.0 Example of a row that > > spans multiple lines. > > > > Second row 5.0 Here's another one. Note > > the blank line between > > rows. > > ------------------------------------------------------------- > > > > > > Pandoc successfully writes a docx output file that contains the table > > alignment. So this confirms your suspicions Mark that the issue lies > with > > the html reader. > > > > Can i report this as a bug? How am i best to do about that? > > > > Matt > > > > > > > > On Wednesday, January 14, 2015 at 2:29:04 PM UTC, Matt Dawson wrote: > >> > >> Thanks for your input Mark. > >> > >> I have read up on the table alignment for markdown. This reminded me > that > >> i wasn't including a in my html table in the input file. I have > >> added that and set the alignment for each column on the but the > >> alignment still isn't brought through to the output docx :-(. The full > >> extent of my workflow involves: > >> > >> an editing team writing articles in Wordpress which i then export to a > >> single xml. > >> Run a python script on the xml to convert to multiple html files > >> Run pandoc on the html files to convert to docx and multiple other > >> formats. > >> > >> I can't ask the writing team to write in markdown and many of the > articles > >> include tables. I need to be able to allow the writers to set the table > >> alignment themselves using tools they are familiar with. > >> > >> The only thing i can think of at the moment is look for a script to > >> convert my wordpress xml to markdown, however the first one i tried > didn't > >> support markdown tables. > >> > >> Matt > > > > -- > > 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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . > > To post to this group, send email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > . > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/pandoc-discuss/d35eb586-e8ab-4a33-94d5-d9f68c1da8bc%40googlegroups.com. > > > > > For more options, visit https://groups.google.com/d/optout. > -- 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/9e32a3c7-826d-4a55-9f57-962ffad1823e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_6902_1290308577.1421335027403 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks Matthew.

@Mark Szepieniec mentio= ned using a filter as a work-arround. I have just read up on them in the do= cumentation but it seems a little out of my skill-set! I guess i'll just ha= ve to see the outcome of the issue you have raised.

thanks again.

Matt


= On Thursday, January 15, 2015 at 12:46:00 PM UTC, Matthew Pickering wrote:<= blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.8ex;bord= er-left: 1px #ccc solid;padding-left: 1ex;">I opened an issue here. h= ttps://github.com/jgm/pandoc/issues/1881

On Thu, Jan 15, 2015 at 10:47 AM, Matt Dawson <matt.d...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> I have just ran a test using markdown as the input that includes a= table
> with alignment:
>
> # Tables
> ## multi-line table example
>
> ------------------------------------------------------------<= wbr>-
>  Centered   Default           R= ight Left
>   Header    Aligned         Ali= gned Aligned
> ----------- ------- --------------- -------------------------
>    First    row         &n= bsp;      12.0 Example of a row that
>                   &nb= sp;                 spans multiple = lines.
>
>   Second    row           =       5.0 Here's another one. Note
>                   &nb= sp;                 the blank line = between
>                   &nb= sp;                 rows.
> ------------------------------------------------------------<= wbr>-
>
>
> Pandoc successfully writes a docx output file that contains the ta= ble
> alignment. So this confirms your suspicions Mark that the issue li= es with
> the html reader.
>
> Can i report this as a bug? How am i best to do about that?
>
> Matt
>
>
>
> On Wednesday, January 14, 2015 at 2:29:04 PM UTC, Matt Dawson wrot= e:
>>
>> Thanks for your input Mark.
>>
>> I have read up on the table alignment for markdown. This remin= ded me that
>> i wasn't including a <thead> in my html table in the inp= ut file. I have
>> added that and set the alignment for each column on the <th= > but the
>> alignment still isn't brought through to the output docx :-(. = The full
>> extent of my workflow involves:
>>
>> an editing team writing articles in Wordpress which i then exp= ort to a
>> single xml.
>> Run a python script on the xml to convert to multiple html fil= es
>> Run pandoc on the html files to convert to docx and multiple o= ther
>> formats.
>>
>> I can't ask the writing team to write in markdown and many of = the articles
>> include tables. I need to be able to allow the writers to set = the table
>> alignment themselves using tools they are familiar with.
>>
>> The only thing i can think of at the moment is look for a scri= pt to
>> convert my wordpress xml to markdown, however the first one i = tried didn't
>> support markdown tables.
>>
>> Matt
>
> --
> 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-discus...@googlegroups.com.
> To post to this group, send email to pandoc-...@googlegroups.com.
> To view this discussion on the web visit
> https://group= s.google.com/d/msgid/pandoc-discuss/d35eb586-e8ab-4a33-94d5-d9f68= c1da8bc%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

--
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/9e32a3c7-826d-4a55-9f57-962ffad1823e%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_6902_1290308577.1421335027403-- ------=_Part_6901_220357715.1421335027403--