From mboxrd@z Thu Jan 1 00:00:00 1970 From: brian powell Subject: Re: convert html file into orgmode .org file? Date: Fri, 22 Jul 2011 12:53:25 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53703) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkIyf-0005dV-IL for emacs-orgmode@gnu.org; Fri, 22 Jul 2011 12:53:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QkIyd-0005hL-V6 for emacs-orgmode@gnu.org; Fri, 22 Jul 2011 12:53:29 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:56977) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkIyd-0005hE-E5 for emacs-orgmode@gnu.org; Fri, 22 Jul 2011 12:53:27 -0400 Received: by wyg36 with SMTP id 36so1993610wyg.0 for ; Fri, 22 Jul 2011 09:53:26 -0700 (PDT) In-Reply-To: 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: Org-mode * This worked for me: ** apt-get install pandoc * Booted up an EMACS that has the menus enabled. ** Install pandoc-mode.el (see http://wwwuser.gwdg.de/~jkremer/pandoc-mode.html ) ** Goto buffer with .html doc in it. *** Get OrgMode and PanDocMode running simultaneously in the same buffer. ** Click on the PanDoc menus in EMACS: *** Chose PanDoc->Files->OutputFile->SetOutputFile (and I typed /tmp/test.o= rg) *** Chose PanDoc->OutputFormat->OrgMode *** Chose PanDoc->RunPanDoc * /tmp/test.org was created--looked pretty good; but, "your mileage may vary"--depends on the structure of the HTML file. ** PanDoc has a lot of filetype conversions! ** I often use "html2csv" --by Author: S=E9bastien SAUVAGE http://sebsauvage.net *** And/or use PERL or EMACS to go the rest of the way. Thanks Puneeth for the link to PanDoc (and the sublink to PanDocMode for EM= ACS)! * PanDoc also has interesting file inclusion and elisp =93double-at directives=94: See http://wwwuser.gwdg.de/~jkremer/pandoc-mode-manual.pdf ** Someone sought to include the "markdown" in their doc I believe. ** Can do things like this (when using PanDoc/PanDoc-mode.el @@include{blah.txt} @@lisp{(format-time-string "%d %b %Y")} On Thu, Jul 21, 2011 at 3:34 PM, Charles Philip Chan wrot= e: > <#secure method=3Dpgpmime mode=3Dsign> > Puneeth Chaganti writes: > >> Org-mode cannot import html files. =A0But, you could try using Pandoc[1] >> for this. >> >> [1] - http://johnmacfarlane.net/pandoc/ > > There is also an Emacs mode for pandoc: > > http://user.uni-frankfurt.de/~kremers/pandoc-mode.html > > Charles > > -- > Why use Windows, since there is a door? > (By fachat@galileo.rhein-neckar.de, Andre Fachat) > >