From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.devel Subject: HowTo: EWW: Tagging regions with properties Date: Sun, 11 Dec 2022 18:41:03 -0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27772"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Dec 12 03:41:47 2022 Return-path: Envelope-to: ged-emacs-devel@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 1p4YlH-00075h-Cv for ged-emacs-devel@m.gmane-mx.org; Mon, 12 Dec 2022 03:41:47 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4Yki-0006za-Hq; Sun, 11 Dec 2022 21:41:12 -0500 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 1p4Ykh-0006zN-Oy for emacs-devel@gnu.org; Sun, 11 Dec 2022 21:41:11 -0500 Original-Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p4Ykf-0005AH-F9 for emacs-devel@gnu.org; Sun, 11 Dec 2022 21:41:11 -0500 Original-Received: by mail-pl1-x62a.google.com with SMTP id d7so10637368pll.9 for ; Sun, 11 Dec 2022 18:41:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=content-transfer-encoding:mime-version:subject:cc:to:from :message-id:date:from:to:cc:subject:date:message-id:reply-to; bh=lGQL/wmK0mTlfJ1jej87zy8S/bVPmthFDa6RvSUzXAs=; b=a6N2ZYmY2k+y10WPPXa4U/3ILtmHvWu8hIH7jPLwiYxeOVgTIhZXCRfhIeYrpzyDPr ix87TSXOZli6Xaxdu5dYKYkSHIG5tVVWB1pgW0LDGwXqCHl/nrKBktkQ0TSku/SmzMG8 L2Y8RhQ4HFczY+1YzbK0cMLbV+rXbLdzD1eO7/4oWIKsSuEO6DrIAp9LWWFA8OiPZIO9 cOhBtHeZ/UH+dQbfyPHCtRvUYBgLz3uB/RcbLdrWInkh5S9Pw2MnPuuqJrN5l1CNeiGj dyxgEGCyeRDtLOcRoR0LhVFsj+RjOYMlN5xaE2LIcpxkgQdT6ADL9FjgqUpgUjcphle6 y27Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:subject:cc:to:from :message-id:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=lGQL/wmK0mTlfJ1jej87zy8S/bVPmthFDa6RvSUzXAs=; b=nRvdXpVX0OPYywkD4IdZd2GNPkqUqxePIvZ4mlBBN6LTnTXBSVJHi0I/URDJ/MWz1U CuH144y/klqH8CLKl4XEKb/vPSCgwx/2EY6c4qDIGelPgilcaEOTfgLpx9+nrcPqtM06 /etOI6i+WtNtpUYRfnuQMAV7PTe2zb+xQTw0S5Xas8h5fBBtGjhOEb4EBFFsfEZFg76u ZDVtBaU9nQ4xtfzEBq3By3kaFYCkR5wGVr9kvsiXXebT9wTOb5uktwaRPJMlaXiY4iqC M2xrqLqppJuI5JjXwf4X5pVcd93xfLehQKNIybikqCrEeGX0EK5ECfr9lPsrPlLdgbUM K08A== X-Gm-Message-State: ANoB5pmS7Ov61Mr99s276ILOXaDl5Iu0SQOm+xzr/+Diu0oQ/ge9Me3f kLjjUDHSvOLZipYhmRFp2ofl0jdRCwJeGE9TpJk= X-Google-Smtp-Source: AA0mqf6qbSRzbo+3cULPk1di9WmsLTWfd9WkqiMN2tG5wlFC0GfTHrKmqJo33DX+bOjdptQOqGQ09g== X-Received: by 2002:a17:902:eccc:b0:189:cb73:75f0 with SMTP id a12-20020a170902eccc00b00189cb7375f0mr19708046plh.8.1670812866416; Sun, 11 Dec 2022 18:41:06 -0800 (PST) Original-Received: from raman9 (c-24-4-174-65.hsd1.ca.comcast.net. [24.4.174.65]) by smtp.gmail.com with ESMTPSA id c4-20020a170902d90400b001743ba85d39sm4972589plz.110.2022.12.11.18.41.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Dec 2022 18:41:05 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=raman@google.com; helo=mail-pl1-x62a.google.com X-Spam_score_int: -150 X-Spam_score: -15.1 X-Spam_bar: --------------- X-Spam_report: (-15.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, HDRS_MISSP=2.499, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:301182 Archived-At: 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
  • 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
  • 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
  • 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 🦮