unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "T.V Raman" <raman@google.com>
To: emacs-devel@gnu.org
Subject: HowTo:  EWW: Tagging regions with properties
Date: Sun, 11 Dec 2022 18:41:03 -0800	[thread overview]
Message-ID: <p91ilihe43k.fsf@google.com> (raw)

Mostly for Lars but help from others welcome:

In Emacspeak, I have advice placed on the shr-tag functions to attach
text properties that identify portions of the rendered text with
properties that show  the originating tag: e.g.: 

An around advice on shr-tag-li puts text  property 'li with value
'eww-tag on the region produced by rendering from the <li> tag.

The motivation is to enable Emacspeak to be able to speak the logical
contents of the bullet.

The properties get placed correctly, but when the rendering completes,
the whitespace at the beginning and end of the block of text on each
line dont get these properties, so when attempting to speak the entire
<li> contents, all I get is one line at a time depending on where
point is in the rendered bullet.

I suspect it's because some other part of shr ie outside of shr-tag-li
in this instance shifts the block of text from the <li> tag to get it
indented --- and I was hoping that default stickiness of text
properties would just take care of that -- sdly, that doesn't
happen. So question: How do I achieve what I want?


-- 

Thanks,

--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1  🦮

-- 

Thanks,

--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1  🦮



             reply	other threads:[~2022-12-12  2:41 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-12  2:41 T.V Raman [this message]
2022-12-12 15:04 ` HowTo: EWW: Tagging regions with properties Stefan Monnier
2022-12-12 15:38   ` T.V Raman
2022-12-12 15:45     ` T.V Raman
2022-12-12 18:14       ` Yuri Khan
2022-12-12 20:36         ` T.V Raman
2022-12-12 17:54     ` Stefan Monnier
2022-12-12 17:55   ` T.V Raman
2022-12-12 18:13     ` Stefan Monnier
2022-12-12 23:13       ` T.V Raman

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=p91ilihe43k.fsf@google.com \
    --to=raman@google.com \
    --cc=emacs-devel@gnu.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).