Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2767657ybv; Mon, 24 Feb 2020 11:13:17 -0800 (PST) X-Google-Smtp-Source: APXvYqz8Rg1or2gTjmRsw4u2dP/iDpRpEa3aQgIS3IYL7QdJVaU0Wxv1C6MLU6bYUfDT6Bi0gnJL X-Received: by 2002:a9d:6e0d:: with SMTP id e13mr27708504otr.316.1582571597691; Mon, 24 Feb 2020 11:13:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582571597; cv=none; d=google.com; s=arc-20160816; b=G4qXA2FvG4w6Og8QiY7BO+YuF1scWOKJlK0RCCARQJQhWQx9A1uWs68Bi8zmnkYLa7 7X7qjy4IFGBRinpavqARLHKLAsdSSnn6fol8gtQUFf4rQT+6zli25LWHPFt+iuPrqwp/ 9dgxxK5wb3TRYubfPyHWFqBJcfMZwMmtrx13Ea+7Uag+GW3ECB4pmy2t06jVQAGnI3Z6 pwfxkDO8pKUW5HY/t0lm4TEKedpow6U6dp6HEnDijWmhrgN/xLZ5kbUeKPsgjasYKGjW 4MSHqQDGW6Y5W1VMp54LMuyX/OsKj7dHPSHkYovvgwQDxxTYTS4+x4sV/sAhBUD5Iy3I JoMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=degQOaPSml+HqWvCvfRFduy79XBcMREB9313mEwFuto=; b=ZBpVn+hJXadKT1ML2ea9J5aKkpZ4616+hfQ8CxNijh+QLjuw2dkQJ2kObdhKFsUTgw RA6ABd0sAK1wCXzQq1igatuQHozvVJ6WbSgW5FJzXSkEyLfphfDzHzVyvca/VFU7x7IA DB7US2FgT0JCDGX8IG7SHvBn0HDv1IqxkPJN3VYdxm9fJYZh4vnkpaLlZqWwN1ElzUih tN7VTVFUT9Boxzm+f+i8bYn1WWyFbuhePccaC1L5IQ+RpVzEjJ/uDtiGR4y46jqai5+c 0iiGRCEF2WLuUz2cW032ehl2xoXZm2YJiNp6vLeRTcaoJN5NMVBfmJsJFnHdtXXddQuA dWyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ZGFJpxG8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z1si5092789oix.12.2020.02.24.11.13.05; Mon, 24 Feb 2020 11:13:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ZGFJpxG8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727520AbgBXTMw (ORCPT + 99 others); Mon, 24 Feb 2020 14:12:52 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:55444 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727334AbgBXTMt (ORCPT ); Mon, 24 Feb 2020 14:12:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=degQOaPSml+HqWvCvfRFduy79XBcMREB9313mEwFuto=; b=ZGFJpxG8B2HVpCBYFwPz72LsgY wreCGOO2XyI/9YpO02ilSiGgy2P7BbsMMT0+mLsvXIbvBaNIWxNOH0g6CFuwAoEUTjBNzrdsfH1Cv LFCMGjOCOF/e4u1gDEp1o1slS9wzUH025lEBFx1VxUIlg1erQWe4NiJK64HgZU2n395X4x0ny7JsW 5frr19gihyEk4w7ccPmj5q/g7GeONCFc8sivWw8Vid+6PY3EREOl2QQ5CoBdrOJrYDlaI+XooRprN +ZeESiNKAlRnFRYx4qaga62QmZWbcu3Yh0G9AIKw8HhwShLayCIVdE1KFVq2tJ7csicASV5JuS3pr qBoFsWNQ==; Received: from willy by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1j6J9s-00013g-J3; Mon, 24 Feb 2020 19:12:48 +0000 Date: Mon, 24 Feb 2020 11:12:48 -0800 From: Matthew Wilcox To: Jonathan Corbet Cc: Jonathan =?iso-8859-1?Q?Neusch=E4fer?= , linux-doc@vger.kernel.org, Andi Kleen , Thomas Gleixner , Randy Dunlap , "Darrick J. Wong" , Arnd Bergmann , "Chang S. Bae" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] docs: process: changes.rst: Escape --version to fix Sphinx output Message-ID: <20200224191248.GP24185@bombadil.infradead.org> References: <20200223222228.27089-1-j.neuschaefer@gmx.net> <20200224110815.6f7561d1@lwn.net> <20200224184719.GA2363@latitude> <20200224185227.GO24185@bombadil.infradead.org> <20200224115851.6684d516@lwn.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200224115851.6684d516@lwn.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 24, 2020 at 11:58:51AM -0700, Jonathan Corbet wrote: > On Mon, 24 Feb 2020 10:52:27 -0800 > Matthew Wilcox wrote: > > > On Mon, Feb 24, 2020 at 07:47:19PM +0100, Jonathan Neuschäfer wrote: > > > On Mon, Feb 24, 2020 at 11:08:15AM -0700, Jonathan Corbet wrote: > > > > On Sun, 23 Feb 2020 23:22:27 +0100 > > > > Jonathan Neuschäfer wrote: > > > > > > > > > Without double-backticks, Sphinx wrongly turns "--version" into > > > > > "–version" with a Unicode EN DASH (U+2013), that is visually easy to > > > > > confuse with a single ASCII dash. > > > > > > > > > > Signed-off-by: Jonathan Neuschäfer > > > > > > > > This certainly seems worth addressing. But I would *really* rather find > > > > a way to tell Sphinx not to do that rather than making all of these > > > > tweaks - which we will certainly find ourselves having to do over and > > > > over again. I can try to look into that in a bit, but if somebody were > > > > to beat me to it ... :) > > > > > > This seems to do the trick: > > > > > > diff --git a/Documentation/conf.py b/Documentation/conf.py > > > index 3c7bdf4cd31f..8f2a7ae95184 100644 > > > --- a/Documentation/conf.py > > > +++ b/Documentation/conf.py > > > @@ -587,6 +587,9 @@ pdf_documents = [ > > > kerneldoc_bin = '../scripts/kernel-doc' > > > kerneldoc_srctree = '..' > > > > > > +# Render -- as two dashes > > > +smartquotes = False > > > > I think what Jon was looking for was the ability to selectively turn > > smartquotes off for a section and then reenable it? > > No that's not what I was thinking, actually. Unless somebody can come up > with a good reason to the contrary, just disabling that behavior globally > strikes me as the right thing to do. Well, sometimes -- when the time is right -- I like to use en-dashes. It's probably no great loss, though. grep finds me these interesting examples: Documentation/RCU/Design/Memory-Ordering/Tree-RCU-Memory-Ordering.rst:Tree RCU's grace--period memory-ordering guarantees rely most heavily on Documentation/accounting/psi.rst:scarcity aids users in sizing workloads to hardware--or provisioning Documentation/admin-guide/acpi/cppc_sysfs.rst: -r--r--r-- 1 root root 65536 Mar 5 19:38 feedback_ctrs Documentation/admin-guide/mm/hugetlbpage.rst:task that modifies ``nr_hugepages``. The default for the allowed nodes--when the Documentation/block/null_blk.rst:home_node=[0--nr_nodes]: Default: NUMA_NO_NODE Documentation/admin-guide/svga.rst::Copyright: |copy| 1995--1999 Martin Mares, Documentation/media/uapi/v4l/pixfmt-srggb10-ipu3.rst: G\ :sub:`0108high`\ (bits 1--0) (in all, 368 lines, but they're not all in .rst files)