public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* docx writer and localized style names
@ 2013-05-31 17:21 Till A. Heilmann
       [not found] ` <f071415e-424c-4f87-b473-9b7f864c7ba3-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Till A. Heilmann @ 2013-05-31 17:21 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 1913 bytes --]

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 "Fußnotenzeichen") 

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 https://groups.google.com/d/msgid/pandoc-discuss/f071415e-424c-4f87-b473-9b7f864c7ba3%40googlegroups.com?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.



[-- Attachment #2: Type: text/html, Size: 2267 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-02-24  1:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-31 17:21 docx writer and localized style names Till A. Heilmann
     [not found] ` <f071415e-424c-4f87-b473-9b7f864c7ba3-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2013-05-31 19:19   ` John MacFarlane
2015-02-21 18:22   ` nkalvi
2015-02-22  0:01   ` nkalvi
2015-02-24  1:05   ` nkalvi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).