From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: import wiki to orgmode Date: Sat, 25 Jun 2016 15:06:58 -0400 Message-ID: <8760sxm6jx.fsf@kyleam.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56906) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGsv9-0001M9-2g for emacs-orgmode@gnu.org; Sat, 25 Jun 2016 15:07:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGsv4-0001K5-PD for emacs-orgmode@gnu.org; Sat, 25 Jun 2016 15:07:09 -0400 Received: from pb-smtp2.pobox.com ([64.147.108.71]:55526 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGsv4-0001Jv-Am for emacs-orgmode@gnu.org; Sat, 25 Jun 2016 15:07:06 -0400 In-Reply-To: (ron's message of "Sat, 25 Jun 2016 18:37:08 +0000 (UTC)") 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" To: ron123 Cc: emacs-orgmode@gnu.org Hello, ron123 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