Help wanted: simple patch task

Tony Graham <[email protected]> Wed, 29 Mar 2006 22:26:37 +0100
Newsgroups gmane.text.xml.xmlroff.general
Message-ID <[email protected]>
In the process of fixing SourceForge bug "[ 1222524 ] indexterm-related
crash", I added some rudimentary support for fo:page-number-citation.

One part of the implementation was to add a hash of FO's Ids so they can be
looked up later.

A second part was to insert an FO's Id in the hash.  I have so far only done
this for fo:wrapper (in fo/fo-wrapper.c).

The third and most difficult part will be getting from an Id reference to an
FO to an area and then to a page number.  I have also so far only done this
for empty fo:wrapper.

In support of the second part, I have added the XSLT to the 'spec-dump' module
to generate the fo_fo_register_id() call in the right place for those FOs that
have an 'id' property.

The simple patch task is to add the two lines of the fo_fo_register_id() call
to the .c files for the other 31 FOs that don't already have the call.  This
could be done by a selective merge with the generated file in the 'spec-dump'
module or by copying and modifying the one in fo-wrapper.c.  How it's done
isn't all that important.

This is not on the critical path for xmlroff 0.4.0, but it is necessary if
fo:page-number-citation is to be implemented properly.  Is there anybody who
wants a useful but mundane first step in modifying xmlroff source code?

Is there anybody who wants to do a useful second step of implementing getting
from an Id reference to an FO to an area and then to a page number?

Regards,


Tony.



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642