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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5C0D8C433FE for ; Tue, 2 Nov 2021 23:48:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2CA2760FC4 for ; Tue, 2 Nov 2021 23:48:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231166AbhKBXu4 (ORCPT ); Tue, 2 Nov 2021 19:50:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229960AbhKBXuy (ORCPT ); Tue, 2 Nov 2021 19:50:54 -0400 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A5E6C061714; Tue, 2 Nov 2021 16:48:19 -0700 (PDT) Received: by mail-pg1-x536.google.com with SMTP id x5so743728pgk.11; Tue, 02 Nov 2021 16:48:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:cc:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=HJipf6E0wMX/VQfuLK3bpQT/GXpVFz/q7mqyd24tIJU=; b=mXdGRMzFWXiUhrL/kj1Ya9nizk2wrETtb1vN5Vn2QRFE/TkU1BchtE4AV7skQmUuKs f+cYUKyKOnFXo1WkFXSAY+Bflu0PlVwjSsFH0ZK1TgtHwmE3CpS25akvzzGFsms7C33N hwOTJZCGU3mcnFVCDO5tcgCANzYuTSO9dZ3UD3HJ+iaWrzmF1T1rqdgrbinQnhZcxqvn SI+nNE6uBOCOE5ZpXNc8C1geda4VsDrHhJwYQi2Jzx98Fh87wHDpxiUL9pzvvqmVRZvz tY1dZPromay/xJyVpNe7mho5gZLNxZeIXYwS65IJnkLMjJWPI+LbKMdBAtxxJ1vi44L6 nJbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=HJipf6E0wMX/VQfuLK3bpQT/GXpVFz/q7mqyd24tIJU=; b=Rr8qTahOKtqFSOL2jf4QZTs25bvtJlEBJfNZmCgE4WpywBwIf5pMkRB8tLK3ASznlp Uricb+b5fo6F+yeWRZQV4G2Za+1aPYX1vZZ1pZvC7df0aDuw7oLJgDcGaA8k8alIM4+0 1PRQ1cuhnM52Dzh41pPEuB/+t1eyRpJLwORiYRJSR5HSGwvEBf/xPmelxlrlwh9YTt6u 5rx7ZOsB7fA21mi2c7ebyIiuhYiTxDByKgXpRSigDTmPSlWj6RX2Gfd6g5I1ZUKQEBjs 3LBN9n/rnBvqAZndnuhKde03AxbUoHGh1ayCnbLsHFBNzF9ELMonixv3exZt7KdpE7wY w6uA== X-Gm-Message-State: AOAM532yOgzxDOzqg9zPnzLBa7kWZfAXw6YS6WYnVJbS6eXoK8H2OBoc vzUpq+fKo6RjhVsIbCyrj82Qrn2MnBM= X-Google-Smtp-Source: ABdhPJzcAdCP3uzeV/VwQWuKmqEc1ayrTAdyy1tesu/pevwcKOyeUzwi1rqXtfJrT6XVtYwRYCBGaw== X-Received: by 2002:a63:af44:: with SMTP id s4mr30525569pgo.219.1635896898855; Tue, 02 Nov 2021 16:48:18 -0700 (PDT) Received: from [192.168.11.5] (KD106167171201.ppp-bb.dion.ne.jp. [106.167.171.201]) by smtp.gmail.com with ESMTPSA id 13sm169402pjb.37.2021.11.02.16.48.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 02 Nov 2021 16:48:18 -0700 (PDT) To: "Paul E. McKenney" Cc: Jonathan Corbet , rcu@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org From: Akira Yokosawa Subject: [PATCH -rcu] docs: RCU: Avoid 'Symbol' font-family in SVG figures Message-ID: Date: Wed, 3 Nov 2021 08:48:15 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Subject: [PATCH -rcu] docs: RCU: Avoid 'Symbol' font-family in SVG figures On Ubuntu Focal, strings in some of SVG files under Documentation/RCU/Design can not be rendered properly when converted to PDF. Ubuntu releases since Focal and Debian bullseye have trouble with "Symbol" font-family in SVG files. As those strings are mostly API names such as "READ_ONCE()", "WRITE_ONCE(), "rcu_read_lock()", and so on, using a generic monospace font-family should be a good alternative. Substitute the font-family name by a simple sed pattern: 's/Symbol/monospace/g' Signed-off-by: Akira Yokosawa --- Hi Paul, As was discussed off-list messages, here is a workaround to avoid illegible strings in RCU.pdf when built on Ubuntu Focal. It turns out Debian bullseye also shows the same symptom. Recent Ubuntu releases of Hirsute and Impish do too. My suggestion was to substitute "Mono" for "Symbol", but "monospace" is used as a generic font-family in recent versions of Inkscape. This is relative to -rcu's dev branch. Thanks, Akira -- .../Expedited-Grace-Periods/Funnel0.svg | 4 +- .../Expedited-Grace-Periods/Funnel1.svg | 4 +- .../Expedited-Grace-Periods/Funnel2.svg | 4 +- .../Expedited-Grace-Periods/Funnel3.svg | 4 +- .../Expedited-Grace-Periods/Funnel4.svg | 4 +- .../Expedited-Grace-Periods/Funnel5.svg | 4 +- .../Expedited-Grace-Periods/Funnel6.svg | 4 +- .../Expedited-Grace-Periods/Funnel7.svg | 4 +- .../Expedited-Grace-Periods/Funnel8.svg | 4 +- .../Requirements/GPpartitionReaders1.svg | 36 +++++------ .../Requirements/ReadersPartitionGP1.svg | 62 +++++++++---------- 11 files changed, 67 insertions(+), 67 deletions(-) diff --git a/Documentation/RCU/Design/Expedited-Grace-Periods/Funnel0.svg b/Documentation/RCU/Design/Expedited-Grace-Periods/Funnel0.svg index 98af66557908..16b1ff0ad38c 100644 --- a/Documentation/RCU/Design/Expedited-Grace-Periods/Funnel0.svg +++ b/Documentation/RCU/Design/Expedited-Grace-Periods/Funnel0.svg @@ -116,7 +116,7 @@ WRITE_ONCE(a, 1); WRITE_ONCE(b, 1); r1 = READ_ONCE(a); WRITE_ONCE(c, 1); r2 = READ_ONCE(b); r3 = READ_ONCE(c); thread0() thread1() rcu_read_lock(); rcu_read_lock(); rcu_read_unlock(); WRITE_ONCE(a, 1); WRITE_ONCE(b, 1); r1 = READ_ONCE(a); WRITE_ONCE(c, 1); WRITE_ONCE(d, 1); r2 = READ_ONCE(c); thread0() thread1() rcu_read_lock(); rcu_read_lock(); rcu_read_unlock(); r3 = READ_ONCE(d); QS r4 = READ_ONCE(b); r5 = READ_ONCE(e); rcu_read_lock(); rcu_read_unlock(); thread3()