Re: [O] convert html file into orgmode .org file?

2011-07-24 Thread Bastien
Hi Brian,

brian powell  writes:

> * This worked for me:

so...  converting from HTML back to Org!  Great.  And I'll
check Pandoc soon, I'm a fan of this kind of tools.

If you have a minute, would you like to check the Org FAQ
on Worg and submit a new entry?  This questions keeps being
raised, it would be nice to share this solution.

Thanks!

-- 
 Bastien



Re: [O] convert html file into orgmode .org file?

2011-07-22 Thread brian powell
* 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  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  wrote:
> <#secure method=pgpmime mode=sign>
> Puneeth Chaganti  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 fac...@galileo.rhein-neckar.de, Andre Fachat)
>
>



Re: [O] convert html file into orgmode .org file?

2011-07-21 Thread Charles Philip Chan
<#secure method=pgpmime mode=sign>
Puneeth Chaganti  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 fac...@galileo.rhein-neckar.de, Andre Fachat)



Re: [O] convert html file into orgmode .org file?

2011-07-21 Thread Puneeth Chaganti
On Thu, Jul 21, 2011 at 2:08 PM, Jude DaShiell  wrote:
> Can org-mode do this so that a user of orgmode can edit the page in
> orgmode then export the edited work back out to an html file?

Org-mode cannot import html files.  But, you could try using Pandoc[1]
for this.

[1] - http://johnmacfarlane.net/pandoc/

--
Puneeth



[O] convert html file into orgmode .org file?

2011-07-21 Thread Jude DaShiell
Can org-mode do this so that a user of orgmode can edit the page in 
orgmode then export the edited work back out to an html file?