Slimelite BBS

html_gadget.lha

Back to gui

ReAction class rendering simple HTML 4

Size
926K (948,168 bytes)
Added
2026-11-20 02:43
Downloads
2
Long Description
html.gadget and htmlttf.gadget are public ReAction (BOOPSI) gadget classes for AmigaOS 3.2 that display simple HTML 4 documents - online help, readme files, "about" pages, simple offline browsers. Features -------- - headings, paragraphs, <pre>, <blockquote>, alignment, horizontal rules - text styles, <font size color face>, sub/superscript - lists (ul/ol with all numbering types, nested; dl) - tables with automatic column widths, colspan, rowspan, border, cellpadding, cellspacing, width in pixels or %, align/valign, bgcolor, captions, nested tables - links with visited/active colours, anchors, "#anchor" links handled by the gadget itself, link clicks reported as GADGETUP - pictures in every format a datatype exists for (GIF transparency, PNG alpha in htmlttf.gadget), scaled with width/height; with align=left/ right the text flows around them (hspace, vspace, br clear) - background colours and tiled background pictures for the page, tables and cells - text selection with the mouse (drag, double click for a word) and copying to the clipboard (IFF FTXT) - Latin-1 entities, UTF-8 documents are converted automatically - scrollers connect via ICA_TARGET/ICA_MAP, mouse wheel and keys in the demo program html.gadget uses the system's bitmap fonts and rounds bigger HTML font sizes to sizes that really exist (e.g. Helvetica 9/11/13/15/18/24), so no scaled bitmap fonts are shown. Rendering is flicker free through an off-screen bitmap. Runs on every AmigaOS 3.2 system, 68000 and up. htmlttf.gadget is a drop-in alternative with the same attributes that renders anti-aliased TrueType fonts through a built-in FreeType 2.3.8 (Bitstream Vera included; DejaVu and Noto are supported as well), composites everything in 32 bit (pictures with alpha channel) and writes it with WritePixelArray() on RTG screens or maps it to pens on palette screens. Contents -------- Install Installer script (English/German) Classes/Gadgets/ html.gadget, htmlttf.gadget (68000) Classes/Gadgets/68020/ htmlttf.gadget for 68020-68060 (Install picks it) Demo/ HTMLDemo (a small browser) with example pages; "HTMLDemo TTF" uses htmlttf.gadget Developer/ includes (gadgets, proto, inline, clib), FD, SFD, Autodocs Docs/ German documentation (LiesMich.txt) Icons/ the archive's icons as GlowIcons and NewIcons (and the classic ones); double click UseGlowIcons, UseNewIcons or UseClassic to switch Source/ complete source code (C, cross compiled with bebbo's amiga-gcc and NDK 3.2; FreeType 2.3.8 from Aminet dev/lib/freetype-2.3.8 is needed for htmlttf.gadget) The demo runs directly from the archive; to use the classes in your own programs, run the Installer script or copy Classes/Gadgets/#? to SYS:Classes/Gadgets/. Not supported: CSS, JavaScript, frames, forms (drawn as boxes only), text flowing around tables, network access. History ------- 1.2 (17.10.2026) - printing and export: the new method HTMLM_Export writes the document as PostScript or PDF (paper size, margins, font size, Helvetica or Times, page numbers); text stays text, pictures with their original pixels and transparency, pages break between lines and keep headings with their text - bitmap printing: HTMLM_PrintBegin/Render/End give the pages as pixels of the sheet, in strips, e.g. for printer.device with DRPA_SourceHook; htmlttf.gadget in the printer's resolution, html.gadget with its bitmap fonts - export: pictures are compressed (PDF: LZW with PNG predictors, PostScript level 2: LZW in ASCII85), JPEG files are passed on as they are; HTMLEX_PSLevel 1 writes PostScript level 1 for old printers; HTMLEX_ImageDPI scales pictures down to a resolution for smaller files - new attributes HTML_