[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] import wiki to orgmode
From: |
Kyle Meyer |
Subject: |
Re: [O] import wiki to orgmode |
Date: |
Sat, 25 Jun 2016 15:06:58 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.94 (gnu/linux) |
Hello,
ron123 <address@hidden> writes:
> Hello,
>
> is it possible to import mediawiki pages to org mode? [I need this for
> saving some wiki-articles.]
> I think a complete solution would be a bit difficult [you have links,
> footnotes, formatting etc.]
>
> But for the beginning it would be sufficient to make such conversions:
[...]
> to this orgmode text:
>
> ** History
>
> Emacs development began during the 1970s at ...
>
> *** Other early implementations
> In the following years, programmers wrote a variety of Emacs-like
> editors for other computer systems.
>
> *** GNU Emacs
> Richard Stallman began work on GNU Emacs in 1984 to produce a
>
> *** XEmacs
> Lucid Emacs, based on an early alpha version of GNU Emacs 19
>
>
> *** Editors with Emacs emulation
> - Yi, an editor that is written and extensible in
> - Joe emulates Emacs keybindings when
> - Jed has an emulation mode for Emacs.
>
>
> Unfortunately (and surprisingly) I didn't find a program for this. Any
> ideas? Isn;t there an org function?
As someone suggested in a comment to your Emacs Stack Exchange question [1],
I think pandoc is probably your best bet. Running
pandoc -f mediawiki -t org
with your example text as input gives
,----
| ** History
| :PROPERTIES:
| :CUSTOM_ID: history
| :END:
|
| Emacs development began during the 1970s at ...
|
| *** Other early implementations
| :PROPERTIES:
| :CUSTOM_ID: other-early-implementations
| :END:
|
| In the following years, programmers wrote a variety of Emacs-like ors
| for other computer systems.
|
| *** GNU Emacs
| :PROPERTIES:
| :CUSTOM_ID: gnu-emacs
| :END:
|
| Richard Stallman began work on GNU Emacs in 1984 to produce a
|
| *** XEmacs
| :PROPERTIES:
| :CUSTOM_ID: xemacs
| :END:
|
| Lucid Emacs, based on an early alpha version of GNU Emacs 19
|
| *** Editors with Emacs emulation
| :PROPERTIES:
| :CUSTOM_ID: editors-with-emacs-emulation
| :END:
|
| - Yi, an editor that is written and extensible in
| - Joe emulates Emacs keybindings when
| - Jed has an emulation mode for Emacs.
`----
[1] http://emacs.stackexchange.com/questions/24173/import-wiki-to-orgmode
--
Kyle