From 547e00849b70904ceb4cfb8301d1897b899122d1 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 3 Jun 2016 06:48:49 -0700 Subject: Drop between TXR and Lisp syms in HTML Doc. Dropping the document feature that hyperlinks in the TXR section resolve to TXR topics, and TXR Lisp hyperlinks go to TXR Lisp topics. All multiple uses of symbols are handled through the new mechanism of disambiguating topic navigators. * genman.txr (txrhash, txlhash, tgthash): Variables removed. (symhash): One variable, replacing those three. BODY collecting loop no longer collects LOOKUP variable, since body lines are not associated with a particular hash. --- genman.txr | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/genman.txr b/genman.txr index 4650b3d8..eab9fec7 100644 --- a/genman.txr +++ b/genman.txr @@ -1,8 +1,6 @@ @# This requires a hacked version of man2html @# See here: http://www.kylheku.com/cgit/man -@(bind txrhash @(hash :equal-based)) -@(bind txlhash @(hash :equal-based)) -@(bind tgthash txrhash) +@(bind symhash @(hash :equal-based)) @(bind tagmap @(hash :equal-based)) @(bind tochash @(hash :equal-based)) @(bind closedtxt "[+]") @@ -49,9 +47,8 @@ Content-type: text/html @(skip)Updated: @YEAR-@MONTH-@DAY
Index @(bind TIME @(make-time-utc (int-str YEAR) (int-str MONTH) (int-str DAY) 0 0 0 nil)) -@(bind lookup @[orf txrhash txlhash]) @(bind VERSION nil) -@(collect :vars (BODY LOOKUP)) +@(collect :vars (BODY)) @ (some) @ (cases)   @@ -72,13 +69,9 @@ Content-type: text/html @BODY @ (end) @ (and) -

@nil TXR LISP

-@ (set lookup txrhash) -@ (and) TXR - text processing language (version @ver) @ (set VERSION ver) @ (end) -@ (bind LOOKUP lookup) @(until)
 

Index

@@ -108,11 +101,10 @@ Content-type: text/html @ (end) @ (and)
@nil TXR LISP
-@ (set tgthash txlhash) @ (and)
@(coll :vars (sym))@sym@(end) @ (do (let ((n-tag [tagmap tag])) - (mapdo (do pushnew n-tag [tgthash @1]) sym) + (mapdo (do pushnew n-tag [symhash @1]) sym) (set [tochash n-tag] rest))) @ (and)
@num @nil @@ -131,7 +123,7 @@ Content-type: text/html This document was created by @(end) @(flatten TOC) -@(do [mapdo process-ambiguities (list txrhash txlhash)]) +@(do (process-ambiguities symhash)) @(set BODY @(let ((inside-tt nil) (inside-syntax nil)) (mapcar (do cond @@ -147,8 +139,7 @@ This document was created by (pop @1))) (tok [@1 1..:]) (bkt [@1 0]) - (tag [(if at txrhash txlhash) - tok])) + (tag [symhash tok])) (if tag `@at@bkt@tok` `@at@1`)) @1)) @@ -162,15 +153,14 @@ This document was created by (set pfx "@(" sym [tok 2 tend] sfx [tok tend .. :] - tag [txrhash sym])) - (t (set tag [@@2 tok] + tag [symhash sym])) + (t (set tag [symhash tok] sym tok))) (if tag `@pfx@sym@sfx` @1)) @1))) - BODY - LOOKUP))) + BODY))) @(bind (d-tag n-tag) @(transpose (hash-pairs disamb))) @(output) @@ -254,8 +244,7 @@ function tocjump(hash) {