Skip to content

hjellinek/HtmlStream

Repository files navigation

HTMLSTREAM

An implementation of the Medley Interlisp device-independent graphics API for HTML.

Installation

Code

Clone this project and copy HTMLSTREAM.DFASL, U-PNG.DFASL, BASE64.DFASL and optionally their Lisp source files, to a local directory accessible by Medley.

Font metrics

Clone the project HtmlStreamFontMetrics into another local directory, say /Users/lisphacker/HtmlStreamFontMetrics.

Running

  1. Set the variable *WEB-FONT-DIRECTORY* to the fonts subdirectory of the HtmlStreamFontMetrics directory above, using Interlisp/Tenex syntax. In our example that would be {DSK}/Users/lisphacker/HtmlStreamFontMetrics/fonts or {DSK}<Users>lisphacker>HtmlStreamFontMetrics>fonts>. You can do this in your INIT file.

  2. Load HTMLSTREAM.DFASL into your running Medley system.

  3. Generate HTML output by "printing" to a file with the extension html. You can open the resulting file in any modern Web browser.

Implementation details

Fonts

HTMLSTREAM generates pages using Google's Noto webfonts. The font metrics files above describe the line height, max ascent, max descent, and character widths of all characters in the intersection of XCCS 3.0.0 and Unicode, segmented by XCCS charset. We run the WebFontMetrics software (not yet public) to generate the metrics files.

HTMLSTREAM maps common Medley font names to Noto font names using the a-list *WEB-FONT-MAPPINGS*.

See the file HTMLSTREAM.TEdit for further details.

About

An HTML implementation of Interlisp's device-independent graphics (DIG) API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages