From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell Adams Subject: Re: Use orgstruct-mode to edit TWiki Markup language ? Date: Wed, 13 Feb 2008 16:58:55 -0600 Message-ID: <20080213225855.GK8359@odin.demosthenes.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JPQZB-0004q9-PY for emacs-orgmode@gnu.org; Wed, 13 Feb 2008 17:59:01 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JPQZA-0004om-6i for emacs-orgmode@gnu.org; Wed, 13 Feb 2008 17:59:01 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JPQZ9-0004oJ-LZ for emacs-orgmode@gnu.org; Wed, 13 Feb 2008 17:58:59 -0500 Received: from squirtle.drak.net ([72.52.144.201]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JPQZ9-00022r-GH for emacs-orgmode@gnu.org; Wed, 13 Feb 2008 17:58:59 -0500 Received: from [206.180.154.177] (helo=localhost) by squirtle.drak.net with esmtpa (Exim 4.68) (envelope-from ) id 1JPQYy-0004K9-6Y for emacs-orgmode@gnu.org; Wed, 13 Feb 2008 16:58:48 -0600 Content-Disposition: inline In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I export org files into TWiki with the following Carten posted: perl -ape 's/^\*+/"---" . "+" x length($&)/e' input.org > output.txt On Wed, Feb 13, 2008 at 11:24:19PM +0100, Rainer Stengele wrote: > Hi all, > > We (have to) use TWiki as a documentation tool in my company. > I already use Emacs erin-mode to edit the TWiki pages which is not bad. > > What I am really mssing is something like the outline (folding) > possibilities of org! > > I know org provides the orgstruct-mode, but the problem is the different > headline format of the TWiki markup language: > > Example: > > ---+ Headline Level 1 > * text > * text > ---+ Headline Level 1 > i. text1 > i. text2 > ---++ Headline Level 2 > ---+++ Headline Level 3 > ---++++ Headline Level 4 > > I wonder if it would be possible to somehow locally set the regex which > defines what a headline for org is. > As old perl hacker I would say the regex it is something as simple as > ^---[+]+\s > > A configurable headline could serve in all similar cases where you find > a regular formatted headline. > > > Of course I would be more than happy to have org produce TWiki markup > language directly... > > > rainer > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode ------------------------------------------------------------------ Russell Adams RLAdams@AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3