From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.bugs Subject: bug#58379: 29.0.50; eww: can't align table row Date: Tue, 11 Oct 2022 13:01:41 -0700 Message-ID: <17491ED7-0293-4ED0-B214-9A256F5F4D4A@gmail.com> References: <86v8ouh2w2.fsf@protected.rcdrun.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31245"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58379@debbugs.gnu.org, larsi@gnus.org To: Jean Louis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 11 22:02:38 2022 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 1oiLSW-0007qk-0S for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Oct 2022 22:02:36 +0200 Original-Received: from localhost ([::1]:37456 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiLSU-0004yS-LT for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Oct 2022 16:02:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40242) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiLRy-0004yC-H1 for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2022 16:02:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55882) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oiLRy-0002ue-8y for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2022 16:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oiLRy-0001Bi-0B for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2022 16:02:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <86v8ouh2w2.fsf@protected.rcdrun.com> Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Oct 2022 20:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58379 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 58379-submit@debbugs.gnu.org id=B58379.16655185114546 (code B ref 58379); Tue, 11 Oct 2022 20:02:01 +0000 Original-Received: (at 58379) by debbugs.gnu.org; 11 Oct 2022 20:01:51 +0000 Original-Received: from localhost ([127.0.0.1]:54960 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiLRn-0001BG-6I for submit@debbugs.gnu.org; Tue, 11 Oct 2022 16:01:51 -0400 Original-Received: from mail-pj1-f43.google.com ([209.85.216.43]:51166) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiLRk-0001B1-Nw for 58379@debbugs.gnu.org; Tue, 11 Oct 2022 16:01:49 -0400 Original-Received: by mail-pj1-f43.google.com with SMTP id h12so7686805pjk.0 for <58379@debbugs.gnu.org>; Tue, 11 Oct 2022 13:01:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=EC8AKIt5VqWNmAu/y6S6NrY8HrIMcAvRD5LmvLfL1uU=; b=pE8yyYLn6ieIbW48GmmtNS/xvufxi9e8zgXiA1Y1Rb3VXYAGGG6aEWQTKVz5QXvHWO 2rNcDcEn8x2OSk+XrD6FIaP2We/3lcF+1XmO20muCnl6JbQaiL+Kod4Ahv1HdFHtogpz 3J2k29LxzbZSVRnShAxxoB0sB4iVv7GJKa2nVG9hS70zJ8E9yMYxjgouZMSWYWI10mfi kydy6GiS0XsEgCK+KketZHQQWgS1wvWGiUk4nFVDvyJu2B8S84LzVR9vrvQrIk3WnY2O LoKEjn4MYnibsKjgRlfcAyFiMUk2wr34eg+B4oo+9o8I2zZzjO1fAedP7P2L6ShuCxop F93g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EC8AKIt5VqWNmAu/y6S6NrY8HrIMcAvRD5LmvLfL1uU=; b=2kpuwOGCp6ktTk7aiRpmy9gB72XJ8+4X0LHxgoIxrnrqkoaE2kNhwttoAx3UZqw1dD TTEhRVgh6YclxgvTYPaYZno3GuiFE4iSf2ubC7MG36+xNoOb8y3yGwqr2NsX3P+3YHFz SKgw0WG+InK2hLMrt6B6v+N7GIWKkHfwrYr3au1A5dwYWMVElH+DkzSwBJcjdLzMgjaj ZY8mPMiFT7HOEj+uP40XdilTBryUPOWTg7UZw5NR3vMklIPT3RB/BknOmBvMXljqjQz1 nBtrtfNyDF+49V3G/MVQLZPOJaeLc7GsQTomj9juI7pDJoC9dU1QOtbRNxKl7xNPpo9k LzCA== X-Gm-Message-State: ACrzQf2W4ZNQn6ewAIzdcXzsOhqmc/i/dUwlyVLmeyQ+dZlyL6yW/NER xkoVv+fonItuLNn9sXZ8xSk= X-Google-Smtp-Source: AMsMyM52WB7qoLUzfdRn12Zumyu3+KXhp3NWCx8Ym7FCadyAfUBSOw8341cz/r0eHqRyXRu63XSXfg== X-Received: by 2002:a17:90b:1943:b0:20a:85e9:f089 with SMTP id nk3-20020a17090b194300b0020a85e9f089mr926171pjb.47.1665518502752; Tue, 11 Oct 2022 13:01:42 -0700 (PDT) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id l76-20020a633e4f000000b00460a5c6304dsm5691482pga.67.2022.10.11.13.01.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Oct 2022 13:01:42 -0700 (PDT) X-Mailer: Apple Mail (2.3696.120.41.1.1) 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:245146 Archived-At: Jean Louis writes: > * Lars Ingebrigtsen [2022-10-08 16:45]: >> Jean Louis writes: >>=20 >> > It would be good to have proper eww table rendering. >>=20 >> The Emacs display engine doesn't support flowing text around images = -- >> an image is just one very big character, so you can't have two lines = of >> text next to an image. >>=20 >> So shr just puts all images in tables after tables. > > Closing the bug does not make it less bug. Please do not close. > > I have researched today and found that Telega can splice images and > thus show very nicely image and text next to each other, including in > multiple lines. > > Would that not be good improvement in Emacs to be able to display > image and text side by side? > > I suggest looking into Telega, as the trick that author uses is > splicing images. I can see chars side by side to the image and image > appears very correctly and is scrollable. > > ;; Author: Zajcev Evgeny > ;; Created: Wed Nov 30 19:04:26 2016 > ;; URL: https://github.com/zevlg/telega.el > > telega-ins--image-slices is a byte-compiled Lisp function in > =E2=80=98telega-ins.el=E2=80=99. > > (telega-ins--image-slices IMAGE &optional PROPS SLICE-FUNC) > > Insert sliced IMAGE at current column. > PROPS - additional image properties. > SLICE-FUNC - function called after inserting slice. Called with > single argument - slice number, starting from 0. > > I do not understand the code yet. It would be nice if somebody can > help on this to become able to construct image and text on the side. Telaga can do that because it uses fixed-width characters, so everything aligns nicely. As far as I know shr uses veriable-width characters so the same is much harder to do in shr, not to mention that telaga only do this for the profile image on the beginning of a line, whereas shr needs to handle complicated layout, like tables. Yuan