From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30756 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Feature Idea: docx -> HTML table styling Date: Fri, 17 Jun 2022 11:36:08 -0600 Message-ID: References: <98db6638-9fe8-90bc-8fc0-051d0307983c@usa.net> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27568"; mail-complaints-to="usenet@ciao.gmane.io" To: Daniel Staal , pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBDPXWKKQMGQEEZRQCBA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jun 17 19:36:17 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yw1-f187.google.com ([209.85.128.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o2FtI-0006wQ-P0 for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 17 Jun 2022 19:36:16 +0200 Original-Received: by mail-yw1-f187.google.com with SMTP id 00721157ae682-2eb7d137101sf44090117b3.12 for ; Fri, 17 Jun 2022 10:36:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1655487375; cv=pass; d=google.com; s=arc-20160816; b=ZvIar1LGYL/x8oLjs2dmImeTPWPuvR2B7efhlB0pJ/SIKDgqmdCubYBaNGoN5fmn3e R8A+zHLWFk3XaDH1vX2Oh1XRBPpCRFjHpkrC0WuStKF2461UgmfSv/ciL/hiUBqI1axJ SDKDFrcrh8Lk6cgAZNEylLVXn+7eTovCAfCRxjCdizziDTHviO04raJSKUA0fVv4kDd8 ncLuowS49LeYBH2Ygx5HNueHa6rwk7H0tnxd7O9AJ9yyV7WBsiKiA9rws9CZYZDhJe6t SBBYD9vt8MG25IkoN5P5bx0YrWhw49OcVtVX+AmzvSJQyIzhzKBRpGgVFT6DxH4tF9vz pR1Q== 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:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=/PVRpxNP1w2DkcFgKk5w8YJfmeB+C1I1HRrebfA/TQ4=; b=kl3MRWrpnSCe5O/ejm5Q0iYBhg/HHx4QIl6hhDt1P05ZtlxLIu7GynbcXi6hY5/EwI 9oqH4qeLwWMltgNOWIBNY5fFTtBUhoGahHKPTrSqAS4p1+PP7fZZuls/Zr04GwKngiHq KulFfqQyhyICPIrNYpC6/BeaEiRgdRf2wN+j0d4qCdi9FEYydCOdwT07WUpuIFsDkD08 0p9NeE76TGOOrOQEA28TmA+nkg+xjmoEtdc/WzAQN+bRdbKR6KdyOZQNq7uQrAeVLeVD mk/Hc9CmRYi4jIq1XSU1/Sjzv1sDLHP15Ua+9WidYhxx9dohW8DxYGJchoccnH3HKnrZ aGyw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley.edu header.s=google header.b=XIuiVpum; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1032 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=berkeley.edu DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:subject:in-reply-to:references:date:message-id :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=/PVRpxNP1w2DkcFgKk5w8YJfmeB+C1I1HRrebfA/TQ4=; b=UPZRMk3+Yz0/uQvDCnVq0tHLHHIWe14fU3nYcA2zgnzCSgvuY5TkxNsYOBGuwbMzku Brr7UPJawvLyprhbLzgcI9T9oAStEvv2mcCMf2y/zswqU3GCAswObE4Jv4TmuDn8h6pc qpFFvda3HS73h2upbGY9zKp4Nat+JUQkbi1AEZQ8yum5Z9lzehfzegu7V7kuy9FB73Z2 IlqAPHN7tYUUHEsnLv4a4omzkZjqWvWAfIyzLOl5ULEtqGcEyKemeTl1DATFfL4fnOvL qh+UG6sBDrzvjCIyZzpxMEmACo4kU8tcbQxRRRedO1CrPzebelnPjEF9tCNhs8quUEMq d3rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id: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=/PVRpxNP1w2DkcFgKk5w8YJfmeB+C1I1HRrebfA/TQ4=; b=WyBtF6y2TZ9mD6WAA0l4JlvxnCF3jdx9BDw+igoImkGBP+kLhk8A5nLwHTd+6txNd+ c6gKv4xw7T6NohEXJYGH3UHUNhiFnMIRAgXvjuGZk5Xeb3576olxSXl4WWaLsVnTZJkY Oo5KPwAIf5sC/5PuPNLka/eLzAOWZ6KrGMDqhRQ8ZRyWjyq/WMV5C3d+ekSKAdCG5CdV biNlMj3bDnaNqF0sRUsecAAL0oTafpyb9DU0W3O0d32NineHwG6d1ji936kHg7l31BHS 5LbgkLz2btDhGba9zlyuQtBOmll0o/sBWVnff+aF/mZp9pNvlSHJ7yanszNyJXo5a5pa vi8A== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora9JYdowZ7RpOUAO76RS2x8kGS3VB0rP9T40alyCvCSRyjClNwa7 K0HLbLmg2xSlJK90CPlYT4E= X-Google-Smtp-Source: AGRyM1t87nKad2u72Ar7CeUSVhODzX3keWHBvihhVZ3OzSjn+Go9DcIExu6SYexF7n9/Zhu2yUmESw== X-Received: by 2002:a25:ca88:0:b0:668:ad34:77b2 with SMTP id a130-20020a25ca88000000b00668ad3477b2mr6983824ybg.409.1655487375823; Fri, 17 Jun 2022 10:36:15 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a81:9b0e:0:b0:317:7fe0:b30 with SMTP id s14-20020a819b0e000000b003177fe00b30ls1359605ywg.4.gmail; Fri, 17 Jun 2022 10:36:13 -0700 (PDT) X-Received: by 2002:a81:1603:0:b0:317:6f94:c002 with SMTP id 3-20020a811603000000b003176f94c002mr10323017yww.233.1655487373148; Fri, 17 Jun 2022 10:36:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655487373; cv=none; d=google.com; s=arc-20160816; b=HtXNUlZtMOOXvY9WBjErnfWVrIFNOJeKDCb2fCzaz1NMoZu8IcOFisWkxF6Q664GI0 6YLjUixZGOQd2a2iAlJiJF1XS946HEKGNdsETHCMerYusctPjyvqj/yHyd5AcqWvOoh2 LmkNBmvJ/bvsG4JM1K0HG4YZ3x/X14TkjPhGqJV95aHPN449bABRDqO1Rg9pQS8EmXnZ 1ExLXx78IKMZHmkVz5PBNf2D7qAkNW3qrRZN0HekmQW/HFq/pvRCVyjFQVOo9QpAIEER rG0TsGBjd1UJLCbfpZ8YZAyZ+ejW7LruaSuWXZqxQu0kl8TgWZucHirBsWRXc9yOycw2 jMsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=mj2YnoSgBtefq//QyFZIIIHDeOu5ajx4K9ftl+W3YGg=; b=UWA4BXMkoYlUzhqaypmlzu2iAG0PucQhNIPYdD7Bi2kngOpfTZDqmCtwxD+Ip3ud0o E2zIxvaxbVfXkMkILueSyjyO8gyRiGLIzgcdsMge9H/6UlllXVRsTUlTL/ljHkj9qxPC LEiYhUau8W9KkcNbRjFuRJ3W8PhFb1q+9YoG0H3p5ri+KHLA1Y+OOFBtfhlg+U769CUB 3y9SNH4FDVMByz6SvOI5Zlo00QWvlrRZ0J/lGYyvjaf6hWeR/DNrsr1ddABN9vZM1/i2 sWlx9kCNaXzUy7vodRtEYdMaiHmay2rvIrTjFyQsM02M9v2SNus9oGbBT7rv97jmP0Dq uUog== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley.edu header.s=google header.b=XIuiVpum; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1032 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=berkeley.edu Original-Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com. [2607:f8b0:4864:20::1032]) by gmr-mx.google.com with ESMTPS id 143-20020a810e95000000b0030c468b7bd1si330058ywo.1.2022.06.17.10.36.13 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Jun 2022 10:36:13 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1032 as permitted sender) client-ip=2607:f8b0:4864:20::1032; Original-Received: by mail-pj1-x1032.google.com with SMTP id go6so31169pjb.0 for ; Fri, 17 Jun 2022 10:36:13 -0700 (PDT) X-Received: by 2002:a17:902:f792:b0:168:e97b:3c05 with SMTP id q18-20020a170902f79200b00168e97b3c05mr10684482pln.94.1655487372128; Fri, 17 Jun 2022 10:36:12 -0700 (PDT) Original-Received: from hermes.johnmacfarlane.net ([45.32.92.108]) by smtp.gmail.com with ESMTPSA id n1-20020a17090a73c100b001df4b919937sm5815792pjk.16.2022.06.17.10.36.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jun 2022 10:36:11 -0700 (PDT) Original-Received: by hermes.johnmacfarlane.net (sSMTP sendmail emulation); Fri, 17 Jun 2022 10:36:09 -0700 In-Reply-To: <98db6638-9fe8-90bc-8fc0-051d0307983c-Jdbf3xiKgS8@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 header.s=google header.b=XIuiVpum; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1032 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=berkeley.edu 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:30756 Archived-At: 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.