On Wed, 6 Mar 2002 23:56:48 +0100 Joachim Ansorg <[EMAIL PROTECTED]> wrote:
> Hi! > > Commentaries like Rieger or MAK use the ThML/HTML escpae strings for umlauts > etc. > Although I use > setEscapeStart("&"); > setEscapeEnd(";"); > addEscapeStringSubstitute("auml", "ä"); > addEscapeStringSubstitute("uuml", "ü"); > addEscapeStringSubstitute("ouml", "ö"); > neither the escape code nor the umlauts appear in the text. Does sombody know > why this is happening? Maybe some other filter strips them out or does > SWBasicFilter::ProcessText not work correctly? Hi, dunno if I'm completely right but I think the problem is the way SWBasicFilter::substituteEscapeString works when escStringCaseSensitive is set to false (which is the default). In this case, the EscapeString is converted to uppercase before being inserted into escSubMap, but substituteEscapeString doesn't do this conversion when checking wether an EscapeString is in that map or not. Same thing for substituteTokens. The attached patch is an attempt to fix this, so would you like to try if the patch solves your problems? -- Helmer
patch
Description: Binary data