From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: HOWTO export document to wiki text? Date: Mon, 19 Jan 2009 16:32:59 +0100 Message-ID: <836EFF3E-61D6-4FFE-876B-630313C4C8A6@uva.nl> References: Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LOw7g-0007qb-P5 for emacs-orgmode@gnu.org; Mon, 19 Jan 2009 10:33:08 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LOw7e-0007pX-CP for emacs-orgmode@gnu.org; Mon, 19 Jan 2009 10:33:08 -0500 Received: from [199.232.76.173] (port=54972 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LOw7e-0007pU-27 for emacs-orgmode@gnu.org; Mon, 19 Jan 2009 10:33:06 -0500 Received: from ug-out-1314.google.com ([66.249.92.169]:20660) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LOw7d-0006tp-Gr for emacs-orgmode@gnu.org; Mon, 19 Jan 2009 10:33:05 -0500 Received: by ug-out-1314.google.com with SMTP id 36so278531uga.17 for ; Mon, 19 Jan 2009 07:33:03 -0800 (PST) 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: Rustom Mody Cc: emacs-orgmode@gnu.org On Jan 19, 2009, at 8:05 AM, Rustom Mody wrote: > Uwe Koloska koloro.de> writes: > >> there is this very nice export to text feature and the superb HTML >> export. > >> And if there is no such feature yet, where do I have to start to >> implement it? > > +1 for me. > > I need at least two more exporters, maybe more -- they may be of > different level of generality/use to other org users. > If I can get a handle on it I'll try my hand. > > As I understand (and Eric points out) org-exp.el is the central place > to start looking, but I gather that there is also another more > data-oriented approach experimentally supported by some Bastien code. > I remember Carsten talking about it some 2-3 months back that > something like this (entire org mode buffer as a lisp (property) list > or something to that effect) but that its not (yet then) integrated > into the rest of org. That code is in the EXP subdirectory of the git repo, in the file org-export.el. It is not very well integrated yet, and it also does only a partial parsing job, basically the document structure and the meta data. I did have high hope for this a while ago, it could have become the basis for a new general export engine. But I think that dream is gone - unless someone picks it up now. Basic approach would be: - start with org-export.el. - enhance the parser so that it will at least do plain lists - there is an excellent list parser (org-parse-list, also by Bastien) in org-list.el. - use that to split the "content" part of each entry into sub blocks like (paragraph "text") (ordered-list bullet-type item1 item2 ....) (unordered-list bullet-type item1 item2 ....) or similar, where item is some kind of structure that also holds information about a possible check box and its state. - Also find a way to put setup information like #+STARTUP etc into structured elements. When this is done, write a function that can write a valid Org file from such a list, and you have written an org-to-org converter, with the practical application to normalize Org files. Then you can start writing wiki converters, with using the list structure as the common intermediate format. My personal feeling is right now that we will not anymore *replace* the HTML and LaTeX exporters with this new exporter, because too much specialized work has gone into making these really quite nice and feature rich. However as a basis for any new exporters, and in particular as an engine to read an write wiki formats, this could really work very well. I will be ready help with advice, but I will not do this myself. - Carsten > > > So tips/pointers on this will be welcome. > > Rustom > > > _______________________________________________ > 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