From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23724 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: BP Jonsson Newsgroups: gmane.text.pandoc Subject: Re: Setting the document language on the HTML tag in epub3 Date: Tue, 29 Oct 2019 17:41:58 +0100 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000003d36e005960f4cc4" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="65540"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDIY76M674FRBZGX4HWQKGQEBPJZV2Y-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Oct 29 17:42:14 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ot1-f64.google.com ([209.85.210.64]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1iPUZS-000Gq9-DC for gtp-pandoc-discuss@m.gmane.org; Tue, 29 Oct 2019 17:42:14 +0100 Original-Received: by mail-ot1-f64.google.com with SMTP id v51sf8567557otb.5 for ; Tue, 29 Oct 2019 09:42:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1572367333; cv=pass; d=google.com; s=arc-20160816; b=pR609nzwCZ3+ugqjCdq6TnzVvMYOGgc0Kk0BLx4HEjVO2M/IX+NxJrRCK/072g+zoa zxqSlsUThoHs4t8P3zqD8JFMqxDJN7LdKDl90cL6drfrI4h7PtJEm1mHqi8XRHetJrEH Q9+5ZACtNsIUncK2JjvyJ7XV/g1xcpcEo6Lk8P6rHKpBs0HQKor1V29eokNaoPCL/OVr QBkkwyAuMBY9HtpxxSZiuVUYyvmIhc92C7wipxgk62VxOP7AjxwXKl6owog/ehNvVkcj GZKc1+zDbqNUiWpLSAh1Rd/cp28wYbCUWicpYoLAncSXKtGWj5nLpS1Ypjw5Yi0lTd/D VSBg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=+a99d20gYyIdVldQAc7SIOTtCi81JWiTAMwJCgsOMDA=; b=QFV1E5cGRSC3DqReH2M3XsARvRnkF+SCzbpjtsuusQ+ylefpLHYctnlW3q68UNHZhp Z/8k3VOf4dNKEvqzpOpKDPhHY0/6NRA7uF8iYZUvjVsgQgMTqzPdaKRos+dTSL3oGZjh ACSQA6OZYCsgg8EFL3EtJ2he2yqBuxAtfsxMoLVmosWht6JD5XkB8EZde0fxwBovvE50 WqM0Hj6BZRovPfLimXE8GzKDwb5X1oMWP//mzyZxYdLMcqqJiUysXork+1cOEMSFTgVO IvZy0Nb6amPkwG7L6aaJALNJYEeqszNOhF6pVZZrswSs101DAY0xXDtL1XDJUpCMBxgL VL2g== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GC5mhu8H; spf=pass (google.com: domain of bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::62d as permitted sender) smtp.mailfrom=bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=+a99d20gYyIdVldQAc7SIOTtCi81JWiTAMwJCgsOMDA=; b=jwD1SU6aBfXBEoWZJ3g4cyzqg6J86MZWpWsAYIBCWBfFtTBuHXIsh7ZOc25plVOHp9 8JfBsk3TYqhPVrK9Wm4ZLeWHw5MBNXT58iVZI7xmSDdS33D1j6z26ttrTI+YOa0bpZdR 8dXHvPdjq6UGI7ZCffYL+N6gnUtx6gGRUPM0oBXghyHM9GDhHP0Yk0pd+WnuMNQfYbWA QMPuFsxRTC1HMfm6YSqZxDuKCCi+6X9ppFzdz0DcR9YNC+gdjylD/UAeTqSfUuhLbKQH ZfprweHQKEKV5Ok8DxW/XqKvJaK+GrHlFzNEwpEX+5mKUPcFPwPn/VBBNhysvmOiLbr9 KTFQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=+a99d20gYyIdVldQAc7SIOTtCi81JWiTAMwJCgsOMDA=; b=oSkjz0lQRkT2A5xaTMIBe7e0LvFVMmvqWw41o+h09/+9uglqslhWvcgzZ13kpZSmfw CofBAl0bfBlHiwZacUj9UsPunW2UuaUc+AUHHSSadzGAT29eS1oH/Fa+rFsrSo6XCZ9q qK1Mu70EmtBJYOO7OlE4IpgbBg0c2X9WQwuWlkcnt0SobJ3YNtd0lA8oMvgn8WyRfKi1 0K5Dqx4BRSyzH+ZPCVjuuNez4z8pJtdDGtUOAjhFZtMyn7+JIt0nP59aZoaEteGE66ml Wrqk7E7x7+nygohTIGxlmh4HihA355EhaXUoPVWqx3iz2S9OELxiJ+yTytU/nq9B8Bo/ TODQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=+a99d20gYyIdVldQAc7SIOTtCi81JWiTAMwJCgsOMDA=; b=IpXPJxTnfhaG78J6iQ1+R8WmxvkA4cHdtgFP5yPhs+nyKzs8aL2A+5f5H3n4Gk15Bq 52yshMlqFhG5759p2ITPNwTAKD+IOM7ro5vkQcjgoMF6oJ7pkYgH+/Y1F1w+1wpr2v6U qNbdfT8dRvcgvTnSlKxkk3UeUyiNXFl5N+ad0zpp2TUbByc7Wq9P24k49jvTb8fMAHpi bW8hgun4fMcbjeSKkfP7iEKemFFpIv4rEij5qYERY00ogV5E1ATR0vyWtsjbZ0NxCgq5 FIRnz24lkJSxehL+K1YoR4x59YHkgVpTsK5D2+0qnIgkTnWVK+hheXiFfHYpZrBEMdl9 A+ng== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAVKPZwP4htpAwgSPvQAKb9x8z8Aq5tJBVYvT7U2RT8jHVLjz+zQ Ih0wEDuY731hgrK8om5Ih5o= X-Google-Smtp-Source: APXvYqxYsDK+0ayWGB3Q2wVUQFKLClmmUhjhaBmcAb66qBkWSVTwWYNjHSeRk6lbwx2xK2nSFreXPA== X-Received: by 2002:a54:4481:: with SMTP id v1mr4701718oiv.152.1572367333064; Tue, 29 Oct 2019 09:42:13 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:740e:: with SMTP id n14ls24026otk.10.gmail; Tue, 29 Oct 2019 09:42:12 -0700 (PDT) X-Received: by 2002:a05:6830:189:: with SMTP id q9mr15289210ota.83.1572367332134; Tue, 29 Oct 2019 09:42:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572367332; cv=none; d=google.com; s=arc-20160816; b=yLpFfWGATCBhxNGzAcQJp4HG+QOmyQ9tA80SD13pgS6b3AxGasYPYdLVUtSHZlg1nf uEFt3yTlN7AWQSapVQDI6cwUOc7Qvrxg3yg1dRbp++BU+uqQ6zSbKnf+Sb4Xef9mcp7n mSwBMoQBur1Z8SZcGKEo6vWCYT5FXJn21/mFltAipSMLS5mV07HmxYdxeoXd5oZ7wHgC 9fpOvA5beH0g94QiNm4C+oa4Ldiqxd4bXwqyzmFVTgmBAFsaac+ZI0oeUsaddpy5X7ID eipMjqSJLFqSmH7C/F9jNAgSldc+f09ZWLcsnNlWyyhexJii3Ek4vcvqCL4SbArcmQcg btXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=iyxsOaQQJ58QpyH/lQ4CYQAE9Af+bVW2hLlq1F+UnbE=; b=wc2I9Wu8+77B4QONTkkCN0iRxKjVa0CHO0f0sV5srqSRojQJQOrdoX+V1SjcBxKD+F kHKiVUS9WRj25e9aW+wINX4JxVAi+QKYqaAVcMys0c/QCvaZUK2MZexuYRbVLeTh4lXa NApVVUs77ewSPZUTJjHJF6piGFms31zv32dD2Sx/9jWcDfcWh2thPqJx12lgvgKs8U/D jiDewZ5a3wBRSlOE2RJ4pms9Uj8c7d3K0UQ/7pZAk/7TRzxbGBj7g7jzMfYBs1ejo28+ MKViCdLwrLqz3eWYrNS5Q89hSsQiKTjNHJ8gJV3dFIJ9nHF/OzOrs8wi32PSr/BAhl1C u4UQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GC5mhu8H; spf=pass (google.com: domain of bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::62d as permitted sender) smtp.mailfrom=bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com. [2607:f8b0:4864:20::62d]) by gmr-mx.google.com with ESMTPS id c19si71463oto.3.2019.10.29.09.42.12 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 29 Oct 2019 09:42:12 -0700 (PDT) Received-SPF: pass (google.com: domain of bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::62d as permitted sender) client-ip=2607:f8b0:4864:20::62d; Original-Received: by mail-pl1-x62d.google.com with SMTP id v5so7897545ply.10 for ; Tue, 29 Oct 2019 09:42:12 -0700 (PDT) X-Received: by 2002:a17:902:b091:: with SMTP id p17mr4953768plr.13.1572367331308; Tue, 29 Oct 2019 09:42:11 -0700 (PDT) In-Reply-To: X-Original-Sender: bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GC5mhu8H; spf=pass (google.com: domain of bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::62d as permitted sender) smtp.mailfrom=bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:23724 Archived-At: --0000000000003d36e005960f4cc4 Content-Type: text/plain; charset="UTF-8" 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-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 > > . > -- 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/CAFC_yuTob%3DpKyjGrQ3tT8SNp%2Bo7E2hbpz3MZRqy_52%3Dmfy5wJw%40mail.gmail.com. --0000000000003d36e005960f4cc4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The metadata key is exactly like the pl= aceholder 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 templat= es. That wouldn't work if Pandoc meddled with the variable names so tha= t the names used in metadata and those used in templates were somehow diffe= rent.


Den tis 29 okt. 2019 15:40Patrick Ke= nny <ptmkenny-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> sk= rev:
Going fr= om 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=3D"http://www.w3.org/1999/xhtml" xmlns:epub=3D"http://ww= w.idpf.org/2007/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:

<= div>
=C2=A0 =C2=A0 <dc:language= >ja&= lt;/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 val= ue 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 pandoc-discuss+unsubscribe-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.
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 &= 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://g= roups.google.com/d/msgid/pandoc-discuss/CAFC_yuTob%3DpKyjGrQ3tT8SNp%2Bo7E2h= bpz3MZRqy_52%3Dmfy5wJw%40mail.gmail.com.
--0000000000003d36e005960f4cc4--