[sword-devel] HTML filter patches

Troy A. Griffitts sword-devel@crosswire.org
Sat, 03 Mar 2001 14:20:11 -0700


Terry,
	We could.  I'm planning on removing the FILTERPAD mechanism as it is
fairly error-prone.  I'll be replacing the functionality by changing the
signature of the SWFilter::ProcessText method as follows:

-virtual char ProcessText(char *text, int maxlen = -1, const SWKey *key
= 0)
+virtual char ProcessText(char **text, const SWKey *key = 0)

And let the filter reallocate the memory for the new buffer.

But for now, I've changed FILTERPAD to 5.

	-Troy.



> Terry Biggs wrote:
> 
> Troy,
> 
> In the swmodule.h file line 35 is '#define FILTERPAD 3' would is be
> posible to difine
> FILTERPAD as 5. I have patched the gbfhtml.cpp file so that strongs
> numbers are inclosed
> in <A HREF="#0000"><FONT SIZE=\"-1\"><I> 0000</I></FONT></A> tags,
> this requires that FILTERPAD be defined as 5. If this is not posible I
> can just continue to filter gbf to html in gomesword.
> Terry
> >
> 
> On 02 Mar 2001 21:30:23 -0700, Troy A. Griffitts wrote:
> 
> > Terry,
> 
> >       Thanks for the patches.  I've applied the latter 2 and left the first
> 
> > one, for now.  Let me know what we can do for our upcoming 1.5.2 package
> 
> > to facilitate your .4 release.  Thanks again!
> 
> >
> 
> >               -Troy.
> 
> >
> 
> >