bugTexi2HTML - Bugs: bug #14233, mediawiki.init mishandles menus

 
 

bug #14233: mediawiki.init mishandles menus

Submitted by:  Derek Robert Price <dprice>
Submitted on:  Sat 20 Aug 2005 01:26:02 AM UTC  
 
Category: NoneSeverity: 2 - Minor
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Patrice Dumas <pertusus>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 22 Aug 2005 07:28:33 PM UTC, comment #3:

This did the trick, with a minor tweak to examples/mediawiki.init to generate working links in preformatted mode. I liked the look of table menus better, but this is closer to the letter of the texi2html spec and works with MediaWiki. I'm closing this issue. Thanks!

Derek Robert Price <dprice>
Project Administrator
Sun 21 Aug 2005 09:35:47 PM UTC, comment #2:

I added the second interface, with SIMPLE_MENU. Is it right for you?

Patrice Dumas <pertusus>
Project AdministratorIn charge of this item.
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
?

Patrice Dumas <pertusus>
Project AdministratorIn charge of this item.
Sat 20 Aug 2005 01:26:02 AM UTC, original submission:

The examples/mediawiki.init file mishandles menus. There appears to be a related but usually invisible bug in the default HTML output: "formatted" menu lines, often used to carry over menu description lines to multiple lines, are intented by the "correct" number of spaces, but not marked as preformatted, as is specified in the texinfo docs on menus.

For some reason these lines still end up between the correct table data tags, so it looks okay in HTML. Not sure where the best compromise is, but to meet the letter of the texinfo spec, the whole menu would need to be preformatted. Tables look best in HTML, and works for the most common use of the preformatted menu spec, but may not always generate correct output.

The mediawiki.init problem is related byt I have yet to dig deeply into it.

Derek Robert Price <dprice>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 22 Aug 2005 07:28:33 PM UTCdpriceStatusReady For Test=>Fixed
  Open/ClosedOpen=>Closed
Sun 21 Aug 2005 09:35:47 PM UTCpertususAssigned toNone=>pertusus
Sun 21 Aug 2005 09:35:46 PM UTCpertususStatusNone=>Ready For Test

Back to the top


Powered by Savane 3.1-cleanup1