From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23723 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Patrick Kenny Newsgroups: gmane.text.pandoc Subject: Setting the document language on the HTML tag in epub3 Date: Tue, 29 Oct 2019 07:40:25 -0700 (PDT) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_875_1417799754.1572360025351" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="78468"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDLYD7NCUUKBBWU64HWQKGQEAMW6Z7I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Oct 29 15:40:28 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ot1-f55.google.com ([209.85.210.55]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1iPSfc-000KFg-0h for gtp-pandoc-discuss@m.gmane.org; Tue, 29 Oct 2019 15:40:28 +0100 Original-Received: by mail-ot1-f55.google.com with SMTP id e6sf81010oth.17 for ; Tue, 29 Oct 2019 07:40:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=jPMK+L/gfETiFVg/IxcNNExnn3tA1evPh/n7KDwh51k=; b=sMqXF2DDxxoBdXygo4iw0by9PocbqFnAmdSBnFNf2QRY5oK7v/v3R+JAzJw5nhv7jC OEvN0Qf9gTg6FynZweSNg3IiFBjLvTBaDZs36I+AVf9BTkoqJ+mG+awj8GXDZI+be043 MZEP3GCcLS1H2HMAZUo9nuofB6V5pJih89eczg1nvSF9r6JLdGU3QYOTn2cPajnw/ON+ nCRrgR1NSN8UXduu7XPxBFk/d5QnCq1i9VagVESb5Vg0gAI6lFy5OHT4Uk4OMh3aHvPM kDIoOkmVvqDNDWGdqZ7wahezIcW9BrZ/+qkOWkEUHB2CLP6IGN4I4mVRKsQtFJFy0Yvt 9igA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=jPMK+L/gfETiFVg/IxcNNExnn3tA1evPh/n7KDwh51k=; b=gDw1jXIoBPJwMe76168ocJhZ0Khp6a1ASyon25NkXHrjDBDZniFGa2sKCxbnCLw/0+ 4aONtUrMpsF9maHLdbrXeTWYChz+aMFOFqMsZ9F3DrTyofCYfsmgfa3sDS1myYNTc/8r xlhDtbqQ3SHbNFGo9rMItT5aoLIjBXCvfuDV8tSXmFmFoEfId8sKi64N4g/M/Jcb/ACh a+Byf3VwhP2yTvbrvfVZ5pbKpGJCHt9153qKEObwe9rGfQzaAriZUW6KJrzFEuIIS6Yh G0vQ/53rjUn//ISipF2NSJ3lGqkWJkvf9hcuKNWdrgYiQs2fPb5Pyj4fEx8t91eWMOfc ee/A== 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: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=jPMK+L/gfETiFVg/IxcNNExnn3tA1evPh/n7KDwh51k=; b=fAbMjmscmObxGG/OmG5GKIoRaKmMApb5wofxzdQ5zwse0xN1frm8l/xG+6zikh5tHw aINx7A/MXEKO7GoFJRCbs+YwoFznAXu399IqkNIXA4yHfCAjpizJ+oAV5U92O+VHsdtC bj7Ma2jRnBuwmT6m1ipyQ+HfLahT+pPCGuaOhBgdogYYiYExaozSjI3w1hmpBu6fx5An bygh3C0btUK9WT/oWz9OSPvnftBGHuPk/r1t+dJ/RwjcAvC+SzuHRZGpVLVSE2c4KWbS J6L/Z/Y9xySGQXOqm4vcADJPNyQYXZFKWRfHoKISYrfdrzdFZGGLYVm77kbOG02Va5qb Ylmw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAWKuLwFGTr0Lh5ZmokpwwpXNu0hvFjvNojib/3ExrTqMUV0bnZ7 u+xQkcurbOCUnZQ9NZXqlyw= X-Google-Smtp-Source: APXvYqzQbGM+9oNiyMh6ME3TdRaFjc/t+txKDDXto5AqgEhLWeJN0Na11d9Mlvugb3OSjJdRaoeCNQ== X-Received: by 2002:a9d:5181:: with SMTP id y1mr8720045otg.62.1572360026751; Tue, 29 Oct 2019 07:40:26 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:5886:: with SMTP id m128ls1061829oib.14.gmail; Tue, 29 Oct 2019 07:40:26 -0700 (PDT) X-Received: by 2002:aca:fdd8:: with SMTP id b207mr4449098oii.127.1572360025895; Tue, 29 Oct 2019 07:40:25 -0700 (PDT) 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:23723 Archived-At: ------=_Part_875_1417799754.1572360025351 Content-Type: multipart/alternative; boundary="----=_Part_876_2104971168.1572360025351" ------=_Part_876_2104971168.1572360025351 Content-Type: text/plain; charset="UTF-8" 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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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. ------=_Part_876_2104971168.1572360025351 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Going from markdown to epub3, how do I set the langua= ge on the HTML tag in the epub?

For epub3, the template= looks like this:

<html xmlns=3D"http://www.w3.org/1999/xhtml" xmlns:epub=3D"http://www.idpf.org/2007/ops"$if(lang)$ xml:lang=3D&= quot;$lang$"$en= dif$>

In my YAML metadata block, I have this:

language: ja

This sets the language in co= ntent.opf:

=C2=A0 =C2=A0 <dc:language>ja</dc:language>

But it doesn't set the langu= age 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 &= 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/c500692e-7472-40fa-991e-378b7ab173d5%40googlegroups.co= m.
------=_Part_876_2104971168.1572360025351-- ------=_Part_875_1417799754.1572360025351--