An implementation of the Medley Interlisp device-independent graphics API for HTML.
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.
Clone the project HtmlStreamFontMetrics into another local directory, say
/Users/lisphacker/HtmlStreamFontMetrics.
-
Set the variable
*WEB-FONT-DIRECTORY*to thefontssubdirectory of theHtmlStreamFontMetricsdirectory above, using Interlisp/Tenex syntax. In our example that would be{DSK}/Users/lisphacker/HtmlStreamFontMetrics/fontsor{DSK}<Users>lisphacker>HtmlStreamFontMetrics>fonts>. You can do this in yourINITfile. -
Load
HTMLSTREAM.DFASLinto your running Medley system. -
Generate HTML output by "printing" to a file with the extension
html. You can open the resulting file in any modern Web browser.
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.