From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#63434: 29.0.60; eww does not handle properly ruby/rt elements (e.g. Japanese furigana) Date: Tue, 16 May 2023 19:49:34 +0300 Organization: LINKOV.NET Message-ID: <86ilcsmh0h.fsf@mail.linkov.net> References: <86a5ybbd71.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8292"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 63434@debbugs.gnu.org To: dmg Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 16 18:53:36 2023 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 1pyxvb-0001wg-Mf for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 May 2023 18:53:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pyxvB-00040x-9P; Tue, 16 May 2023 12:53:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pyxv5-00040F-Bz for bug-gnu-emacs@gnu.org; Tue, 16 May 2023 12:53:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pyxv5-0008II-4c for bug-gnu-emacs@gnu.org; Tue, 16 May 2023 12:53:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pyxv4-0007Af-QL for bug-gnu-emacs@gnu.org; Tue, 16 May 2023 12:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 May 2023 16:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63434 X-GNU-PR-Package: emacs Original-Received: via spool by 63434-submit@debbugs.gnu.org id=B63434.168425593727500 (code B ref 63434); Tue, 16 May 2023 16:53:02 +0000 Original-Received: (at 63434) by debbugs.gnu.org; 16 May 2023 16:52:17 +0000 Original-Received: from localhost ([127.0.0.1]:47215 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pyxuK-00079T-VW for submit@debbugs.gnu.org; Tue, 16 May 2023 12:52:17 -0400 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:34263) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pyxuI-00078p-Jo for 63434@debbugs.gnu.org; Tue, 16 May 2023 12:52:15 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id D075BC000A; Tue, 16 May 2023 16:52:07 +0000 (UTC) In-Reply-To: (dmg@turingmachine.org's message of "Mon, 15 May 2023 21:55:46 -0700") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:261797 Archived-At: [Cc'ed to debbugs to keep the bug report actionable] >>> eww does not properly support the ruby/rt elements in HTML. >> >> Shouldn't the fallback element be used for browsers without ruby support? >> >> https://developer.mozilla.org/en-US/docs/Web/HTML/Element/rp#without_ruby_support > > I think the ideal way would be to have a variable that configures the > behaviour. > > In theory, the ruby is there to provide extra information to help with > readability. But it only works if the reading medium provides support > for placing the rt above the ruby. > > The simple solution would be to have a variable that: > > - when false, ignores the rt. > - when true, renders it (using the fallback element if exists). > - Otherwise, if it is a two characters string, the first char is > used to open the ruby and the second to close it. I agree. When customized to two characters, it could behave as if the fallback element existed.