Hussein Shafie wrote:

> Yves Forkl wrote:
> 
>>1) Which is the best way to change the mnemonic of the DocBook menu?
>[...] 
> 
> The mnemonic processing in the <menu> configuration elements is wrong
> and needs to be redesigned.
> 
> For now, you can only do this:
> ---
>   <menu label="DocBook" mnemonic="k">
>       <insert />
>       <separator />
>       <!-- ADD SOMETHING HERE -->
>     </menu>
>   </menu>
> ---
> That is, redefine the DocBook menu (and its mnemonic) by augmenting it.

Yes, this works, even without really augmenting the menu:

   <menu label="DocBook" mnemonic="k">
     <insert />
   </menu>


>>2) How to add a user-defined menu without chasing another added menu?
>>
>>I have defined a Character menu that I want to add to XXE's menu bar.
>>From the documentation page on the "menu" command
>>(<INSTALLDIR>/doc/configure/ch06s14.html) it is not clear to me what I
>>have to do in order to include it - without chasing the DocBook menu,
>>which is what currently happens. The config file I use is attached.
>>How to specify the place where my menu will be inserted?
> 
> 
> If it is not documented, that means that you cannot do it.
> 
> You'll have to wait for XXE ***V3*** in order to be able to do this.

Sad, but I won't have to wait for a long time, as the rumour goes. :-)


> However this will be a somewhat advanced customization:
> 
> [1] Define the "Characters" menu as below; plus give it a generic name
> such as "configSpecificMenu2".
> 
> [2] Create a file (anywhere in ZZZ/addon/) called custom.xxe_gui
> containing what follows:
> ---
> <menuItems name="configSpecificMenuItems2">
>   <class>com.xmlmind.xmleditapp.kit.part.ConfigSpecificMenuItems</class>
>   <property name="specificationName">configSpecificMenu2</property>
> </menuItems>
> 
> <menu name="configSpecificMenu2" label="Extras">
>   <menuItems name="configSpecificMenuItems2" />
> </menu>
> 
> <menuBar name="menuBar">
>   <insert />
>   <menu name="configSpecificMenu2" />
> </menuBar>

Trying this solution which seems to me like using a backdoor to the GUI 
of XXE V. 2.x, I get exactly the same result like before, when I just 
defined the menu without giving it any name, just a label: as soon as my 
"Characters" menu appears, the "DocBook" menu is gone, but I would like 
to have both of them side by side!

Whichever of the two menus I define last obviously overrides the other.

But I might consider simply integrating my Characters menu into the 
DocBook menu. (However, I will then need to define the Characters menu 
separately when using other DTDs.)


> [1] Your Characters menu, being completely generic, could be directly
> defined in custom.xxe_gui. Doing this will be simple and quick in V3
> (much much simpler than adding a second *config specific* menu as
> described above)

May I ask in what sense it is "completely generic"? (Can you give an 
example of a menu item which would contradict this?) Anyway, I'm looking 
forward to XXE V. 3.


> [2] For now, for the kind of menu you want, a much simpler approach
> would be to add a button containing a menu to the DocBook toolbar. See
> http://www.xmlmind.com/xmleditor/_distrib/doc/configure/ch04s02s03.html

I agree that extending the DocBook toolbar is easier than the above 
solution. Unfortunately, my character entry menu is intended primarily 
for keyboard-only character entry (otherwise the newly introduced 
Favorites range of the Character tool would be a better starting point 
for a user-defined set of frequently used characters), which would not 
be possible with items in the toolbar.

To finish, I want to say that I am very grateful to you for your 
detailed explanations.

    Yves Forkl

Reply via email to