all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 58379@debbugs.gnu.org
Subject: bug#58379: 29.0.50; eww: can't align table row
Date: Sat, 8 Oct 2022 20:27:29 +0300	[thread overview]
Message-ID: <Y0GzAaS6HQgCuEe5@protected.localdomain> (raw)
In-Reply-To: <87fsfysa3v.fsf@gnus.org>

* Lars Ingebrigtsen <larsi@gnus.org> [2022-10-08 16:45]:
> Jean Louis <bugs@gnu.support> writes:
> 
> > It would be good to have proper eww table rendering.
> 
> 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.
> 
> 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 <zevlg@yandex.ru>
;; 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
‘telega-ins.el’.

(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.


-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/





  reply	other threads:[~2022-10-08 17:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-08 13:16 bug#58379: 29.0.50; eww: can't align table row Jean Louis
2022-10-08 13:44 ` Lars Ingebrigtsen
2022-10-08 17:27   ` Jean Louis [this message]
2022-10-11 20:01 ` Yuan Fu
2022-10-24  4:19   ` Jean Louis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y0GzAaS6HQgCuEe5@protected.localdomain \
    --to=bugs@gnu.support \
    --cc=58379@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.