From 5aa149551169b033d6e8377b8204c533452154d3 Mon Sep 17 00:00:00 2001 From: Chin-San Huang Date: Sat, 2 Jun 2007 00:46:15 +0000 Subject: [PATCH] Improve the make-up better for zh_TW.Big5. Obtained from: The FreeBSD Traditional Chinese Project The FreeBSD Simplified Chinese Project Approved by: delphij (mentor) --- zh_TW.Big5/share/sgml/freebsd.dsl | 211 ++++++++++++++++++++++++++++-- 1 file changed, 203 insertions(+), 8 deletions(-) diff --git a/zh_TW.Big5/share/sgml/freebsd.dsl b/zh_TW.Big5/share/sgml/freebsd.dsl index 242fb86423..786be52286 100644 --- a/zh_TW.Big5/share/sgml/freebsd.dsl +++ b/zh_TW.Big5/share/sgml/freebsd.dsl @@ -22,28 +22,223 @@ (make element gi: "p" attributes: (list (list "align" "center")) (make element gi: "small" - (literal "This, and other documents, can be downloaded from ") + (literal "本文及其他文件,可由此下載:") (create-link (list (list "HREF" "ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/")) (literal "ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/")) - (literal "."))) + (literal "。"))) (make element gi: "p" attributes: (list (list "align" "center")) (make element gi: "small" - (literal "For questions about FreeBSD, read the ") + (literal "若有 FreeBSD 方面疑問,請先閱讀 ") (create-link (list (list "HREF" "http://www.FreeBSD.org/docs.html")) - (literal "documentation")) - (literal " before contacting <") + (literal "FreeBSD 相關文件")) + (literal ",如不能解決的話,再洽詢 <") (create-link (list (list "HREF" "mailto:questions@FreeBSD.org")) (literal "questions@FreeBSD.org")) - (literal ">.") + (literal ">。") (make empty-element gi: "br") - (literal "For questions about this documentation, e-mail <") + (literal "關於本文件的問題,請洽詢 <") (create-link (list (list "HREF" "mailto:doc@FreeBSD.org")) (literal "doc@FreeBSD.org")) - (literal ">."))))) + (literal ">。"))))) + +;; 對於要強調的部分,中文慣用粗體,中文斜體字不夠醒目,且妨礙閱讀, +;; 修改自 /usr/local/share/sgml/docbook/dsssl/modular/html/dbinline.dsl +;; Id: dbinline.dsl,v 1.11 2004/09/14 14:47:10 petere78 Exp +;; chinsan: 這段取自 zh_CN 成果 :p + +(element emphasis + (let* ((class (if (and (attribute-string (normalize "role")) + %emphasis-propagates-style%) + (attribute-string (normalize "role")) + "emphasis"))) + (make element gi: "SPAN" + attributes: (list (list "CLASS" class)) + ($bold-seq$)))) + + ]]> + + + + + + + + number ;; then get the apparent level + (substring renderas 4 5)) ;; from "renderas", + (SECTLEVEL))) ;; else use the real level + (hs (HSIZE (- 4 hlevel)))) + + (make sequence + (make paragraph + font-family-name: %title-font-family% + font-weight: (if (< hlevel 5) 'bold 'medium) + font-posture: (if (< hlevel 5) 'upright 'italic) + font-size: hs + line-spacing: (* hs %line-spacing-factor%) + space-before: (* hs %head-before-factor%) + space-after: (if (node-list-empty? subtitles) + (* hs %head-after-factor%) + 0pt) + start-indent: (if (or (>= hlevel 3) + (member (gi) (list (normalize "refsynopsisdiv") + (normalize "refsect1") + (normalize "refsect2") + (normalize "refsect3")))) + %body-start-indent% + 0pt) + first-line-start-indent: 0pt + quadding: %section-title-quadding% + keep-with-next?: #t + heading-level: (if %generate-heading-level% (+ hlevel 1) 0) + ;; SimpleSects are never AUTO numbered...they aren't hierarchical + (if (> hlevel (- max-section-level-labels 1)) + (empty-sosofo) + (if (string=? (element-label (current-node)) "") + (empty-sosofo) + (literal (element-label (current-node)) + (gentext-label-title-sep (gi sect))))) + (element-title-sosofo (current-node))) + (with-mode section-title-mode + (process-node-list subtitles)) + ($section-info$ info)))) + ]]>