From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32313 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'Frederik Elwert' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: LaTeX: Individual words in Chinese script Date: Fri, 10 Mar 2023 02:35:40 -0800 (PST) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_4448_1966389439.1678444540434" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9008"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCCLDG7XVIHBB7UPVSQAMGQEAAOJOWQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Mar 10 11:35:47 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qt1-f191.google.com ([209.85.160.191]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1paa6D-00029t-Th for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 10 Mar 2023 11:35:45 +0100 Original-Received: by mail-qt1-f191.google.com with SMTP id br8-20020a05622a1e0800b003c0189c37e1sf2641271qtb.18 for ; Fri, 10 Mar 2023 02:35:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; t=1678444545; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=Xzn4m9Nxixb/lSifS7enA0sxLqLf+Ciy1Gg3hQhLthM=; b=BMXy2n9Z4NHf9sV195b2l5892bJKX/TxlnMUrnp4vVgbCtzo1kXsmGZYtNrlrzlvsC bKLyW/jNIyBp94Qt8VzW71nU70ZpBfe/PXITLrOt2S5+ZbvIpfENP0wUSTyjlrX+oS8z b/iFxYNpa4F3cgSeyU9T4X8tUWIA1fYK0QAOKZhG1KfVKbHGIkq1yfNpff+KxSW4H+ho LXFv50oEyhaAhhHKcYs+LvEB9k9TOXx9JCTRcqQPkwuTjflEpz2ZAhC7pXWOa/7vhdRb afveO9MY6nGd8bdVP4b1TlL+3300S+3rzbNIE8gzc/DfKtzFT9GJygyI2AvZ/U0j0Fec Wm1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678444545; 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-sender:mime-version:subject:message-id:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Xzn4m9Nxixb/lSifS7enA0sxLqLf+Ciy1Gg3hQhLthM=; b=cYGxXf0qVZT41Yicp6GpB8br1K9NrlyknsI4j9Yb02cPtjWKfQDMEVmS/CzrlagGkp 8k7tykFHXJbvUKl977OtFYxkIcY6GD5YPKdICmO1Rv1NNi5wTMQiENdQMKXkIk/bfkan jxpIQdeOz/f+bliUM4JbMYs+vflAT0/HykMpDYRIFCREnt38Fu8p57RkgX5QPU30rkLL 6nVQJZkgxzm6NlQS527CbRuJrWvpgel6lRiuO9j6Z8Y3IxGm27WewLRxk3XhfHSXrjO9 xtzwd/ZeLcl6+MHnM4EDS13SpP5QS7swQ7dtyGtu2WHGxoXr6W3sDX2nD5708KxGhWHu BZoA== X-Gm-Message-State: AO0yUKUQjCLTM/SOFYRZgtiGIkzTN+xO0RaJeH8cHa5GWhzdwb2C/d+u tY/c22lyMIzqWsk8HWgq2kI= X-Google-Smtp-Source: AK7set8bzG6WsmdZdlbhZmw8/TdwH405Zo4GxwD0ooISQLOxB+qNSm2WoRBRtIH6aK2wPfUkhTcmhA== X-Received: by 2002:a37:c409:0:b0:71f:b89c:69b8 with SMTP id d9-20020a37c409000000b0071fb89c69b8mr628174qki.8.1678444544915; Fri, 10 Mar 2023 02:35:44 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:ad4:5aef:0:b0:56f:ee90:e325 with SMTP id c15-20020ad45aef000000b0056fee90e325ls3635682qvh.7.-pod-prod-gmail; Fri, 10 Mar 2023 02:35:41 -0800 (PST) X-Received: by 2002:a05:6214:913:b0:56e:ff38:46a2 with SMTP id dj19-20020a056214091300b0056eff3846a2mr6700272qvb.10.1678444541041; Fri, 10 Mar 2023 02:35:41 -0800 (PST) X-Original-Sender: frederik.elwert-lnqqDxZ76pI@public.gmane.org X-Original-From: Frederik Elwert 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:32313 Archived-At: ------=_Part_4448_1966389439.1678444540434 Content-Type: multipart/alternative; boundary="----=_Part_4449_1222277487.1678444540435" ------=_Part_4449_1222277487.1678444540435 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi! We are typesetting a lot of academic texts which are mainly in English, but= =20 contain words in other languages/scripts. At the moment, I need to produce= =20 an article that contains individual words in traditional Chinese. With pandoc, I currently face two issues: First, chinese is not defined in Writers/LaTeX/Lang.hs. This means that, in= =20 contrast to other scripts, I cannot use `[=E8=A8=80]{lang=3D"zh-Hant"}`. Fo= r other=20 languages that are defined, the LaTeX writer produces=20 `\foreignlanguage{}{}` commands, but in this case it produces only `{=E8=A8= =80}`.=20 Thus, the only possibility is to resort to `CJKmainfont`. The issue is that= =20 this switches on xeCJK for the whole document, which has undesirable side= =20 effects (mainly concerning spacing around punctuation characters). Thus, I= =20 have to introduce manual `\makexeCJKactive`/`\makexeCJKinactive` commands= =20 in my markdown source. For short passages of Chinese, it is actually=20 desirable not to use xeCJK, but simply babel, as with other scripts. Second, I do not see a way to define fonts for other scripts. The default= =20 LaTeX template calls `\babelprovide` for used fonts, but does not allow to= =20 define corresponding `\babelfont`s. With the old polyglossia system, IIRC,= =20 it was possible to use the `fontfamilies` metadata entry to define=20 `\chinesefont` etc. for additional scripts. But this does no longer work=20 with babel (if I=E2=80=99m not missing something). So basically my question is twofold: First, how do I define additional=20 fonts for foreign scripts with the new babel system, and second, would it= =20 be possible to support chinese script in the LaTeX writer in the same way= =20 it supports other scripts? Thanks, Frederik --=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/cadd3e14-3167-447f-9f64-8158a6613cb6n%40googlegroups.com. ------=_Part_4449_1222277487.1678444540435 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi!


We are typesetting a l= ot of academic texts which are mainly in English, but contain words in othe= r languages/scripts. At the moment, I need to produce an article that conta= ins individual words in traditional Chinese.

Wit= h pandoc, I currently face two issues:

First, ch= inese 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 `\foreignlanguage{}{}= ` commands, but in this case it produces only `{=E8=A8=80}`. Thus, the only= possibility is to resort to `CJKmainfont`. The issue is that this switches= on xeCJK for the whole document, which has undesirable side effects (mainl= y concerning spacing around punctuation characters). Thus, I have to introd= uce manual `\makexeCJKactive`/`\makexeCJKinactive` commands in my markdown = source. For short passages of Chinese, it is actually desirable not to use = xeCJK, but simply babel, as with other scripts.

= Second, I do not see a way to define fonts for other scripts. The default L= aTeX template calls `\babelprovide` for used fonts, but does not allow to d= efine corresponding `\babelfont`s. With the old polyglossia system, IIRC, i= t was possible to use the `fontfamilies` metadata entry to define `\chinese= font` etc. for additional scripts. But this does no longer work with babel = (if I=E2=80=99m not missing something).

So basic= ally my question is twofold: First, how do I define additional fonts for fo= reign scripts with the new babel system, and second, would it be possible t= o support chinese script in the LaTeX writer in the same way it supports ot= her scripts?
Thanks,
Frederik

--
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/cadd3e14-3167-447f-9f64-8158a6613cb6n%40googlegroups.= com.
------=_Part_4449_1222277487.1678444540435-- ------=_Part_4448_1966389439.1678444540434--