filsa.net: Frontier / Scripts / Linking Macros / Glossary Patcher
This is part of Phil's Script Archive

UPDATED: Ready for Frontier 5!

Glossary Patcher

A utility: makes glossPatch items into relative referenced <a href> tags


This fat web page contains the glossPatcher script object.

Use the 'Get Page Data' command from the Scripts menu to copy glossPatcher into your object database.

Also available: info about fat pages and the Terms under which you can use this script.

Where glossary patching usually happens

As Frontier ships, glossary substitute happens in your finalfilter, via a call to html.data.standardmacros.glossaryPatcher(). But it is only set to operate to operate on html.data.page.renderedtext, which doesn't exist at the point of rendering that I want to work on things. So....

glossPatcher does the job

It takes a string, that contains one or more [[#glossPatch style references, converts them into the relative referenced <a> tags.

Easy. Simple.

This script does the dirty work for it's more glamourous older sister, glossTarget (). That's another way of saying you need this script for glossTarget () to work.

More docs in the source below.

Updated for Frontier 5

Needed to change one little thing because glossPatch items now include a file extension. Thanks to Vincent Knobil (knobil@ava.lelab.fr) for the bug report!

Fri, Feb 13, 1998 at 11:08:42 PM by PS

View the Source: user.html.macros.glossPatcher


© copyright 1997-98 by Philip Suh. Comments are appreciated.
This page last updated on 2/13/98; 11:08:43 PM.
<http://www.filsa.net/frontier/scripts/LinkingMacros/glossPatcher.html>
filsa.net: Frontier / Scripts / Linking Macros / Glossary Patcher