public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: nkalvi <kana-a9OgVwmGd9+sTnJN9+BGXg@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: docx writer and localized style names
Date: Sat, 21 Feb 2015 16:01:48 -0800 (PST)	[thread overview]
Message-ID: <b6f60b00-abc8-4427-ae06-c41b3003bb3b@googlegroups.com> (raw)
In-Reply-To: <f071415e-424c-4f87-b473-9b7f864c7ba3-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>


[-- Attachment #1.1: Type: text/plain, Size: 2555 bytes --]

By the way, while a solution for Pandoc is being worked out, you may want 
to try this work-around:


   1. Save reference document (it needs to be output from Pandoc if you're 
   modifying Pandoc's own styles) as template.
   2. Apply this template (choosing to automatically apply styles) to the 
   one produced by Pandoc.

Unfortunately this does require that you have Word installed and invoked 
for each (pan)doc requiring customization. I'm not sure whether applying 
template can be automated.

On Friday, May 31, 2013 at 1:21:24 PM UTC-4, Till A. Heilmann wrote:
>
> 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/b6f60b00-abc8-4427-ae06-c41b3003bb3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 3221 bytes --]

  parent reply	other threads:[~2015-02-22  0:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-31 17:21 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 [this message]
2015-02-24  1:05   ` nkalvi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b6f60b00-abc8-4427-ae06-c41b3003bb3b@googlegroups.com \
    --to=kana-a9ogvwmgd9+stnjn9+bgxg@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).