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 complained about an undefined 
variable. I may have made a typo though.


Thanks!

Cheers,
-pd

--
Peter Davis
The Tech Curmudgeon
www.techcurmudgeon.com




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 wrote or somewhat shorter:

 # hyperlinks
 s/\[\[([^]]*)\]\]/
   my ($l, $o) = ($1, $1);
   $l =~ s: :_:g;
   [[file:$l.org][$o]]/gex;


Yes, that works beautifully, and is nice and concise.

Thank you!

-pd

-- 

The Tech Curmudgeon
http://www.techcurmudgeon.com


[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
Oddmuse, but how about the other direction? Any tools or tips for importing
a large number of Oddmuse pages into Org mode? Ideally, I'd like to keep
them as separate files, with links converted to file links, etc.

Ideas?

Thanks!

-pd


-- 

The Tech Curmudgeon
http://www.techcurmudgeon.com


<    1   2   3   4