From 524c6a7c57c83daf316b8bafbe62f1b86baa09fd Mon Sep 17 00:00:00 2001 From: Murray Stokely Date: Thu, 15 Jul 2004 08:26:33 +0000 Subject: [PATCH] Override the default $acronym-seq$ formatting to look for a role attribute in acronym DocBook tags and use this for the title attribute in acronym HTML4 tags, which will then give a mouseover definition of the acronym. --- share/sgml/freebsd.dsl | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/share/sgml/freebsd.dsl b/share/sgml/freebsd.dsl index dae73797fc..4543073f44 100644 --- a/share/sgml/freebsd.dsl +++ b/share/sgml/freebsd.dsl @@ -71,6 +71,23 @@ ;; Create docformat navi link for HTML output? #f) +;; Taken from Norm's stylesheets; modified to add support for TITLE so +;; that we get a mouse over definition for acronyms in HTML output. + + (define ($acronym-seq$ #!optional (sosofo (process-children))) + ;; FIXME: html4 only + (let ((title (attribute-string (normalize "role") (current-node)))) + (if title + (make element gi: "ACRONYM" + attributes: (list + (list "TITLE" title) + (list "CLASS" (gi))) + sosofo) + (make element gi: "ACRONYM" + attributes: (list + (list "CLASS" (gi))) + sosofo)))) + (define (book-titlepage-recto-elements) (list (normalize "title") (normalize "subtitle")