From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33277 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Kelly Price Newsgroups: gmane.text.pandoc Subject: Re: Markdown/HTML: Convert CSS styles to ODT styles (enhancement) Date: Tue, 7 Nov 2023 10:28:21 -0500 Message-ID: References: <9b60d1f7-098c-4e8e-a801-764d0b754ef0n@googlegroups.com> <8f4c5470-82f5-44c8-8f17-3f807ccdbd11n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4637"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCE4XGHS64HBBIVPVGVAMGQEMBGFZSI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Nov 07 16:28:38 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-io1-f56.google.com ([209.85.166.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1r0O0M-00011b-2Y for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 07 Nov 2023 16:28:38 +0100 Original-Received: by mail-io1-f56.google.com with SMTP id ca18e2360f4ac-7a9545b8e2bsf482413439f.0 for ; Tue, 07 Nov 2023 07:28:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699370917; cv=pass; d=google.com; s=arc-20160816; b=APNbcN9pmd8znUYHRaR93fnxFtykgHW+HaxON9YCxlDImW+0MlT2mQzQ02p/2jQhgY q6+l7KKGeLtDDmWpK6zWJWMlqrDiC5adipxc1YplIeQTfRY+HnwAavHUzVrVAPQYHnS1 9EpkBXEDLZRtq03BzrERZt76ePJ/ThoODCeDVWDvkR+X5Nb/+0sszjTGqOw8leNBylDq OVTuKeP1ihK78DkmuHXPQ3mtaAoLLcLZcTFOCN3pzLPtY4zRKvaMiYGBFefUbJM74Aq4 FECYcj35tifDNVC2ahTbe0rd9eCTMQ2+cXEiirYGktbJU0dQQneK3rwUwsyS0AGxQb2l K9yg== 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:content-transfer-encoding :to:subject:message-id:date:from:in-reply-to:references:mime-version :sender:dkim-signature:dkim-signature; bh=Bfr3OlHn8vtNyiBy1btxU7bkrG85n10pX0Sp9/tswOQ=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=lSRFGdCGY3FuRPoxWk3rQsJ8cOi5B+jwIJKcvjVrZDN8rBL4DQJ05B5F7F60FQ4HUr DTqrxhPkCwEPMUHOaCaQD90pwsm71/AO/sVhHuZ/KlwR/KWfbDxayTIsyWlcfbf2aPL3 L1PX7nc3nBw/AzcQxLKb5AmIgvZo2PH2E75pNBlFPFDF9YZVmVXDzpvvch5Tj64nUe9E qTj0pDLAK93qMLxYr7veWZ3/gR7KE/coAJAAdbLObaDsXcoIRJSt3nOMaoLAeI0BJt5d tD/GUOi42jiGl4UlI769h63K/VKyOzKc1fVAxwb73ZYHYnRlhBlUdyzggYErV1VDNbJ2 fI9Q== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hLjM2cUK; spf=pass (google.com: domain of strredwolf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::62c as permitted sender) smtp.mailfrom=strredwolf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1699370917; x=1699975717; 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 :content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:sender:from:to:cc:subject:date :message-id:reply-to; bh=Bfr3OlHn8vtNyiBy1btxU7bkrG85n10pX0Sp9/tswOQ=; b=bXO7Q5tVSOgTtaZ9fJWuZR6XOXWJxtjllMd5ZT8nvakCnh/ypATjuPsA5EUM38eP// lvFTkQQ2qUZYh0vVsQx54zeQkhiNvGeaYe37YofdrdQYn3y3O5LBlY/IvcShbkbwuyE4 xZp+dRxJZdOufnbRqaqtrIVGyzskA56O1bfCsHPYlKlHtJAKIvBFEKLC/xmuGvHZiAFt TI+Ga6guzP2kE+30QUuYkK7ZTzrkkFuVJe4psKsueVbg6f9PDpm4NkF7eZj2PIuxwC6s SFFu13in6tNAFz1Q DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699370917; x=1699975717; 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 :content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Bfr3OlHn8vtNyiBy1btxU7bkrG85n10pX0Sp9/tswOQ=; b=fyWgzsD/v7QHdva3RSDs5YtAVcXRFpmxf9f6guDk9DFKDi4qFJvV9lwR8nT56MSk2p QnoBHcnBCsU23SGtRCtmxwlMtCm0sr785sCmLA7mYA8iXB/c3CCtD6UaWQDOZKX4Fxvg TaxqyyJzWfzvspeE19DxHDk9CyxzyJabwCH8TAkWfhVaL1/v/KM14dSlXKHHCe49aOeP 06Mk6RxqS1f0AadZdW49N1qA40LNBoqpAfVQ/sGs4ZSV5EU+yiJdRfbBttOEd19XfUlh w6icf4qgs/nlOTDqGtyUylM09yt5Bp X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699370917; x=1699975717; 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 :content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-beenthere:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=Bfr3OlHn8vtNyiBy1btxU7bkrG85n10pX0Sp9/tswOQ=; b=YZloNt+4hvT8ON7d6JiD1i4uHa7SwgYRl7iixjRUGtQzhByr6/aRX20jZkSqsNcOA8 YJvOoehSWt6EIY7wEbqcMqjei5JfQ2nJc2OgRY2FbMtvFkOoXJjfzaVObx+EJu0cd7pw ZMP1cNl2SHAxFVYn0Uj5mwfmlz0Wv/0kK4xeNaiDGheY1rRYA127ru+C/wjOtsCWM0uD Y3iF3x4o8Y/rsokSI9N7og6Mn3iW+osq/bv+fEammqf1tC8mpEgNClazyE Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0YzuU+t7M32yM6x9blCF8Y3tjRZFiPY6ruCkt4hGZ4WoK6apS+29 ayr+juxRm2l2+2OpU9ah80s= X-Google-Smtp-Source: AGHT+IFi233v6sB1pKapd1oP5/kMYigTNz6VFxdSY1+IOyKGHxKNSjFuTUNqn4qzdbjIf4EYAYbJUQ== X-Received: by 2002:a92:2004:0:b0:359:2f7e:a6f1 with SMTP id j4-20020a922004000000b003592f7ea6f1mr2797717ile.3.1699370916792; Tue, 07 Nov 2023 07:28:36 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6e02:1609:b0:357:fba9:f281 with SMTP id t9-20020a056e02160900b00357fba9f281ls379945ilu.1.-pod-prod-00-us; Tue, 07 Nov 2023 07:28:33 -0800 (PST) X-Received: by 2002:a05:6602:2c06:b0:790:aed5:d0b0 with SMTP id w6-20020a0566022c0600b00790aed5d0b0mr3735294iov.0.1699370913585; Tue, 07 Nov 2023 07:28:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699370913; cv=none; d=google.com; s=arc-20160816; b=GMal23Sc1tvVIO0RGcWTDWgCjaQ1VSVrvutF7cSJpjknR4+AOo0G1OqhrRXgnlO19K Tl2bVSjkp6JCJL8qGH3+xv71+kH2s6h7ydM+rP1TJu8Cvydgj/xoP9fkVbKkCPkW+uN6 Po6m23Ie8OewJDvaNhMUg/8CdIiDDXR7/OjY/PcEgMv9cEX/1AzGzQhF1dNs8dKzKWS6 Ysc3W8CJmZ0CMS4pgXBO3WuoJ3u/+jks2zGCsQ9JOS32Kh292GUIvm54tORvBaC/6bMz a1sVNR6gSqAAG3flyp+0vz4NDBakDrooCj1Qv14dJmRHFLrpkfRXSq9U2uZsxYtZVbIH 1bIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=U6trhPWeFTWgO2xTNJRqy1svHuKvZ1/jCs+f+ewaIEc=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=gbF9S3BSgW+Is/Kyjm6UOSH9ozV1t1edOsKtuTwGyd+nig2gfJ00LczEJt/lZduWij Iyqe6qu8iEJnS5M8SuUifCZyZQUkgSYI1bmSeucw96Q9Q6j1IeLTzUx1AXj/NOiI37k8 wX2r+YiN8gdu2spvtO899Ndt2SYxUvJajAT5ftakCq4LQ/JlQL/W2oBcww1FZhstILMA Hsd3CkSpCxRj8syEbxKbXXeCQvbPCNlr0DQBS87CRfzNBF4EQIUjJKAxPYcoC994RuM4 QhQ5FgzBKWiD3/xwOk/pSxosYODDz7Iu/DuWLqPI2Q4pFG28kJdriP8XG8smqN6xUK2c pMKQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hLjM2cUK; spf=pass (google.com: domain of strredwolf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::62c as permitted sender) smtp.mailfrom=strredwolf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com. [2607:f8b0:4864:20::62c]) by gmr-mx.google.com with ESMTPS id t11-20020a6b640b000000b0079d5fe48bd9si512401iog.0.2023.11.07.07.28.33 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Nov 2023 07:28:33 -0800 (PST) Received-SPF: pass (google.com: domain of strredwolf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::62c as permitted sender) client-ip=2607:f8b0:4864:20::62c; Original-Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1cc131e52f1so52484025ad.0 for ; Tue, 07 Nov 2023 07:28:33 -0800 (PST) X-Received: by 2002:a17:90b:4c92:b0:277:68c3:64b9 with SMTP id my18-20020a17090b4c9200b0027768c364b9mr4260440pjb.5.1699370912873; Tue, 07 Nov 2023 07:28:32 -0800 (PST) In-Reply-To: <8f4c5470-82f5-44c8-8f17-3f807ccdbd11n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: strredwolf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hLjM2cUK; spf=pass (google.com: domain of strredwolf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::62c as permitted sender) smtp.mailfrom=strredwolf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:33277 Archived-At: Okay, so before I go completely crazy, following the DOCX route. Using Pandoc 2.9.2.1 currently (it's in Ubuntu's repos). custom-ref.docx file has the style definition for "Rose" and it's going through to the text document. Using: pandoc --reference-doc=3Dcustom-ref.docx test.md -f 'markdown_phpextra+bracketed_spans' -t docx -o test.docx test.md has: [Good evening, Drake.]{custom-style=3D"Rose"} When I run it, the style does not get applied to the bracketed text. Any i= deas? On Tue, Nov 7, 2023 at 9:30=E2=80=AFAM jcr wrote: > > If you're willing to use docx instead of ODT, you can take advantage of p= andoc's support for Custom Styles and avoid the XML wrangling. You simply g= et a copy of the default reference doc with `pandoc -o custom-reference.doc= x --print-default- data-file reference.docx`, add a Rose style to `custom-r= eference.docx`, and give a `custom-style=3DRose` attribute in Markdown to c= olored text. > > On Monday, November 6, 2023 at 10:23:36=E2=80=AFAM UTC-5 Kelly =E2=80=9CS= TrRedWolf=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 ca= n 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+brack= eted_spans) and opening that into LibreOffice, but that opens a whole can o= f LibreOffice worms relating to web vs PDF/print formatting. >> >> Is there a way for Pandoc to translate the CSS stylesheet into ODT style= s, and apply said styles as wanted? > > -- > 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/xMuBWNkXPRI/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/8f4c5470-82f5-44c8-8f17-3f807ccdbd11n%40googlegroups.com. --=20 Kelly "STrRedWolf" Price http://redwolf.ws --=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/CAKzFY7T9oPjduCwp32o2UB8wOrMOUJhu2k0yUfdJBrMv-BKRdA%40mail.g= mail.com.