Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp28950pxu; Wed, 14 Oct 2020 19:06:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXPSlxjTJaXXIfHWioneg2ADxbodp/FLFMKEnTyIaufYB8M+JDIGoJ+4JyEYbtqkHJP5oU X-Received: by 2002:a17:907:94cb:: with SMTP id dn11mr2139479ejc.326.1602727570946; Wed, 14 Oct 2020 19:06:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602727570; cv=none; d=google.com; s=arc-20160816; b=CKqKSGoh4ZF1j1T5XGvuqajbZIqc30PrDJ9VGoc5UtcwHZ2X6IwzzRxRe05R1tWEAC lj4YrvHOhkajp9wadQN7mnG5BOzGwfDEtfArQjMbOHPmtXIh/uVED1Ltp8AETxIdtd37 K9hsQQyfzDLnd6YA6ijSNo+UM/076C38veiovwPFpomKmgl6L+TIWHAj9ZLDGgAv5EmW go9913Pqr+MMjcyD7SUET9K2l0WhZcRM5hFRcGI4RbnkpktjJJcF6VQ8Px3LhNVnsJ1e 4CC03Coyyj0aDGx/Wz911xdeMBzRQszlwckMUUFMOxJjnB/hbk7ZOxW6dWsHt/w73fyi s3qA== 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 :message-id:subject:reply-to:cc:from:to:dkim-signature:date; bh=m+9mUGof6WvkvHmvP4DPlTU5NvCNFlaEPlnO4Gog/ow=; b=lyOLHkre5quDuH4rO7fOod7lOkincFAGEuBpSaBWyWYdmPWc63NN6z7/qNAEK4v5wn /DpVxkIXP7BVN4dmz4lGJ7WbrF06jqOR0AIQhKs9Udd8WHwpLcJ3wid3fFVXEEzdKE7d trWHrnmDZ/5JfcMwrV2ti/coUygwDw5njNwlb+zXPq9yyENzGsuCq0H+u4sl90JknnXj 1lvCsgmBSFGAhAEUidv3qANvMe5FKsphriVz+Tm/neGOc3+2XE6HPqcd8KeAttNwJ/Pj BjKXdyDHuGKliMt0oZVhT2BSxCyjwon/XH3Po4O4SB9yqBWOk0BidHEIGcO88d3gBvyN uLpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=iyKgt6JL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e23si1046330ejx.651.2020.10.14.19.05.48; Wed, 14 Oct 2020 19:06:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@protonmail.com header.s=protonmail header.b=iyKgt6JL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729585AbgJNUJZ (ORCPT + 99 others); Wed, 14 Oct 2020 16:09:25 -0400 Received: from mail-40131.protonmail.ch ([185.70.40.131]:25872 "EHLO mail-40131.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729561AbgJNUJY (ORCPT ); Wed, 14 Oct 2020 16:09:24 -0400 X-Greylist: delayed 75370 seconds by postgrey-1.27 at vger.kernel.org; Wed, 14 Oct 2020 16:09:24 EDT Date: Wed, 14 Oct 2020 20:09:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1602706162; bh=m+9mUGof6WvkvHmvP4DPlTU5NvCNFlaEPlnO4Gog/ow=; h=Date:To:From:Cc:Reply-To:Subject:From; b=iyKgt6JLgdpOo3FVStXlZD4ds4/kRh4fACosu8AN3wgSxSD9AoQjioaLT1eg6p0Qi aMkIJ8KfjoZpL+rk2/X1vEeJZOKyUxlG37t3ZvlGkgM/0wRIKOKDHne1MOBXralREX 5ResfZCHctHT5xV/wapzfRjV/vhp1ci3mpjufM74= To: Jonathan Corbet From: =?utf-8?Q?N=C3=ADcolas_F=2E_R=2E_A=2E_Prado?= Cc: Mauro Carvalho Chehab , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, lkcamp@lists.libreplanetbr.org, andrealmeid@collabora.com Reply-To: =?utf-8?Q?N=C3=ADcolas_F=2E_R=2E_A=2E_Prado?= Subject: Re: [PATCH v2 2/5] docs: automarkup.py: Fix regexes to solve sphinx 3 warnings Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed Oct 14, 2020 at 4:11 PM -03, Jonathan Corbet wrote: > > On Tue, 13 Oct 2020 23:13:17 +0000 > N=C3=ADcolas F. R. A. Prado wrote: > > > The warnings were caused by the expressions matching words in the > > translated versions of the documentation, since any unicode character > > was matched. > > > > Fix the regular expression by making the C regexes use ASCII > > I don't quite understand this part, can you give an example of the kinds > of warnings you were seeing? Hi Jon, sure. One I had noted down was: WARNING: Unparseable C cross-reference: '=E8=B0=83=E7=94=A8debugfs_rename' which I believe occurred in the chinese translation. I think the problem is that in chinese there normally isn't space between t= he words, so even if I had made the regexes only match the beginning of the wo= rd (which I didn't, but I fixed this in this patch with the \b), it would stil= l try to cross-reference to that symbol containing chinese characters, which is unparsable to sphinx. So since valid identifiers in C are only in ASCII anyway, I used the ASCII = flag to make \w, and \d only match ASCII characters, otherwise they match any un= icode character. If you want to have a look at other warnings or more complete output let me= know and I will recompile those versions. That sentence was the only thing I not= ed down, but I think it gives a good idea of the problem. Thanks, N=C3=ADcolas > > Thanks, > > jon