Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3357159pxj; Tue, 11 May 2021 02:37:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWO56gTNI88TW65Hb3gObMBMmsQ1+f9kAX5t/Dy7i/NmRhyZBtE9e9aVwDO5S9jQiWN+Iu X-Received: by 2002:a92:d409:: with SMTP id q9mr25924265ilm.276.1620725874759; Tue, 11 May 2021 02:37:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620725874; cv=none; d=google.com; s=arc-20160816; b=ROSUiK89xgAxBGEJSCctNI1pZJX4UTbofyZolbDxU2zNT4uab3ZWDgexziQS5uxI3m tNuqgGMt5jci8AMHmo8ycko63bAojj9c2p6BXjlNoecqR+Yi4Wz9goXEs/9L6GcuZRTA ZhBlxI3IubW2HZN1ANsilg7gOYMPuSbtGjuyQgeZIVL+Tl5agQ7IxJ9ip8TP/r0CAGwE 1doW/B3EXOJ9CQ3me6LFkNbguFeG6GlUWRik+K1RM76lfSJCXId+Hmrf8qrwDoMaystC meOK1n6oaIeC0Dk1LlKh2AqO7fCSxpjfeE81qUVZRvKAYsVAmhsEtVfm8ZlP9UCMrWZ3 yMfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=djvDkKSIoKYQDOpMM6dWM8Dv5KxPL+Cq6xC784LBsMQ=; b=Q+RPF7y96Y1WuZXO/a8qGHYFK3RR1wbzVFJBxtfubxqosDg3zTv0w5wWLvK2m+Ut8S HutAvuGXtwG4x1jEjipkXdxIzUWgzHDcPWHeTMzKMrNZf1XlfEdgj6KxwaeGB1nB2G7h WWRDmhk7ujGngTZTMjGYIjQneyniJ42zcM/myuspGabcDaKT/MAyoaVvoRxQZXZFVszB TT+7q5MMd7/eRQinmMSbnVK7f8tZPEiCl21Mn3vVIc6sdd8SafmL1aWbI29frY0f8jMI gK9ef1v3W5DmuQ7VhPwcFYTeylNbIjo52wqVxyrlZcMl9P3khoeNb+0j/NadjNxDgRVt jZcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VmShZQzr; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k11si18125433jap.38.2021.05.11.02.37.39; Tue, 11 May 2021 02:37:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VmShZQzr; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231416AbhEKJih (ORCPT + 99 others); Tue, 11 May 2021 05:38:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:52066 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230434AbhEKJif (ORCPT ); Tue, 11 May 2021 05:38:35 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A14E161925; Tue, 11 May 2021 09:37:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620725848; bh=6o759ShUxJ4M0iPoewavcBs0joP5lvg0/UyuatoupKw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=VmShZQzrJkNUYpzDiT8lkPsxOAMSd9Mve7i5gQll5qndGWVpx/umg+CXxAKGpoNMA r3FMkUmVknRLOM40Or9NWwNOL92NSwkHrq/d0ndNeQRTu32uCCDHx2IbSd5VG2b4ul nosZAixjCj57nhk32NpeqSVxAJnPk2eny4EB88KTc/gQGnVuXNqo0yWlzvNXSmu4ZF mRycl9aLbRnBPpCgKOBrtmqpOvb6P16yZBfRn67Vau0A0Tq2FleVuS/QpC4INaUcg7 P/ifJQg2MpIKloJneBuh4wLQ19EHMgDmJrDBTumwAHsRVeIkB/VjkEIaNgqi+q08au 3pae3xKzjvu8Q== Date: Tue, 11 May 2021 11:37:17 +0200 From: Mauro Carvalho Chehab To: "Theodore Ts'o" Cc: David Woodhouse , Linux Doc Mailing List , linux-kernel@vger.kernel.org, Jonathan Corbet , alsa-devel@alsa-project.org, coresight@lists.linaro.org, dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, intel-wired-lan@lists.osuosl.org, keyrings@vger.kernel.org, kvm@vger.kernel.org, linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-fpga@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-iio@vger.kernel.org, linux-input@vger.kernel.org, linux-integrity@vger.kernel.org, linux-media@vger.kernel.org, linux-pci@vger.kernel.org, linux-pm@vger.kernel.org, linux-rdma@vger.kernel.org, linux-riscv@lists.infradead.org, linux-sgx@vger.kernel.org, linux-usb@vger.kernel.org, mjpeg-users@lists.sourceforge.net, netdev@vger.kernel.org, rcu@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH 00/53] Get rid of UTF-8 chars that can be mapped as ASCII Message-ID: <20210511113717.5c8b68f7@coco.lan> In-Reply-To: References: <2ae366fdff4bd5910a2270823e8da70521c859af.camel@infradead.org> <20210510135518.305cc03d@coco.lan> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Em Mon, 10 May 2021 15:22:02 -0400 "Theodore Ts'o" escreveu: > On Mon, May 10, 2021 at 02:49:44PM +0100, David Woodhouse wrote: > > On Mon, 2021-05-10 at 13:55 +0200, Mauro Carvalho Chehab wrote: =20 > > > This patch series is doing conversion only when using ASCII makes > > > more sense than using UTF-8.=20 > > >=20 > > > See, a number of converted documents ended with weird characters > > > like ZERO WIDTH NO-BREAK SPACE (U+FEFF) character. This specific > > > character doesn't do any good. > > >=20 > > > Others use NO-BREAK SPACE (U+A0) instead of 0x20. Harmless, until > > > someone tries to use grep[1]. =20 > >=20 > > Replacing those makes sense. But replacing emdashes =E2=80=94 which are= a > > distinct character that has no direct replacement in ASCII and which > > people do *deliberately* use instead of hyphen-minus =E2=80=94 does not= . =20 >=20 > I regularly use --- for em-dashes and -- for en-dashes. Markdown will > automatically translate 3 ASCII hypens to em-dashes, and 2 ASCII > hyphens to en-dashes. It's much, much easier for me to type 2 or 3 > hypens into my text editor of choice than trying to enter the UTF-8 > characters.=20 Yeah, typing those UTF-8 chars are a lot harder than typing -- and --- on several text editors ;-) Here, I only type UTF-8 chars for accents (my US-layout keyboards are=20 all set to US international, so typing those are easy). > If we can make sphinx do this translation, maybe that's > the best way of dealing with these two characters? Sphinx already does that by default[1], using smartquotes: https://docutils.sourceforge.io/docs/user/smartquotes.html Those are the conversions that are done there: - Straight quotes (" and ') turned into "curly" quote characters; - dashes (-- and ---) turned into en- and em-dash entities; - three consecutive dots (... or . . .) turned into an ellipsis char. So, we can simply use single/double commas, hyphens and dots for curly commas and ellipses. [1] There's a way to disable it at conf.py, but at the Kernel this is kept on its default: to automatically do such conversions.=20 Thanks, Mauro