Re: [O] Importing from Oddmuse?

2013-11-02 Thread Jambunathan K
Peter Davis p...@pfdstudio.com writes: I've used Oddmuse for years to maintain my own personal Wiki, but now I'm looking to move to Org mode. I am in the process of adding Org-mode markup support to the Oddmuse wiki engine. (By support I mean, only the text markup not agenda or babel related

Re: [O] Importing from Oddmuse?

2013-10-31 Thread Marcin Borkowski
Dnia 2013-10-30, o godz. 18:44:53 Peter Davis p...@pfdstudio.com napisaƂ(a): On Thu, Oct 31, 2013 at 02:38:48AM +0530, Jambunathan K wrote: Peter Davis p...@pfdstudio.com writes: I've used Oddmuse for years to maintain my own personal Wiki, but now I'm looking to move to Org mode.

Re: [O] Importing from Oddmuse?

2013-10-30 Thread Peter Davis
On Thu, Oct 31, 2013 at 02:38:48AM +0530, Jambunathan K wrote: Peter Davis p...@pfdstudio.com writes: I've used Oddmuse for years to maintain my own personal Wiki, but now I'm looking to move to Org mode. I am in the process of adding Org-mode markup support to the Oddmuse That would be

Re: [O] Importing from Oddmuse?

2013-10-28 Thread Peter Davis
Just to answer my own question, I shamelessly took Alex Schroeder's raw.pl script and hacked it up a bit to do some conversion from Oddmuse markup to org-mode. The attached Perl script should run through all the pages in an Oddmuse Wiki and generate .org versions of them in a separate

Re: [O] Importing from Oddmuse?

2013-10-28 Thread Achim Gratz
Peter Davis writes: # hyperlinks s/\[\[([^]]*)\]\]/[[file:$1.org][$1]]/g; Try this to fix the links maybe: # hyperlinks s/\[\[([^]]*)\]\]/ my $l = $1; $l =~ s: :_:g; [[file:$l.org][$l]]/gex; Regards, Achim. --

Re: [O] Importing from Oddmuse?

2013-10-28 Thread Peter Davis
On 10/28/13, 2:12 PM, Achim Gratz wrote: Peter Davis writes: # hyperlinks s/\[\[([^]]*)\]\]/[[file:$1.org][$1]]/g; Try this to fix the links maybe: # hyperlinks s/\[\[([^]]*)\]\]/ my $l = $1; $l =~ s: :_:g;

Re: [O] Importing from Oddmuse?

2013-10-28 Thread Achim Gratz
Peter Davis writes: Excellent! I modified it slightly to keep the spaces in the display string: This is better, I'd think: # hyperlinks s/\[\[([^]]*)\]\]/ my $l = $1; $l =~ s: :_:g; [[file:$l.org][$1]]/gex; Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk

Re: [O] Importing from Oddmuse?

2013-10-28 Thread Peter Davis
On 10/28/13, 3:18 PM, Achim Gratz wrote: Peter Davis writes: Excellent! I modified it slightly to keep the spaces in the display string: This is better, I'd think: # hyperlinks s/\[\[([^]]*)\]\]/ my $l = $1; $l =~ s: :_:g; [[file:$l.org][$1]]/gex; That was the first thing I tried, and Perl

Re: [O] Importing from Oddmuse?

2013-10-28 Thread Peter Davis
On Mon, Oct 28, 2013 at 4:26 PM, Achim Gratz strom...@nexgo.de wrote: Peter Davis writes: That was the first thing I tried, and Perl complained about an undefined variable. I may have made a typo though. Nope, my error. $1 gets clobbered by the second replacement. So you'd want what you

Re: [O] Importing from Oddmuse?

2013-10-28 Thread Achim Gratz
Peter Davis writes: That was the first thing I tried, and Perl complained about an undefined variable. I may have made a typo though. Nope, my error. $1 gets clobbered by the second replacement. So you'd want what you wrote or somewhat shorter: # hyperlinks s/\[\[([^]]*)\]\]/ my ($l, $o) =

[O] Importing from Oddmuse?

2013-10-25 Thread Peter Davis
I'm comparatively new to Org mode (actually, I've used it for years, but only a small subset of its functionality). I've used Oddmuse for years to maintain my own personal Wiki, but now I'm looking to move to Org mode. I know there are lots of tools for exporting or publishing from Org mode to