From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.bugs Subject: bug#15244: eww: Enhance h1, h2 headers etc with text properties Date: Mon, 02 Sep 2013 10:44:59 +0530 Message-ID: <87vc2jyfcc.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1378098861 22021 80.91.229.3 (2 Sep 2013 05:14:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Sep 2013 05:14:21 +0000 (UTC) To: 15244@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 02 07:14:23 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1VGMT0-0005p7-Qi for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Sep 2013 07:14:23 +0200 Original-Received: from localhost ([::1]:36998 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGMT0-0004nS-DE for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Sep 2013 01:14:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGMSp-0004ld-7T for bug-gnu-emacs@gnu.org; Mon, 02 Sep 2013 01:14:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGMSg-0007qr-AM for bug-gnu-emacs@gnu.org; Mon, 02 Sep 2013 01:14:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56233) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGMSg-0007qn-51 for bug-gnu-emacs@gnu.org; Mon, 02 Sep 2013 01:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VGMSf-000289-MD for bug-gnu-emacs@gnu.org; Mon, 02 Sep 2013 01:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jambunathan K Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Sep 2013 05:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15244 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13780988058132 (code B ref -1); Mon, 02 Sep 2013 05:14:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Sep 2013 05:13:25 +0000 Original-Received: from localhost ([127.0.0.1]:36293 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VGMS4-000275-BR for submit@debbugs.gnu.org; Mon, 02 Sep 2013 01:13:24 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35690) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VGMS1-00026r-Oc for submit@debbugs.gnu.org; Mon, 02 Sep 2013 01:13:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGMRo-0007RI-5F for submit@debbugs.gnu.org; Mon, 02 Sep 2013 01:13:16 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:45550) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGMRo-0007RE-22 for submit@debbugs.gnu.org; Mon, 02 Sep 2013 01:13:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGMRf-0004Bp-KZ for bug-gnu-emacs@gnu.org; Mon, 02 Sep 2013 01:13:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGMRX-00077H-7k for bug-gnu-emacs@gnu.org; Mon, 02 Sep 2013 01:12:59 -0400 Original-Received: from mail-pb0-x22b.google.com ([2607:f8b0:400e:c01::22b]:33171) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGMRW-00077C-VW for bug-gnu-emacs@gnu.org; Mon, 02 Sep 2013 01:12:51 -0400 Original-Received: by mail-pb0-f43.google.com with SMTP id md4so4264101pbc.30 for ; Sun, 01 Sep 2013 22:12:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version :content-type; bh=Oc0quF7AixYDg1knIB9Qlgm5BjmubGjdKguXk5HPLK0=; b=GSn5Yo0Ora7hiGpLtKwHlYSfb+CmQoBsR1w4xHWtvCDKbE71sphDdVf7+zESsMqdl2 cBEOVIilEFzzaP36yJtGi3UMhlY6D8+DHB+srLXlWbPPQ7Wwb8b9hV+IW/0qe3T6VGS0 HQC3t0yQHzG/DhRhpUn32MlJ62YJbZHmrsA0fmK6HNtfXRnLjDqY1w45J6fUnkQqpr51 yYeqL0MUqPSskobN0LzlV8jcl4TvXis0M56bMoqCY3ULsFzLp2Lpa8yBrldMEFN7Jh/j vuNFOxcCpykPw0AnycehBfZ+IGSvH/zEy4LdwT17TpWzQlrmmdv1pzUgLeHikbH1tqdk blAA== X-Received: by 10.68.254.42 with SMTP id af10mr1065218pbd.154.1378098770022; Sun, 01 Sep 2013 22:12:50 -0700 (PDT) Original-Received: from porunai ([101.63.147.164]) by mx.google.com with ESMTPSA id ta10sm14413397pab.5.1969.12.31.16.00.00 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Sun, 01 Sep 2013 22:12:49 -0700 (PDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:77879 Archived-At: Use case: Use eww to import HTML document in to Org format (or arbitrary text markup format), the dirty way. ---------------------------------------------------------------- How can it be achieved: 1. The *eww* buffer can slap text properties (like :h1, :h2, :bold) etc on to the rendered text. 2. Emacs can offer a search and replace based on *Text Properties*. This way I can do, - Search for a text with *italic* face Replace it with /underlying text/ - Search for all text with h1 Replace it with * underlying text for h1 - Search for all text with h2 Replace it with ** underlying text for h2 - Search for a hyperlink Replace it with [[:href of underlying text][underlying text]]