From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33275 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: jcr Newsgroups: gmane.text.pandoc Subject: Re: Markdown/HTML: Convert CSS styles to ODT styles (enhancement) Date: Tue, 7 Nov 2023 06:30:38 -0800 (PST) Message-ID: <8f4c5470-82f5-44c8-8f17-3f807ccdbd11n@googlegroups.com> References: <9b60d1f7-098c-4e8e-a801-764d0b754ef0n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_23174_906514087.1699367438929" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12938"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDQLFNXWVILBBEEUVGVAMGQESBAUHXI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Nov 07 15:30:45 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f58.google.com ([209.85.160.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1r0N6K-000368-KL for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 07 Nov 2023 15:30:44 +0100 Original-Received: by mail-oa1-f58.google.com with SMTP id 586e51a60fabf-1e9c2c00182sf7788530fac.1 for ; Tue, 07 Nov 2023 06:30:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1699367443; x=1699972243; 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-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=2jYjeEwVcub5sZxC3VcBLtR0C8MjyVY6Y46glYSBoVM=; b=rb5JIvTP9viMAyFJ65ZR2KTtDm8TMLO+UEUk6VirU5WlL3eeiep9AegOzDqS07Tcpu iV01QZFg/pjwM1LgOJqifKIXLkjpx/wY9ewMkVbMkRVBrE8fh4oltNuFd+xb56mV/CYt X53uCtTTa9ecKsLGgk3KAV68zGM7nAUgrMsBGVaTHRsRS9swlEEWejglOSVysTVhzKz1 7dXKBTuXM+KGVHUPhGxIZWnyJQPqRqG5GFycCF0Z5kFq+e1MQSc2b+TqtmNSV3MFXNzn oEhWaBmX/M1e0IwSy4U6MieIKVBH2M/lSGKh03xruFR8jeceNysx85QOM0x+14lOpiy1 tzQQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699367443; x=1699972243; 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-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=2jYjeEwVcub5sZxC3VcBLtR0C8MjyVY6Y46glYSBoVM=; b=W39MDjdDnaslPY8L345FCcMpnsQdauFkuAhH7oVA0QF0HSrvG8rlnBUbdtpFL3mUuG xdUnztnh3Yv4iOcFVx4AcXnGglcNZM3VOWa5s0q8BiX1+cKhLWIFkT9DigBESZg2R3bf 96GbHKzpgHAXuI9YzwweuzwVrGIQeRVVifI5byMofTlabuOwB9H27zylNGQJVX9IUv5I SWQ8Ta0jBgT2V3T1J+t5UZDCtPt9OUbRQPSZpibbcV7Jy+vyHpc2HjwjC5996An8JItb CDib/oY8XoAeZvHad4rDXjW8/qYuzNDGIjbmizdEuyYh43Fb8btxiunUm4inepZnxSj+ 5n0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699367443; x=1699972243; 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-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=2jYjeEwVcub5sZxC3VcBLtR0C8MjyVY6Y46glYSBoVM=; b=iIStuqa5ouRc3aFHstlw7lZk8vthBROuf+A56mYq2uHRiykwyD8kHHXhU6v/VDBEPY f+aa5NZz1UQ5KtFJCJJ6hKtocWR1CFg7UtteCBUMUlnUfmi0TQuduD75XvjbMUxEl277 UawjaXQ+/BJiTltergd8dUz3pMpHv6o9WqYydSJPWBejch2FgsMvqYMgIQyRgSqMra59 qCP+anuSDPy/EfP9cq7AqdymEcd+xFlaL0Se5/wnMlw4XsH3OFD612RFOtkqleoMt2sz PkBp32zEuiSfp81FrfFNeC1EW0nU9DZyQMotDgKSAkqrBQzHAO Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0YzCRPxMpO++M8DgiANJyF1HHqOYHWeiQp0B5nxFG2x1cpyaDlvK GnUeuZrhFow0ob1ATjoJ3/c= X-Google-Smtp-Source: AGHT+IH0afUTZeLeSWvdFjIHym9cA73pe45Eo9zvnwUaNytK05bx2RSfV7wjmwYTJNza6PCSXpWXTA== X-Received: by 2002:a05:6871:a50f:b0:1ea:2e2c:e9e7 with SMTP id wc15-20020a056871a50f00b001ea2e2ce9e7mr2982181oab.59.1699367443122; Tue, 07 Nov 2023 06:30:43 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6871:458d:b0:1e1:371:c3f8 with SMTP id nl13-20020a056871458d00b001e10371c3f8ls4270198oab.2.-pod-prod-02-us; Tue, 07 Nov 2023 06:30:39 -0800 (PST) X-Received: by 2002:a05:6808:33c6:b0:3a9:b964:820e with SMTP id cf6-20020a05680833c600b003a9b964820emr9993280oib.3.1699367439567; Tue, 07 Nov 2023 06:30:39 -0800 (PST) In-Reply-To: <9b60d1f7-098c-4e8e-a801-764d0b754ef0n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: ffi.appdev-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.io gmane.text.pandoc:33275 Archived-At: ------=_Part_23174_906514087.1699367438929 Content-Type: multipart/alternative; boundary="----=_Part_23175_446927121.1699367438929" ------=_Part_23175_446927121.1699367438929 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable If you're willing to use docx instead of ODT, you can take advantage of=20 pandoc's support for Custom Styles=20 and avoid the XML wrangling.= =20 You simply get a copy of the default reference doc with `pandoc -o=20 custom-reference.docx --print-default- data-file reference.docx`, add a=20 Rose style to `custom-reference.docx`, and give a `custom-style=3DRose`=20 attribute in Markdown to colored text. On Monday, November 6, 2023 at 10:23:36=E2=80=AFAM UTC-5 Kelly =E2=80=9CSTr= RedWolf=E2=80=9D Price=20 wrote: > Hello all. Using Pandoc to help convert my fiction (written in Markdown)= =20 > into ODT format so I can combine and publish... but in writing, I found a= =20 > specific use case. > > I need colored text. > > For instance, if I define a CSS stylesheet file to color said text, I can= =20 > 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=20 > (markdown_phpextra+bracketed_spans) and opening that into LibreOffice, bu= t=20 > that opens a whole can of LibreOffice worms relating to web vs PDF/print= =20 > formatting. > > Is there a way for Pandoc to translate the CSS stylesheet into ODT styles= ,=20 > and apply said styles as wanted? > --=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/8f4c5470-82f5-44c8-8f17-3f807ccdbd11n%40googlegroups.com. ------=_Part_23175_446927121.1699367438929 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable If you're willing to use docx instead of ODT, you can take advantage of pan= doc's support for = Custom Styles and avoid the XML wrangling. You simply get a copy of the= default reference doc with `pandoc -o custom-reference.docx --print-defaul= t- data-file reference.docx`, add a Rose style to `custom-reference.docx`, = and give a `custom-style=3DRose` attribute in Markdown to colored text.

O= n Monday, November 6, 2023 at 10:23:36=E2=80=AFAM UTC-5 Kelly =E2=80=9CSTrR= edWolf=E2=80=9D Price wrote:
Hello all.=C2=A0 Using Pandoc to help convert my ficti= on (written in Markdown) into ODT format so I can combine and publish... bu= t in writing, I found a specific use case.

I need = colored text.

For instance, if I define a CSS styl= esheet 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 int= o LibreOffice, but that opens a whole can of LibreOffice worms relating to = web vs PDF/print formatting.

Is there a way fo= r Pandoc to translate the CSS stylesheet into ODT styles, and apply said st= yles 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 pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/8f4c5470-82f5-44c8-8f17-3f807ccdbd11n%40googlegroups.= com.
------=_Part_23175_446927121.1699367438929-- ------=_Part_23174_906514087.1699367438929--