From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30784 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: William Lupton Newsgroups: gmane.text.pandoc Subject: Re: Feature Idea: docx -> HTML table styling Date: Tue, 21 Jun 2022 18:42:26 +0100 Message-ID: References: <98db6638-9fe8-90bc-8fc0-051d0307983c@usa.net> <3dff9bb1-eed9-4252-9b72-1aa090c5865fn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000199f2705e1f8bff1" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22723"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCS4HJ6WSAHBBD4GZCKQMGQEQFVYEZI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jun 21 19:42:43 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pf1-f186.google.com ([209.85.210.186]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o3htj-0005kO-6w for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 21 Jun 2022 19:42:43 +0200 Original-Received: by mail-pf1-f186.google.com with SMTP id z4-20020a056a001d8400b005251a1d6bdasf2746067pfw.18 for ; Tue, 21 Jun 2022 10:42:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1655833362; cv=pass; d=google.com; s=arc-20160816; b=W533mlgK5KB8tO7ZI8W00y9ON+tfBxKnMYywLwlWGVjSq8ceaR/ffjI/OIpwqunL62 R3xHGrIaKWsljhwQwSIktH8qaepvmpo+4Fip3gX/+LGJuPq/v6olBGCxhSWEMJWyazaj noui5B9sjLWXuWbrv3xlYEnG5yQ/aAO96QKIcLiHLjyX4TrfulcHPfFJ3WseLKD6w4fT wed8a8WUKBKqR8lIyQcRb5CZeZba/nfE3pNvYvj66N5tSiFaAa1WOrAFh3P+C2u2BCZE neM8eWtpRL8HUpo34oXQDkRhS1YELA9s1rpXXOuWSlr8G65FzYuZACRA12NqWz7pGx+Z dEMQ== 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:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature; bh=VqekSGo3vyKUCTlWGuY2uSt2mQKqhGQEm1+/E8P4e+M=; b=YyjJHPkro6Y5u1BLV+EKlMLpUglxUDsVjJxhlsr3HY6b/PU0k3JS/+eMlm7TDHSmxR dHxIGLGKKdlwAm6pXNleVEQJdK/imWwFBs11hN9BLrIK5muXg45YXyYXnL5i/OqKu2XP t913HWACiuGMPTGiuvAu9y28KHiHIIiY/ADkkQBuZpvpDFHgJ88NKrW8Phz/cHLNAGkR Y1X67FTHNlYvy5zcaRbdJXKEcHOhYpsL2Alt1zp5k7MiIq6Thl5tgyvokp83Peh3Ophn 4kxjOskJgLGijG9Qm0UT2NsyTXcwD1hVQdCOLfdkwD8RZp0E7JrVfVrTePywELkfRtz0 kfHg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@broadband-forum-org.20210112.gappssmtp.com header.s=20210112 header.b=63BjMn0i; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2607:f8b0:4864:20::102d as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to: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=VqekSGo3vyKUCTlWGuY2uSt2mQKqhGQEm1+/E8P4e+M=; b=KDevur/7wwdFwychP4olHxJDHQvujIzendpaOjKe4TUp92Ac7OITqqPAg2hqgTn7nf 2c4IurGhL4XtOyRYfmJMgTTN/wwc7QHeroXR4sVjzjG9g5QbwrfjxStzLIkbro7titzX yUPtouENluzuJXWYHUsmh2i9VdqIamcNjOX3xRbwiNqwniwwTAz50JT26gqyTPl6Ql3r 5ES+CIMyZLZooai3+888pwN2FH1sXs1CPRlgKOdDy/ZhuXrs1gOCzJcsXhjTrvMiQpTX pWI/0OvxCOzlNkZcOgfa88ouM4DjwMH9AFmXxeEHqdeWk7Hj/cVGeqd41Rxl/SOx6wKx enJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to: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=VqekSGo3vyKUCTlWGuY2uSt2mQKqhGQEm1+/E8P4e+M=; b=fqeMetDKhKXls0H/AT1zYV5Eko1r/yFCSX6BJpmP1jtGRgqS+rJVATvbdQGUGsTNyw s4Pq52m5NZZuaGXV0bzCdCMTzN/sub1xRdBBMRGaxJL2D13s/C0OcvLkLVdO4d45+wSZ 8MQahBoEBWpumOV+hAdINOe/HKX39gJNnkOy8pmQdtdJP7AvNCVqfYT36FryVsDh+VCe j43P+vgPiePJquzCnEUOYt6PEVH8Vv5/NNF6jfdyADGsdGG20II8wwNajFsgGqzBnE4m 3eVugY7jM+aWWS7N+NO17IDY7oSOFkTAuJXGGxKR+5Sz382fayaY7cOB0e+Oafsowi+C UEMQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora/cOAb18rBZWCFfEBGP0OeC254Mv9fJeg/IQqxCocfIU+rtkfC/ PPZb2c3CJFUYffEfrXZ3FMI= X-Google-Smtp-Source: AGRyM1v1He2xdTW6ENayT9O+2QLXU20ZYCc3BOu8ekomJmOfnHxTqVWlomSm9/1Uwfvcj8aOMaGeew== X-Received: by 2002:a17:903:22d1:b0:166:4bc1:a1da with SMTP id y17-20020a17090322d100b001664bc1a1damr29210068plg.13.1655833361941; Tue, 21 Jun 2022 10:42:41 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:902:e542:b0:16a:14be:17e3 with SMTP id n2-20020a170902e54200b0016a14be17e3ls5609148plf.4.gmail; Tue, 21 Jun 2022 10:42:38 -0700 (PDT) X-Received: by 2002:a17:90b:3ece:b0:1e8:90be:4cda with SMTP id rm14-20020a17090b3ece00b001e890be4cdamr34661647pjb.67.1655833358663; Tue, 21 Jun 2022 10:42:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655833358; cv=none; d=google.com; s=arc-20160816; b=jf7Yj3i3523cJjqo4NS86SBL1EcPRSwXUvIO4RUbtZEe0t4huU7ACPaescfWu6TYKP 6zVc4UzxacgVdvSDjlG638lMDPlBL9Yd7npqg6YxMP6alRzgEe8rjmVpXOGw0fZ0CTKv KgJfRAcSodXYDIwlHpUG8Hw5dq7wlIiBLJWWoLi0PQTgcysG4AwIGYh7Lz7TP0rYmRGL QIVzRb154lqejMpOuPV1LTmlf12XYSAvdi3uIJpaUt4OAsux1yqQ3jNSWORPMxQveCNe Iep4o4JfiO/AeiCkuMX5qy167yVKPu2sJ8eZRlZt6uSwWbc1GiMVhfQGATnz5dkbsid9 oEBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=r1za5zFDJ6qK2LptjZtQyqkmsHomDyxFmOFJLnC0RVw=; b=cBwCRe3N3nE4Qq16urplFNKty/DAuygwaPdwp9UzVMm6qUVxupRTLLMaP8XszWvnb7 KX92bpCK6EgbiTVu0KFPdeEIt4KUbj5z13zIX8crZ7knJ14i6k+tehS39KJhnJisBOH4 k5INyjqnN3+fOLziSQkivAKaFOJF7VFqvnoJq2ZuVmz+AT3bE6xxp8M0scbm3WxdNjvG YmVgilUhwLyAdY7DipSwgZ0nFY+OoDBohKJEfpTppRD7Fu+/JMovl6umlmoujyYOvUM+ kZpW0TsPSXwR3SCd94XY6nAX83RR47pUuVGq51ivLtBsRBTd0wBkp3ZzYrBBWzmTj1+D HB4Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@broadband-forum-org.20210112.gappssmtp.com header.s=20210112 header.b=63BjMn0i; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2607:f8b0:4864:20::102d as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org Original-Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com. [2607:f8b0:4864:20::102d]) by gmr-mx.google.com with ESMTPS id k11-20020a17090a62cb00b001eaee288f91si612447pjs.1.2022.06.21.10.42.38 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Jun 2022 10:42:38 -0700 (PDT) Received-SPF: pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2607:f8b0:4864:20::102d as permitted sender) client-ip=2607:f8b0:4864:20::102d; Original-Received: by mail-pj1-x102d.google.com with SMTP id y13-20020a17090a154d00b001eaaa3b9b8dso14168747pja.2 for ; Tue, 21 Jun 2022 10:42:38 -0700 (PDT) X-Received: by 2002:a17:902:ed8e:b0:16a:147b:9044 with SMTP id e14-20020a170902ed8e00b0016a147b9044mr17029247plj.85.1655833357810; Tue, 21 Jun 2022 10:42:37 -0700 (PDT) In-Reply-To: <3dff9bb1-eed9-4252-9b72-1aa090c5865fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@broadband-forum-org.20210112.gappssmtp.com header.s=20210112 header.b=63BjMn0i; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2607:f8b0:4864:20::102d as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@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:30784 Archived-At: --000000000000199f2705e1f8bff1 Content-Type: text/plain; charset="UTF-8" Are you aware of this list-table filter (it supports rowspan and colspan)? https://github.com/pandoc/lua-filters/tree/master/list-table I've fixed a probable align/widths bug for which I haven't yet submitted as a pull request (sorry...). Also, I'm not sure that its pandoc version logic is quite right. It's been working fine for me with pandoc 2.16.1. On Tue, 21 Jun 2022 at 17:49, ivo....-xwz7R8GQi1g@public.gmane.org wrote: > > my use case is to use pandoc md as a quasi-universal way to write text > that I can output to pdf, html, and pptx. unfortunately, I am limited by > the lack of multi-column cells :-(. > > > > On Friday, June 17, 2022 at 10:36:15 AM UTC-7 John MacFarlane wrote: > >> Daniel Staal writes: >> >> > On 6/16/22 1:21 PM, John MacFarlane wrote: >> >> I don't know what the best solution is. Pandoc is really >> >> designed to preserve the features of documents that are encoded >> >> in its types. Anything else -- including the use of >> >> "stringly typed" attributes -- is a bit of a hack, and tends to >> >> lead to unmaintainable messes down the road. >> >> >> >> We could try to establish some generic conventions for >> >> representing things like vertical-alignment in the attributes, >> >> e.g. with a "vertical-align" attribute that gets interpreted >> >> by different writers, but as I said, once we depart from the >> >> structured types things get to be a bit of a mess. >> > >> > A thought: One option would be to suggest some generic conventions for >> > readers, but maintain that *writers* will ignore anything not in the >> > official AST. This would allow people like the original poster to >> > handle many issues with custom LUA filters/writers, and if any >> > particular attribute becomes widespread in readers you can decide if >> you >> > want to adopt it into the official AST and add it to writers. >> >> That's more or less what I was thinking. >> > -- > 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/msgid/pandoc-discuss/3dff9bb1-eed9-4252-9b72-1aa090c5865fn%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 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/CAEe_xxgMdDR%3DXZkZLJhPDHdouxwJ%3Djb53mrsn%2B6YRp1MuEC6vw%40mail.gmail.com. --000000000000199f2705e1f8bff1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Are you aware of this list-table filter (it supports rowsp= an and colspan)?=C2=A0https://github.com/pandoc/lua-filters/tree/master/list-= table

I've fixed a probable align/widths bu= g for which I haven't yet submitted as a pull request (sorry...). Also,= I'm not sure that its pandoc version logic is quite right. It's be= en working fine for me with pandoc 2.16.1.

On Tue, 21 Jun 2022 = at 17:49, ivo....-xwz7R8GQi1g@public.gmane.org <ivo.welch-xwz7R8GQi1g@public.gmane.org> wrote:

my = use case is to use pandoc md as a quasi-universal way to write text that I = can output to pdf, html, and pptx.=C2=A0 unfortunately, I am limited by the= lack of multi-column cells :-(.



On Friday, J= une 17, 2022 at 10:36:15 AM UTC-7 John MacFarlane wrote:
Daniel Staal <DSt...-Jdbf3xiKgS8@public.gmane.org> writes:

> On 6/16/22 1:21 PM, John MacFarlane wrote:
>> I don't know what the best solution is. Pandoc is really
>> designed to preserve the features of documents that are encode= d
>> in its types. Anything else -- including the use of
>> "stringly typed" attributes -- is a bit of a hack, a= nd tends to
>> lead to unmaintainable messes down the road.
>>=20
>> We could try to establish some generic conventions for
>> representing things like vertical-alignment in the attributes,
>> e.g. with a "vertical-align" attribute that gets int= erpreted
>> by different writers, but as I said, once we depart from the
>> structured types things get to be a bit of a mess.
>
> A thought: One option would be to suggest some generic conventions= for=20
> readers, but maintain that *writers* will ignore anything not in t= he=20
> official AST. This would allow people like the original poster to= =20
> handle many issues with custom LUA filters/writers, and if any=20
> particular attribute becomes widespread in readers you can decide = if you=20
> want to adopt it into the official AST and add it to writers.

That's more or less what I was thinking.

--
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 pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https= ://groups.google.com/d/msgid/pandoc-discuss/3dff9bb1-eed9-4252-9b72-1aa090c= 5865fn%40googlegroups.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://g= roups.google.com/d/msgid/pandoc-discuss/CAEe_xxgMdDR%3DXZkZLJhPDHdouxwJ%3Dj= b53mrsn%2B6YRp1MuEC6vw%40mail.gmail.com.
--000000000000199f2705e1f8bff1--