From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sebastian Urban Newsgroups: gmane.emacs.bugs Subject: bug#47671: Small tweaks & fixes for Emacs/GNU ELPA websites Date: Fri, 9 Apr 2021 12:55:56 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23650"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 To: 47671@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 09 12:57:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lUop5-00060B-2d for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 09 Apr 2021 12:57:11 +0200 Original-Received: from localhost ([::1]:53750 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUop4-0002Pj-2s for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 09 Apr 2021 06:57:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55084) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUoow-0002PU-Px for bug-gnu-emacs@gnu.org; Fri, 09 Apr 2021 06:57:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37610) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lUoow-0001Xu-IR for bug-gnu-emacs@gnu.org; Fri, 09 Apr 2021 06:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lUoow-0000Wb-Hi for bug-gnu-emacs@gnu.org; Fri, 09 Apr 2021 06:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sebastian Urban Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Apr 2021 10:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47671 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Bug GNU Emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.16179657651925 (code B ref -1); Fri, 09 Apr 2021 10:57:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Apr 2021 10:56:05 +0000 Original-Received: from localhost ([127.0.0.1]:49151 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUoo0-0000Uz-SV for submit@debbugs.gnu.org; Fri, 09 Apr 2021 06:56:05 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:55324) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUonz-0000Us-Lo for submit@debbugs.gnu.org; Fri, 09 Apr 2021 06:56:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54980) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUonz-00026U-DQ for bug-gnu-emacs@gnu.org; Fri, 09 Apr 2021 06:56:03 -0400 Original-Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]:37575) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lUonx-0000vy-Az for bug-gnu-emacs@gnu.org; Fri, 09 Apr 2021 06:56:03 -0400 Original-Received: by mail-ej1-x635.google.com with SMTP id w3so7968327ejc.4 for ; Fri, 09 Apr 2021 03:55:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=CgckjRIspn7yzVqBgT91HwdK0uVpXfFY/y1XQtX0rI8=; b=hqcIm9PXaRIoaULXPXR9jOoTk3UOUMrxoSd0M/6ET0mowzhpso6/WSO0uy9dA+4Sos 61z8v+PwBJEk6wRAEkW07CdALCdbuldOzYyW4AVspD/HzQg3PmCj9uo/CBo2T4V08v67 3aMZA6CmaAASV+bTDQN1dO5SCQBw5WYznyTVO6OkcmPArhJMIua13BVv/J/ze8nffy62 6CUGwl2SubevMrThLBPcgpE2P8nFR4njVJ7XRyp2yMO67iBlnk9S22Eb/QBZ9TIzToF4 O3+lAycUjgzhm7k8rvIOMzM0zerfIUqePEXZ6oc8ERKeJcEfvu/A9JrSp5lXZJMKhk+r d4GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=CgckjRIspn7yzVqBgT91HwdK0uVpXfFY/y1XQtX0rI8=; b=K6HZJnB41Vgycj9Nf5QTUrUM2GRUA7M3SX7YF2sgjsZdh09EmXaciQTjpmzDcNsOl9 OWgzbtzowDqKQRztx5v0IZcivW+aesuOg5ZwBzJPShQozRlJfHSdCTer1wQ9bp7q4Xvs D6Hb15kXdJPtaTvMhKLmbK5RkjR/mXHvj0lyMe/LdY+uAqS3iZMhyLEU4xyCr8yBOs1n KD+IRZQ1diGV2RY3i1YCzO3AKhgG61gqAtH6nSKI/rHsB5vuF3BlHFMODnZUfPbHejuC dtH3OfBUEJTrqkxipavrIC6BulnLlpKDWMu8AZzSbPJSzUlHWenOZyNQ7a+vzT3TlcMo DDUw== X-Gm-Message-State: AOAM530+N5FY6RpacJiblb7+tuIBVUd3EWloFJNXdE2dw+VfeLxVy1G0 fCIxSC98pRECuUeL+uadz9/hK/8OpGk= X-Google-Smtp-Source: ABdhPJzpj5Vl2+7OxmD+E7vmBUl9wMyo8n/rGnIRInLElLCW8UOP5PczYeEvWs3w4FwFPUv74HGCrw== X-Received: by 2002:a17:906:39c3:: with SMTP id i3mr15411132eje.377.1617965756923; Fri, 09 Apr 2021 03:55:56 -0700 (PDT) Original-Received: from ?IPv6:2a00:f41:18cd:2f1c:3033:84b2:75c1:8111? ([2a00:f41:18cd:2f1c:3033:84b2:75c1:8111]) by smtp.gmail.com with ESMTPSA id b22sm1200672edv.96.2021.04.09.03.55.54 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 09 Apr 2021 03:55:56 -0700 (PDT) Content-Language: en-GB Received-SPF: pass client-ip=2a00:1450:4864:20::635; envelope-from=mrsebastianurban@gmail.com; helo=mail-ej1-x635.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:203760 Archived-At: Hello! First, GNU ELPA website. According to the LAYOUT.CSS (http://git.savannah.gnu.org/cgit/emacs/elpa.git/plain/html/layout.css): body { font-family: "fira sans", sans; (...) } pre { font-family: "Fira Mono"; (...) } Website should set Fira fonts, but if external fonts are not allowed, it loads the default font (usually a serif font, e.g. Times New Roman on Windows) for everything, because for example Firefox expects "sans-serif" instead "sans", while "pre" section is missing "monospace". Additionally, ".tt, code" don't have defined fonts, hence on the main page "Fira Sans" is used (for keys and commands) instead of monospace font. The DIFF: --- old/elpa/html/layout.css 2021-04-08 14:13:47.982155600 +0200 +++ new/elpa/html/layout.css 2021-04-09 12:27:15.610503900 +0200 @@ -47,7 +47,7 @@ /* End of reset */ body { - font-family: "fira sans", sans; + font-family: "Fira Sans", sans-serif; line-height: 1.5em; font-size: 1.2em; color: #333; @@ -92,6 +92,7 @@ } tt, code { + font-family: "Fira Mono", monospace; background-color: rgb(238, 238, 238); border: 1px solid rgb(187, 187, 187); padding: 0px 6px; @@ -99,7 +100,7 @@ } pre { - font-family: "Fira Mono"; + font-family: "Fira Mono", monospace; font-size: 14px; background: #fafafa; padding: 15px; Second, "A Guided Tour of Emacs" website. According to the LAYOUT.CSS (https://www.gnu.org/software/emacs/layout.css): pre { font-family: monospace; (...) font-size: 1.2em; } This is used in the "Download" section, actually. It's missing "Fira Mono", and I don't think font-size is needed there at all. body { font-family: "fira sans", sans; (...) } Basically the same problem, as above (1st point). tt, code, kbd { background: #efeadc; border: 1px solid #ccc; padding: 2px 6px 0px; border-radius: 4px; /* color: #ddd; */ } No font-family defined, commands are printed with "Fira Sans"/"the default font" depending on the permission. The DIFF: --- old/emacs/layout.css 2017-10-13 11:34:01.000000000 +0200 +++ new/emacs/layout.css 2021-04-08 23:15:06.111355600 +0200 @@ -59,7 +59,7 @@ } pre { - font-family: monospace; + font-family: "Fira Mono", monospace; padding: 10px; background: #efeadc; margin: 20px 0px; @@ -71,7 +71,7 @@ /* End of reset */ body { - font-family: "fira sans", sans; + font-family: "Fira Sans", sans-serif; line-height: 1.5em; font-size: 1.1em; color: #4E4742; @@ -135,6 +135,7 @@ } tt, code, kbd { + font-family: "Fira Mono", monospace; background: #efeadc; border: 1px solid #ccc; padding: 2px 6px 0px; Finally, there is an "inline" style for "kbd" inside INDEX.HTML (view-source:https://www.gnu.org/software/emacs/tour/index.html): kbd { font-size: larger; background: #ffe; } It makes "kbd" elements, well, larger. I just think it looks better without it, but this is just my opinion. Third, there are leftovers after bug#43000: --- old/emacs/emacs.html 2021-03-25 13:18:26.000000000 +0100 +++ new/emacs/emacs.html 2021-04-08 23:54:08.903893300 +0200 @@ -231,7 +231,7 @@
  • New minor mode 'electric-quote-mode' for using curved quotes as you type.
  • Character folding support in isearch.el.
  • -
  • New and improved facilities for inserting Unicode characters: C-x 8 now has +
  • New and improved facilities for inserting Unicode characters: C-x 8 now has shorthands for several chars, such as U+2010 (HYPHEN), U+2011 (NON-BREAKING HYPHEN), and U+2012 (FIGURE DASH).
  • For more information, read the News file.

    Unfortunately, due to background colour for the "Releases" section, visibility is rather bad. Possible solutions: A. Remove background colour from ".releases" (this one: "background: #F0EBDE;") AND set inline style for "kbd" like in the Emacs Tour (this also means more consistency for "kbd"), i.e.: kbd { background: #ffe; } B. Only set inline style for "kbd" as above. --- old/emacs/documentation.html 2018-11-23 11:20:01.000000000 +0100 +++ new/emacs/documentation.html 2021-04-09 00:31:23.789193400 +0200 @@ -64,7 +64,7 @@ Reference Manual and several other manuals documenting major modes and other optional features, can also be read online. They are also distributed with Emacs in - Info format; type C-h i in + Info format; type C-h i in Emacs to view them.

      @@ -95,7 +95,7 @@ appear on the other as well.

      Reporting bugs

      To report bugs, or to contribute fixes and improvements, use the - built-in Emacs bug reporter (M-x report-emacs-bug) or send + built-in Emacs bug reporter (M-x report-emacs-bug) or send email to bug-gnu-emacs@gnu.org. You can browse our bug database at Here, for consistency with the Emacs Tour, inline "kbd" could be added as well. -- S. U.