From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/6525 Path: news.gmane.org!not-for-mail From: "Till A. Heilmann" Newsgroups: gmane.text.pandoc Subject: docx writer and localized style names Date: Fri, 31 May 2013 10:21:24 -0700 (PDT) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_844_3649360.1370020884401" X-Trace: ger.gmane.org 1370020886 25694 80.91.229.3 (31 May 2013 17:21:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 May 2013 17:21:26 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDL4P2HNU4ARBFNYUOGQKGQEBW6YYWI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri May 31 19:21:27 2013 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-vc0-f189.google.com ([209.85.220.189]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UiT14-0001yR-9H for gtp-pandoc-discuss@m.gmane.org; Fri, 31 May 2013 19:21:26 +0200 Original-Received: by mail-vc0-f189.google.com with SMTP id hz10sf264147vcb.16 for ; Fri, 31 May 2013 10:21:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-beenthere:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=XC45bMlyfux0W0l+MW9CH6pSbH0uuErWF5Jdpe1yThw=; b=mIdJY9jSt1huImCPIZXZztfyNL8uAuu3WYfDPBJJ21gDgNf+RfNmaAYf3t+y/6Tpzt 0I5IhbTVdVTQ7Vc3wl3mJIfUzt/xHP1J6tk9QeCEzYs/8MtAQoRH5BKNdsOwQa3EJ0o1 cKYmhA3+44mWcyU3Q+EAUxWEko5SFhqKylhcZ9FqhhMos/BWC6FqdY9PPwkJGRpFBS+l +7kVCgslntDbMqGUga+HosxHiFjLGyWJLff3fqtBWGV3bknK+lPOLrR7d088zvIKrQ9b jYMJwO9fXMK4iqv42eTYyX6IWeIqSAHtMh8nDlYWHNQym35XucDnY5K3XUHT5u50h9Ds 61ZQ== X-Received: by 10.49.87.70 with SMTP id v6mr1059924qez.25.1370020885404; Fri, 31 May 2013 10:21:25 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.49.60.38 with SMTP id e6ls1104873qer.45.gmail; Fri, 31 May 2013 10:21:24 -0700 (PDT) X-Received: by 10.49.29.99 with SMTP id j3mr192063qeh.23.1370020884796; Fri, 31 May 2013 10:21:24 -0700 (PDT) X-Original-Sender: mail-/I5J6v6A6r8ks7CIFnJjIGGXanvQGlWp@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: , Xref: news.gmane.org gmane.text.pandoc:6525 Archived-At: ------=_Part_844_3649360.1370020884401 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable When I write a docx file with pandoc, some of the text elements in the=20 resulting Word document show up with the localized names of the styles=20 (because of my German Office), namely:=20 - "Standard" (instead of "Normal"), - "Titel" (instead of "Title") and=20 - "Datum" (instead of "Date")=20 Most other text elements' styles have the 'original' American-English=20 names, though, for instance:=20 - "Heading 1" =85 (instead of localized "=DCberschrift 1" =85)=20 - "Block Quote" (instead of localized "Blocktext")=20 - "Footnote Reference" (instead of localized "Fu=DFnotenzeichen")=20 I'd prefer a consistent behavior here, preferably the localized style names= =20 (which would make it easier to adapt pandoc-generated Word files to=20 pre-existing custom styles in personal templates).=20 Now, I don't know about the pandoc writer modules, but in VBA you can refer= =20 to Word styles in two ways: Either you use a literal string to give the=20 style's (localized) name, or you use the element of class WdBuiltinStyle.= =20 So, for example, you can say either=20 ActiveDocument.Styles("Body Text")=20 or=20 ActiveDocument.Styles(wdStyleBodyText)=20 The second option is the better one, since it works in all localized=20 versions of Office. Can we do something similar in pandoc's docx writer=20 module?=20 Thanks,=20 Till --=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 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/f071415e-424c-4f87-b473-9b7f864c7ba3%40googlegroups.com?hl= =3Den-US. For more options, visit https://groups.google.com/groups/opt_out. ------=_Part_844_3649360.1370020884401 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable When I write a docx file with pandoc, some of the text elements in the resu= lting Word document show up with the localized names of the styles (because= of my German Office), namely: 

- "Standard" (instead of "Norm= al"),
- "Titel" (instead of "Title") and
- "Datum" (instead of "Da= te")

Most other text elements' styles have the 'original' American-= English names, though, for instance:

- "Heading 1" =85 (instead of= localized "=DCberschrift 1" =85)
- "Block Quote" (instead of localize= d "Blocktext") 
- "Footnote Reference" (instead of localized "Fu= =DFnotenzeichen") 

I'd prefer a consistent behavior here, prefe= rably 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 WdBui= ltinStyle. So, for example, you can say either 

ActiveDocument.= Styles("Body Text") 

or 

ActiveDocument.Styles(wdSt= yleBodyText) 

The second option is the better one, since it wor= ks in all localized versions of Office. Can we do something similar in pand= oc's docx writer module? 

Thanks, 
Till

--
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-/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/f071415= e-424c-4f87-b473-9b7f864c7ba3%40googlegroups.com?hl=3Den-US.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
------=_Part_844_3649360.1370020884401--