From: brian powell <briangpowellms@gmail.com>
To: Org-mode <emacs-orgmode@gnu.org>
Subject: Re: convert html file into orgmode .org file?
Date: Fri, 22 Jul 2011 12:53:25 -0400 [thread overview]
Message-ID: <CAFm0skH=sGtOs=fhot8SnH5L2fuB-vAah4CqNXoEose=q7-YGg@mail.gmail.com> (raw)
In-Reply-To: <BLU0-SMTP8707B48F2FC6028EA3E027BB4F0@phx.gbl>
* 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.org)
*** 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ébastien SAUVAGE <sebsauvage
at sebsauvage dot net> 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 EMACS)!
* PanDoc also has interesting file inclusion and elisp “double-at
directives”: 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 <cpchan@bell.net> wrote:
> <#secure method=pgpmime mode=sign>
> Puneeth Chaganti <punchagan@gmail.com> writes:
>
>> Org-mode cannot import html files. But, 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)
>
>
next prev parent reply other threads:[~2011-07-22 16:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-21 8:38 convert html file into orgmode .org file? Jude DaShiell
2011-07-21 9:07 ` Puneeth Chaganti
2011-07-21 19:34 ` Charles Philip Chan
2011-07-22 16:53 ` brian powell [this message]
2011-07-24 23:17 ` Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAFm0skH=sGtOs=fhot8SnH5L2fuB-vAah4CqNXoEose=q7-YGg@mail.gmail.com' \
--to=briangpowellms@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).