Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CA957311951 for ; Wed, 17 Sep 2025 23:22:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758151371; cv=none; b=V1Bd3sG3gmJvlkKISLH3vuWHeYRi/5pPT3cUk7KqcAf+jyo9ou6m/ZshIYHe5x2eSbJ4Ob8SGTNDm2aQIvsomf67sc1RSal1L4sAcMo6I6QM/TT5D0VzrtPXwD1Qyw6zvvTsbWQkEuGbZhAvpMlrzzQRefE+qGgMnq+p1dUqZio= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758151371; c=relaxed/simple; bh=y4sVjPFCOLu/nhY4gHPbP0uzuUQZ2/XUuRZ369WfgMs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=YTYz+r8hWYmoT6FRv/2JiutI6SWInFVROL1vZgYM51mWk+I4t0Zay830QaIyhn0lcpniUjkdA2PehjJZXFGI+Hsqanh0Efqusy4EINr4GDBb60WzpfA6ulrE55rtQQXWr71zvQ7ZU5cwU3MtJohUJsIyOwhXCjQ74BwPNL9s5sE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=M+0Iz+j5; arc=none smtp.client-ip=209.85.210.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="M+0Iz+j5" Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-77ca260a887so263362b3a.3 for ; Wed, 17 Sep 2025 16:22:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758151369; x=1758756169; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=pyh6L/CDh58NqcgV+cNZzpnbcjZLCCpL11ClZ6n2P6k=; b=M+0Iz+j58aFbIl2GJFZgqoUQlqGNFfovfPEFBaRvV15qOReDf44/1rtYyNKODega5d Cg8J2FRogF2XndctA/XYZJHGVpPuakVhnCKUQAwFF6p/oT1gpUqYVDxYukU4Ayrk+KWb impfMhUrEKSMQG7L2FAyCyNxjroOKwB7qhEShihsTCBnbt9v+/OH+YInlClkrY8JO989 MvNRFii7780O9pyCxc5JqugXWEi0ZpZ63YUcD6teHhSmrzVIQa2RlVYa/93QhwUR9KJC 1Fe1rpXjD/LkojUaksfAgrX24XvdCkdVlD/8F74vGNn0YFHjOBkU0CBa6aqG+1h92jOb dxBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758151369; x=1758756169; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pyh6L/CDh58NqcgV+cNZzpnbcjZLCCpL11ClZ6n2P6k=; b=GrPyS0amrRUJMCmAvQx5i9LBvR+HjuFVq9EES8kC/EZ8+S9D3Urc7BO8zudqZRH6oN rVk/eHhjUCsBTt9LirKxbAAb6BwFdWspZ1E+7kvCQZGE/hqBQpSo8e7RMP1seVjaTwMu uzUm0/kWsS9yxZV9pz7dVBiX00FWrhcRUGjcvBG43OxlLi4uKGxDidDCrhXyKwjREPo5 t5sFJY2EMDVtMiq5hHo12skAiV9cVCts7h7usPmHF9zoAAX4g6FHUsM9aZVS8wPbYWZE 5KkBuTiU7HQxIlZwUuPbzqI7WRUhTw4n2iMOCFXdLWp+6HQQTwAVLUCg8QFmrumAjnLk NtvQ== X-Forwarded-Encrypted: i=1; AJvYcCXri2fQWOdXYqFiOGi82NIyd1/kcDH7WuInsOIKS1iLFsrufs7WvA7uS3mcuOiu2raYVxKMCCzru3c=@vger.kernel.org X-Gm-Message-State: AOJu0Yyjg2vJUswz7ZyCvs10tGmKF0BwnSb48twG2vxDxTZTv8au+pkZ fgexRI7KqAPaRULZ7spHxsaZyiH+f4dgfvvJx2J6CirOevvsPIXU4hMc X-Gm-Gg: ASbGncsQPtzM/8m+b6H5IkSyCw6P50tRf3LlkYxTEvSPgFWoiNAP1JIe4s1YZUN6Yab KWOUiP2rEF5jhpIiET1/L9XhRydA7HasIauhgNLYJk0dY2WEXzvL9l0cNhyRmr0WlFZW/h/Mvl1 ovdSGAOds9xetUk7G1OOMhyrS1koR8S1A3eG3XEKlrFfvEpN0rtUlB6WTzYqR47Lws/+6ADB6Vu B3XRYfN54aVWxdmjSbuyY0B2Xk+33ymUqyzktJ2AjKw0RTpKwWe6uRUXKf+lNeyKfY4mVo94RlO zFM7YgvA3M5K5u9fs5o8JBAD06T4aoGJsWHc7o3/BuKW+NFksExEJ7uDo05E07BUcSq0DLCjPxJ e9dr0iW6iprtbe6FyiHq314joJFAKi1hH2QSwj69oeq59MY96uJnsCYcNRdlekz/JWoKy94jDZe uHT+wdcg50oAY= X-Google-Smtp-Source: AGHT+IG8Uqfk2NQ6FznXcxC01buxFU9txTa1Zwn5RgXX6drqjMZ52ntQwpjHiL5uFzK1Huy5kx1VOQ== X-Received: by 2002:a05:6a00:2e19:b0:772:5b74:c270 with SMTP id d2e1a72fcca58-77bf8e6d3f3mr3986596b3a.20.1758151368989; Wed, 17 Sep 2025 16:22:48 -0700 (PDT) Received: from [10.0.2.15] (KD106167137155.ppp-bb.dion.ne.jp. [106.167.137.155]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-77cfbb7c3bbsm493940b3a.7.2025.09.17.16.22.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 Sep 2025 16:22:48 -0700 (PDT) Message-ID: Date: Thu, 18 Sep 2025 08:22:44 +0900 Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 04/21] scripts: check-variable-fonts.sh: convert to Python To: Mauro Carvalho Chehab Cc: corbet@lwn.net, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Akira Yokosawa References: <8a77212d5459eac2a98db442691930425a2cbefd.1758018030.git.mchehab+huawei@kernel.org> <52932ede-eb04-4275-a051-952bc2859cf6@gmail.com> <20250917104818.62862b48@foz.lan> Content-Language: en-US From: Akira Yokosawa In-Reply-To: <20250917104818.62862b48@foz.lan> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, On Wed, 17 Sep 2025 10:48:18 +0200, Mauro Carvalho Chehab wrote: > Em Wed, 17 Sep 2025 10:09:05 +0900 > Akira Yokosawa escreveu: > >> On Tue, 16 Sep 2025 12:22:40 +0200, Mauro Carvalho Chehab wrote: >>> This script handle errors when trying to build translations >>> with make pdfdocs. >>> >>> As part of our cleanup work to remove hacks from docs Makefile, >>> convert this to python, preparing it to be part of a library >>> to be called by sphinx-build-wrapper. >>> >>> Signed-off-by: Mauro Carvalho Chehab >> >> I could apply up to 05/21 of v6 and did some quick tests under >> Fedora (where Noto CJK VF fonts are installed). >> >> At 3/21, "./scripts/check-variable-fonts.sh" doesn't say a word. >> >> At 4/21, "./scripts/check-variable-fonts.py" complains: > > I got a little bit confused with the above. I guess you picked the > wrong patch numbers, but yeah, there is a bisect issue, caused by > the part reorder I did moving this change to happen before adding > the script. Basically, I updated docs Makefile the wrong way. > > Thanks for pointing it! > > For v7 I'll ensure that all patches will properly print the suggestions > from the script. > >> ============================================================================= >> XeTeX is confused by "variable font" files listed below: >> /usr/share/fonts/google-noto-sans-cjk-vf-fonts/NotoSansCJK-VF.ttc >> /usr/share/fonts/google-noto-sans-mono-cjk-vf-fonts/NotoSansMonoCJK-VF.ttc >> /usr/share/fonts/google-noto-serif-cjk-vf-fonts/NotoSerifCJK-VF.ttc >> >> For CJK pages in PDF, they need to be hidden from XeTeX by denylisting. >> Or, CJK pages can be skipped by uninstalling texlive-xecjk. >> >> For more info on denylisting, other options, and variable font, see header >> comments of scripts/check-variable-fonts.py. >> ============================================================================= >> >> Of course, I have followed the suggestions in the header comments. > > I didn't try to follow the suggestions to solve the issue on Fedora yet. > It is on my todo list to test it. > > The new script has an exact copy of the instructions of the previous one. > > So, up to patch 09/21 from this series, there won't be any change at > doc build, except for the script conversion and some code cleanups > and reordering. > > Patch 09/21 moves the env logic of FONTS_CONF_DENY_VF to the wrapper. > So, in thesis, fixing it before-after the series shouldn't have any > impact (I didn't test yet. Will do on my next respin). Btw, we should > probably document it at make help. > > If the instructions from the header is wrong, we need to update it > on a separate patch series. > I have tested v7. With v7 fully applied, it is now possible to build translations.pdf on Fedora. Nice! HOWEVER, running ./tools/docs/check-variable-fonts.py still complains. I'm not sure but there might be some minor issue (typo?) in the translation from .sh into .py ??? So I have to keep the NAK on v7's 7/24 ("scripts: check-variable-fonts.sh: convert to Python") for the moment. Please run the script under a terminal session and see what happens ... Regards, Akira