From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: raman Newsgroups: gmane.emacs.devel Subject: Re: "Readability" feature in eww Date: Tue, 04 Nov 2014 18:04:32 -0800 Message-ID: References: <87mw88artr.fsf@engster.org> <87ioivbeb9.fsf@engster.org> <87a946c0bs.fsf@engster.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415153107 12356 80.91.229.3 (5 Nov 2014 02:05:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Nov 2014 02:05:07 +0000 (UTC) Cc: tv.raman.tv@gmail.com, emacs-devel@gnu.org To: Lars Magne Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 05 03:05:00 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xlpy0-0003BH-5p for ged-emacs-devel@m.gmane.org; Wed, 05 Nov 2014 03:05:00 +0100 Original-Received: from localhost ([::1]:43821 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xlpxz-00018H-PF for ged-emacs-devel@m.gmane.org; Tue, 04 Nov 2014 21:04:59 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54963) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xlpxq-00016E-0d for emacs-devel@gnu.org; Tue, 04 Nov 2014 21:04:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xlpxk-0006ma-Fx for emacs-devel@gnu.org; Tue, 04 Nov 2014 21:04:49 -0500 Original-Received: from mail-pa0-x233.google.com ([2607:f8b0:400e:c03::233]:38471) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xlpxk-0006m5-7v for emacs-devel@gnu.org; Tue, 04 Nov 2014 21:04:44 -0500 Original-Received: by mail-pa0-f51.google.com with SMTP id kq14so15557704pab.24 for ; Tue, 04 Nov 2014 18:04:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; bh=nQ6NB0DGTulN8LiGKDQ/QiJBWhyCf7U9SKpcwgVmnXk=; b=NeFqjcKQXsg2sDPlwGKlDFIdS7yIbhT8dIBsvZsFfWmZuf/iCkszjIXo+84QSEjSef KjX1WlD4FCybn31tdWaX12oAGjnm90g7FJuSbtX6ZOC1pWQo0XQIQyXAM7LMmr9PTV6w cZQ1Jt0Vsddbp9mzsXo35CBVv1nLhl+Xn4L7hodZ/i5mPKBQO8B1/aX51YP9hD8vXRXr FYmnTjmhH02NDn5nuMMkkQhs4bUn21uOzkAU8BftMDEQjLkMdp4E06kL4D1gskJ2BbkL RMEtkPeH4uJs9EtG2FxpIaRDdAGyHpiEWhkektsa6mgerjBqKey5jyvCUOWVzrQ9+Msz 4+ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-type; bh=nQ6NB0DGTulN8LiGKDQ/QiJBWhyCf7U9SKpcwgVmnXk=; b=E2o+jk98Y5fnSeZFs2yhxEGVjQ8au4RQAhIjvaDw/Rt/fEJn+664MLMlllY9jJsVTx CaP8elwx6xmGNik/VpfiFq4fjfIzHw7yrIADY75A1sg2xPckomtBLWJxBRWAlK1oKYrB FKR5iDIrCVoG0ep7wAI+tvU8oJ+z7ddyR4RjB4VDGRdN/7zt8YvycpP0kYJKFHlaXOo/ X8PJCoIqF9pkSU0dW+iQfLs30nbmha97Pzu/+HEkZlBwfnyPkOYAYg0tUHBrBHypRcUB fP0APwn1P1L5Ih9Gfhm/vd+cNNzj+/H8cBPl18VianX35vUFUdOwcvLcnehNTqorwS8z 5BKQ== X-Gm-Message-State: ALoCoQmo+n1+APoclORORnA3NetwHwK5VCvIQVBIe4Qd4jzijvxgGccVcZ2Ci8gZeLTzeUb757Y4 X-Received: by 10.70.37.8 with SMTP id u8mr35352887pdj.9.1415153081976; Tue, 04 Nov 2014 18:04:41 -0800 (PST) Original-Received: from raman-glaptop.roam.corp.google.com.google.com ([207.198.105.24]) by mx.google.com with ESMTPSA id cs9sm1608650pac.8.2014.11.04.18.04.38 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 04 Nov 2014 18:04:39 -0800 (PST) In-Reply-To: <87a946c0bs.fsf@engster.org> (David Engster's message of "Tue, 04 Nov 2014 19:00:55 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c03::233 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:176372 Archived-At: In the emacspeak-eww module, I implemented the following -- if it's more generally useful to eww, I'd be happy to contribute it to eww. http://emacspeak.googlecode.com/svn/trunk/lisp/emacspeak-eww.el That file uses folding-mode -- and the section pertaining to filtering could likely just be ripped out from there and moved to eww.el -- Filtering: 1. Filter by element or elements 2. Filter by class value or values 3. Filter by id value / values 4. Filter by "role" value/values (role was introduced for Accessibility in HTML and gets used increasingly eg role=main vs role=nav The above lets me filter pages interactively; once I find a suitable recipe that works, I usually code it up as a per-site wizard -- --Raman