From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/6528 Path: news.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: docx writer and localized style names Date: Fri, 31 May 2013 12:19:25 -0700 Message-ID: <20130531191925.GC46304@Johns-MacBook-Pro.local> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1370027980 3882 80.91.229.3 (31 May 2013 19:19:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 May 2013 19:19:40 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBBSXPUOGQKGQEPD73Q5I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri May 31 21:19:41 2013 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-qe0-f62.google.com ([209.85.128.62]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UiUrT-0006Ri-KV for gtp-pandoc-discuss@m.gmane.org; Fri, 31 May 2013 21:19:39 +0200 Original-Received: by mail-qe0-f62.google.com with SMTP id k5sf529406qej.27 for ; Fri, 31 May 2013 12:19:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-beenthere:date:from:to:subject:message-id:references:mime-version :in-reply-to:x-pgp-key:user-agent:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type:content-disposition; bh=dYDuGD/QxxzF5Op9hH6rgS7VmY0Qm8vU7CpaL1TOmVI=; b=ncie4gQBX9L5bfysuKDEJCqVcxxs2qAV/L6N/IL8kuHI7RoUGwx2y+axfI+OIZ7K8W M90gp1fxFHTVVvAADl1ljZV4eBDmYQxwk7LQ+Bq/k/TpVzg+YEEjVVMvy+c8q1IBaMdF 9vq7/pJktNElYYSjeTE4DfEfMwuvQZBECF0LxyacItksvWisz5D2sbxxwRvsks2hzeUx 7PZ2wBuwsl8ulM8shA9ljU7IJr53DuExq2u2Bzq7mQZ7FbBBwEHIUnGt9YgSQXn2SJ/I YNhEXfFr6dIZpDOlE2JhEHplfNOU5Kxc3zagkMMhSIY59a4RjtP+JtXJKfSr7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-beenthere:date:from:to:subject:message-id:references:mime-version :in-reply-to:x-pgp-key:user-agent:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type:content-disposition; bh=dYDuGD/QxxzF5Op9hH6rgS7VmY0Qm8vU7CpaL1TOmVI=; b=egfhNT264JhXlLRbFNqmGb/qrkzC5/+byYIpGefHERFNQ5EvEX25eiAMgNZRfuqdPP CRj8KIebivlb0Vca/xsC3PH+ngMec7bUGutP1uNf2/WQSJa1Y8TftBrTD3sgb6qN8gnI NfRL6yI0fUvnL7XDMqU1hn94RKyi/GqxSmcXS+oWC3SeuIZvg8L5dcznlQg1N2ItWf4q YsiBjV41z4XX8++41a1aiVHZv5CwzxStVerSp73F3X79jVBx7ce+rvU/HVHJ6lA6QAeS DcbwHR99wVjWlpVDXxabNZrMefUEOJ8jDUA9RQshvxlcOILt9+mnuF3Rxd8jD1ifXP8d X-Received: by 10.50.50.204 with SMTP id e12mr682044igo.0.1370027978659; Fri, 31 May 2013 12:19:38 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.50.41.68 with SMTP id d4ls784401igl.43.gmail; Fri, 31 May 2013 12:19:38 -0700 (PDT) X-Received: by 10.66.161.227 with SMTP id xv3mr2523034pab.0.1370027978267; Fri, 31 May 2013 12:19:38 -0700 (PDT) Original-Received: from cm04fe.IST.Berkeley.EDU (cm04fe.IST.Berkeley.EDU. [169.229.218.145]) by gmr-mx.google.com with ESMTPS id sr2si1075691pbc.2.2013.05.31.12.19.38 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 31 May 2013 12:19:38 -0700 (PDT) Received-SPF: neutral (google.com: 169.229.218.145 is neither permitted nor denied by best guess record for domain of jgm-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org) client-ip=169.229.218.145; Original-Received: from li55-134.members.linode.com ([74.82.3.134] helo=johnmacfarlane.net) by cm04fe.ist.berkeley.edu with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76) (auth plain:jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org) (envelope-from ) id 1UiUrQ-0007V1-E3 for pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; Fri, 31 May 2013 12:19:37 -0700 Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id B2A80BB954; Fri, 31 May 2013 15:18:13 -0400 (EDT) In-Reply-To: X-PGP-Key: http://johnmacfarlane.net/jgm.asc User-Agent: Mutt/1.5.21 (2010-09-15) X-Original-Sender: fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 169.229.218.145 is neither permitted nor denied by best guess record for domain of jgm-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org) smtp.mail=jgm-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@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: Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-Subscribe: , List-Unsubscribe: , Content-Disposition: inline Xref: news.gmane.org gmane.text.pandoc:6528 Archived-At: Pandoc doesn't do any localization, and it doesn't call any MS libraries -- everything is done by hand with hard-coded (English) style names. So it must be Word that is changing the style names after loading the file... +++ Till A. Heilmann [May 31 13 10:21 ]: > When I write a docx file with pandoc, some of the text elements in the > resulting Word document show up with the localized names of the styles > (because of my German Office), namely: > - "Standard" (instead of "Normal"), > - "Titel" (instead of "Title") and > - "Datum" (instead of "Date") > Most other text elements' styles have the 'original' American-English > names, though, for instance: > - "Heading 1" (instead of localized "berschrift 1" ) > - "Block Quote" (instead of localized "Blocktext") > - "Footnote Reference" (instead of localized "Funotenzeichen") > I'd prefer a consistent behavior here, preferably the localized style > names (which would make it easier to adapt pandoc-generated Word files > to pre-existing custom styles in personal templates). > Now, I don't know about the pandoc writer modules, but in VBA you can > refer to Word styles in two ways: Either you use a literal string to > give the style's (localized) name, or you use the element of class > WdBuiltinStyle. So, for example, you can say either > ActiveDocument.Styles("Body Text") > or > ActiveDocument.Styles(wdStyleBodyText) > The second option is the better one, since it works in all localized > versions of Office. Can we do something similar in pandoc's docx writer > module? > Thanks, > Till > > -- > 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 > [1]https://groups.google.com/d/msgid/pandoc-discuss/f071415e-424c-4f87- > b473-9b7f864c7ba3%40googlegroups.com?hl=en-US. > For more options, visit [2]https://groups.google.com/groups/opt_out. > > References > > 1. https://groups.google.com/d/msgid/pandoc-discuss/f071415e-424c-4f87-b473-9b7f864c7ba3%40googlegroups.com?hl=en-US > 2. https://groups.google.com/groups/opt_out