[EMAIL PROTECTED] wrote:
On Wed, 3 Oct 2007, Juergen Spitzmueller wrote:
Some thoughts: Say I have a charstyle <foo>hello world</foo>.
* If I select "hello" and select "bar" from the combo, the result would
be a nested construct "<foo><bar>hello</bar> world</foo>".
I'm not sure it matters, but you make the assumption that it would be
a nested construct, is that necessearily true? Do we have to impose
a nesting structure on the character styles, or could each of them be
operating along an independent dimension? Couldn't two character
styles start and/or end at the exact same position?
[snip]
Aren't character styles in general independent of each other?
In general, nesting does or at least can make a difference. Whether it
does in a particular case will depend upon what the output code looks
like. In any event, if you have:
<foo><bar>foobar</bar></foo>
then that will produce, in LaTeX:
\foo{\bar{foobar}}
rather than the other way around, so permitting both orders permits
control of the output, for those who care about such things.
Richard