[Netsurf-develop] Floats
by James Bursa
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I've got left floats working: text now flows round the right side of them.
There are still some changes needed, and right floats need doing.
I tried running the compiled version under Arcem, but 4MB isn't enough. Does
anyone have access now to a RISC OS box with more memory (my A7k+ is at
home)? An old version to test is at
<http://users.ox.ac.uk/~orie0886/render.zip> (SetType Absolute, and *render
test1.html test1.css, get the test files from CVS).
Has anyone else made any progress on anything (eg. gui, font library, network
code)? I can't write it all myself ;->. Reviewing my code in CVS could also
be useful.
James
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE88sRhhziz97O5hIYRAjXEAJ9lVLR9qR62QJCpT0rG8lACiV2iIQCfRCvW
icwHMRZVq/IDi79b/7x9/mU=
=zNub
-----END PGP SIGNATURE-----
21 years, 6 months
[Netsurf-develop] Changes to rendering code
by James Bursa
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I've checked in some changes to the rendering code. I'm trying to implement
left and right floats now, but it's complicated.
If anyone's looking for some coding to do, the function box_get_style() in
box.c needs extending. This function converts element attributes to
appropriate style sheet rules, for example the attribute width="150" gets
converted to 'width: 150px' in CSS, and align="right" should become
'float: right' or 'text-align: right', depending on the element.
James
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE86sAFhziz97O5hIYRAr6PAJ9JpHzokmmWH8nGZq2eVW25DvoA5ACcCfB4
XYITzR72piOiFGYkK1kCeCQ=
=QX9z
-----END PGP SIGNATURE-----
21 years, 6 months
[Netsurf-develop] Inline layout code, gui
by James Bursa
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I have made some changes to the inline layout code. I've also made a tcl/tk
script for Linux which shows the rendering in a window:
<http://users.ox.ac.uk/~orie0886/netsurf.png>
Anyone want to start writing a RISC OS gui?
My main email address hasn't been working properly recently, so if you got a
bounce or delayed message, use this address instead.
James
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAjzeWOoACgkQhziz97O5hIbvrQCfREr3oFgF8i/P9+wOhAbWoV3o
6KQAnRU/iKt7opb8mQVf90XNAZk4yP9s
=Pt9N
-----END PGP SIGNATURE-----
21 years, 6 months
[Netsurf-develop] Changes to layout code
by James Bursa
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I've checked in some more changes.
* I split render.c into three parts: box tree generation, layout algorithm,
and the rest.
* The style attribute of elements is now used.
Did anyone try running my compiled version for RISC OS?
James
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAjzUUX8ACgkQhziz97O5hIYPOQCfVYlPCpmVP3hy6V/AbrKGNI1M
JooAnA6/GgqYvSBX2lUUoXioLAUmZW5m
=HnFt
-----END PGP SIGNATURE-----
21 years, 7 months
[Netsurf-develop] Table layout algorithm
by James Bursa
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I've committed a new version of render.c with a table layout algorithm.
Attached is test output. At the moment output is to a character grid, but the
layout code doesn't assume this, so it will be easy to change to a
pixel-based screen.
Important things that need doing in the layout code:
* Floats (eg. float: left; in CSS)
* Element attributes (eg. <h1 align="center">) - these usually need turning
into equivalent style rules
* Font handling (with Unicode ?)
* Lots of style properties need implementing
* Rewrite layout_inline_container() properly, with line heights - this will
also need changes for floats
* What else?
If anyone wants to work on any of these, feel free to edit the files I've
checked in. Ask me if you want me to explain any code. Also, send a message
to this list so that we don't duplicate work.
James
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAjzRBHYACgkQhziz97O5hIavMQCeMSrUY3M24bUH4BZiwhinfoN+
eQ8An11c34ZOEi/n4mFeBkN4nTG4aOEh
=BuBU
-----END PGP SIGNATURE-----
21 years, 7 months