emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kyle Meyer <kyle@kyleam.com>
To: ron123 <ronny.lienhard@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: import wiki to orgmode
Date: Sat, 25 Jun 2016 15:06:58 -0400	[thread overview]
Message-ID: <8760sxm6jx.fsf@kyleam.com> (raw)
In-Reply-To: <loom.20160625T203427-338@post.gmane.org> (ron's message of "Sat, 25 Jun 2016 18:37:08 +0000 (UTC)")

Hello,

ron123 <ronny.lienhard@gmail.com> 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

      reply	other threads:[~2016-06-25 19:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-25 18:37 import wiki to orgmode ron123
2016-06-25 19:06 ` Kyle Meyer [this message]

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=8760sxm6jx.fsf@kyleam.com \
    --to=kyle@kyleam.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=ronny.lienhard@gmail.com \
    /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).