From mboxrd@z Thu Jan 1 00:00:00 1970 From: Willem Rein Oudshoorn Subject: Re: HTML --> Org-mode? Date: Tue, 27 Jan 2015 09:23:26 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YG2Id-0003jo-Kd for emacs-orgmode@gnu.org; Tue, 27 Jan 2015 04:19:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YG2Ia-0004J8-Fi for emacs-orgmode@gnu.org; Tue, 27 Jan 2015 04:19:07 -0500 Received: from plane.gmane.org ([80.91.229.3]:41378) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YG2Ia-0004Is-9I for emacs-orgmode@gnu.org; Tue, 27 Jan 2015 04:19:04 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YG2IV-0006DK-AT for emacs-orgmode@gnu.org; Tue, 27 Jan 2015 10:18:59 +0100 Received: from ipleiden.intellimagic.net ([213.125.246.154]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Jan 2015 10:18:59 +0100 Received: from woudshoo by ipleiden.intellimagic.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Jan 2015 10:18:59 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Matt Price writes: > Hmm, > > Looks like I asked this about a year ago and didn't follow up on it. Does > anyone know a way to generate org-mode syntax from an html string? I would > like to extend zotxt slightly (see my last post) and at present zotxt can > pull citations 7 bibliography entries from Zotero only in plain-text and > HTML form. The plaintext form loses information, so I would like to > translate the HTML into org-mode syntax. > > Since this would have to happen in the context of an > > (org-add-link-type ) > > invocation, it would be best if this could be done directly in emacs > somehow... > > Thanks as always, Not sure if this helps, but I recently hacked some code to convert a simple subset of HTML to org. It is quite hackish and not nearly finished (and I might never finish). However it is pure elisp. Code is at: http://github.com/woudshoo/html-2-org Usage is: (h-2-o-insert-org-source-for-html HTML-STRING) which inserts a org blob in the current buffer at point. Wim Oudshoorn.