From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: [RFC]: Uniform indentation for lists Date: Tue, 25 Jun 2013 23:02:02 +0200 Message-ID: <87ip1152gl.fsf@Rainer.invalid> References: <87hagntblh.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53120) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UraNW-0001G8-Ob for emacs-orgmode@gnu.org; Tue, 25 Jun 2013 17:02:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UraNV-00053r-HY for emacs-orgmode@gnu.org; Tue, 25 Jun 2013 17:02:18 -0400 Received: from plane.gmane.org ([80.91.229.3]:57740) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UraNV-00053k-Ay for emacs-orgmode@gnu.org; Tue, 25 Jun 2013 17:02:17 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UraNT-0006Af-MQ for emacs-orgmode@gnu.org; Tue, 25 Jun 2013 23:02:15 +0200 Received: from pd9eb158e.dip0.t-ipconnect.de ([217.235.21.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Jun 2013 23:02:15 +0200 Received: from Stromeko by pd9eb158e.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Jun 2013 23:02:15 +0200 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Jambunathan K writes: > When lists are "normalized", the sub-lists are introduced by varying > amout of spaces depending on the type of the parent list. It's 3 spaces > if the parent is numbered and 2 spaces if the parent is bulleted. > > 1. One > 2. Two > - Bullet One > - Bullet Two > 1. One > 2. Two > > Oddmuse wiki and possibly Usemod (and even other Wiki engines) do a > linear scan of text (much like what the old org-html.el used to do) and > emits HTML by looking at thing at point. Having the list items > introduced by varying amout of spaces makes the parser "more" stateful. I don't think this is ever going to work unless you restrict either the number of items or the types of enumeration. But you could easily normalize on export into those formats by indenting with a number of tabs corresponding to the indent level. That would look strange in a buffer (unless you set the tab-width appropriately), but it would be parseable more easily. But Oddmuse is in Perl, so keeping a stack of indents really isn't a big deal (and I don't think it'd be in other languages like Python, PHP or Ruby). Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada