From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23726 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Patrick Kenny Newsgroups: gmane.text.pandoc Subject: Re: Setting the document language on the HTML tag in epub3 Date: Tue, 29 Oct 2019 17:39:21 -0700 (PDT) Message-ID: <92867006-1219-4139-9aff-1bc7345c09c5@googlegroups.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_283_170204388.1572395961962" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="191026"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDLYD7NCUUKBBO5X4PWQKGQEYV5JSQQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Oct 30 01:39:29 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ot1-f61.google.com ([209.85.210.61]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1iPc1F-000nUG-9w for gtp-pandoc-discuss@m.gmane.org; Wed, 30 Oct 2019 01:39:25 +0100 Original-Received: by mail-ot1-f61.google.com with SMTP id g3sf233604otq.6 for ; Tue, 29 Oct 2019 17:39:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=gextElIDfGD1tGszYglitfwwJLU+uUJNyImfARZubok=; b=TZLZR4hzVD6Czqn2rT9Fp3cp6oxDXekOtBA7WKOY8sPGkC7FDvawD4wNDznWCclReK 42r8X1/vu7LnI8M/fUvxIdEUhUx672icv4mGsI04r5Ogn28pzbawM3osVgwlsGhh7mJL QJmM2AX2o0fKaGKtUkfJdLgnB86sHhqklh0VzNueRY+rRNYkGu+fNMugK3750eWthl93 Zjsvn6PhGb+8SCDnLhhEfTcr0F3v6mvJnSrNnuQfjFUo88vdwXTsU23dHO/UBzKG6QXz KFHjzzVdH9Qd9+d/YgQg8VEJCp4VbC7XJPyGvN4o5MWlgVhegv2aNMxoB8IWNpaGjnuU Ht6g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=gextElIDfGD1tGszYglitfwwJLU+uUJNyImfARZubok=; b=WJw2PQ/252gwBdwDEoJzfpwmTG+9nrdICWO8+o/lReQukE4c7oYkSUL6PUlj2+ryLU 89Kba4I0Wp1m8rWi2eAST30fRROeQpPASUQ8I+/EuzOpX4oMaIyAmpgdTJJn5sj29GLe hBnREWHa0TNeVqLzAnpfqEj8swQgsxrergMamk2BZy1ihwTLBUyYXPWHdubTCbOP80Yk MASCd2vp1Jx5wGhByg0UYbVgqIzeUuWAYptV9pPv66c/zZF9YuKHIDEIBwgYhrV1OzZr /RxRUrUsx3W1nRzMwJ9Xu0E+s8NhguHSPcwkfr4WfT3VoFJoYncRWUfLBJ0Yawwn+XM/ oh3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=gextElIDfGD1tGszYglitfwwJLU+uUJNyImfARZubok=; b=oMDlf0l15eZB/PIoxoXCMbFAudg7u6mND5G6WKxhPEuBHWczkjTEaU7lg/m+eRl3Jo jWZUATs6i48Prgz/BCyGSLvdyKRyallp2g8e+R6hTGMP6KRN1yLXYbRBLk+8W/yd+Id9 XNOq9C+23Ay533E4yNKMdBM3OANn+GlsdP7UK7tppzMFzAl5+2g61V22IFro+642Fmbd Zr8EL7PGtpDeqvmgrj3TjvbH1FeBjczP+eDm8sxvh9RgbtSErKr5dSzmBbDKyfZp+vm7 P6fo9bzgM2Zot1xL/tZwgF1vETkeGjZ7HUTXHIFjzXQOzPmdXYgl85VUSr0+a8oqh6EF JrYQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAVji3vfr57u+//NE9LHU32f9BICAi9UK+b7EoNRTpohImByNmtD OGfwgLT0zmJTvVguX+dFr7A= X-Google-Smtp-Source: APXvYqy/Ul8lgv8a3LEVCHb8uTMHDzCszgGVqwx+MPPhEv64UWXO8p+KIM86b7uiywPqu79NKXrU2g== X-Received: by 2002:aca:c702:: with SMTP id x2mr6185266oif.167.1572395963973; Tue, 29 Oct 2019 17:39:23 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:1291:: with SMTP id g17ls4688967otg.11.gmail; Tue, 29 Oct 2019 17:39:22 -0700 (PDT) X-Received: by 2002:a05:6830:1003:: with SMTP id a3mr20656915otp.166.1572395962638; Tue, 29 Oct 2019 17:39:22 -0700 (PDT) In-Reply-To: X-Original-Sender: ptmkenny-Re5JQEeQqe8AvxtiuMwx3w@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: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:23726 Archived-At: ------=_Part_283_170204388.1572395961962 Content-Type: multipart/alternative; boundary="----=_Part_284_421721068.1572395961963" ------=_Part_284_421721068.1572395961963 Content-Type: text/plain; charset="UTF-8" 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 > > 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: >> >> >> >> In my YAML metadata block, I have this: >> >> language: ja >> >> This sets the language in content.opf: >> >> ja >> >> 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 . >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/pandoc-discuss/c500692e-7472-40fa-991e-378b7ab173d5%40googlegroups.com >> >> . >> > -- 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. ------=_Part_284_421721068.1572395961963 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you for the response.

When I use<= div>=C2=A0
lang:ja

Then

* cover.xhtml
* title_page.xhtml

g= et
=C2=A0
=C2=A0xml:lang=3D"ja"

as exp= ected, but none of the chapter files do. (ch001.xhtml, etc.)=C2=A0 Is this = the expected behavior?=C2=A0 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 a= nd those used in templates were somehow different.
<= br>

Den tis 29 o= kt. 2019 15:40Patrick Kenny <ptmk...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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<= span style=3D"color:#660">=3D"http= ://www.w3.org/1999/xhtml" <= /span>xmlns:epub=3D"http://www.idpf.org/200= 7/ops"$if(lang)$ xml:lang=3D"$lang$"$endif$>
=

In my YAML metadata block, I have this:

language: ja

This sets the language in content.opf:

= =C2=A0 =C2=A0 <dc:language><= span style=3D"color:#000">ja</dc:langu= age>

But it doe= sn'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 HT= ML tag, either.

--
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-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pan= doc-discuss/c500692e-7472-40fa-991e-378b7ab173d5%40googlegroups.c= om.

--
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 pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@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.co= m.
------=_Part_284_421721068.1572395961963-- ------=_Part_283_170204388.1572395961962--