From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32317 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: LaTeX: Individual words in Chinese script Date: Fri, 10 Mar 2023 10:17:50 -0800 Message-ID: <667077D3-D8A5-4B6A-9253-F3F569439ADA@gmail.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.2\)) Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27669"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBBUPIVWQAMGQEZKYM7AY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Mar 10 19:17:58 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pf1-f191.google.com ([209.85.210.191]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pahJW-0006wM-25 for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 10 Mar 2023 19:17:58 +0100 Original-Received: by mail-pf1-f191.google.com with SMTP id b8-20020aa78708000000b005eaa50faa35sf3295104pfo.20 for ; Fri, 10 Mar 2023 10:17:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1678472276; cv=pass; d=google.com; s=arc-20160816; b=i3vQ7pR6rQI5KxgqfgHTcbUJuXqSnoKVE/EmkRikRwnePgTfH0OHhryyvcnnAdcvjI lpIFtk7bD5Y/vzEt9ZZjKNs3QTC+jUEKHotK3e3xVD3yQlxrSYqGRt3AZP90H+HLlQNW UGmyXnJTlPakqSELrTldAg4MSUk3JFqhhAOp4a5cJkTwaJ0aHY+kqEUD1N5StfMlQZU6 3a4YQe/5xdbQUYySRo3/axvnu35uGuZzlIaQhcJTO3LRyTrOzr6tg9RT6zzbj3msCCAJ JlAD+kzyU4PFncM1xttDboF7iOX0SC5jPSWXAzi0pRVbSvSGTCXN3ep9XepdXt3BnZDP hWpQ== 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:message-id:in-reply-to:to :references:date:subject:mime-version:content-transfer-encoding:from :sender:dkim-signature:dkim-signature; bh=VuJ8pZGg6fO8f6RFT2QWvvASDE2W2ITu8Xn0z3/hDwc=; b=etWzL1TycHP91N+biEIv4pVWGk0/JQEZ/lZK8uqwJf+hO++AMPv27iH+if9EcMbirh HtqEp2AamzlmIjnemeBT8DRa2sPhGoO988vNGMDHzaAYTpwnmXY2LaPC286qa9lsa/O9 7h/vpM5wNEHGCtOjdb4jhFMsLB9yg2mO23knXmb/4FLn6HrCfjVuqlg76FSkEOHx7tjX dQ5LUXW5B2u8WeTA/91XruVeUQ61Gc1BoBUB7VNW3J008nMoFbK4jgg4m3HZILTv2x3V nmc+IHFzY4qKk8vayzdy6s0Y2dbRI8fqpDiiGDoptXnunnjVwfQ3hypejWRG9L7Wk16E /eRw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aLLcTtRx; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::62e as permitted sender) smtp.mailfrom=fiddlosopher-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=20210112; t=1678472276; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=VuJ8pZGg6fO8f6RFT2QWvvASDE2W2ITu8Xn0z3/hDwc=; b=Gp/qC1+TN0K1U2Ixp1O8te9ZplC8XDfAG9armixjyKLnROriZQp7OwFlvAbaLQcQ47 y7uKu+HXZUyGbYTJTqaQjRPoEfYjqMzaMAWm2ckWTpQU/U+lHw1X/ytaTZZ0HXf12cJC VZ2z6H2B+Q+MWZ9M/bJcSsT+MAjSMZNQ3cp6G1psobJtpVLk4t2nqWhj7b99MWVlbVk0 /Fg0I9fO34XnxoxcnjOHooVAJ2gpihXrxE0zaY7ZzyCi7Ek7wLZkQZ/tkFwT2sMkDkgy dhWHLzL2LzrvkZrPX/PYDCQXFjon0cnXc/mDfpEHfpPpXG2nSI2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678472276; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=VuJ8pZGg6fO8f6RFT2QWvvASDE2W2ITu8Xn0z3/hDwc=; b=fhmqSi3z+8cDei9+4x7/Qu9oDuPpqvg/JwdhWaSlOhRVIviGxgYFrbpyURCZhOfwLc 4Sg24/REC99uKF3QRxuSQIgO8MYl5MB7NET4ukqoGZEAjpuIIZPWBh+DScQ8SOF8FYg8 YeWHXpmAU60jYSRL8mgdBqBBTYJWvhkae8Gv/nECmVLnCf9WuW1IDCkJI4HAzCJENHtB YPL/CzoO/0MriTbBIy19schK7l4mo4lCXdpxOWvBhCHPyviUZpR6r9bjk8s11dfJkgjd zNLxw1dtPMI9JtF/5kRcilY25MiSHk7/4z0qkml7YoxVM0oAR6lEHp/8n436IKDd7 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678472276; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=VuJ8pZGg6fO8f6RFT2QWvvASDE2W2ITu8Xn0z3/hDwc=; b=YGJmNVNFwSsHdqVR4gCsPRirsJX05/AviqrKpb6Il9IO7lrXYak62ZlYBBG1l9+dtF H5mR5Lk4UM0EQaPlcPnCwPC1RzU7rXvJIqVEbbWFcTOBIoFJHfvw+E65L074swEYYFNU BfNO3vN3XRFndOPzQpeGXQrG4t/0vcSvH2TQwWLoHMIgjiKJuPRDlHFjRz4Ou2+MT+YP x1H1Fq5kfBuA64UUQD8c/cEKw1UAVLFgSDVVsNF1MdXI5XWlSYKqe7uwDsYd/iErnSuc Dk2Rbl Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKWrh3BVoySBJvpUxZpBItYDb/kjrmdOWEudnuEdv4FvmauT0esj v57SvoTRqJD6m6iwicr3PjY= X-Google-Smtp-Source: AK7set/72L2CETpU0cm68LNQdHUtEAYLZpp7m26k/0VMtHhVIFHvdvpBTuVK36zncj/oFVavTOYF3w== X-Received: by 2002:a63:7512:0:b0:503:77c6:2ca3 with SMTP id q18-20020a637512000000b0050377c62ca3mr9070785pgc.5.1678472276554; Fri, 10 Mar 2023 10:17:56 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:903:25d1:b0:19c:2b1c:4d75 with SMTP id jc17-20020a17090325d100b0019c2b1c4d75ls6123108plb.0.-pod-prod-gmail; Fri, 10 Mar 2023 10:17:53 -0800 (PST) X-Received: by 2002:a17:902:da86:b0:19e:31a3:1a87 with SMTP id j6-20020a170902da8600b0019e31a31a87mr30256252plx.39.1678472273345; Fri, 10 Mar 2023 10:17:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678472273; cv=none; d=google.com; s=arc-20160816; b=GC6SNWlIcfx8F55WYyXD6NKbdd+4VX2mLJJJ6szJTdxTAWNL9lO0zGmUlBABEnrrDq C7RJU92YuU+mctueF7iqV41fLXTHHZQYz1UpirP4SRQ5Ps/QIwR8UfvvtJgy7pr2IjaY Q78cLH31Y8Vb/sQGhnVHA2NZe5DIR77gMjqyvgikiwKCFHk3O4vW5OoIQ4eAsJNmQuCK xDpY0yS+U/phzf4rBpEQaQVjNkkY+/h3vXhNY2ek2f5OEAfHvB5qv3miLAQ3Cyyqi3AR cgasw6paC7/NUCnFNNLDa1DHQkJVCEYL9TwsYTdrK2BQZyihoOzLr3hZdQCkBznZuXHU g04A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:dkim-signature; bh=9TSolk6ARdRQJYp4JczXvTHzkwxWt1TsHNoOVgTIUh4=; b=NFO4CMF5TzSIhVo6AsB4PJSIk705DnQPeGY+A9zj/cvfF2WknDNeKAkNi01TPE36Or njeBg5zB0Nf673rwS2B+uifDIuAMxqZJ7G9YB9fvew0y+Laq1gAQ1MAVqzuy3jogsyLI jIS6DMCSO4h1jWfphlcHbYwjiZ9nNcGSGoGUD0mblnYZoAEkDKQqVTHngf4t4u2HeHKw q8Z6LlO019HkOZJ+06PyCXLQtE9bZJR1o0AqDmgJ92jplPgqzNEfUtG/4OpqYBLNby8U 8pTSpQRm4le3vSiQoxPmwf8cEkpWDEyrQOmV/DaoIs41yZ2C+GDCXkIU7SE9tU/BWphQ KmPA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aLLcTtRx; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::62e as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com. [2607:f8b0:4864:20::62e]) by gmr-mx.google.com with ESMTPS id x23-20020a1709027c1700b0019e8f83e7cdsi35044pll.6.2023.03.10.10.17.53 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 10 Mar 2023 10:17:53 -0800 (PST) Received-SPF: pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::62e as permitted sender) client-ip=2607:f8b0:4864:20::62e; Original-Received: by mail-pl1-x62e.google.com with SMTP id i10so6496928plr.9 for ; Fri, 10 Mar 2023 10:17:53 -0800 (PST) X-Received: by 2002:a17:903:41cd:b0:19c:94ad:cbe8 with SMTP id u13-20020a17090341cd00b0019c94adcbe8mr31789700ple.36.1678472272540; Fri, 10 Mar 2023 10:17:52 -0800 (PST) Original-Received: from smtpclient.apple ([2601:644:4780:3350:d9e1:80f9:3fab:a1e1]) by smtp.gmail.com with ESMTPSA id bb3-20020a170902bc8300b0019ede1a1eedsm303676plb.134.2023.03.10.10.17.51 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Mar 2023 10:17:51 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3696.120.41.1.2) X-Original-Sender: fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aLLcTtRx; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::62e as permitted sender) smtp.mailfrom=fiddlosopher-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.io gmane.text.pandoc:32317 Archived-At: Obviously, it is important to support this kind of thing. Can someone else= who uses pandoc with multiple scripts comment on how you handle this? One solution I see at https://tex.stackexchange.com/questions/165197/russian-and-chinese-in-the-s= ame-document is=20 \usepackage[encapsulated]{CJK} and then \begin{CJK}{UTF8}{gbsn} =E4=BD=A0=E5=A5=BD \end{CJK} Perhaps you could use a Lua filter to convert [=E4=BD=A0=E5=A5=BD]{lang=3Dz= h} to this form? > On Mar 10, 2023, at 2:35 AM, 'Frederik Elwert' via pandoc-discuss wrote: >=20 > Hi! >=20 >=20 > We are typesetting a lot of academic texts which are mainly in English, b= ut contain words in other languages/scripts. At the moment, I need to produ= ce an article that contains individual words in traditional Chinese. >=20 > With pandoc, I currently face two issues: >=20 > First, chinese is not defined in Writers/LaTeX/Lang.hs. This means that, = in contrast to other scripts, I cannot use `[=E8=A8=80]{lang=3D"zh-Hant"}`.= For other languages that are defined, the LaTeX writer produces `\foreignl= anguage{}{}` commands, but in this case it produces only `{=E8=A8=80}`. Thu= s, the only possibility is to resort to `CJKmainfont`. The issue is that th= is switches on xeCJK for the whole document, which has undesirable side eff= ects (mainly concerning spacing around punctuation characters). Thus, I hav= e to introduce manual `\makexeCJKactive`/`\makexeCJKinactive` commands in m= y markdown source. For short passages of Chinese, it is actually desirable = not to use xeCJK, but simply babel, as with other scripts. >=20 > Second, I do not see a way to define fonts for other scripts. The default= LaTeX template calls `\babelprovide` for used fonts, but does not allow to= define corresponding `\babelfont`s. With the old polyglossia system, IIRC,= it was possible to use the `fontfamilies` metadata entry to define `\chine= sefont` etc. for additional scripts. But this does no longer work with babe= l (if I=E2=80=99m not missing something). >=20 > So basically my question is twofold: First, how do I define additional fo= nts for foreign scripts with the new babel system, and second, would it be = possible to support chinese script in the LaTeX writer in the same way it s= upports other scripts? > Thanks, > Frederik >=20 > --=20 > 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/msgi= d/pandoc-discuss/cadd3e14-3167-447f-9f64-8158a6613cb6n%40googlegroups.com. --=20 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 e= mail 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/667077D3-D8A5-4B6A-9253-F3F569439ADA%40gmail.com.