From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id IK4eItLzI2RRAgAASxT56A (envelope-from ) for ; Wed, 29 Mar 2023 10:16:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id iLQoItLzI2SRfAAA9RJhRA (envelope-from ) for ; Wed, 29 Mar 2023 10:16:18 +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 338051C3FF for ; Wed, 29 Mar 2023 10:16:18 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phQyU-0000pe-OU; Wed, 29 Mar 2023 04:16:06 -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 1phQyT-0000pH-1w for emacs-orgmode@gnu.org; Wed, 29 Mar 2023 04:16:05 -0400 Received: from mail.mojserwer.eu ([195.110.48.8]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phQyP-0008OS-Hn for emacs-orgmode@gnu.org; Wed, 29 Mar 2023 04:16:04 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id A811616788D6; Wed, 29 Mar 2023 10:15:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2RlL6n-6lkD7; Wed, 29 Mar 2023 10:15:39 +0200 (CEST) Received: from localhost (91-227-196-3.net4me.pl [91.227.196.3]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 4E9E41B910A5; Wed, 29 Mar 2023 10:15:37 +0200 (CEST) References: User-agent: mu4e 1.1.0; emacs 30.0.50 From: Marcin Borkowski To: Ruijie Yu Cc: emacs-orgmode@gnu.org Subject: Re: [Q] How to italicize without introducing a space? In-reply-to: Date: Wed, 29 Mar 2023 10:15:36 +0200 Message-ID: <87r0t80y8n.fsf@mbork.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=195.110.48.8; envelope-from=mbork@mbork.pl; helo=mail.mojserwer.eu X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1680077778; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=+VyVGnIrQMpuRnMGll2o2oDgws2M/fDiEkrvL/J+v10=; b=JHpn8Q5/4zq49oEvn0VkLnBne1Wyj3uxT+LSYnMzsYQxNu1YyjTBtCtHjrqbQ9sTnfSH18 6YrXOQRMzZT6E6G8HXA8MSh7HsRltUIPiX5SEeZtxQVVxbGlwyyR8/M7D0v7OvM1J7NGN+ +3T89MF/9/Me+SP5AYf4Ha01aDT3ohgxCOOe5xq6Qbr+tHosaxkFMPwYfpsrLTPFv57/E8 YploScKR31W6XkJ3Jm0K/L3YFCvnn2Vhmm79w145Nk10za4RpVe3/ng42G6aspU2kwv1So gmjN8znUKb/FgEJEqYrBjoRFtXtmW/TmL/qMU4WQtF8V8YCc+7ptyiDuFSnsUw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1680077778; a=rsa-sha256; cv=none; b=tYs7edJJlzfNDopLI+i7coXuJY69stn75VXkkFdoGAOV9dkmmJMjEcBZfrgoIFULCAgKp6 K29XNs0XSRocWFg9ntkDvzdyy46/z8A8H6m0d+Ymnf9MLoRoWIGg1EqZtH0YvZTW0r53TH LoV92KLspjhTI9+TkJcywdtNAtizD43H2wRFmnlQLfMz183sRFovtWJJgJO3FILqEYA0WS Bhl57BrsN5UtCFAjDNS4+0J25zR4RYV9CK9In6aBvU6He2oGR8p3tWT6jntE82j/lWz2Z5 NWiCqzRusTZxrKwYEymgN3IaNAq6n4HAOvRi98KglvffyCumU21dTPPBSKBrWg== X-Migadu-Spam-Score: -0.63 X-Migadu-Scanner: scn1.migadu.com X-Migadu-Queue-Id: 338051C3FF Authentication-Results: aspmx1.migadu.com; dkim=none; 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"; dmarc=none X-Spam-Score: -0.63 X-TUID: 5ZNwSZ6UQNIV On 2023-03-29, at 05:12, Ruijie Yu via General discussions about Org-mode. = wrote: > 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,= but 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? My go-to solution (and not only mine, I guess) is to use a zero-width space. I even have a command to do this: (defun insert-zero-width-space () "Insert Unicode character \"zero-width space\"." (interactive) (insert 8203)) Hth, --=20 Marcin Borkowski http://mbork.pl