[sword-devel] HTML filter patches

Terry Biggs sword-devel@crosswire.org
07 Apr 2001 12:52:17 -0400


--=-8S3+1jneMxC+rVxfb17K
Content-Type: text/plain

Troy was there a problem with gbfhtml.cpp.diff patch? Do I need to try
again or maybe just add a new filter?

Terry

    On 03 Mar 2001 17:53:49 -0500, Terry Biggs wrote:  Thanks again
    Troy,

    Here is the gbfhtml.cpp patch.
    I hope to the rwphtml patch ready soon.

    Terry


    On 03 Mar 2001 14:20:11 -0700, Troy A. Griffitts wrote:
    > 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.
    > 


--=-8S3+1jneMxC+rVxfb17K
Content-Type: text/html; charset=utf-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/0.8.3">
</HEAD>
<BODY><FONT SIZE="3">Troy was there a problem with gbfhtml.cpp.diff patch? Do I need to try again or maybe just add a new filter?</FONT SIZE="3"><br>
<FONT SIZE="3"></FONT SIZE="3"><br>
<FONT SIZE="3">Terry</FONT SIZE="3">
<blockquote>
    <FONT COLOR="#737373"><FONT SIZE="3"><I>On 03 Mar 2001 17:53:49 -0500, Terry Biggs wrote: &nbsp;Thanks again Troy,</FONT></I></FONT SIZE="3"><br>
    <FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></I></FONT SIZE="3"><br>
    <FONT COLOR="#737373"><FONT SIZE="3"><I>Here is the gbfhtml.cpp patch.</FONT></I></FONT SIZE="3"><br>
    <FONT COLOR="#737373"><FONT SIZE="3"><I>I hope to the rwphtml patch ready soon.</FONT></I></FONT SIZE="3"><br>
    <FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></I></FONT SIZE="3"><br>
    <FONT COLOR="#737373"><FONT SIZE="3"><I>Terry</FONT></I></FONT SIZE="3"><br>
    <FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></I></FONT SIZE="3"><pre><FONT COLOR="#737373"><FONT SIZE="3"><I>On 03 Mar 2001 14:20:11 -0700, Troy A. Griffitts wrote:</FONT></I></FONT SIZE="3"><br>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt; Terry,</FONT></I></FONT SIZE="3"><br>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt;       We could.  I'm planning on removing the FILTERPAD mechanism as it is</FONT></I></FONT SIZE="3"><br>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt; fairly error-prone.  I'll be replacing the functionality by changing the</FONT></I></FONT SIZE="3"><br>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt; signature of the SWFilter::ProcessText method as follows:</FONT></I></FONT SIZE="3"><br>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt; </FONT></I></FONT SIZE="3"><br>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt; -virtual char ProcessText(char *text, int maxlen = -1, const SWKey *key</FONT></I></FONT SIZE="3"><br>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt; = 0)</FONT></I></FONT SIZE="3"><br>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt; +virtual char ProcessText(char **text, const SWKey *key = 0)</FONT></I></FONT SIZE="3"><br>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt; </FONT></I></FONT SIZE="3"><br>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt; And let the filter reallocate the memory for the new buffer.</FONT></I></FONT SIZE="3"><br>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt; </FONT></I></FONT SIZE="3"><br>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt; But for now, I've changed FILTERPAD to 5.</FONT></I></FONT SIZE="3"><br>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt; </FONT></I></FONT SIZE="3"><br>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt;       -Troy.</FONT></I></FONT SIZE="3"><br>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt; </FONT></I></FONT SIZE="3"><br>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></I></FONT SIZE="3"></pre>
</blockquote>
</BODY>
</HTML>

--=-8S3+1jneMxC+rVxfb17K--