From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id wPx9Bu6sI2RzhQEASxT56A (envelope-from ) for ; Wed, 29 Mar 2023 05:13:50 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id uG6HBu6sI2RjaAAA9RJhRA (envelope-from ) for ; Wed, 29 Mar 2023 05:13:50 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9D6142A793 for ; Wed, 29 Mar 2023 05:13:49 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phMFJ-0002qS-QO; Tue, 28 Mar 2023 23:13:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phMFI-0002q5-GM for emacs-orgmode@gnu.org; Tue, 28 Mar 2023 23:13:08 -0400 Received: from netyu.xyz ([152.44.41.246] helo=mail.netyu.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phMFG-0008Oh-Ql for emacs-orgmode@gnu.org; Tue, 28 Mar 2023 23:13:08 -0400 Received: from fw.net.yu.netyu.xyz ( [222.248.4.98]) by netyu.xyz (OpenSMTPD) with ESMTPSA id b934f159 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Wed, 29 Mar 2023 03:12:59 +0000 (UTC) To: emacs-orgmode@gnu.org Subject: [Q] How to italicize without introducing a space? Date: Wed, 29 Mar 2023 11:12:37 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=152.44.41.246; envelope-from=ruijie@netyu.xyz; helo=mail.netyu.xyz X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Ruijie Yu From: Ruijie Yu via "General discussions about Org-mode." Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1680059629; a=rsa-sha256; cv=none; b=qE4Z4M+Sp/hoFwvD4A9DxHrj26pN0VlQxvQcqS8GGcCXVo1E/fXS1/6Js0D8lbsjgNwPoE HkGDBYpF34MeShBZeuVx3r6VFrsvIsSJf/86RqKeMacFIUvm+pqTuToRwRxUdwU3TgxwUg +MOXeeIikISnMPW9PaLbqVYU/s1QfJqlmsTsCh7a6EBjNOS4/rr0RLC1awJMzI14GDGv2G cbuHdDgKdQbdS7whyiOIu/QU2/vSJ6U0Nl31+l52JHRuL7zrzS0Cv8HAKyyWMYsh4IL5A8 hQ4dijhNehps28zUcCnzdGy52hc1kJl1i7OoYVbFZA0pt5hSK5D8C01jC7IBsg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1680059629; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=AUrR07739+zXUZVRO274yC8JW3YPQ0NFscYmgPZr+lY=; b=FIzMdyt11W12Wujqxq0MvXi/azbunJ3Vo7VdFtkOcjOZnKqGoRWwAhr8++KghxJaCFGjXN r5fQRzPqBKs+/HpQyAdcxL3Xk64pyQi1sls7OSQHmrbt6YMPCls/FIPsGu6JmqMZe0CwLG h2PYtV7HrCo9p7OPh+MCp6QwM3SuBrZVJZm5kkn1obgCVgfTaftHBMktsrW3bLi1sko+bT dceM077Xpdnp9HUonoigSndcqHNn86Z6/7HuhZYbXD18o3DK2S0ogjLUExNsHUlR3TImv8 41KIOVl3fI5PkLNRMu22AiFWoyoi/dJicOjuwZkRiunzNlt1uAXvfdPY5p8YMQ== Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -1.03 X-Spam-Score: -1.03 X-Migadu-Queue-Id: 9D6142A793 X-TUID: GveuZjCsdmm4 Hello, I am working on a piece of CJK text, which requires italicization. --8<---------------cut here---------------start------------->8--- =E4=BB=BB=E4=BD=95=E4=B8=80=E4=B8=AA=E7=AB=A0=E8=8A=82=E5=8F=AF=E4=BB=A5=E9= =80=9A=E8=BF=87=E5=A2=9E=E5=8A=A0=E4=BE=8B=E5=A6=82 =3DTODO=3D =E6=88=96=E8= =80=85 =3DHOLD=3D =E7=AD=89=E5=85=B3=E9=94=AE=E8=AF=8D=E6=9D=A5=E8=A2=AB=E8= =AE=BE=E7=BD=AE=E6=88=90 /=E5=BE=85=E5=8A=9E/ =E3=80=82 --8<---------------cut here---------------end--------------->8--- Note the spaces before and after the pair of `?/'. Without these spaces, the HTML export does not show "=E5=BE=85=E5=8A=9E" as italicized, b= ut instead treat them as inline literal `?/' characters, which is expected in current Org implementation. Also note that -- unlike English -- Chinese sentences rarely use spaces (if at all), so showing the space simply because the Org grammar needs it seems unnatural. However, I don't immediately see how to resolve the issue natively in Org. If we allow `?/' to italicize regardless of spaces, then things like Unix paths would no longer work. So, I came up with using LaTeX like this: --8<---------------cut here---------------start------------->8--- =E4=BB=BB=E4=BD=95=E4=B8=80=E4=B8=AA=E7=AB=A0=E8=8A=82=E5=8F=AF=E4=BB=A5=E9= =80=9A=E8=BF=87=E5=A2=9E=E5=8A=A0=E4=BE=8B=E5=A6=82 =3DTODO=3D =E6=88=96=E8= =80=85 =3DHOLD=3D =E7=AD=89=E5=85=B3=E9=94=AE=E8=AF=8D=E6=9D=A5=E8=A2=AB=E8= =AE=BE=E7=BD=AE=E6=88=90\(\textit{=E5=BE=85=E5=8A=9E}\)=E3=80=82 --8<---------------cut here---------------end--------------->8--- This has two drawbacks: 1. (network-related?) Delay. Apparently HTML uses MathJax to render LaTeX, and my browser experiences a 1-second delay due to it needing to download JS code from MathJax and doing some processing. 2. Transferability. This only resolves the issue of /italicization/. What if I need to underscore or bold a piece of text (likely), or to add an inline code block with CJK characters (unlikely)? I would have to search for how to do each in LaTeX and write the workaround accordingly, instead of simply using the Org markup syntax for each of them. Are there any other solutions than what I have currently? --=20 Best, RY