aboutsummaryrefslogtreecommitdiff
path: root/share/sgml/freebsd.dsl
diff options
context:
space:
mode:
authorNik Clayton <nik@FreeBSD.org>2000-03-23 09:00:17 +0000
committerNik Clayton <nik@FreeBSD.org>2000-03-23 09:00:17 +0000
commita595525171c1072ffca13d33066aebe4d57f807e (patch)
tree1f49574482579af26ae8ff51652a2f535b10133e /share/sgml/freebsd.dsl
parent2194956cdd527bc4baac67712f514b8ccfd96a5b (diff)
downloaddoc-a595525171c1072ffca13d33066aebe4d57f807e.tar.gz
doc-a595525171c1072ffca13d33066aebe4d57f807e.zip
Give each language and encoding it's own freebsd.dsl, to contain style
sheet definitions for that language only. Each file reads in the defaults from the master share/sgml/freebsd.dsl file, and adds overrides, or new definitions, as necessary. Move the per-language hacks from share/sgml/freebsd.dsl in to <lang>/share/sgml/freebsd.dsl as necessary. Add links to the -questions and -doc mailing lists to the bottom of the generated HTML output for some languages. The -questions link will become a link to Greg's "Getting the most from questions" document when I bring that in, but I haven't done that yet, and I didn't want these patches hanging around my local tree. This was the real reason for making freebsd.dsl language local, as it makes it much easier to translate generated text, such as the text of the links, without polluting share/sgml/freebsd.dsl. Update doc.docbook.mk to use the new, per-language freebsd.dsl file when building the docs. While I'm here, update .pdb generation so that it creates a symlink to ${CURDIR:T}.pdb as well (e.g., the Handbook generates "book.pdb" and "handbook.pdb"). This makes it easier to install more than one document on a Palm, because two docs called "book.pdb" or "article.pdb" can not co-exist.
Notes
Notes: svn path=/head/; revision=6844
Diffstat (limited to 'share/sgml/freebsd.dsl')
-rw-r--r--share/sgml/freebsd.dsl54
1 files changed, 32 insertions, 22 deletions
diff --git a/share/sgml/freebsd.dsl b/share/sgml/freebsd.dsl
index cd0e94f104..b5ad6e462b 100644
--- a/share/sgml/freebsd.dsl
+++ b/share/sgml/freebsd.dsl
@@ -1,34 +1,21 @@
-<!-- $FreeBSD: doc/share/sgml/freebsd.dsl,v 1.12 2000/02/14 01:29:17 nik Exp $ -->
+<!-- $FreeBSD: doc/share/sgml/freebsd.dsl,v 1.13 2000/02/15 01:57:17 nik Exp $ -->
<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
<!ENTITY % output.html "IGNORE">
<!ENTITY % output.print "IGNORE">
-<!ENTITY % lang.ja "IGNORE">
-<!ENTITY % lang.ja.dsssl "IGNORE">
-<!ENTITY % lang.ru "IGNORE">
+
<![ %output.html; [
<!ENTITY docbook.dsl PUBLIC "-//Norman Walsh//DOCUMENT DocBook HTML Stylesheet//EN" CDATA DSSSL>
]]>
<![ %output.print; [
<!ENTITY docbook.dsl PUBLIC "-//Norman Walsh//DOCUMENT DocBook Print Stylesheet//EN" CDATA DSSSL>
+
]]>
]>
<style-sheet>
<style-specification use="docbook">
<style-specification-body>
- <!-- Locatization -->
- <![ %lang.ja; [
- <![ %lang.ja.dsssl; [
- (define %gentext-language% "ja")
- ]]>
- (define %html-header-tags% '(("META" ("HTTP-EQUIV" "Content-Type") ("CONTENT" "text/html; charset=EUC-JP"))))
- ]]>
-
- <![ %lang.ru; [
- (define %html-header-tags% '(("META" ("HTTP-EQUIV" "Content-Type") ("CONTENT" "text/html; charset=koi8-r"))))
- ]]>
-
<!-- HTML only .................................................... -->
<![ %output.html; [
@@ -74,12 +61,35 @@
attributes: '(("VALIGN" "TOP"))
(process-children)))
- <!-- Fix a problem with the French localisation. This should really
- be a patch to the dsssl-docbook-modular port, but this gets it
- more widely available sooner. A patch will be applied to the
- port as well, and then this can be removed. -->
- (define (gentext-fr-nav-prev prev)
- (make sequence (literal "Pr\U-00E9;c\U-00E9;dent")))
+ <!-- The next two definitions control the appearance of an
+ e-mail footer at the bottom of each page. -->
+
+ <!-- This is the text to display at the bottom of each page.
+ Defaults to nothing. The individual stylesheets should
+ redefine this as necessary. -->
+ (define ($email-footer$)
+ (empty-sosofo))
+
+ <!-- This code handles displaying $email-footer$ at the bottom
+ of each page.
+
+ If "nuchunks" is turned on then we make sure that an <hr>
+ is shown first.
+
+ Then create a centered paragraph ("<p>"), and reduce the font
+ size ("<small>"). Then run $email-footer$, which should
+ create the text and links as necessary. -->
+ (define ($html-body-end$)
+ (if (equal? $email-footer$ (normalize ""))
+ (empty-sosofo)
+ (make sequence
+ (if nochunks
+ (make empty-element gi: "hr")
+ (empty-sosofo))
+ (make element gi: "p"
+ attributes: (list (list "align" "center"))
+ (make element gi: "small"
+ ($email-footer$))))))
]]>
<!-- Print only ................................................... -->