Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ANN: Tkhtml alpha 4 available.

10 views
Skip to first unread message

Dan

unread,
May 5, 2006, 1:29:22 AM5/5/06
to
Hi,

There is a new alpha release of Tkhtml 3 available for download now.

The alpha release is undoubtably still full of bugs, some serious. But
it compiles and runs on both windows and linux, and the code and the
widget documentation have converged. The rendering engine is close
to feature complete, but still contains many bugs and a couple of
important omissions. See this page for a comparison of current
capabilities against the CSS 1.0 specification:

http://tkhtml.tcl.tk/support.html

The Tkhtml distribution now includes a minimalist web browser (named
hv3) built to test Tkhtml. It includes partial support for html forms
and
cookies, and a helpful document-tree browser used to debug layout
problems. hv3 works best configured to talk to a nearby (preferably
local)
web proxy, but can also be used to connect directly to http servers.

If possible, please help Tkhtml by doing some web-browsing with hv3
and filing bugs at the Cvstrac site given below.

Cvstrac: http://tkhtml.tcl.tk/cvstrac/
Source: http://tkhtml.tcl.tk/tkhtml3-alpha-4.tar.gz
Starkit demos: http://tkhtml.tcl.tk/hv3.html
Widget docs: http://tkhtml.tcl.tk/tkhtml.html

Regards,
Dan.

Juan C. Gil

unread,
May 5, 2006, 4:08:01 AM5/5/06
to

Dan wrote:
> Hi,
>
> There is a new alpha release of Tkhtml 3 available for download now.
>

Wow!

Thank you very much for the effort, Dan. It really looks impressive.

Juan Carlos---

George Petasis

unread,
May 5, 2006, 6:08:32 AM5/5/06
to Dan
Its impressive that tkhtml has advanced so much!
I tested with my home pages (www.ellogon.org/petasis),
which uses the Joomla CMS (ant thus the display/object
placement is based heavily on CCS), and tkhtml shows
the layout just fine!
(Of course some of the background images are still are missing,
perhaps javascript?)

But anyway, the new tkhtml is impressive.

George

O/H Dan έγραψε:

Dan

unread,
May 5, 2006, 7:31:27 AM5/5/06
to
> some of the background images are still are missing, perhaps javascript?

Unsupported image types. If you get the starkit with the "Img" package
(or
make it available via "package require" if you're not using a starkit)
they
should work.

There's also a bug on the left hand side of the page that is easier to
see
when background images work. It's because the 'text-indent' property
isn't
supported. It will be shortly though, it's more important than I
thought at
first.

Donal K. Fellows

unread,
May 5, 2006, 9:07:38 AM5/5/06
to
Dan wrote:
> There is a new alpha release of Tkhtml 3 available for download now.
>
> The alpha release is undoubtably still full of bugs, some serious. But
> it compiles and runs on both windows and linux, and the code and the
> widget documentation have converged. The rendering engine is close
> to feature complete, but still contains many bugs and a couple of
> important omissions. See this page for a comparison of current
> capabilities against the CSS 1.0 specification:
>
> http://tkhtml.tcl.tk/support.html

Very impressive! It copes well with some *very* funky pages indeed.
Alas, there are a few things it does not seem to like (though how many
of these are limitations of hv3 rather than the core tkhtml I do not know):
* Our corporate home page (http://www.manchester.ac.uk/) is very badly
treated, though I don't know why.
* Frames
* Stretched images (quite a few pages do that, especially for rules
and spacers)
* HTTPS support
* XML (with XSLT style sheet)

OK, the last two are not things to worry about for now. :-) Frame
handling problems seem a bit odd though, and the home-page problem is
quite amazing, if indicative of a problem... :-)

Donal.

Bryan Oakley

unread,
May 5, 2006, 10:54:02 AM5/5/06
to
I was thrilled to discover tkhtml would build on MacOSX, but it has
display problems that make it unusable. Do you plan on supporting MacOSX
eventually?

It renders pages but has some severe color damage starting in the upper
left corner (sort of like a blue starburst).

BTW: Thank you Very Much for including www.tclscripting.com as a
destination on the default home page of hv3.

--
Bryan Oakley
http://www.tclscripting.com

Dan

unread,
May 5, 2006, 11:53:34 AM5/5/06
to
My theory is that MacOSX doesn't support the Xlib
CoordModePrevious flag. If possible, could you test the
following patch and see if this fixes things? Thanks in
advance.

Dan.


--- ./htmlwidget/src/htmldraw.c 2006-03-11 11:48:11.000000000 +0700
+++ ../htmlwidget/src/htmldraw.c 2006-05-05 22:37:07.000000000
+0700
@@ -942,7 +942,18 @@
points[1].x = x2; points[1].y = y2;
points[2].x = x3; points[2].y = y3;
points[3].x = x4; points[3].y = y4;
+#if 1
+ {
+ int i;
+ for (i = 1; i < 4; i++) {
+ points[i].x += points[i-1].x;
+ points[i].y += points[i-1].y;
+ }
+ XFillPolygon(display, d, gc, points, 4, Convex,
CoordModeOrigin);
+ }
+#else
XFillPolygon(display, d, gc, points, 4, Convex,
CoordModePrevious);
+#endif
Tk_FreeGC(display, gc);

return rc;

Bryan Oakley

unread,
May 5, 2006, 12:12:12 PM5/5/06
to
Dan wrote:
> My theory is that MacOSX doesn't support the Xlib
> CoordModePrevious flag. If possible, could you test the
> following patch and see if this fixes things? Thanks in
> advance.

Yes, that fixed it. Fantabulous.

It's way cool seeing my tclscripting.com site in a widget. Nicely done.

Jeff Hobbs

unread,
May 10, 2006, 10:36:57 AM5/10/06
to
Dan wrote:
> My theory is that MacOSX doesn't support the Xlib
> CoordModePrevious flag. If possible, could you test the
> following patch and see if this fixes things? Thanks in
> advance.

I fixed CoordModePrevious drawing on OS X in July 2005, which would mean
8.4.12 is needed to get it right. From the looks of it though, it may
only be in the CGDrawing branch that I corrected it. You can see the
bits in macosx/tkMacOSXDraw.c (look for CoordModeOrigin). tktable
exposed it initially.

Jeff

Bryan Oakley

unread,
May 10, 2006, 10:47:36 AM5/10/06
to

For the record I was using 8.4.10 so if it was fixed properly in 8.4.12
I wouldn't have seen the fix. Maybe I'll shake loose some time in the
next few days to upgrade my mac and see if tkhtml works with the latest
8.4.x bits.

0 new messages