Re: [patch] Lists support in HTML export


Subject: Re: [patch] Lists support in HTML export
From: Martin Sevior (msevior@mccubbin.ph.unimelb.edu.au)
Date: Sun Jan 14 2001 - 20:41:30 CST


On Sun, 14 Jan 2001, John L. Clark wrote:

> Attached is a patch which adds xhtml-compliant lists support to our HTML
> exporter. It's the slightest bit hackish, but it fits with the
> surrounding code, and I'll be working with it to refine it. It
> currently writes out only standard bulleted lists and arabic numeral
> ordered lists.

I looked at the code. It looks very clean. I'm sure Sam will test it out
thoroughly once he gets back online.

I'm certainly looking forward to being able to export lists to HTML. With
that in place I can do lots more of my HTML stuff in Abi. (I can add
links by hand.) Plus our next release announcement can 100% Abi :-)

>
> Is our interface to document properties really done solely by lookup tables
> of strings? If so, why is it not done instead like a database, with IDs
> for properties and their values, which map to strings when necessary for
> writing? I'm still pouring over our piecetable and surrounding
> structure code, and it will be a while until I am at all comfortable
> with it, so forgive my naivety.

These are good questions. Yes our interface to doc properties is all
though strings.

Dom recently committed code to do binary searches on string properties but
we have also considered using enums for doc properties too. I'm not sure
why the abi designers went with const strings over enums. enums would
certainly be much faster. I guess they thought that using const strings
would be more robust and perhaps more easily interfaced to XML parsers.

If you're working through the PieceTable I suggest that doing the most
recent POW would be a useful learning experience as well as fixing a bug
that makes editting large docs really painful.

Cheers

Martin



This archive was generated by hypermail 2b25 : Sun Jan 14 2001 - 20:41:52 CST