Edward Rayl wrote: > Another way could be to perform an XSLT transformation using JPluck as > the parser, though I haven't tested such a transform. > > I had suggested a while back that if the text background is black on > the web page, then the text color needs to inversed by the parser for > Plucker since its text background will always be white. Of course > this solution wouldn't work in page that has a very dark background or > background image. I suspect that the page you are trying to convert > may look fine in a browser that supports _both_ .
I thought of calculating the perceived brightness of a color using the well-known formula 0.299*R + 0.587*G + 0.114*B (used for converting color to grayscale) and let the user specify a brightness limit in the range. (In a range from 1 to 10 for example.) This way the RGB values can be limited automatically to avoid the colors getting too bright and unreadable. The background color of the viewer is white (=maximum brightness) so I think this will work well. I have to implement it and try it out for real, though. Anyway, I introduced the "ignore text colors" option in JPluck exactly to counter this problem. Regards -Laurens _______________________________________________ plucker-list mailing list [EMAIL PROTECTED] http://lists.rubberchicken.org/mailman/listinfo/plucker-list

