From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/11636 Path: news.gmane.org!not-for-mail From: Mark Szepieniec Newsgroups: gmane.text.pandoc Subject: Re: Docx reader ; style picking algorithm Date: Wed, 31 Dec 2014 16:55:37 +0100 Message-ID: References: <4b2f3216-fc6c-4552-8bf0-3cd263ebc143@googlegroups.com> <1bb6000f-1dc7-4a1f-9050-188f03b8d4d9@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c2ee147bb2ae050b8523ec X-Trace: ger.gmane.org 1420041344 16917 80.91.229.3 (31 Dec 2014 15:55:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Dec 2014 15:55:44 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBC5LDAET5YPBB6NYSCSQKGQEVRNKHPI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Dec 31 16:55:39 2014 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-oi0-f57.google.com ([209.85.218.57]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y6LcY-0002LE-Tx for gtp-pandoc-discuss@m.gmane.org; Wed, 31 Dec 2014 16:55:39 +0100 Original-Received: by mail-oi0-f57.google.com with SMTP id h136sf510012oig.2 for ; Wed, 31 Dec 2014 07:55:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:sender:list-subscribe:list-unsubscribe; bh=fy+IOZI2QO1mEHU8nF+5AMaWRwSac8sl7a4fsOx7974=; b=W+ODVlJlusviqvMT+VkVr7CuObCIEUrDOL85orXQHrev1HeQXVizr8iTbkYCJmsuuu cwOI8t2mnGhnYPElB96Uq2DKz/PSnrVc7/1HNN2t8YtEtSnJPdeFSCZq6EV1ahQ+XJ+l ZkkcV3iDDLt9Nz/jleXDNJVLNQI93nlLcMyrs4JOuc47zKo9EEeDqUqBHJXv8GWatujf x9l7IKWfS2mTbowSY0NJutB8nyKUzhilkLE8NcTh3hNVhkzlVgI5/bYq+GTs6LV4ubSY i/H/UpuJC3s+Yg20X7SyiuxfFZYTp7cQG5sS6+XySL4q8gi/FGgUATHGHOTIVxtXwSFA SeFg== X-Received: by 10.50.132.71 with SMTP id os7mr812168igb.11.1420041338241; Wed, 31 Dec 2014 07:55:38 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.50.164.168 with SMTP id yr8ls1052765igb.35.gmail; Wed, 31 Dec 2014 07:55:37 -0800 (PST) X-Received: by 10.70.9.68 with SMTP id x4mr52338883pda.5.1420041337614; Wed, 31 Dec 2014 07:55:37 -0800 (PST) Original-Received: from mail-qg0-x232.google.com (mail-qg0-x232.google.com. [2607:f8b0:400d:c04::232]) by gmr-mx.google.com with ESMTPS id r4si1566924qca.0.2014.12.31.07.55.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Dec 2014 07:55:37 -0800 (PST) Received-SPF: pass (google.com: domain of mszepien-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:400d:c04::232 as permitted sender) client-ip=2607:f8b0:400d:c04::232; Original-Received: by mail-qg0-f50.google.com with SMTP id z60so11399282qgd.23 for ; Wed, 31 Dec 2014 07:55:37 -0800 (PST) X-Received: by 10.224.132.71 with SMTP id a7mr106925768qat.28.1420041337407; Wed, 31 Dec 2014 07:55:37 -0800 (PST) Original-Received: by 10.229.203.67 with HTTP; Wed, 31 Dec 2014 07:55:37 -0800 (PST) In-Reply-To: <1bb6000f-1dc7-4a1f-9050-188f03b8d4d9-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: mszepien-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of mszepien-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:400d:c04::232 as permitted sender) smtp.mail=mszepien-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dkim=pass header.i=@gmail.com; dmarc=pass (p=NONE 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.org gmane.text.pandoc:11636 Archived-At: --001a11c2ee147bb2ae050b8523ec Content-Type: text/plain; charset=UTF-8 No, the pandoc document model does not support style information. You can always add styling instructions to the template of whatever output format you are using, for example CSS for html and ebook, LaTeX commands for LaTeX, etc. On Wed, Dec 31, 2014 at 12:20 PM, Kjetil Flovild-Midtlie < kjetil.midtlie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > If docx XMLs dont keep relations between custom-styles and defaults .. is > a "styleMap" the thing? > And does pandoc support this in anyway? > > (kind of like this project does https://github.com/mwilliamson/mammoth.js) > > > > On Tuesday, 30 December 2014 22:48:17 UTC+1, Kjetil Flovild-Midtlie wrote: >> >> Sometimes authors change style names into locale variants or just non >> standard version. >> >> Pandoc skiped these when sectioning outout when I tested.. >> >> Could the docx reader check the underlying style/class name if an elem >> has a non standard style name? >> >> Does Word even keep this 'parentclass' info in the docx elements ? >> >> (I had a quick look in the docx Reader src file. Have also been reading >> up on Haskell again like mad this xmas, and sadly I realize I need more >> time "there" and also reading some raw docx files... ) >> >> Kjetil > > -- > 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/1bb6000f-1dc7-4a1f-9050-188f03b8d4d9%40googlegroups.com > > . > > For more options, visit https://groups.google.com/d/optout. > -- 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/CAE4-1rWTOEANvr3R6-vcO3FvBepd8AgT9vooNVGdGNuzHPX4hQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. --001a11c2ee147bb2ae050b8523ec Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
No, the pandoc document model does not support style infor= mation. You can always add styling instructions to the template of whatever= output format you are using, for example CSS for html and ebook, LaTeX com= mands for LaTeX, etc.

On Wed, Dec 31, 2014 at 12:20 PM, Kjetil Flovild-Midtlie <kjetil.midtlie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
If docx XMLs dont keep relations between custom-sty= les and defaults .. is a "styleMap" the thing?=C2=A0
And does= pandoc support this in anyway?

(kind of like this proje= ct does=C2=A0https://github.com/mwilliamson/mammoth.js)



On Tuesday, 30 December 2014 22:48:17 UTC= +1, Kjetil Flovild-Midtlie wrote:
Sometimes authors change style names into locale variants or just non stan= dard version.=20

Pandoc skiped these when sectioning outout when I tested..=20

Could the docx reader check the underlying style/class name if an elem = has a non standard style name?=20

Does Word even keep this 'parentclass' =C2=A0 info in the docx = elements ?=20

(I had a quick look in the docx Reader src file. Have also been reading= up on Haskell again like mad this xmas, and sadly I realize I need more ti= me "there" and also reading some raw docx files... )

Kjetil =C2=A0

--
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 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/1bb6000f-1dc7-4a1f-9050-188f03b8= d4d9%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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/CAE4-1rWTOEANvr3R6-vcO3FvBepd8AgT9vooNVGd= GNuzHPX4hQ%40mail.gmail.com.
For more options, visit http= s://groups.google.com/d/optout.
--001a11c2ee147bb2ae050b8523ec--