http://puppylinux.com/news/comments.php ... 702-083738
HTML-viewers can be pretty (gtkmoz-embedded) and large, or small and not very capable (Dillo).
Must documentation-browser be capable? No.
They must be able to do display:
fat
italic
add a link
insert a picture.
This is sufficient. Tables or coloured backgrounds would be nice, but are not strongly needed.
Following this assumption, Dillo is overkill
Gtkbasic has a Textwidget. It currently misses an important part: markers.
With markers, you'd be able to display coloured, bold italic text and so on.
Gtkbasic also misses pixmap-support, but that is on top of my todo-list.
So if those functions would be implemented, you could write some Basic-code like this:
PSEUDO-Code, commands might not exist in this syntax:
Code: Select all
thefile = readfile(thehelpfile)
for each theline in thefile
// find position of bold text
tstart = instr( theline , "<b>" )
tend = instr( theline , "</b>" )
// remove HTML-code
replace ( theline , "<b>" , "" )
replace ( theline , "</b>" , "" )
//add it to the textwidget
addline_to_textview( textview1 , theline )
t = set_textmodifier("bold")
gtk("gtk_modify_textview" , t , tstart , tend)
next
Instead of Gtkbasic you could write such parsers for any other language, that supports Textwidgets with support of typical modern layout-stuff.
Mark