From: Beni C. <cb...@te...> - 2003-06-26 11:15:33
|
David Goodger wrote on 2003-06-26: > Beni Cherniavsky wrote: > > The drawback of this is that it forbids the optional ``\ `` between > > closing markups; > > I don't follow. Drawback of what? What "forbids"? > Always treating a markup character following ``\ `` as an opening markup, even if it equals the currently pending closing markup. This is a function of how you define the recognition regexps w.r.t. to ``\ ``. Currently:: $ publish.py *\ *foo** *\ *foo*\ * *\ *foo\ ** <document source="<stdin>"> <paragraph> <emphasis> *foo* <paragraph> <emphasis> *foo * <paragraph> <emphasis> *foo* Apparently it already is like this, so one can't use ``\ `` in a symetric way but can express arbitrary embeddings. I currently don't see a consistent way to make the second (symmetric) example work, since if the second ``\ `` shouldn't prevent the following (4th) asterisk to close the markup, how can the first ``\ `` prevent the following (2nd) asterisk from closing it at once? > > I'm inclined to put it there for symmetry if I put it > > when opening - I find this more readable. > > Fine by me. Sometimes I write "x + (y * z)" just to be clear. > > > On the question of what such markup means: I'm not sure the same > > markup within itself (emphasis withing emphasis) means anything but > > I certainly want to nest strong withing emphasis:: > > The markup should certainly allow this. Whether or not the document > model allows it is debatable. > A sound approach. > > <personal musings, safe to skip> > > I'm looking forward to learning more about bi-directional scripts. I > think. ;-) > I'll notify you when I write a solid explanation (on my plan ;). -- Beni Cherniavsky <cb...@tx...> "Reading the documentation I felt like a kid in a toy shop." -- Phil Thompson on Python's standard library |