public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Patrick Kenny <ptmkenny-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Setting the document language on the HTML tag in epub3
Date: Tue, 29 Oct 2019 17:39:21 -0700 (PDT)	[thread overview]
Message-ID: <92867006-1219-4139-9aff-1bc7345c09c5@googlegroups.com> (raw)
In-Reply-To: <CAFC_yuTob=pKyjGrQ3tT8SNp+o7E2hbpz3MZRqy_52=mfy5wJw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>


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

Thank you for the response.

When I use
 
lang:ja

Then

* cover.xhtml
* title_page.xhtml

get
 
 xml:lang="ja"

as expected, but none of the chapter files do. (ch001.xhtml, etc.)  Is this 
the expected behavior?  How can I also modify the chapter files?


On Wednesday, October 30, 2019 at 1:42:15 AM UTC+9, BP Jonsson wrote:
>
> The metadata key is exactly like the placeholder in the template, no more, 
> no less, i.e. `lang: ja`. This is true generally, and you can easily define 
> your own variables in your own templates. That wouldn't work if Pandoc 
> meddled with the variable names so that the names used in metadata and 
> those used in templates were somehow different.
>
>
> Den tis 29 okt. 2019 15:40Patrick Kenny <ptmk...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:>> 
> skrev:
>
>> Going from markdown to epub3, how do I set the language on the HTML tag 
>> in the epub?
>>
>> For epub3, the template looks like this:
>>
>> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="
>> http://www.idpf.org/2007/ops"$if(lang)$ xml:lang="$lang$"$endif$>
>>
>> In my YAML metadata block, I have this:
>>
>> language: ja
>>
>> This sets the language in content.opf:
>>
>>     <dc:language>ja</dc:language>
>>
>> But it doesn't set the language on the HTML tag.
>>
>> I also tried adding
>>
>> language: ja
>>
>> to the metadata, but this didn't change the value on the HTML tag, either.
>>
>> -- 
>> 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-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/pandoc-discuss/c500692e-7472-40fa-991e-378b7ab173d5%40googlegroups.com 
>> <https://groups.google.com/d/msgid/pandoc-discuss/c500692e-7472-40fa-991e-378b7ab173d5%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/92867006-1219-4139-9aff-1bc7345c09c5%40googlegroups.com.

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

  parent reply	other threads:[~2019-10-30  0:39 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-29 14:40 Patrick Kenny
     [not found] ` <c500692e-7472-40fa-991e-378b7ab173d5-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-10-29 16:41   ` BP Jonsson
     [not found]     ` <CAFC_yuTob=pKyjGrQ3tT8SNp+o7E2hbpz3MZRqy_52=mfy5wJw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-10-30  0:39       ` Patrick Kenny [this message]
     [not found]         ` <92867006-1219-4139-9aff-1bc7345c09c5-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-10-30 14:00           ` BP Jonsson
     [not found]             ` <CAFC_yuShZKiXOcyR2A3QPO6R=0s2m5SkbYKDwm=DP+Y8pWRwvw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-10-30 14:15               ` Daniel Staal
2019-10-30 15:13           ` Benct Philip Jonsson
     [not found]             ` <bcba4331-6848-78df-39b4-66027098c757-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2019-10-30 18:12               ` Patrick Kenny
     [not found]                 ` <b0afa24e-6be4-47a0-af2a-d36eeee469af-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-10-30 20:21                   ` BPJ
2019-11-03 22:59                   ` John MacFarlane
2019-11-03 23:11                   ` John MacFarlane

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=92867006-1219-4139-9aff-1bc7345c09c5@googlegroups.com \
    --to=ptmkenny-re5jqeeqqe8avxtiumwx3w@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).