Sat 20 Aug 2005 06:40:37 PM UTC, comment #1:
The way texi2html handle menus should be covered in
http://ximbiot.com/texi2html/manuals/1.76/texi2html_7.html#SEC78
This is a departure from the texinfo documentation and it is possible that it adds complexity to the code, but it was like that in the previous versions and it looks much better in html.
Normally no information is lost, as the menu_link and simple_menu_link have all the information. You can have a look at roff.init, it may do something similar than what you want. You could also have a look at what is done when formatting a menu in a preformatted environmnent, like
@example
@menu
- node:: descr
- other node::
@end menu
@end example
This could be enough for mediawiki, however if you feel that the interface should be changed such that either the function doing the preformatted region formatting has information about the context, or the whole menu formatting interface is changed, it is possible.
I see 2 possibility. One would be to give informations to the function that does the preformatting/paragraph region formatting more information about the context, like is it in a menu, if yes is it in the entry, the description or a menu comment.
The other possibility would be to change the interface to menu formatting. In that case, it could be possible to have 2 interfaces, one being the existing interface, and another being simpler, with the menu in only one preformatted region, considered like any other complex_format.
I favor the second possibility, as it would give an interface more compatible with the texinfo documentation.
What result would you like for a menu like
@menu
- node:: descr
- other node::
@end menu
?
|