On Fri, 03 Dec 2004 12:28:49 +0100, Hussein Shafie <hussein at pixware.fr>  
wrote:

> Nico wrote: [...]

>>  I take the opportunity of this thread to say that this missing  
>> "feature"  is really a problem for users that know almost nothing about  
>> DocBook nor  XML, and who are stuck to a behaviour a la word (in which  
>> you can insert  sections everywhere).
>>  Don't you think that this extension should be available by default?
>>
>
> Yes, if we are talking about the same problem.
>
> I think that it would be useful to wrap one or more blocks (para,  
> itemizedlist, etc) optionnally followed by one or more sections into a  
> parent section.
>
> If we are talking about the same problem, just tell me and I'm ready to  
> write such macro right now (may be I'll have to write it as a generic,  
> native, command) and then to add it to the DocBook menu.
>
> Now this being said, even after adding such macro, your na?ve users will  
> not understand why they cannot turn "<para>Paragraph  
> #2.</para><para>Paragraph #3.</para>" to a sub-section of section  
> "example":

Hmm... Now, it's me who doesn't understand clearly what could be possible  
and what could not: do you mean that one could insert a section with the  
same level that where it is, but could not insert a subsection?

With your example and keeping the inserting point between paragraph #1 and  
#2, am I right to say:

<section id="example">
   <para>Paragraph #1.</para>
   <para>Paragraph #2.</para>
   <para>Paragraph #3.</para>
   <para>Paragraph #4.</para>
</section>

could become:

<section id="example">
   <para>Paragraph #1.</para>
</section>
<section id="inserted-example">
   <para>Paragraph #2.</para>
   <para>Paragraph #3.</para>
   <para>Paragraph #4.</para>
</section>

but could not become:

<section id="example">
   <para>Paragraph #1.</para>
   <section id="inserted-sub-example">
     <para>Paragraph #2.</para>
     <para>Paragraph #3.</para>
     <para>Paragraph #4.</para>
   </section>
</section>

? Of course the following case cannot be supported, and I'm sure that  
na?ve users can easily understand why:

<section id="example">
   <para>Paragraph #1.</para>
   <section id="invalid-sub-example">
     <para>Paragraph #2.</para>
     <para>Paragraph #3.</para>
   </section>
   <para>Paragraph #4.</para>
</section>

The first two cases are what I think should be supported (well, at least  
that's what the naive users I know are waiting for ;-). The last wrong  
case is meaningless for word like users since when you insert a section  
title in a .doc file it's scope always go until the end of the doc, or  
until a higher section title level is reached (i.e. the first two cases in  
fact).

So, what is possible and what is not? Anyway even if only the first or  
second case is possible I'm sure it would be very useful.

Regards,

BG

Reply via email to