From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 64CEFC433DF for ; Wed, 14 Oct 2020 20:09:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EC75121D81 for ; Wed, 14 Oct 2020 20:09:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="iyKgt6JL" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729609AbgJNUJZ (ORCPT ); Wed, 14 Oct 2020 16:09:25 -0400 Received: from mail-40134.protonmail.ch ([185.70.40.134]:45046 "EHLO mail-40134.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729585AbgJNUJY (ORCPT ); Wed, 14 Oct 2020 16:09:24 -0400 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 Precedence: bulk List-ID: X-Mailing-List: linux-doc@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