unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* HowTo:  EWW: Tagging regions with properties
@ 2022-12-12  2:41 T.V Raman
  2022-12-12 15:04 ` Stefan Monnier
  0 siblings, 1 reply; 10+ messages in thread
From: T.V Raman @ 2022-12-12  2:41 UTC (permalink / raw)
  To: emacs-devel

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  🦮



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-12-12 23:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-12  2:41 HowTo: EWW: Tagging regions with properties T.V Raman
2022-12-12 15:04 ` 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

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