From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33270 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'William Lupton' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Re: Markdown/HTML: Convert CSS styles to ODT styles (enhancement) Date: Mon, 6 Nov 2023 16:04:06 +0000 Message-ID: References: <9b60d1f7-098c-4e8e-a801-764d0b754ef0n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000093395106097e01e1" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30031"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCS4HJ6WSAHBBA45USVAMGQESAUAGZY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Nov 06 17:04:26 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ed1-f63.google.com ([209.85.208.63]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1r025Q-0007Yb-8d for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 06 Nov 2023 17:04:24 +0100 Original-Received: by mail-ed1-f63.google.com with SMTP id 4fb4d7f45d1cf-5435093c7e8sf3600128a12.2 for ; Mon, 06 Nov 2023 08:04:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699286664; cv=pass; d=google.com; s=arc-20160816; b=UtrzqlhOEEgcLZbR21qXBPn7U1Ch6ou/1JyGtkRYReB/7PWN/00LpUxtDEDkzW8u+6 0kfpkM23AfISq3wIVD/Mq39RRTcd372btYW4UDCWTsrBsz7zLuySdPBGg9GvCSZ4JkPU A04tVA+cgseiBM5BcNx2UBIuIhKV/4OlYWPLdocCkitsEmEk6DqvD2d+kM39BZSRjRWb Uw9hT+nMc5LwzVmZYCasH1pamuYGDVyffHtu31mW6Ff6wS3ZOg8CCv20CYmckxlNR+kP cZMcCvSm8ngosnEYVF7uufa2qVJyku0CdDClZxpFlVtIqYqI08y6LZyfFvjZf6TCkdpq vXGw== 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:dkim-signature; bh=Tx3OhfRrbj6BQNKp5kB8vI5/zKIgmX1faL03ge122lw=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=QfaqR6Bg8nwYKSxqCAhd+2i4rynfpy4xxv9AXBjeDAtRJ7PFFhDODZWO/zOsey0e8k QhWmAbuBTGDNiHBnq1ayIHTOhYeb82zgOk5Kbv7PXOeUfEjDvUjp2GIMPsQf0k3t4rYt A/Y+h0CMUKjGMICaabRr1x+BY4o2b2RpSzTD8/DheJZ7ogo9xgBmGK+XSbyttpZ6r3Yo dBfpUMBI5OCbLp5OCWn8QCQu3Hf+CE6+GmqmeFJU/rrvi104fysfcJCwqeaoWkcDHTJ8 5buavgIvAv7e6WFhuLf/Yt+/q+aI55tZWxtNIpwvgZp3twv+21cw5XkKrjdCCPiTzyn+ +jiw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=UvxaYOmh; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::62c as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1699286663; x=1699891463; darn=m.gmane-mx.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version:from:to:cc :subject:date:message-id:reply-to; bh=Tx3OhfRrbj6BQNKp5kB8vI5/zKIgmX1faL03ge122lw=; b=dS1KyQ+XrpJLNVOptR/pTXGH4TW1y3cs0T3vTaGA3WqfhPKFzd1Lj8+YbKMf8Ibzll GwHzJCIaPdyaxrxUYY3/WXWpUjM2TW7Pqvz40LyKAxpU93sx5ykqO9vh4reFKIwA0H70 8o8vaR3BQaOXhYFb+Xmf3R1LRAuFicpEIS9Rqv3GubgHwioDYGVgVFgZIvqAFIqtE9gj wMOk43S23uIz1Q8nOk36+/IRYPBMvi6EKXYWSCkjAuqWi2lcTdhOp2tdr7N9ryvivx6i IYGXM0MDwV1l6HVtJCrgBhoB1c7Y+P1j1Is0KKss1lPzrYip39wNZTHbNj2 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699286663; x=1699891463; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Tx3OhfRrbj6BQNKp5kB8vI5/zKIgmX1faL03ge122lw=; b=UwkjiXW9awjcMsXWWFZOBvhUs26gW7coMJLXM0pQtu/HAtOKhWDdCYpz+fjwNz+lRY 9aOpqFOur13pw/Ka3k+UDEL6t51JffExI0LVzW1bDMgjfHytSZQvASU7brP7W0yb8W7b PIfiaK/8Y5QsFnlP45rIsx3TXbQCWX+HRXauhBROWZSwBG5AvP1iYFUe5lYVQTPN94Es VZRWQ+ib74i9zW9lmiqy+LlbdV94wwa6DsDJA0vFvR9EwV1p3JG+9Fnymskdoas1J+3y HrYzOaFiWWNMG X-Gm-Message-State: AOJu0Yy8PzZYfv0IQS/UBdKxasXAvJh7H2LiHq+3AYV6/lt6bU4/sr8d 7qBdvhzk61pEjinLK/hc4Kg= X-Google-Smtp-Source: AGHT+IH0czsbI5jlLTSq2Un1emhplyFMWQumMf4wtyIDnk1fk4jUbjq1WzCHJ98+JRN2uKTYWDddlw== X-Received: by 2002:a50:9e87:0:b0:53d:a1c0:410f with SMTP id a7-20020a509e87000000b0053da1c0410fmr22304533edf.2.1699286663377; Mon, 06 Nov 2023 08:04:23 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aa7:cd96:0:b0:540:1929:1578 with SMTP id x22-20020aa7cd96000000b0054019291578ls192643edv.1.-pod-prod-08-eu; Mon, 06 Nov 2023 08:04:18 -0800 (PST) X-Received: by 2002:a17:907:948e:b0:9de:cfa1:f077 with SMTP id dm14-20020a170907948e00b009decfa1f077mr3871569ejc.14.1699286658152; Mon, 06 Nov 2023 08:04:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699286658; cv=none; d=google.com; s=arc-20160816; b=LVCXN3YJWOEz8O2WcCVdouJeOa0nSM05x/xx8b5oCFIkqWccKw7qLFV4SaRTR/2MP/ cDn2JKxcxD8nDiRZ3n4rgDn/QQ0WLt2qHUar+Gne/TyH9IqBqG/B/u8HbFHaKrVLowV5 KhRlVNePwESUJyqNeCI60aKvt5K9+P77ArW3Txs+40PoGgoeIy4hoczt7vvmB7wI0Ydl h0FTySqvbkOJw4EcNBacBc8c09IrChBcQeEi57d31csuSW9nbbg+r4HHkXk1cDk83Xoa EsAXFmEf28+aQJoVpYdAckJfa+q/Zoh3mvcPKfqbQfYqR8jUSwkTUzqFdGTMw7wchoND Mdgw== 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=kh4bgaCtYpcq5omJLkZQcQkot/NKuG5uIbvh/9lgRf0=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=qE96y4mqMmXRliVMwy1qnta96KLN9H4vjZ1KKe471a3hWtn42u+myXFk3XNzwzMPt+ QDrRnyOMjM7Lv+xBZgh3F0ecF6F2pxRKk0IF4tDjv7d8pnFI+VAySS67hhYuLIsRVXwd 79C/XNLCpv+xgZcBFp+Fw/z3Ja+cg0o1TIMsWegKXl4l+347Cr+f5+LkxMEIOifKoV3H iU1EPguSEwa0FFtw7lSy+o/L0NAZT6hcZhrAIhRdUnfWDNnK5WycWRTsPiLg/Tjzdp7Z +ynURJ4VLk73w6np1cRTGIiS/hPRvbuzeJmBwk7Moc9ArJp7vGSQBLPsa4lbCqfP1CSX cXMg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=UvxaYOmh; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::62c as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org Original-Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com. [2a00:1450:4864:20::62c]) by gmr-mx.google.com with ESMTPS id a20-20020aa7d914000000b00542da7908e0si473598edr.2.2023.11.06.08.04.18 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Nov 2023 08:04:18 -0800 (PST) Received-SPF: pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::62c as permitted sender) client-ip=2a00:1450:4864:20::62c; Original-Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-9dbb3e0ff65so637837566b.1 for ; Mon, 06 Nov 2023 08:04:18 -0800 (PST) X-Received: by 2002:a17:907:d05:b0:9be:6bf0:2f95 with SMTP id gn5-20020a1709070d0500b009be6bf02f95mr17108333ejc.20.1699286657212; Mon, 06 Nov 2023 08:04:17 -0800 (PST) In-Reply-To: <9b60d1f7-098c-4e8e-a801-764d0b754ef0n-/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 header.s=google header.b=UvxaYOmh; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::62c as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org X-Original-From: William Lupton 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:33270 Archived-At: --00000000000093395106097e01e1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable This isn't an answer to your question, but it reminds me of a similar Typst discussion: https://github.com/jgm/pandoc/issues/8988. This issue is closed but I still intend (at some point) to act on jgm's suggestions (this hasn't been urgent for me because my custom writer is fine for now). So anyway, couldn't there be a similar approach for ODT or for any other non-HTML output format? an ODT-specific filter could set odt-style attributes that would be honored by the ODT writer in some appropriate ODT-specific way. On Mon, 6 Nov 2023 at 15:23, Kelly =E2=80=9CSTrRedWolf=E2=80=9D Price wrote: > Hello all. Using Pandoc to help convert my fiction (written in Markdown) > into ODT format so I can combine and publish... but in writing, I found a > specific use case. > > I need colored text. > > For instance, if I define a CSS stylesheet file to color said text, I can > use this Markdown: > > [Are the good guys really good if they use it for cover for evil?]{.rose} > > I can work around it a bit by exporting to HTML > (markdown_phpextra+bracketed_spans) and opening that into LibreOffice, bu= t > that opens a whole can of LibreOffice worms relating to web vs PDF/print > formatting. > > Is there a way for Pandoc to translate the CSS stylesheet into ODT styles= , > and apply said styles as wanted? > > -- > 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/9b60d1f7-098c-4e8e-a801-= 764d0b754ef0n%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/CAEe_xxg-6qcmSgvqtHCZgBMBG3UyMhLyLai1xU2Aa39n%2BZJfvQ%40mail= .gmail.com. --00000000000093395106097e01e1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This isn't an answer to your question, but it reminds = me of a similar Typst discussion:=C2=A0https://github.com/jgm/pandoc/issues/8988. This issue= is closed but I still intend (at some point) to act on jgm's=C2=A0sugg= estions (this hasn't been urgent for me because my custom writer is fin= e for now).

So anyway, couldn't there be a similar a= pproach for ODT or for any other non-HTML output format? an ODT-specific fi= lter could set odt-style attributes that would be honored by the ODT writer= in some appropriate ODT-specific way.

On Mon, 6 Nov 2023 at 15:23, Ke= lly =E2=80=9CSTrRedWolf=E2=80=9D Price <strredwolf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Hello all.=C2=A0 Using Pandoc to help conv= ert my fiction (written in Markdown) into ODT format so I can combine and p= ublish... but in writing, I found a specific use case.

=
I need colored text.

For instance, if I defin= e a CSS stylesheet file to color said text, I can use this Markdown:
<= div>
[Are the good guys really good if they use it for cover = for evil?]{.rose}

I can work around= it a bit by exporting to HTML (markdown_phpextra+bracketed_spans) and open= ing that into LibreOffice, but that opens a whole can of LibreOffice worms = relating to web vs PDF/print formatting.

Is th= ere a way for Pandoc to translate the CSS stylesheet into ODT styles, and a= pply said styles as wanted?

--
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/9b60d1f7-098c-4e8e-a801-764d0b7= 54ef0n%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://group= s.google.com/d/msgid/pandoc-discuss/CAEe_xxg-6qcmSgvqtHCZgBMBG3UyMhLyLai1xU= 2Aa39n%2BZJfvQ%40mail.gmail.com.
--00000000000093395106097e01e1--