diff options
author | Hiroki Sato <hrs@FreeBSD.org> | 2008-04-20 18:41:16 +0000 |
---|---|---|
committer | Hiroki Sato <hrs@FreeBSD.org> | 2008-04-20 18:41:16 +0000 |
commit | aae6cab8a872ea7e08fd699f85434c59ab2f1b6c (patch) | |
tree | 75847bb6e007cf6b8e4cfc15423ae3fa91216f11 /release/doc/share | |
parent | 032fae41d46bd34c08c33667738035b72b388e1b (diff) | |
download | src-aae6cab8a872ea7e08fd699f85434c59ab2f1b6c.tar.gz src-aae6cab8a872ea7e08fd699f85434c59ab2f1b6c.zip |
- Add ($paragraph$) for printed version.
- Fix a bug that role="" does not work when arch="" is not specified.
Notes
Notes:
svn path=/head/; revision=178350
Diffstat (limited to 'release/doc/share')
-rw-r--r-- | release/doc/share/sgml/release.dsl | 90 |
1 files changed, 86 insertions, 4 deletions
diff --git a/release/doc/share/sgml/release.dsl b/release/doc/share/sgml/release.dsl index e411de9e5ad4..dd6ac3e1dfe6 100644 --- a/release/doc/share/sgml/release.dsl +++ b/release/doc/share/sgml/release.dsl @@ -94,6 +94,88 @@ ; Put URLs in footnotes, and put footnotes at the bottom of each page. (define bop-footnotes #t) (define %footnote-ulinks% #t) + + (define ($paragraph$) + (let ((arch (attribute-string (normalize "arch"))) + (role (attribute-string (normalize "role"))) + (arch-string (entity-text "arch")) + (merged-string (entity-text "merged"))) + (if (or (equal? (print-backend) 'tex) + (equal? (print-backend) #f)) + ;; avoid using country: characteristic because of a JadeTeX bug... + (make paragraph + first-line-start-indent: (if (is-first-para) + %para-indent-firstpara% + %para-indent%) + space-before: %para-sep% + space-after: (if (INLIST?) + 0pt + %para-sep%) + quadding: %default-quadding% + hyphenate?: %hyphenation% + language: (dsssl-language-code) + (make sequence + (cond + ;; If arch= not specified, then print unconditionally. This clause + ;; handles the majority of cases. + ((or (equal? arch #f) + (equal? arch "") + (equal? arch "all")) + (process-children-trim)) + (else + (make sequence + (literal "[") + (let loop ((prev (car (split-string-to-list arch))) + (rest (cdr (split-string-to-list arch)))) + (make sequence + (literal prev) + (if (not (null? rest)) + (make sequence + (literal ", ") + (loop (car rest) (cdr rest))) + (empty-sosofo)))) + (literal "] ") + (process-children-trim)))) + (if (and (not (null? role)) (equal? role "merged")) + (literal " [" merged-string "]") + (empty-sosofo)))) + (make paragraph + first-line-start-indent: (if (is-first-para) + %para-indent-firstpara% + %para-indent%) + space-before: %para-sep% + space-after: (if (INLIST?) + 0pt + %para-sep%) + quadding: %default-quadding% + hyphenate?: %hyphenation% + language: (dsssl-language-code) + country: (dsssl-country-code) + (make sequence + (cond + ;; If arch= not specified, then print unconditionally. This clause + ;; handles the majority of cases. + ((or (equal? arch #f) + (equal? arch "") + (equal? arch "all")) + (process-children-trim)) + (else + (make sequence + (literal "[") + (let loop ((prev (car (split-string-to-list arch))) + (rest (cdr (split-string-to-list arch)))) + (make sequence + (literal prev) + (if (not (null? rest)) + (make sequence + (literal ", ") + (loop (car rest) (cdr rest))) + (empty-sosofo)))) + (literal "] ") + (process-children-trim)))) + (if (and (not (null? role)) (equal? role "merged")) + (literal " [" merged-string "]") + (empty-sosofo))))))) ]]> <![ %output.html; [ @@ -159,10 +241,10 @@ (loop (car rest) (cdr rest))) (empty-sosofo)))) (literal "] ") - (process-children) - (if (and (not (null? role)) (equal? role "merged")) - (literal " [" merged-string "]") - (empty-sosofo)))))) + (process-children))))) + (if (and (not (null? role)) (equal? role "merged")) + (literal " [" merged-string "]") + (empty-sosofo)) (if (or %footnotes-at-end% tgroup (node-list-empty? footnotes)) (empty-sosofo) (make element gi: "BLOCKQUOTE" |