From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/13669 Path: news.gmane.org!not-for-mail From: massifrg Newsgroups: gmane.text.pandoc Subject: map p+class and span+class to para and char style names in html to docx, odt, icml and vice versa Date: Tue, 22 Sep 2015 05:40:56 -0700 (PDT) Message-ID: <6f4a2ed7-3eb3-4f09-8fc2-07c823e62ff2@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_242_824555674.1442925656731" X-Trace: ger.gmane.org 1442925676 12883 80.91.229.3 (22 Sep 2015 12:41:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Sep 2015 12:41:16 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDZYJ4HW2QPBBWMYQWYAKGQE24A5MCY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Sep 22 14:41:08 2015 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-io0-f184.google.com ([209.85.223.184]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZeMsV-0005oC-7W for gtp-pandoc-discuss@m.gmane.org; Tue, 22 Sep 2015 14:40:59 +0200 Original-Received: by iofh134 with SMTP id h134sf2422793iof.0 for ; Tue, 22 Sep 2015 05:40:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=date:from:to:message-id:subject:mime-version:content-type :x-original-sender:reply-to:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe; bh=FPfnJ/LibnJ2vNLig7AQ6nbZNNVYsu9fCYnzkst5TY8=; b=EGE31DgnF2Tw4Nbg6YrXSL3jU92b/jpjICgoSdMmweA5NbyGa+YBdR0fMHhJLEwr1n +8JcrU/L5k/mEegn+cM26I0iMhpeIBjQFNU2z2T3wTPorM4QTDIk9iNI7DkJ1P8RQy80 k6xAOrQcWViQL1FPJMuwVg9/1ioe5q/6FVqhnbfO+9Z306/xSMfahfMTbcYoCWVY413j 2Q1m2NGrWsrn0vDCtnRgDWC9zajxNIOMJ+ubwiRf0DCWccK4x+/Ec26DozLXa8rqYVZL 9g+KRnioX3DZFBXUBBNaDiYaV1ZCRxThNJ1Ah/PFTJu/ytQywlZXXG8tM3dNyFzZ00CE 89qw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:subject:mime-version:content-type :x-original-sender:reply-to:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe; bh=FPfnJ/LibnJ2vNLig7AQ6nbZNNVYsu9fCYnzkst5TY8=; b=ABDXyXEM3kOFztn3iFWEjfscHkO1KNGY+YeKfBGvChzuA1Os06wQ3Ylbt+pmGeAaKq qQjvlFPzPKoBMIzdN5otpf2ZcfhsDQI83tyCmR8kNpFd2b+DwNmKvZkm7uFnxY7TZqMU WjOTeRmwjtSWm1ZZHim65he5i8joUm5Fke1zaT2dVNfh+t19zpxb5wxI8bQH882eWjL+ 521/GrOGROYnNtLlvJI3q4NLFP7SnYaXECLAxcFS/iLWROj7Y+R3gDtgEX7d88c0tbBG qliEbPvyuSA0GFIvpX13xE2BzljoQ2cYIbTdlCIwL8SZSi7joGYo54Cm5xBEXEYuo8r3 lAaA== X-Received: by 10.140.94.115 with SMTP id f106mr165315qge.23.1442925658353; Tue, 22 Sep 2015 05:40:58 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.140.109.100 with SMTP id k91ls2278202qgf.38.gmail; Tue, 22 Sep 2015 05:40:57 -0700 (PDT) X-Received: by 10.140.83.231 with SMTP id j94mr167143qgd.40.1442925657192; Tue, 22 Sep 2015 05:40:57 -0700 (PDT) X-Original-Sender: massifrg-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-Spam-Checked-In-Group: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:13669 Archived-At: ------=_Part_242_824555674.1442925656731 Content-Type: multipart/alternative; boundary="----=_Part_243_1289214646.1442925656732" ------=_Part_243_1289214646.1442925656732 Content-Type: text/plain; charset=UTF-8 Hello, I'm working on documents marked up with XHTML. I wrote some utilities to convert them in docx, pdf (through PrinceXML or ConTeXt) and ICML. Those utilities are far from complete and I'd like to use Pandoc instead. It would be great to convert

and elements to some corresponding paragraph and character styles in docx, odt and ICML. The concepts of paragraph styles and character styles are common in Word, OpenOffice/Libreoffice Writer and InDesign (and not only them). They map well to HTML's p+class and span+class. In Pandoc, paragraphs lack attributes(see Pandoc.Text.Definition ), even if there's a workaround (see here ). It would be really useful if Pandoc mapped p+class and span+class elements to para and char styles with the same name in docx, odt, icml. What do you think? I think it should be an option that you could toggle (i.e. "--map-styles"). Something like (or working with) --reference-odt and --reference-docx (and maybe --reference-icml or --reference-idml in the future), but not limited to a fixed set of styles. I don't know how they should be marked up in markdown, but since it would be specific to those formats, markdown writer could simply ignore that feature. -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/6f4a2ed7-3eb3-4f09-8fc2-07c823e62ff2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_243_1289214646.1442925656732 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Hello,
I'm working on documents marked up with XHTM= L.
I wrote some utilities to convert them in docx, pdf (through PrinceXM= L or ConTeXt) and ICML.
Those utilities are far from complete and I'= d like to use Pandoc instead.

It would be great to convert <p cla= ss=3D...> and <span class=3D...> elements to some corresponding pa= ragraph and character styles in docx, odt and ICML.
The concepts of para= graph styles and character styles are common in Word, OpenOffice/Libreoffic= e Writer and InDesign (and not only them).
They map well to HTML's p= +class and span+class.

In Pandoc, paragraphs lack attributes(see Pandoc.Text.Definition), even if there's a = workaround (see h= ere).

It would be really useful if Pandoc mapped p+class and spa= n+class elements to para and char styles with the same name in docx, odt, i= cml.
What do you think?

I think it should be an option that you c= ould toggle (i.e. "--map-styles"). Something like (or working with)=20 --reference-odt= and= --reference-docx (and maybe --reference-icml or --r= eference-idml in the future), but not limited to a fixed set of styles.
=
I don't know how they should be marked up in markdown, but since it= would be specific to those formats, markdown writer could simply ignore th= at feature.

--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/6f4a2ed7-3eb3-4f09-8fc2-07c823e62ff2%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_243_1289214646.1442925656732-- ------=_Part_242_824555674.1442925656731--